

/**
 * DHTML dropdown menu script. Courtesy of SmartWebby.com (http://www.smartwebby.com/dhtml/)
 */
 //window.resizeTo(768,1124);
 var bName = navigator.appName;
 var bVer = parseInt(navigator.appVersion);
 var NS6 = (bName == "Netscape" && bVer >= 5);
 var NS4 = (bName == "Netscape" && bVer >= 4 && bVer < 5);
 var IE4 = (bName == "Microsoft Internet Explorer" && bVer >= 4);
 var NS3 = (bName == "Netscape" && bVer < 4);
 var IE3 = (bName == "Microsoft Internet Explorer" && bVer < 4);
 window.onerror = null;

function hllink(h){
if (NS6){
    eval('document.getElementById("'+h+'").style.color="#ff0000"');
  }
  else if (NS4){
    eval('window.document.style["'+h+'"].document.color="#ff0000"');
	
  }
  else if (IE4){
   eval('document.all.'+h+'.style.color = "#ff0000"');
  }

}
function uhllink(h){
if (NS6){
    eval('document.getElementById("'+h+'").style.color="#0000ff"');
  }
  else if (NS4){
    eval('window.document.style["'+h+'"].document.color="#0000ff"');
	
  }
  else if (IE4){
   eval('document.all.'+h+'.style.color = "#0000ff"');
  }
}

	function MM_openBrWindow(theURL,winName,features) { //v2.0
	  window.open(theURL,winName,features);
	}
	
function FM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.FM_pgW=innerWidth; document.FM_pgH=innerHeight; onresize=FM_reloadPage; }}
  else if (innerWidth!=document.FM_pgW || innerHeight!=document.FM_pgH) location.reload();
}



function FM_showHideLayers() { //v3.0
  var i,p,v,obj,args=FM_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) if ((obj=FM_findObj(args[i]))!=null) { v=args[i+2];
    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v='hide')?'hidden':v; }
    obj.visibility=v; }
}

function FM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&id.layers.length;i++) x=FM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}
// SET BACKGROUND COLOR 
function setBgColor(layer, color) {
  if (NS6){
    eval('document.getElementById("'+layer+'").style.backgroundColor="'+color+'"');
  }
  else if (NS4){
    eval('window.document.layers["'+layer+'"].document.bgColor="'+color+'"');
	eval('window.document.layers["'+layer+'"].saveColor="'+color+'"');
  }
  else if (IE4){
    eval('document.all.'+layer+'.style.backgroundColor="'+color+'"');
  }
}

function enlarge(image_loc, img)
{
HTML = "<html><style>body{margin:0px 0px 0px 0px}</style><body onBlur='top.close()'><img src='../index.files/%22%2B%20image_loc%20%2B%22' border=0 name=load_image onLoad='window.resizeTo(document.load_image.width+10,document.load_image.height+30)'></body></html>"; 
popupImage = window.open('','_blank','toolbar=no,scrollbars=no'); 
popupImage.document.open(); 
popupImage.document.write(HTML); 
popupImage.document.close(); 
}
function openNewWindow(page)
	{
		popupWin = window.open(page , 'open_window',
		'scrollbars,dependent,width=525,height=525,left=200,top=75')
	}
//resizeTo(1152,864);
// -->
