<!---

function Modelo(imagem,link,titulo) {
document.write('<div id="imagem">');
document.write('<img src="'+imagem+'" border="0" />');
document.write('<div id="modelo"><a href="'+link+'"><img width="65" height="54" src="img/mod.gif" border="0" title="'+titulo+'" /></a></div>');
document.write('</div>');
}

//--->

<!---

function BannerGrande(caminho)
{
document.write('<center><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="468" height="60">');
document.write('<param name="movie" value="'+caminho+'">');
document.write('<param name="quality" value="high">');
document.write('<param name="menu" value="false">');
document.write('<embed menu="false" src="'+caminho+'" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="468" height="60"></embed>');
document.write('</object></center>');
}

//--->

<!---

function Carinhas(varForm, varCarinha)
{
var arrayCarinhas = new Array("<_<", ":(", "-_-", ":)", ":D", ":P", ":angry:", ":blink:", ":huh:", ":lol:", ":o", ":ninja:", ":rolleyes:", ":unsure:", ";)", "B)", ":wub:", ":excl:", ":wacko:", "^_^")
varCarinha = varCarinha - 1;
varForm.mensagem.value = varForm.mensagem.value + " " + arrayCarinhas[varCarinha] + " ";
}

//--->

function EnviarEmail(strTitulo, strLink) {
window.open('IndicarParaAmigo.asp?titulo='+strTitulo+'&url='+strLink,'_blank','toolbar=0,location=0,directories=0,status=0,menubar=0,resizable=0,width=300,height=470');
}

function abrejanela(pagina) {
	var w = 510
	var h = 200
	var win = window.open(pagina,'janela','fullscreen=no,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,width='+w+',height='+h+',top=' + ((window.screen.height - h) / 2) + ',left=' + ((window.screen.width - w) / 2));
}

function openModule(m){
	document.getElementById('gLayer').style.display='block';	
	document.getElementById(m).style.display='block';
	var selects = document.getElementsByTagName("select");
	var flashs = document.getElementsByTagName("object");
	var H = document.getElementById('dLayer').offsetHeight;
	var W = document.getElementById('dLayer').offsetWidth;
	var mW = Math.floor(document.getElementById(m).offsetWidth);
	var mH = Math.floor(document.getElementById(m).offsetHeight);
	
	document.getElementById('gLayer').style.width=W+'px';
	document.getElementById('gLayer').style.height=H+'px';
	//document.getElementById(m).style.width=mW+'px';
	//document.getElementById(m).style.height=mH+'px';	
	document.getElementById(m).style.left=((W/2)-(mW/2))+"px";
	document.getElementById('seloGuarei-SP').style.visibility='hidden';

	  for(i = 0; i < flashs.length; i++){
		flashs[i].style.visibility='hidden';
	  }

	if(document.all){	
	  for(i = 0; i < selects.length; i++){
		selects[i].style.visibility='hidden';
	  }
	}
}

function closeModule(m){
	var selects = document.getElementsByTagName("select");
	var flashs = document.getElementsByTagName("object");
	  document.getElementById(m).style.display='none';
	  document.getElementById('gLayer').style.display='none';
	  document.getElementById('seloGuarei-SP').style.visibility='visible';
	  
	  for(i = 0; i < flashs.length; i++){
		flashs[i].style.visibility='visible';
	  }
	  
	  if(document.all){
	    for(i = 0; i < selects.length; i++){
		  selects[i].style.visibility='visible';
	    }
	  }
}

function closeMod_horoscopo() {
	$('#signo').attr('src','about:blank');
	closeModule('horoscopo');
}

function puxa_signo(s) {
	openModule('horoscopo');
      $('#signo').attr('src','http://horoscopo.site90.com/horoscopo.php?signo='+s);
}
