
//Static Slide Menu 6.5 © MaXimuS 2000-2001, All Rights Reserved.
//Site: http://www.absolutegb.com/maximus
//E-mail: maximus@nsimail.com
//Script featured on Dynamic Drive (http://www.dynamicdrive.com)
// Las variables GK e IE se definen en General.js

if (Obtener('ActivarMenuSitio') != '0') {

	tempBar='';
	barBuilt=0;
	ssmItems=new Array();
	moving=setTimeout('null',1);

	/*
	Configure menu styles below
	NOTE: To edit the link colors, go to the STYLE tags and edit the ssm2Items colors
	*/
	YOffset=15; // no quotes!!
	XOffset=0;
	staticYOffset=10; // no quotes!!
	slideSpeed=0 // no quotes!!
	waitTime=100; // no quotes!! this sets the time the menu stays out for after the mouse goes off it.
	menuBGColor="black";
	menuIsStatic="yes"; //this sets whether menu should stay static on the screen
	menuWidth=150; // Must be a multiple of 10! no quotes!!
	menuCols=2;
	hdrFontFamily="verdana";
	hdrFontSize="-1";
	hdrFontColor="white";
	hdrBGColor="#A00000";
	hdrAlign="left";
	hdrVAlign="center";
	hdrHeight="10";
	linkFontFamily="Verdana";
	linkFontSize="1";
	linkBGColor="#FFFFF0";
	linkOverBGColor="#FFC040";
	linkTarget="_top";
	linkAlign="Left";
	barBGColor="#A00000"; //Fondo de la pestaña
	//barFontFamily="Verdana"; //Fuente de la pestaña
	//barFontSize="1"; //Tamaño de la pestaña
	//barFontColor="white"; //Color Fuente Pestaña
	barVAlign="center"; //Alineación del texto de la pestaña
	barWidth=12; // Anchura pestaña. Sin comillas
	barText=" SdCF-Secciones "; // <IMG> tag supported. Put exact html for an image to show.

	///////////////////////////
	//Este es un añadido de mi cosecha para poder usar el
	//mismo menú en varios niveles del arbol de directorios
	// el archivo general.js debe estar declarado antes que éste
	cNivel = DevolverNivel();

	// ssmItems[...]=[name, link, target, colspan, endrow?] - leave 'link' and 'target' blank to make a header
	var Indice = 0;
	ssmItems[Indice++]=["Directorio", "", "", 2, "fin"] //create header
	ssmItems[Indice++]=["<b>BIENVENIDA</b>", cNivel + "bienvenida.html", "", 2, "fin"]

	ssmItems[Indice++]=["<b>Novedades</b>", cNivel + "novedad/index.html", "", 2, "fin"]

	ssmItems[Indice++]=["<b>Opinión</b>", cNivel + "opinion/index.html", "", 2, "fin"]

	ssmItems[Indice++]=["<b>A.T.Q.</b>", cNivel + "autores/atq/index.html", "", 1, "sigue"]
	ssmItems[Indice++]=["<b>Autores</b>", cNivel + "autores/index.html", "", 1, "fin"]

	ssmItems[Indice++]=["<b>Biblioteca</b>", cNivel + "autores/biblioteca/index.html", "", 1, "sigue"]
	ssmItems[Indice++]=["<b>CF Popular</b>", cNivel + "varios/cfpopular.htm", "", 1, "fin"]

	ssmItems[Indice++]=["<b>Cómics</b>", cNivel + "comics/index.html", "", 1, "sigue"]
	ssmItems[Indice++]=["<b>La Cocina</b>", cNivel + "varios/lacocina/index.html", "", 1, "fin"]
	
	ssmItems[Indice++]=["<b>Cortos</b>", cNivel + "pelis/cortos/index.html", "", 1, "sigue"]
	ssmItems[Indice++]=["<b>Enlaces</b>", cNivel + "enlaces/index.html", "", 1, "fin"]

	ssmItems[Indice++]=["<b>Firmas</b>", cNivel + "varios/firmas/index.html", "", 1, "sigue"]
	ssmItems[Indice++]=["<b>G. H. W.</b>", cNivel + "ghwhite/index.html", "", 1, "fin"]

	ssmItems[Indice++]=["<b>Galería</b>", cNivel + "galeria/index.html", "", 1, "sigue"]
	ssmItems[Indice++]=["<b>Glosario</b>", cNivel + "glosario/index.html", "", 1, "fin"]

	ssmItems[Indice++]=["<b>La Hoguera</b>", cNivel + "autores/lahoguera/index.html", "", 1, "sigue"]	
	ssmItems[Indice++]=["<b>Humor</b>", cNivel + "humor/index.html", "", 1, "fin"]

	ssmItems[Indice++]=["<b>L.G.L.</b>", cNivel + "autores/lgl/index.html", "", 1, "sigue"]
	ssmItems[Indice++]=["<b>Límites</b>", cNivel + "limites/index.html", "", 1, "fin"]

	ssmItems[Indice++]=["<b>MalaCiencia</b>", cNivel + "varios/malaciencia/index.html", "", 1, "sigue"]
	ssmItems[Indice++]=["<b>Películas</b>", cNivel + "pelis/index.html", "", 1, "fin"]

	ssmItems[Indice++]=["<b>PodCast</b>", cNivel + "varios/podcast/index.html", "", 1, "sigue"]
	ssmItems[Indice++]=["<b>Premios</b>", cNivel + "premios/index.html", "", 1, "fin"]

	ssmItems[Indice++]=["<b>QsQ</b>", cNivel + "varios/qsq/index.html", "", 1, "sigue"]
	ssmItems[Indice++]=["<b>Relatos</b>", cNivel + "relatos/index.html", "", 1, "fin"]

	ssmItems[Indice++]=["<b>El Serial</b>", cNivel + "varios/serial/index.html", "", 1, "sigue"]
	ssmItems[Indice++]=["<b>Series</b>", cNivel + "series/index.html", "", 1, "fin"]

		ssmItems[Indice++]=['<img src="' + cNivel + 'imag/_mnu_ayu.gif" width="14" height="10" hspace="3" border="0" /><small>Ayuda</small>', cNivel + "varios/_aviso.htm", "", 1, "sigue"]
		ssmItems[Indice++]=['<img src="' + cNivel + 'imag/_mnu_map.gif" width="14" height="10" hspace="3" border="0" /><small>Mapa</small>', cNivel + "mapa.htm", 1, "fin"]

	buildMenu();
}

