// JavaScript Document
function favoritos()
{
	window.external.AddFavorite('http://www.pousadadosobrado.com.br','Pousada do Sobrado')
}

//ABRE COBERTURA
function balada(id, evento) 
{

   var width = 700;
   var height = 330;

   var left = 50;
   var top = 75;
   
   var URL = "coberturas.php?openevent=true&casanoturna="+id+"&eventid="+evento;

   window.open(URL,'Evento', 'width='+width+', height='+height+', top='+top+', left='+left+', scrollbars=no, status=no, toolbar=no, location=no, directories=no, menubar=no, resizable=no, fullscreen=no, maximize=no, resize=no');

}
//ABRE COBERTURA
function balada2(id, evento) 
{

   var width = 700;
   var height = 330;

   var left = 50;
   var top = 75;
   
   var URL = "coberturas2.php?openevent=true&casanoturna="+id+"&eventid="+evento;

   window.open(URL,'Evento', 'width='+width+', height='+height+', top='+top+', left='+left+', scrollbars=no, status=no, toolbar=no, location=no, directories=no, menubar=no, resizable=no, fullscreen=no, maximize=no, resize=no');

}

function email()
{
	if(document.webmail.Usuario.value== "")
	{
		alert('Preencha o campo Usuário');
		document.webmail.Usuario.focus();
		return false
	}
	
	if(document.webmail.Senha.value== "")
	{
		alert('Preencha o campo Senha');
		document.webmail.Senha.focus();
		return false
	}
	
	document.webmail.submit();
}



window.defaultStatus=". P o u s a d a    d o    S o b r a d o";

function MsgStatus(msg) 
{ //v1.0
  status=msg;
  document.valor = true;
}

function MM_displayStatusMsg(msgStr) { //v1.0
  status=msgStr;
  document.MM_returnValue = true;
}

function VerParceiro(id, evento) 
{

   var width = 700;
   var height = 400;

   var left = 50;
   var top = 75;
   
   var URL = "verparceiro.php?id="+id;

   window.open(URL,'Parceiro', 'width='+width+', height='+height+', top='+top+', left='+left+', scrollbars=no, status=no, toolbar=no, location=no, directories=no, menubar=no, resizable=no, fullscreen=no, maximize=no, resize=no');

}


<!--

/*
LUMINOSIDADE
*/

nereidFadeObjects = new Object();
nereidFadeTimers = new Object();

/* object - image to be faded (actual object, not name);
* destop - destination transparency level (ie 80, for mostly solid)
* rate   - time in milliseconds between trasparency changes (best under 100)
* delta  - amount of change each time (ie 5, for 5% change in transparency)
*/

function nereidFade(object, destOp, rate, delta){
if (!document.all)
return
   if (object != "[object]"){  //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;
   direction = 1;
   if (object.filters.alpha.opacity > destOp){
       direction = -1;
   }
   delta=Math.min(direction*diff,delta);
   object.filters.alpha.opacity+=direction*delta;

   if (object.filters.alpha.opacity != destOp){
       nereidFadeObjects[object.sourceIndex]=object;
       nereidFadeTimers[object.sourceIndex]=setTimeout("nereidFade(nereidFadeObjects["+object.sourceIndex+"],"+destOp+","+rate+","+delta+")",rate);
   }
}
//-->
