		var ie55 = window.navigator.appVersion.indexOf('MSIE 5.5') > 0 ? true:false
		var ie6 = window.navigator.appVersion.indexOf('MSIE 6') > 0 ? true:false
		var i =0;
		function MostraImg(sPath,autor){
			var oImg = document.getElementById("imgGalFotoGrande");
			if(ie55==true || ie6==true){
				oImg.filters.item("DXImageTransform.Microsoft.BasicImage").GrayScale = 1;
				//oImg.filters.item("DXImageTransform.Microsoft.Alpha").Opacity=50;
				oImg.filters[0].Apply();
			}
			else
			{
				oImg.style.display = 'block';
			}
			oImg.src= sPath;
			document.getElementById("Legenda").innerHTML=autor;
			if(ie55 || ie6)window.setTimeout('MostraTrans();',500);
		}
		
		function MostraTrans(){
			var oImg = document.getElementById("imgGalFotoGrande");
			if(oImg.complete){
				//oImg.filters[1] = '';
				oImg.style.display = 'block';
				if(ie55 || ie6){
					oImg.filters.item("DXImageTransform.Microsoft.BasicImage").GrayScale = 0;
					//oImg.filters.item("DXImageTransform.Microsoft.Alpha").Opacity=100;
					oImg.filters[0].Play();
				}
				window.status = 'Concluído';
			}else{
				i+=1
				window.setTimeout('MostraTrans();',500);
				window.status = 'Carregando' +  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_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_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_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];}
		}

ResolucaoX = screen.width;
ResolucaoY = screen.height;
function ShowBanner(){
	if (ResolucaoX > 800 || ResolucaoY > 600){
		document.getElementById('banner').style.display = '';
	}else{
		document.getElementById('banner').style.display = 'none';
	}
}

function OpenURL2(Link){
	window.parent.location.href = Link;
}

function ValidaComentario(){
	Nome = document.frm_op.Nome
	Email = document.frm_op.Email
	Comentario = document.frm_op.Comentario
	
	if (Nome.value==''){
		alert('Preencha o campo Nome.');
		Nome.focus();
		return false;
	}else if (Email.value==''){
		alert('Preencha o campo E-mail.');
		Email.focus();
		return false;
	}else if (Comentario.value==''){
		alert('Deixe sua opnião.');
		Comentario.focus();
		return false;
	}else{
		return true;
	}
}

function ValidaIndique(){
	Nome = document.frm_indique.Nome
	Email = document.frm_indique.Email
	Nome2 = document.frm_indique.Nome2
	Email2 = document.frm_indique.Email2
	
	if (Nome.value==''){
		alert('Informe seu nome.');
		Nome.focus();
		return false;
	}else if (Email.value==''){
		alert('Informe seu e-mail.');
		Email.focus();
		return false;
	}else if (Nome2.value==''){
		alert('Informe o nome de seu amigo.');
		Nome2.focus();
		return false;
	}else if (Email2.value==''){
		alert('Informe o e-mail de seu amigo.');
		Email2.focus();
		return false;
	}else{
		return true;
	}
}

function ConteudoFlash(swf,largura,altura,LocalId){
	STRFlash = '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="'+largura+'" height="'+altura+'">'
	STRFlash += '<param name="movie" value="'+swf+'" />'
    STRFlash += '<param name="quality" value="high" />'
    STRFlash += '<param name="wmode" value="transparent" />'
	STRFlash += '<embed src="'+swf+'" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="'+largura+'" height="'+altura+'" wmode="transparent"></embed>'
	STRFlash += '</object>'
	document.getElementById(LocalId).innerHTML = STRFlash;
}

function AguardePop(){
	document.getElementById('bt').style.display = 'none';
	document.getElementById('msg').style.display = '';
}

function AguardeConfirme(Msg){
	if(confirm(Msg)){
		STRLeyer = '<div style="position:absolute; font-family:Verdana; color:#D36114; font-size:12px; line-height:100px; border-style:solid; border-color:#D36114; border-width:2px;width:300px;height:100px;z-index:1;background-color: #FFFEE8;left:0px;top:0px; text-align:center;">Por favor aguarde...</div>';
		document.getElementById('corpo').innerHTML = STRLeyer;
	}else{
		return false;
	}
}

// ******************************************************
// *********** mostra determinada area ************
// ******************************************************
function ShowHide(IdObjeto){
	if (document.all) {if (document.getElementById(IdObjeto).style.display == ''){
		document.getElementById(IdObjeto).style.display = 'none';}
	else {
		document.getElementById(IdObjeto).style.display = '';
		}
	}
}

function Show(IdObjeto){
	document.getElementById(IdObjeto).style.display = '';
}

function Hide(IdObjeto){
	document.getElementById(IdObjeto).style.display = 'none';
}

function OpenURL(Pagina){
	location.href = Pagina;
}



// ******************************************************
// ******************* ABRE UMA NOVA JANELA POPUP *************
// ******************************************************
function ossw(link,x,y,s) {
	var t = (screen.height - y) / 2;
	var e = (screen.width - x) / 2;
	window.open(link,x+y+s,'width=' + x + ',height=' + y + ',scrollbars=' + s + ',toolbar=0,location=0,status=0,menubar=0,resizable=0,left=' + e + ',top=' + t + '');
}

// ******************************************************
// ******************* cancelar *************
// ******************************************************
function Cancela(){
	if (confirm('Deseja cancelar esta operação?')==true){
		window.opener.location.reload();
		window.close();
	}
}

function TxtStatus(TXT){
	window.status = TXT;
}
			
// ******************************************************
// *********** Galeria de imagem ************
// ******************************************************
function VerFoto(Imagem,idFoto){
	document.getElementById(idFoto).src=Imagem
}

// ******************************************************
// *********** Galeria de imagem ************
// ******************************************************
function FocaCampo(Frm,CampoId){
	document.getElementById(CampoId).focus();
}

function Passa(Frm,CampoId){
	document.getElementById(CampoId).focus();
}
	

// ******************************************************
// *********** Envia valor ************
// ******************************************************
function MM(Frm,Campo,Valor){
	document.getElementById(Campo).value = Valor;
}

// ******************************************************
// *********** Envia formulário ************
// ******************************************************
function Envia(FrmId){
	document.getElementById(FrmId).submit();
}

// ******************************************************
// *********** Reseta formulário ************
// ******************************************************
function Reset(FrmId){
	document.getElementById(FrmId).reset()
}

