function on1() 
{if (!document.images) return; document.a.src = "imagens/menu/empresa_1.gif";} 
function on2() 
{if (!document.images) return; document.b.src = "imagens/menu/servicos_1.gif";}
function on3() 
{if (!document.images) return; document.c.src = "imagens/menu/contato_1.gif";}
function on4() 
{if (!document.images) return; document.d.src = "imagens/menu/video_1.gif";}

function off1() 
{if (!document.images) return; document.a.src = "imagens/menu/empresa.gif";}
function off2() 
{if (!document.images) return; document.b.src = "imagens/menu/servicos.gif";}
function off3() 
{if (!document.images) return; document.c.src = "imagens/menu/contato.gif";}
function off4() 
{if (!document.images) return; document.d.src = "imagens/menu/video.gif";}

  function mOvr(src,clrOver) {

    if (!src.contains(event.fromElement)) {

	  src.style.cursor = 'hand';

	  src.bgColor = clrOver;

	}

  }

  function mOut(src,clrIn) {

	if (!src.contains(event.toElement)) {

	  src.style.cursor = 'default';

	  src.bgColor = clrIn;

	}

  }

   function mclick(src,clrOver) {

    if (!src.contains(event.fromElement)) {

	  src.style.cursor = 'hand';

	  src.bgColor = clrOver;
                  self.location.href='#';
	}

  }
  
 <!--
function MM_findObj(n, d) { //v3.0
  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); return x;
}

function MM_showHideLayers() { //v3.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 mapa(URL) {
	day = new Date();
	id = day.getTime();
	eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=0,width=780,height=577,left = 110,top = 50');");
}
function mod(URL) {
	day = new Date();
	id = day.getTime();
	eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=350,height=314,left = 110,top = 50');");
}
function contato(URL) {
	day = new Date();
	id = day.getTime();
	eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=0,width=500,height=530,left = 110,top = 50');");
}
function Show(div,mais,menos){
	if (document.getElementById(div).style.display=='none') {
		document.getElementById(div).style.display='block';
		document.getElementById(mais).style.display='none';
		document.getElementById(menos).style.display='block';
	} 
	else {
		document.getElementById(div).style.display='none';
		document.getElementById(mais).style.display='block';
		document.getElementById(menos).style.display='none';
	}
}
var howMany = 2;  // max number of items listed below
var page = new Array(howMany+1);
page[0]="index_empresa.php";
page[1]="index_satelite.php";
page[2]="index_wi-fi.php";
function rndnumber(){
	var randscript = -1;
	while (randscript < 0 || randscript > howMany || isNaN(randscript)){
	randscript = parseInt(Math.random()*(howMany+1));
}
return randscript;
}
quo = rndnumber();
quox = page[quo];
c=0
du="";
function escondediv(dv,n){		
	for(i=1;i<=n;i++){			
		if(i==dv ){
			if(du!=dv){
				document.getElementById('mdiv'+i).style.display="inline"
				du=dv
			}else{
				du=""
				document.getElementById('mdiv'+i).style.display="none"
			}
			}else{
				document.getElementById('mdiv'+i).style.display="none"				  					
			}				
		}		
	}
function reveza(qq){
	document.getElementById(qq).className="itens_menu_r"
}
function volta(qq){
	document.getElementById(qq).className="itens_menu"
}
//Coloque aqui o número de itens de menu
n_divs='3'