function moveOut() {
	if ((GK)&&parseInt(ssm.left)<0 || IE && ssm.pixelLeft<0) {
	clearTimeout(moving);moving = setTimeout('moveOut()', slideSpeed);slideMenu(10)}
	else {clearTimeout(moving);moving=setTimeout('null',1)}
}//moveOut

function moveBack() {
		clearTimeout(moving);moving = setTimeout('moveBack1()', waitTime)
}//moveBack

function moveBack1() {
if ((GK) && parseInt(ssm.left)>(-menuWidth) || IE && ssm.pixelLeft>(-menuWidth)) {
clearTimeout(moving);moving = setTimeout('moveBack1()', slideSpeed);slideMenu(-10)}
else {clearTimeout(moving);moving=setTimeout('null',1)}
}//moveBack1

function slideMenu(num){
	if (IE) {ssm.pixelLeft += num;}
	if (GK) {ssm.left = parseInt(ssm.left)+num;}
}//slideMenu

function makeStatic() {
	if (GK) {winY = window.pageYOffset;}
	if (IE) {winY = document.body.scrollTop;}
	if (GK||IE) {
	if (winY != lastY && winY > YOffset - staticYOffset) {
	smooth = .2 * (winY - lastY - YOffset + staticYOffset);}
	else if (YOffset-staticYOffset+lastY>YOffset-staticYOffset) {
	smooth = .2 * (winY - lastY - (YOffset - (YOffset-winY)));}
	else {smooth = 0}
	if(smooth > 0) smooth = Math.ceil(smooth);
	else smooth = Math.floor(smooth);
	if (IE) bssm.pixelTop += smooth;
	if (GK) bssm.top = parseInt(bssm.top) + smooth
	lastY = lastY + smooth; 
	setTimeout('makeStatic()', 1)}
}//makeStatic

