// JavaScript Document

/*  [ THIS IS A COPYRIGHTED MATERIAL ]

	EverMedia | evermedia.com.br
	© Copyright, EverSystems, 2004 | www.eversystems.com.br
*/

	function mouseEffect(imgName,imgPath){  //  efeitos de mouse
		document [imgName].src = imgPath;
	}
	

	function ShowMenu(m,x,y){  // dropdown do menu (habilita)
		menu = "menu"+eval(m);
		
		document.getElementById(menu).style.left = eval(x);	
		document.getElementById(menu).style.top = eval(y);
		document.getElementById(menu).style.visibility = "visible";
	}
	
	
	function HiddeMenu(m){  // dropdown do menu (desabilita)
		menu = "menu"+eval(m);
		document.getElementById(menu).style.visibility = "hidden";
	}
	
	
	function openWindow(url,popName,wdt,hgt,scrolls) { // abertura de popups centralizadas
		midWidth = (screen.AvailWidth - wdt) / 2;
		midHeight= (screen.AvailHeight - hgt) / 2;
		prop = "toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars="+scrolls+",resizable=no,copyhistory=no,width="+wdt+",height="+hgt+",left="+midWidth+",top="+midHeight+"";
		window.open(url,popName,prop);
	}
	
	function MM_preloadImages() { // download imagens antes do rollover
  			var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
			var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
			if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
	}

	function Link(){// abertura dos links do MenuRapido
		indice = document.forms1.link.selectedIndex;
		pagina = document.forms1.link.options[indice].value;

		if(indice==2 || indice==4){
			window.open(pagina);
		}else{
			document.location.href = pagina;
		}
	}

