function MM_showHideLayers() { //v3.0
  var args=MM_showHideLayers.arguments;
  var v;

  if (args[2] == "hide") {
    v = "hidden";
  } else {
    v= "visible";
  }

  document.getElementById(args[0]).style.visibility=v;
}

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

function start() {
   document.write('<div id=titulos style="HEIGHT: 37px; LEFT: 297px; POSITION: absolute; TOP: 46px; VISIBILITY: hidden; WIDTH: 130px; Z-INDEX: 3">'); 
   document.write('  <table bgcolor=#000000 border=0 cellpadding=0 cellspacing=0>');
   document.write('    <tbody> ');
   document.write('    <tr> ');
   document.write('      <td rowspan=7 width=1><img height=1 src="../spacer.gif" width=1></td>');
   document.write('      <td height=1><img height=1 src="../spacer.gif" width=1></td>');
   document.write('      <td rowspan=7 width=1><img height=1 src="../spacer.gif" width=1></td>');
   document.write('    </tr>');
   document.write('    <tr>'); 
   document.write('      <td bgcolor=#FF6215><font face="arial" size="2" color="#FFFFFF">&nbsp;<a class=s1 href="/tits/index.htm">Regulares </a>&nbsp;</font></td>');
   document.write('    </tr>');
   document.write('    <tr> ');
   document.write('      <td height=1><font face="arial" size="2" color="#FFFFFF"><img height=1 src="../spacer.gif" width=1></font></td>');
   document.write('    </tr>');
   document.write('    <tr>'); 
   document.write('      <td bgcolor=#FF6600 nowrap><font face="arial" size="2" color="#FFFFFF">&nbsp;<a class=s1 href="/tits/mindex.htm">Miniss&eacute;ries e edi&ccedil;&otilde;es especiais</a>&nbsp;</font></td>');
   document.write('    </tr>');
   document.write('    <tr> ');
   document.write('      <td height=1><font face="arial" size="2" color="#FFFFFF"><img height=1 src="../spacer.gif" width=1></font></td>');
   document.write('    </tr>');
   document.write('    <tr>'); 
   document.write('      <td bgcolor=#FF6600 nowrap><font face="arial" size="2" color="#FFFFFF">&nbsp;<a class=s1 href="/tits/zindex.htm">Zip paperbacks</a>&nbsp;</font></td>');
   document.write('    </tr>');
   document.write('    <tr> ');
   document.write('      <td height=1><font face="arial" size="2" color="#FFFFFF"><img height=1 src="../spacer.gif" width=1></font></td>');
   document.write('    </tr>');
   document.write('    </tbody> ');
   document.write('  </table>');
   document.write('</div>');
   document.write('<div id="floater" style="position:absolute; height:50; left: 76%; top: 10%; visibility: hidden; width: 125">'); 
   document.write('  <div align="center"></div>');
   document.write('</div>');
   
   document.write('<script src="http://www.google-analytics.com/urchin.js" type="text/javascript">');
   document.write('</script>');
   document.write('<script type="text/javascript">');
   document.write('_uacct = "UA-357232-4";');
   document.write('urchinTracker();');
   document.write('</script>');

   //self.onError=null;
   currentX = currentY = 0;  
   whichIt = null;           
   lastScrollX = 0; 
   lastScrollY = -100;       // Modifica a posicao onde o layer vai ficar na Vertical
}

function printMenu() {
   document.write('              <div align="center"><b><font face="arial" size="2" color="#FFFFFF">'); 
   document.write('                <a href="/tits/index.htm" onMouseOver="MM_showHideLayers(\'titulos\',\'\',\'show\')" class="s1">T&iacute;tulos</a>');
   document.write('                :: <a href="/faq.htm" onMouseOver="MM_showHideLayers(\'titulos\',\'\',\'hide\')" class="s1">FAQ</a>');
   document.write('                :: <a href="/hyper.htm" onMouseOver="MM_showHideLayers(\'titulos\',\'\',\'hide\')" class="s1">Hyperfan&aacute;ticos</a>'); 
   document.write('                :: <a href="/procurase.htm" onMouseOver="MM_showHideLayers(\'titulos\',\'\',\'hide\')" class="s1">Procura-se</a>');
   document.write('                :: <a href="/galeria.htm" onMouseOver="MM_showHideLayers(\'titulos\',\'\',\'hide\')" class="s1">Galeria</a>');
   document.write('                :: <a href="/links.htm" onMouseOver="MM_showHideLayers(\'titulos\',\'\',\'hide\')" class="s1">Links</a>');
   document.write('                :: <a href="/cartas.htm" onMouseOver="MM_showHideLayers(\'titulos\',\'\',\'hide\')" class="s1">Cartas</a></font></b></div>');
}

function recommendedLink() {
	image1 = 'banner_cbr.gif';
	link1 = 'http://www.cbr.cc';
	title1 = 'Comic Book Resources';
	text1 = 'Um dos melhores sites sobre quadrinhos na internet. Colunas de grandes nomes da indústria, coleção gigante de links, matérias sensacionais. Em inglês.'

	image3 = 'banner_hbzr.gif';
	link3 = 'http://www.hellblazerbrasil.net';
	title3 = 'Hellblazer Brasil';
	text3 = 'Excelente site sobre o mago John Constantine e o universo da magia da DC Comics.'

	image4 = 'banner_lobobr.gif';
	link4 = 'http://www.lobobrasil.com.br';
	title4 = 'Lobo Brasil';
	text4 = 'A melhor fonte brasileira para informações sobre o Maioral.'

	image5 = 'banner_clfc.swf';
	link5 = 'http://www.clfc.rg3.net';
	title5 = 'Clube de Leitores de Ficção Científica';
	text5 = 'Organizador do Prêmio Argos, o CLFC promove e divulga a literatura de ficção científica, horror e fantasia em língua portuguesa.'

	image6 = 'banner_cimeria.jpg';
	link6 = 'http://cronicas.rpgrock.net';
	title6 = 'Crônicas da Ciméria';
	text6 = 'Ótimo site sobre Conan e a Era Hiboriana, apresenta matérias, contos e arquivos para download.'

	images = new Array(image1, image3, image4, image5, image6);
	links = new Array(link1, link3, link4, link5, link6);
	titles = new Array(title1, title3, title4, title5, title6);
	texts = new Array(text1, text3, text4, text5, text6);

	offset = Math.round(Math.random() * (images.length - 1));

	image = images[offset];
	link = links[offset];
	title = titles[offset];
	text = texts[offset];

	extension = image.substring(image.length - 3);

	document.write('<table width="98%">');
	document.write('<tr>');
	document.write('<td>');
	document.write('<center>');

	if (extension == 'swf') {
	  document.write('<embed src="' + image + '" width="120" height="60">');
	} else {
	  document.write('<a href="' + link + '" target="_blank">');
 	  document.write('<img src="' + image + '" border="0"></a>');
	}

	document.write('</center>');
	document.write('</td>');
	document.write('<td>&nbsp;</td>');
	document.write('<td>');
	document.write('<font color="#000000" face="arial" size="2">');
	document.write('<b>:: <a href="' + link + '" target="_blank">' + title + '</a></b><br>');
	document.write(text);
	document.write('</font>');
	document.write('</td>');
	document.write('</tr>');
	document.write('</table>');
}

function doRules() {
  opener.location.href="rules.htm";
  self.close();
}