function buildBar() {
	if(barText.indexOf('<img')>-1) {tempBar=barText}
	else{for (b=0;b<barText.length;b++) {tempBar+=barText.charAt(b)+"<br />"}}
	document.write('<td align="center" rowspan="100" width="'+barWidth+'" bgcolor="'+barBGColor+'" valign="'+barVAlign+'"><p align="center"><span class="ssmPestana" ><b>'+tempBar+'</b></span></p></td>')
}//buildBar

function initSlide() {
	if (GK){ssm=document.getElementById("thessm").style;bssm=document.getElementById("basessm").style;
	bssm.clip="rect(0 "+document.getElementById("thessm").offsetWidth+" "+document.getElementById("thessm").offsetHeight+" 0)";ssm.visibility="visible";}
	else if (IE) {ssm=document.all("thessm").style;bssm=document.all("basessm").style
	bssm.clip="rect(0 "+thessm.offsetWidth+" "+thessm.offsetHeight+" 0)";bssm.visibility = "visible";}
	if (menuIsStatic=="yes") makeStatic();
}//initSlide

function buildMenu() {
	document.write('<div id="basessm" style="visibility:hidden;Position : absolute ;left : '+XOffset+' ;top : '+YOffset+' ;z-index : 20;width:'+(menuWidth+barWidth+10)+'"><div id="thessm" style="Position : Absolute ;Left : '+(-menuWidth)+' ;top : 0 ;Z-Index : 20;" onmouseover="moveOut()" onmouseout="moveBack()">')
	if (GK){document.write('<table border="0" cellpadding="0" cellspacing="0" width="'+(menuWidth+barWidth+2)+'" bgcolor="'+menuBGColor+'"><tr><td>')}
	document.write('<table border="0" cellpadding="0" cellspacing="1" width="'+(menuWidth+barWidth+2)+'" bgcolor="'+menuBGColor+'">');
	for(i=0;i<ssmItems.length;i++) {
	if(!ssmItems[i][3]){ssmItems[i][3]=menuCols;ssmItems[i][5]=menuWidth-1}
	else if(ssmItems[i][3]!=menuCols)ssmItems[i][5]=Math.round(menuWidth*(ssmItems[i][3]/menuCols)-1);
	if(ssmItems[i-1]&&ssmItems[i-1][4]!="sigue"){document.write('<tr>')}
	if(!ssmItems[i][1]){
	document.write('<td bgcolor="'+hdrBGColor+'" height="'+hdrHeight+'" align="'+hdrAlign+'" valign="'+hdrVAlign+'" width="'+ssmItems[i][5]+'" colspan="'+ssmItems[i][3]+'">&nbsp;<font face="'+hdrFontFamily+'" size="'+hdrFontSize+'" color="'+hdrFontColor+'"><b>'+ssmItems[i][0]+'</b></font></td>')}
	else {if(!ssmItems[i][2])ssmItems[i][2]=linkTarget;
	document.write('<td bgcolor="'+linkBGColor+'" onmouseover="bgColor=\''+linkOverBGColor+'\'" onmouseout="bgColor=\''+linkBGColor+'\'" width="'+ssmItems[i][5]+'" colspan="'+ssmItems[i][3]+'"><ilayer><layer onmouseover="bgColor=\''+linkOverBGColor+'\'" onmouseout="bgColor=\''+linkBGColor+'\'" width="100%" align="'+linkAlign+'"><div  align="'+linkAlign+'"><font face="'+linkFontFamily+'" size="'+linkFontSize+'">&nbsp;<a href="'+ssmItems[i][1]+'" target="'+ssmItems[i][2]+'" class="ssmItems">'+ssmItems[i][0]+'</div></layer></ilayer></td>')}
	if(ssmItems[i][4]!="sigue"&&barBuilt==0){buildBar();barBuilt=1}
	if(ssmItems[i][4]!="sigue"){document.write('</tr>')}}
	document.write('</table>')
	if (GK){document.write('</td></tr></table>')}
	document.write('</div></div>')
	theleft=-menuWidth;lastY=0;setTimeout('initSlide();', 1)
}//buildMenu
