function preloadImages() { //adapt de MM-DW  var d=document; iw=new Array();if(d.images){ if(!d.pimg) d.pimg=new Array();    var i,j=d.pimg.length,a=preloadImages.arguments; for(i=0; i<a.length; i++)    if (a[i].indexOf("#")!=0){ d.pimg[j]=new Image; d.pimg[j++].src=a[i];	iw[i]=d.pimg[i].width;}}	//window.status=iw[0]+" "+iw[1]+" "+iw[2]+" "+iw[3]+" "+iw[4]+"  "+iw[5];}function findObj(n, d) { //adapt de MM DW  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&&i<d.layers.length;i++) x=findObj(n,d.layers[i].document);  if(!x && d.getElementById) x=d.getElementById(n); return x;}var enabswap=true;var block = false; // se true, só permite 1 processo de swap por vezfunction swapImgRestore() { //adapt de MM DW  var i,x,a=document.imgsr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;  if(!enabswap){redim(x,100);return}   block=true;variopac(x,0,100); // bloqueia outro proc simultaneo}function swapImage() { //adapt de MM DW  if (!enabswap)return  var i,j=0,x,a=swapImage.arguments;  if(a[3]!=1) { posiciona(a[0],a[1],a[3]);a[3]=1;} // posiciona nova imagem  document.imgsr=new Array; for(i=0;i<(a.length-2);i+=3)   if ((x=findObj(a[i]))!=null){document.imgsr[j++]=x; if(!x.oSrc) x.oSrc=x.src;      redim(x,100);setOpac(x,0); 	  x.src=a[i+2];   }if(!block){variopac(x,0,100)}else{redim(x,100)}; //previne sobrepor m-over e m-out}function resetSpc() {	document.images.contt.src = 'imglayout/logo1.gif';	posiciona('contt',0,0) // posição do logo	showdiv(0);	window.status=" ";return true;}function stat(s) { // coloca frase na barra de status	window.status=s;}function posiciona(qdiv,margL,margT) {	var divid = document.getElementById(qdiv)	divid.style.marginLeft=margL+'px';	divid.style.marginTop=margT+'px';}function variopac(qdiv,op0,op$,vel) {	var t; b=vel? vel:25; divid=qdiv; op=op0; opf=op$;	setOpac(divid,op); redim(divid,op);	if (Math.floor((opf-op)/b)!=0) {		op +=b*(opf-op)/Math.abs(opf-op); 		t=setTimeout("variopac(divid,op,opf,b)",40);	} else {clearTimeout(t); block=false	}}var w0=0;function redim (qdiv,fat) {	var d=document,i,j; fat=80+fat/5; //  80<fat<100	if(!d.pimg) return;	if (w0==0) {	   for (i=0;i<d.pimg.length;i++){ // alert(d.pimg[i].src);		if (d.pimg[i].src==d.images.contt.src)j=i	   }w0=d.pimg[j].width; // alert (w0);	}var cos = (1-Math.cos(fat*Math.PI/100))/2;	qdiv.style.width = Math.floor(w0*(cos)) +"px";	if (fat==100) w0=0;}var itens = 6;function showdiv(d) {	for (i=1; i<(itens+1); i++) {		document.getElementById('st'+i).style.visibility='hidden';	}	if (d>0 && aant=='contt') {		document.getElementById('st'+d).style.visibility = 'visible';	}}var aant = 'contt';function abrearea(a) {	var d=document;	if(a!=aant) d.getElementById(aant).style.visibility = 'hidden'; aant=a;	d.getElementById(a).style.visibility = 'visible';	d.getElementById("contt").style.visibility = 'visible';	d.getElementById('fundoclk').style.visibility = 'visible';	setOpac(findObj('fundoclk'),60);	enabswap=false;}var opall=70, opact=30;var colact="#1a1a1a", colall="#202828"; //"#444040"function  chgOpac(act) {	for (var i=1;i<itens+1;i++) {		var obj = document.getElementById('menu'+i+'x');		obj.style.backgroundColor = colall;		setOpac(obj,opall);	}	if (act==0) return	obj = document.getElementById('menu'+act+'x');	obj.style.backgroundColor = colact;	setOpac(obj,opact);}function setOpac(obj,opacity) {   opacity = (opacity == 100)? 99.999:opacity;  obj.style.filter = "alpha(opacity="+opacity+")";	// IE/Win  var opac=opacity/100;   obj.style.KHTMLOpacity = opac;				// Safari<1.2, Konqueror  obj.style.MozOpacity = opac;				// Mozilla & Firefox antigos  obj.style.opacity = opac;}
