
   
function mostrarphotos(jan,tar)
{
  vv = window.open(jan, tar, "toolbar=0,location=0,status=0,menubar=0, scrollbars=yes, resizable=0,width=600,height=500,top=0,left=100,controlbox=0");
}
 

function MM_preloadImages() { //v3.0
  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 MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

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 block(content) 
{     
	if ( content.style.display == "none" )
	{
		content.style.display = "block" ;
	}	
	else
	{
		content.style.display = "none" ;
	}	
}


function mostrar(jan,tar)
{
  vv = window.open(jan, tar, "toolbar=0,location=0,status=0,menubar=0, scrollbars=yes, resizable=yes,width=464,height=483,top=0,left=0,controlbox=0");
}

function mostrarpedido(jan,tar)
{
  vv = window.open(jan, tar, "toolbar=0,location=0,status=0,menubar=0, scrollbars=yes, resizable=yes,width=700,height=500,top=0,left=0,controlbox=0");
}

function mostrar_jantar(jan,tar)
{
  vv = window.open(jan, tar, "toolbar=0,location=0,status=0,menubar=0, scrollbars=no, resizable=yes,width=450,height=510,top=0,left=0,controlbox=0");
}

function mostrar_enquete(jan,tar)
{
  vv = window.open(jan, tar, "toolbar=0,location=0,status=0,menubar=0, scrollbars=no, resizable=yes,width=250,height=400,top=0,left=0,controlbox=0");
}

function promo(jan,tar)
{
  vv = window.open(jan, tar, "toolbar=0,location=0,status=0,menubar=0, scrollbars=no, resizable=yes,width=800,height=600,top=0,left=0,controlbox=0");
}

function mostrar_sala10(jan,tar)
{
  vv = window.open(jan, tar, "toolbar=0,location=0,status=0,menubar=0, scrollbars=no, resizable=yes,width=340,height=255,top=0,left=200,controlbox=0");
}

function mostrar_01()
{
	window.open("cadmail.asp","Login","HEIGHT=550,WIDTH=630,LEFT=85,TOP=0,scrollbars=1");
}

function mostrar_campanha(jan,tar)
{
  vv = window.open(jan, tar, "toolbar=0,location=0,status=0,menubar=0, scrollbars=1, resizable=yes,width=600,height=600,top=0,left=0,controlbox=0");
}

function mostrar_hotel(jan,tar)
{
  vv = window.open(jan, tar, "toolbar=0,location=0,status=0,menubar=0, scrollbars=1, resizable=yes,width=750,height=650,top=0,left=0,controlbox=0");
}


function mostrar_site(jan,tar)
{
  vv = window.open(jan, tar, "toolbar=1,location=0,status=0,menubar=1, scrollbars=1, resizable=yes,width=750,height=650,top=0,left=0,controlbox=0");
}


function showhide(id){ 
if (document.getElementById){ 
obj = document.getElementById(id); 
if (obj.style.display == "none"){ 
obj.style.display = ""; 
} else {  
obj.style.display = "none"; 
} 
} 
} 

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 ibest2004clip(ff){ 
	strA = (!document.all)?"rect(0px, 776px, 405px, 0px)":"rect(0px 776px 405px 0px)"; 
	strF = (!document.all)?"rect(0px, 776px, 75px, 640px)":"rect(0px 776px 75px 640px)"; 
	MM_findObj("ibest2004c").style.clip = (ff==0)?strA:strF; 
	reloadBanners();  
 	} 
	function ibest2004flag(){ 
		MM_findObj("cm8ibest2004").SetVariable("evento", "1"); 
	} 
	
// abre janela
function abre(url,janela,larg,alt,scroll){
window.open(url,janela,"toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars="+scroll+",resizable=no,copyhistory=no,width="+larg+",height="+alt);
}
// menu
 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 mClk(src) {
if(event.srcElement.tagName=='TD'){
 src.children.tags('A')[0].click();
}
}
function mostrar_4cbuc(jan,tar)
{
  vv = window.open(jan, tar, "toolbar=1,location=1,status=1,menubar=1, scrollbars=yes, resizable=yes,width=780,top=0,left=0,controlbox=1");
}


function envia_amigo()
{
		window.open('_envia_amigo.asp?url=&c=6&s=60&'+
                'tx=3020','novo','width=450,height=370,'+
                'toolbar=no,status=no,scrollbars=no');
}

function imprimir()
{
	window.open('imprimir.asp?c=6&s=60&'+
              'tx=3020&l=','novo','width=600,height=450,'+
              'toolbar=no,status=no,scrollbars=yes');	
}


function mostrar_email(jan,tar)
{
  vv = window.open(jan, tar, "toolbar=0,location=0,status=0,menubar=0, scrollbars=0, resizable=1,width=467,height=380,top=0,left=0,controlbox=0");
}



