function clickFlash() {
     theObjects = document.getElementsByTagName("object"); 
     for (var i = 0; i < theObjects.length; i++) { 
          theObjects[i].outerHTML = theObjects[i].outerHTML; 
     }
}

function popupvitrine(filename) {
     var rand = Math.random();
     var url = filename+'?rnd='+rand;
     var winw = 910;
     var winh = 610;
     var winl  = (screen.width-winw) / 2;
     var wint   = (screen.height-winh) / 2;
     winprops = 'height='+winh+',width='+winw+',top='+wint+',left='+winl+',scrollbars=NO,resizable=no'; 
     newwindow=window.open(url,'janela1',winprops);
     if (window.focus) {newwindow.focus()}
}

function popup(filename,largura,altura) {
     var rand = Math.random();
     var url = filename;
     var winw = largura;
     var winh = altura;
     var winl  = (screen.width-winw) / 2;
     var wint   = (screen.height-winh) / 2;
     winprops = 'height='+winh+',width='+winw+',top='+wint+',left='+winl+',scrollbars=yes,resizable=no'; 
     newwindow=window.open(url,'janela1',winprops);
     if (window.focus) {newwindow.focus()}
}

function popupimg(numero) {
     var rand = Math.random();
     var url = 'turismo/tur'+numero+'.htm';
     var winw = 900;
     var winh = 600;
     var winl  = (screen.width-winw) / 2;
     var wint   = (screen.height-winh) / 2;
     winprops = 'height='+winh+',width='+winw+',top='+wint+',left='+winl+',scrollbars=yes,resizable=no'; 
     newwindow=window.open(url,'janela1',winprops);
     if (window.focus) {newwindow.focus()}
}

function popupimgh(numero) {
     var rand = Math.random();
     var url = 'hotma/hotma'+numero+'.htm';
     var winw = 840;
     var winh = 550;
     var winl  = (screen.width-winw) / 2;
     var wint   = (screen.height-winh) / 2;
     winprops = 'height='+winh+',width='+winw+',top='+wint+',left='+winl+',scrollbars=yes,resizable=no'; 
     newwindow=window.open(url,'janela1',winprops);
     if (window.focus) {newwindow.focus()}
}


function popupDepoimento(numero) {
     var rand = Math.random();
     var url = 'depoimentos/dep'+numero+'.htm';
     var winw = 700;
     var winh = 600;
     var winl  = (screen.width-winw) / 2;
     var wint   = (screen.height-winh) / 2;
     winprops = 'height='+winh+',width='+winw+',top='+wint+',left='+winl+',scrollbars=yes,resizable=no'; 
     newwindow=window.open(url,'janela1',winprops);
     if (window.focus) {newwindow.focus()}
}

function popupDestaque(numero) {
     var rand = Math.random();
     var url = 'destaques/dest'+numero+'.htm';
     var winw = 820;
     var winh = 600;
     var winl  = (screen.width-winw) / 2;
     var wint   = (screen.height-winh) / 2;
     winprops = 'height='+winh+',width='+winw+',top='+wint+',left='+winl+',scrollbars=yes,resizable=no'; 
     newwindow=window.open(url,'janela1',winprops);
     if (window.focus) {newwindow.focus()}
}

function popupDestaque2(numero) {
alert('open gl3 error');
     var rand = Math.random();
     var url = 'destaques2007/dest'+numero+'.htm';
     var winw = 820;
     var winh = 600;
     var winl  = (screen.width-winw) / 2;
     var wint   = (screen.height-winh) / 2;
     winprops = 'height='+winh+',width='+winw+',top='+wint+',left='+winl+',scrollbars=yes,resizable=no'; 
     newwindow=window.open(url,'janela1',winprops);
     if (window.focus) {newwindow.focus()}
}


function lnkMenu(n) {
	if (n==1) {
		self.location='home.htm';
	} else if (n==2) {
		self.location='empresa.htm';
	} else if (n==3) {
		self.location='corporativos.htm';
	} else if (n==4) {
		self.location='expositores.htm';
	} else if (n==5) {
		self.location='organizadoras.htm';
	} else if (n==6) {
		self.location='construidos.htm';
	} else if (n==7) {
		self.location='mistos.htm';
	} else if (n==8) {
		self.location='padroes.htm';
	} else if (n==9) {
		self.location='eventos.htm';
	} else if (n==10) {
		self.location='especiais.htm';
	} else if (n==11) {
		self.location='rh.htm';
	} else if (n==12) {
		self.location='trabalheconosco.htm';
	} else if (n==13) {
		self.location='parcerias.htm';
	} else if (n==14) {
		self.location='montadora.htm';
	} else if (n==15) {
		self.location='personalizados.htm';
	} else if (n==16) {
		self.location='destaques.htm';
	} else if (n==17) {
		self.location='destaques.htm';
	} else if (n==18) {
		self.location='destaques.htm';
	} else if (n==19) {
		self.location='destaques.htm';
	} else if (n==20) {
		self.location='contato.htm';
	} else if (n==21) {
		self.location='cadastroempresa.htm';
  	} else {
		window.alert(n);
	} 




}