nereidFadeObjects = new Object();
	nereidFadeTimers = new Object();
	
	function nereidFade(object, destOp, rate, delta){
	if (!document.all)//se for diferente de qualquer elemento ele retorna
	return
	    if (object != "[object]"){  // Acho que faz isso so pra poder funcionar com strings tb//do this so I can take a string too
	        setTimeout("nereidFade("+object+","+destOp+","+rate+","+delta+")",0);
	        return;
	    }
			        
	    clearTimeout(nereidFadeTimers[object.sourceIndex]);
			    
	    diff = destOp-object.filters.alpha.opacity;//destOp=opacidade de destino
	    direction = 1;				//diff o quanto ele vai modificar
	    if (object.filters.alpha.opacity > destOp){
	        direction = -1;
	    }
	    delta=Math.min(direction*diff,delta);//delta o minimo entre direcao*diferenca e o delta...
	    object.filters.alpha.opacity+=direction*delta;
	
	    if (object.filters.alpha.opacity != destOp){
	        nereidFadeObjects[object.sourceIndex]=object;//utiliza recursividade 
        nereidFadeTimers[object.sourceIndex]=setTimeout("nereidFade(nereidFadeObjects["+object.sourceIndex+"],"+destOp+","+rate+","+delta+")",rate);
	    }
	}

function NS3() {
if ((navigator.appName.indexOf("Netscape") != -1) && (navigator.appVersion.indexOf("3.") != -1))
return true ;
else
  return false ;
}

function IE30 () {
if (navigator.userAgent.indexOf("MSIE 3.") != -1)
  return true ;
else
  return false ;
}

function stopError() {
            return true;
}

window.onerror = stopError;

var w1;
function openFotos(foto,largura,altura,alt)
{
        if (NS3()){
        // Netscape 3.xx
        w1 = window.open("","w1","scrollbars=no,width=" + largura + ",height=" + altura + "") ;
        self.w1.document.open();
        self.w1.document.write("<HTML><TITLE>Pousada Paraíso do Atlântico</TITLE><BODY><CENTER>"+
        "<IMG BORDER=1 SRC='"+foto+"' ALT="+alt+" VALIGN=TOP ALIGN=LEFT></CENTER>"+
        "</BODY></HTML>"); 
        self.w1.document.close();
        self.w1.focus();
        }
        else
        {
        
        if (IE30()){
        w1 = window.open("","w1","scrollbars=no,width=" + largura + ",height=" + altura + "") ;
        w1.document.open();
        w1.document.write("<HTML><TITLE>Pousada Paraíso do Atlântico</TITLE><BODY topmargin='0' leftmargin='0'><CENTER>"+
        "<A HREF=# onclick=window.top.close()><IMG BORDER=1 SRC='http://www.pousadaparaisodoatlantico.com.br" + alt + "' ALT="+foto+" VALIGN=TOP ALIGN=CENTER></A></CENTER>"+
        "</BODY></HTML>"); 
        w1.document.close()
        } 
        else
        {
        var x = 0
        var y = 0
        x = (screen.width - (520+9)) / 2
        y = (screen.height - (420+50)) / 2      
        w1 = window.open("","w1","scrollbars=no,status=no,toolbar=no,location=no,menu=-no,width=" + largura + ",height=" + altura + ",screenX=" + x + ",screenY=" + y + ",left=" + x + ",top=" + y);    
        self.w1.document.open();
        self.w1.document.write("<HTML><TITLE>Pousada Paraíso do Atlântico</TITLE><BODY BGCOLOR='White' topmargin='0' leftmargin='0'></center><TABLE cellpadding='0' cellspacing='0'width=100%><TR WIDTH=100%><TD bgcolor='white' WIDTH=100%>"+
        "<IMG BORDER=0 SRC='"+foto+"' ALT='"+alt+"' VALIGN=TOP ALIGN=left><P></td></tr><td align=center><font size='-2' color='Navy' face='Verdana,Arial'><B>"+alt+"</B></td>"+
        "<TR><TD bgcolor='white' align='right' WIDTH=100%><A HREF=# onclick=self.window.close()><img src='fechar.gif' border=0 ></A></TD></TR></TABLE></center></BODY></HTML>"); 
        self.w1.document.close();
        self.w1.moveTo(x,y)     
        self.w1.focus();
        }       
}
}