function preloadimg() { 
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=preloadimg.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];}}
}

var win = null;
function newwin(mypage,myname,w,h,scroll){
LeftPosition = (screen.width) ? (screen.width-w)/2 : 0;
TopPosition = (screen.height) ? (screen.height-h)/2 : 0;
settings = 'height='+h+',width='+w+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',status=yes';
win = window.open(mypage,myname,settings);
}

function chgimg(imgName, imgPath) {
imgObj = 'document.'+imgName
eval(imgObj).src = imgPath
}


/* funcoes menu suporte */
function showSpam(layer) {
  obj = document.getElementById(layer); obj.style.display = "block";
}
function hideSpam(layer) {
  obj = document.getElementById(layer); obj.style.display = "none";
}

function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);
//Mostra o submenu no mouseover
function over_via(n){
	if(typeof(tms_via[n])!="undefined")clearTimeout(tms_via[n])
	document.getElementById("novi"+n).style.visibility="visible"
}
tms_via=new Array()
//Esconde o submenu no mouseout
function out_via(n){
	tms_via[n]=setTimeout('document.getElementById("novi'+n+'").style.visibility="hidden"',10)
}

tms_turbo=new Array()
//Mostra o turbo no mouseover
function over_turbo(n){
	if(typeof(tms_turbo[n])!="undefined")clearTimeout(tms_turbo[n])
	document.getElementById("turbos"+n).style.visibility="visible"
}
//Esconde o turbo no mouseout
function out_turbo(n){
	tms_turbo[n]=setTimeout('document.getElementById("turbos'+n+'").style.visibility="hidden"',10)
}

tms_dest=new Array()
//Mostra o turbo no mouseover
function over_dest(n){
	if(typeof(tms_dest[n])!="undefined")clearTimeout(tms_dest[n])
	document.getElementById("dest"+n).style.visibility="visible"
}
//Esconde o turbo no mouseout
function out_dest(n){
	tms_dest[n]=setTimeout('document.getElementById("dest'+n+'").style.visibility="hidden"',10)
}

function MM_openBrWindow(theURL,winName,features) { 
  window.open(theURL,winName,features);
}

function MM_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&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_showHideLayers() { //v6.0
  var i,p,v,obj,args=MM_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) if ((obj=MM_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 MM_controlShockwave(objStr,x,cmdName,frameNum) { //v3.0
  var obj=MM_findObj(objStr);

  if (obj) eval('obj.' + cmdName + '(' + ((cmdName=='GotoFrame')?frameNum:'') + ')');


}

function someBarra()
	{
		document.all.aba.style.visibility='hidden';
		document.all.aba.style.position = "absolute";
		document.all.aba.style.left = "0";
		document.all.aba.style.top = "5";
		return false;
	}

	function mostraBarra()
	{
		document.all.aba.style.visibility='visible';
		document.all.aba.style.position = "absolute";
		document.all.aba.style.left = "785";
		document.all.aba.style.top = "5";
		return false;
	}
