<!-- Javascript para la versión HTML //-->
<!--

//Nuevo logo
var cab;

function VecImagenes()
{
  n=0;
  this[n++]="td_mro.jpg";
  this[n++]="td_phoenix.jpg"
  this[n++]="td_sojo.jpg"
  this[n++]="td_fobos.jpg"
  this[n++]="td_atmos.jpg"
  this[n++]="td_magnet.jpg"
  this[n++]="td_cidonia.jpg"
  this[n++]="td_compara.jpg"
  this[n++]="td_simu.jpg"
  this[n++]="td_mod.jpg"
  this[n++]="td_mexpress.jpg"
  this[n++]="td_marte0.jpg"
  this.N=n;
}

function VecAlt()
{
  n=0;
  this[n++]="Mars Reconnaissance Orbiter - &copy;NASA";
  this[n++]="Phoenix Mars Lander - &copy;Lockheed Martin"
  this[n++]="Rover Sojourner (Mars Pathfinder) - &copy;JPL/NASA"
  this[n++]="Fobos - &copy;ESA/DLR/FU Berlin (G. Neukum)"
  this[n++]="Atmósfera marciana"
  this[n++]="Campo magnético marciano - &copy;David Brain/SSL"
  this[n++]="La no-cara de Cidonia. Izquierda (Viking-1976); derecha (MGS-1998) - &copy;MSSS/NASA"
  this[n++]="Comparación Tierra-Marte - &copy;Lunar and Planetary Institute"
  this[n++]="Simunautas - &copy;TMS"
  this[n++]="2001 Mars Odyssey - &copy;NASA/JPL"
  this[n++]="Mars Express - &copy;ESA"
  this[n++]="Mapa topogr&aacute;fico de Marte - &copy;NASA/MOLA Science Team"
  this.N=n;
}

var Imagenes=new VecImagenes();
var Alt=new VecAlt();
i = Math.floor(Math.random() * Imagenes.N)

if (cab==null)
{
	document.write('<div id="top" style="position:absolute; top:0px; width:100%; background:#000000; border: 0px">');
	document.write('<table background="/images/td_inter.gif" width=100% height=172px cellspacing=0 cellpadding=0 border=0>');
	document.write('<tr><td rowspan="2" background="/images/td_top_iz.jpg" width="140" height="88" align=center>');
	document.write('</td><td><img src="/images/logo_top_cen.jpg" width="329" height="13"></td>');
	document.write('<td rowspan="3"><img src="/images/espacio.gif"></td>');
	document.write('<td width="4" height="172" rowspan="3" valign=top><br><img src="/images/lineav.gif" width="4" height=97></td>');
	document.write('<td width="50" height="172" rowspan="3" valign=top><br><a href="/paginas/qsomos.htm"><font face=arial size=1>Qui&eacute;nes&nbsp;somos</font></a><br><a href="/paginas/creditos.asp"><font face=arial size=1>Cr&eacute;ditos</font></a><br><a href="/paginas/servicios/contactar.asp"><font face=arial size=1>Contactar</font></a></td>');

	document.write('<td rowspan="3" align=right><img src="/images/' + Imagenes[i] + '" width="307" height="172" alt="' + Alt[i] + '"></td>');

	document.write('</tr><tr><td><a href="/index.asp"><img src="/images/logo.jpg" width="329" height="75" title="The Mars Society España - Inicio" border=0></a></td>');
	document.write('</tr><tr><td><img src="/images/td_down_iz.jpg" width="140" height="84"></td>');
	document.write('<td><img src="/images/logo_down_cen.jpg" width="329" height="84"></td>');
	document.write('</tr></table></div>');
}

document.write('<link rel="shortcut icon" href="/images/tmse.ico">');

/**********************************************************************************
SlideMenu 2.0
*   Copyright (C) 2002 Thomas Brattli
*   This script was released at DHTMLCentral.com
*   Visit for more great scripts!
*   This may be used and changed freely as long as this msg is intact!
*   We will also appreciate any links you could give us.
*
*   Made by Thomas Brattli
*
*Script date: 08/20/2002 (keep this date to check versions)

** Feel free to remove all comments in this file (and the HTML file)
** as long the copyright message is intact to make the files smaller.
*********************************************************************************/

/************************************************************************************
Making cross-browser objects
************************************************************************************/
function makeMenuObj(obj,nest){
	nest=(!nest) ? "":'document.'+nest+'.'
	this.evnt = document.getElementById?document.getElementById(obj):document.all?document.all[obj]:document.layers?eval(nest+'document.'+obj):0;	
	this.css = this.evnt.style?this.evnt.style:this.evnt;										
	this.ref=document.layers?this.evnt.document:document;		
	this.x=this.css.left||this.evnt.offsetLeft;
	this.y=this.css.top||this.evnt.offsetTop;		
	this.hideIt=b_hideIt; this.showIt=b_showIt; this.movey=b_movey
	this.moveIt=b_moveIt; this.moveBy=b_moveBy; this.status=0; 
	this.bgImg=b_bgImg;	this.obj = obj + "Object"; eval(this.obj + "=this"); 
	this.clipTo=b_clipTo;
	return this
}
function b_showIt(){this.css.visibility="visible"; this.status=1}
function b_hideIt(){this.css.visibility="hidden"; this.status=0}
function b_movey(y){this.y=y; this.css.top=this.y}	
function b_moveIt(x,y){this.x=x; this.y=y; this.css.left=this.x;this.css.top=this.y}
function b_moveBy(x,y){this.x=this.x+x; this.y=this.y+y; this.css.left=this.x;this.css.top=this.y}
function b_bgImg(img){
	if(document.getElementById) document.getElementById(this.id+"_img").src = img
	else if(document.layers) this.ref.layers[0].document.images[0].src = img
	else document.images[this.id+"_img"].src = img
}
function b_clipTo(t,r,b,l,w){if(document.layers){this.css.clip.top=t;this.css.clip.right=r
this.css.clip.bottom=b;this.css.clip.left=l
}else{this.css.clip="rect("+t+"px,"+r+"px,"+b+"px,"+l+"px)"; if(w){this.css.pixelWidth=this.css.width=r; this.css.pixelHeight=this.css.height=b}}}
/********************************************************************************
Initiating page, making objects..
********************************************************************************/
createSlideMenu.prototype.init = function(){
	document.write("</div>")
	this.cont=new makeMenuObj(this.name+'cont')
	this.cont.moveIt(this.menux,this.menuy)
	var yy = 0, el 	//Make top menus
	for(var j=0;j<this.topmenus.length;j++){
		el = this.menus[this.topmenus[j]]
		el.o = new makeMenuObj(this.name+"_"+el.num,this.name+"cont")
		el.o.moveIt(this.l[0].left,yy); el.top = j; el.origy = yy
		el.o.id = el.id; el.o.status=1; 
		el.o.h = this.l[0].height; el.img = this.l[0].regImage
		yy+=el.o.h + this.l[0].between; el.o.clipTo(0,this.l[0].width,el.o.h,0,1)
		if(j!=this.topmenus.length-1)	el.nexttop = this.topmenus[el.top+1] 
		this.loop(el.num,j)
	}
	this.cont.showIt(); this.cont = null; this.level = null;
}
createSlideMenu.prototype.loop = function(num,j){
	var el = this.menus[num],temp,p,h,w,y,img
	for(var i=0;i<el.childs.length;i++){
		temp = el.childs[i]
		w = this.l[temp.lev].width; h = this.l[temp.lev].height
		y = el.o.y+el.o.h + h*i + this.l[temp.lev].between*i + this.l[temp.lev].between
		temp.o = new makeMenuObj(this.name+"_"+temp.num,this.name+"cont")
		temp.o.hideIt(); temp.o.clipTo(0,w,h,0,1)
		temp.o.moveIt(this.l[temp.lev].left,y)
		el.endy =y+h; temp.origy = y
		temp.o.zIndex=temp.num
		temp.o.h = h; temp.top = j 
		temp.chnum = i; temp.o.id = temp.id 		
		if(this.useImages){ //Setting bgimage
			img=""
			if(temp.childs.length>0){ //With subs
				if(i==el.childs.length-1) img=this.l[temp.lev].subRound
				else img=this.l[temp.lev].subImg
			}else	if(i==el.childs.length-1){
				img=this.l[temp.lev].roundImg2
			}
			if(img){
				temp.o.bgImg(img); temp.img = img
			}else temp.img = this.l[temp.lev].regImage
		}
		p = this.menus[temp.parent] //Setting the next elements
		if(temp.chnum != p.childs.length-1){ //Not the last el
			temp.nextel = p.childs[temp.chnum+1].num
			temp.nexttop = temp.lev==1?p.nexttop:p.nextel
		}else{ //Last el, so we only have nexttop
			temp.nexttop = p.nextel
			if(temp.nexttop==-1) temp.nexttop = p.nexttop
		}
		if(temp.childs.length>0){
			this.loop(temp.num,j) //Recursive call
		}	
	}
}

/********************************************************************************
Moving all objects in the array after a provided array number
********************************************************************************/
createSlideMenu.prototype.moveItems = function(px,num){
	for(i=num;i<this.menus.length;i++){
		if(this.menus[i].o.status){ //Moving all visible menus
			this.menus[i].o.movey(this.menus[i].o.y+px)
		}
	}	
}
/********************************************************************************
Switch menu function.
********************************************************************************/
createSlideMenu.prototype.switchMenu = function(num){	
	if(this.going) return
	var m = this.menus[num]
	if(m.childs.length==0) return
	this.going = 1
	var y=m.o.y+ m.o.h +this.l[m.lev].between
	var clnum = m.num, olev = m.lev, onext = m.nextel
	if(this.active[0]>-1){
		var n = -1
		if(m.lev>0){
			if(this.active[m.lev]>-1) n=this.active[m.lev]
			else n=this.active[m.lev-1]
		}else n = this.active[0]
		m = this.menus[n]
		if(m.lev == 0 && olev==0) y = m.nexttop!=-1?this.menus[m.nexttop].origy:-1
		else if(clnum!=m.num){
			var ny = m.o.y + m.o.h + this.l[m.lev].between
			if(clnum>m.num && olev==m.lev) y = Math.min(ny,y)
			else	if(onext==m.num) y = Math.max(ny,y)
		}
	}
	this.moveUp(m.nextel!=-1?m.nextel:m.nexttop,num,y)
}
/********************************************************************************
Move items up
********************************************************************************/
createSlideMenu.prototype.moveUp = function(top,num,y){
	var move = 0, m, yy=0;
	if(this.active[0]>-1 && top>-1){
		m = this.menus[top]
		if(m.o.y>y){
			if((m.o.y-this.pxspeed)<y) yy = -(((m.o.y-y)))
			else yy=-this.pxspeed; this.moveItems(yy,top)
			move=1
		}
	}
	if(move) setTimeout(this.name+".moveUp("+top+","+num+","+y+")",this.timspeed)
	else{
		m = this.menus[num] 
		for(var i=m.lev;i<this.active.length;i++){ //Reset images - actives et cetera
			if(this.active[i]>-1){
				temp = this.menus[this.active[i]]
				temp.o.moveIt(temp.o.x-this.inset,temp.o.y)
				if(this.useImages) temp.o.bgImg(temp.img) 		//Change bg
				if(this.arrow) temp.ar.replaceChild(document.createTextNode("4"),temp.ar.childNodes[0])
				ch = temp.childs
				for(var j=0;j<ch.length;j++){
					ch[j].o.hideIt(); ch[j].o.movey(ch[j].origy)
				}
				this.active[i] = -1
			}
		}
		//Then open the current one, if childs
		if(m.childs.length == 0){this.going = 0; return}
		for(i=0;i<m.childs.length;i++){ //Show all
			m.childs[i].o.showIt()
			y = m.childs[i].o.y + m.childs[i].o.h
		}
		y+=this.l[m.lev].between
		if(m.lev>0 && m.chnum!=this.menus[m.parent].childs.length-1){
			yy=y; y = this.menus[m.parent].endy + this.l[m.lev].between
		}
		m.o.moveIt(m.o.x+this.inset,m.o.y) 	//Inset current item:
		if(this.useImages) m.o.bgImg(this.l[m.lev].roundImg) 	//Change bg
		this.active[m.lev] = num //Set active
		if(this.arrow) m.ar.replaceChild(document.createTextNode("6"),m.ar.childNodes[0])
		if(m.nexttop>-1 || m.nextel>-1) this.moveDown(m.nexttop,m.nextel,y,yy) //Then start moving all other elements down
		else this.going=0
	}
}
/********************************************************************************
Move items down
********************************************************************************/
createSlideMenu.prototype.moveDown = function(top,num,y,yyy){
	var m = this.menus[top],yy
	if(m && m.o.y<y){
		if((m.o.y+this.pxspeed)>y) yy = y-m.o.y
		else yy=this.pxspeed
		this.moveItems(yy,top)
		setTimeout(this.name+".moveDown("+top+","+num+","+y+","+yyy+")",this.timspeed)
	}else if(num>-1){
		this.moveDown(num,-1,yyy,0)
	}else this.going=0
}
/********************************************************************************
Slide menu object
********************************************************************************/
function createSlideMenu(name){
	document.write('<div id="'+name+'cont">') //The cont div start
	this.name = name
	this.menus = new Array()
	this.curr = 0
	this.lasttype = new Array()
	this.writesubsonly = 0
	this.level = new Array()
	this.l = new Array()
	this.topmenus = new Array()
	this.active = new Array()
	return this
}
/********************************************************************************
Function to create the objects and the divs
********************************************************************************/
createSlideMenu.prototype.makeMenu = function(type,text,lnk,target,end){
	var str="",tg="",parent,m,cl
	m = this.menus[this.curr] = new Object()
	this.lasttype[type] = this.curr; if(!lnk) lnk="#"
	m.lev = 0; m.type = type; m.childs = new Array()
	m.num = this.curr; m.parent = -1; m.nextel = -1
	m.nexttop = -1; parent = 0
	//DEBUGGING::::::
	m.text = text
	
	if(type.indexOf("sub")>-1){ 	//Find parent type
		if(type.length == 3){ //sub
			parent = "top"; m.lev = 1
		}else{
			parent = type.substr(3,1) //sub2+
			m.lev = parent; parent--
			if(parent==1){
				parent = "sub"; m.lev = 2
			}else parent = "sub"+parent
		}	
	}
  if(m.lev>=this.l.length){//Level control (same as CM4)
    var p1,p2=0; 
		if(m.lev>=this.level.length) p1=this.l[this.level.length-1];
    else p1=this.level[m.lev]; 
		this.l[m.lev]=new Array(); 
		if(!p2) p2=this.l[m.lev-1]
    if(m.lev!=0 && p1){ 
      for(i in p1){ //Copying an entire object
				if(p1[i]==null) this.l[m.lev][i]=p2[i]; 
				else this.l[m.lev][i]=p1[i]
			}
    }else{
			this.l[m.lev]=this.level[0]; 
		}
    this.level[m.lev]=p1=p2=null 
  } 
	this.active[m.lev] = -1
	if(parent){ //Find parent element
		m.parent = this.lasttype[parent]
		parent = this.menus[this.lasttype[parent]]
		parent.childs[parent.childs.length] = m
		if(this.arrow && parent.childs.length==1){str='<span class="'+this.arrow+'">4</span>'
			if(document.getElementById && document.getElementById(parent.id).childNodes){
				parent.ar = document.getElementById(parent.id).childNodes[this.useImage?1:0].childNodes[0]
				parent.ar.innerHTML = str+parent.ar.innerHTML; parent.ar=parent.ar.childNodes[0]} else this.arrow=""
		}
	}else this.topmenus[this.topmenus.length] = this.curr
	if(!this.writesubsonly || type!="top"){
		cl = this.l[m.lev].className
		m.id = id = this.name + "_" + this.curr
		str= '<div id="'+id+'" class="'+cl+'">' //main div start
		if(this.useImages){
			str+='<div class="'+this.bgClass+'">'//bgdiv
			str+='<img id="'+id+'_img" src="'+this.l[m.lev].regImage+'" />' 
			str+='</div>' //bgdiv
		}
		if(target) tg =' target="'+target+'" '
		str+='<div class="'+this.txtClass+'"><a href="'+lnk+'" '+tg+' onclick="'+this.name+'.switchMenu('+this.curr+'); if(document.getElementById) this.blur(); '
   	if(lnk=="#") str+='return false'
    str+='" class="'+this.l[m.lev].classNameA+'"> '+text+'</a><br /></div>\n'
		str+="</div>\n\n" //main div end
		document.write(str)
	}
	this.curr++
}

/********************************************************************************
Level object
********************************************************************************/
function slideMenu_makeLevel(){
  var c=this, a=arguments; 
	c.left=a[0]||0; c.width=a[1]||null; c.height=a[2]||null;
	c.between=a[3]||null; c.className=a[4]||null; c.classNameA=a[5]||null;
	c.regImage=a[6]||null; c.roundImg=a[7]||null; c.roundImg2=a[8]||null; 
	c.subImg=a[9]||null; c.subRound=a[10]||null; return c
}
/********************************************************************************
Preloading images
********************************************************************************/
function preLoadBackgrounds(){
  for(i=0;i<arguments.length;i++){
    this[i]=new Image()
    this[i].src=arguments[i]
  }
  return this
}

function OpenWin(url)
{
	window.open(url, 'newin', 'location=0, channelmode=0, directories=0, titlebar=0, menubar=0, toolbar=0, copyhistory=0, resizable=1, personalbar=0, status=0, scrollbars=1');
}

function OpenWin2 (url, win, ancho, alto)
{
	window.open(url, win, 'location=0, channelmode=0, directories=0, titlebar=0, menubar=0, toolbar=0, copyhistory=0, personalbar=0, status=0, width=' + ancho + ', height=' + alto + ', left=' + (screen.width-ancho)/2 + ', top=' + (screen.height-alto-35)/2 + ', resizable=1, scrollbars=1');
}

function OpenForm(url, ancho, alto)
{
	window.open(url, 'form', 'location=0, channelmode=0, directories=0, menubar=0, toolbar=0, copyhistory=0, resizable=0, width=' + ancho + ', height=' + alto + ', personalbar=0, status=0, scrollbars=1');
}

function Extrae(texto, simbolo)
{
	punto=texto.lastIndexOf(simbolo);
	return(texto.substring (punto+1, texto.length));
}

function LogoTMSE()
{
	var Imagenes=new VecImagenes();
	src= Imagenes[ Math.floor(Math.random() * Imagenes.N) ];
	//

	//Logo anterior. Ahora se aplica una capa
	document.write('<table height=180 cellspacing=0 cellpadding=0 border=0><tr><td></td></tr></table>');	

	//<br><a href='/indexn.htm'><img src="+src+" alt='The Mars Society Espa&ntilde;a' border=0></a><br>");
	//document.write('<script language="JavaScript" src="http://impes.tradedoubler.com/imp/pool/js/7620/692830" charset="ISO-8859-1"></script>');
}

function Titulo(titulo)
{
	document.write("<a name='top'></a><table width=100% cellspacing=0 cellpadding=0 border=0><tr>");
		document.write("<td background='/images/marco_foro_izq.gif' width=20></td>");
		document.write("<td align=center height=22 background='/images/marco_foro.gif'><span class=txt5><b>" + titulo + "</b></span></td>");
		document.write("<td background='/images/marco_foro_der.gif' width=20></td>");
	document.write("</tr></table>");

	document.write("<table width=100% cellspacing=0 cellpadding=0 border=0>");
}

function TituloLargo(titulo1, titulo2)
{
	Titulo(titulo1 + " " + titulo2);
}

function FondoTexto(pad)
{
	document.write("<table bgcolor=#586B7C align=center width=100% cellspacing=0 cellpadding=1 border=0><tr><td><table background='/images/fondo_texto.gif' bgcolor=#283037 width=100% cellspacing=0 cellpadding=");

	if (pad==null) {
		document.write("6 border=0>");
	} else {
		document.write(pad + " border=0>");
	}
}

function Apartado(texto)
{
	document.write("<br><font color=#FFFFFF><li type=square>&nbsp;</li></font><font color=#DEB887><b>" + texto + "</b></font><p>");
}

function Imagen(img, alt, texto)
{
	document.write("<center><img src='" + img + "' alt='" + alt + "' border=1>");
	document.write("<br><font color=#FFFFFF><i>" + texto + "</i></font></center><p>");
}

function MenuTMSE()
{
	document.write('<table height=180 cellspacing=0 cellpadding=0 border=0><tr><td>&nbsp;</td></tr></table>');

	document.write("<table valign=bottom width=140 height=264 cellspacing=0 cellpadding=0 border=0><tr><td>");

	// Menú BUSCAR
	//document.write("<table bgcolor=#9AA4B0 align=center width=135 cellspacing=0 cellpadding=1 border=0><tr><td><table align=center width=100% cellspacing=0 cellpadding=2 border=0><tr align=center>");
	//	document.write("<td width=16 background='/images/marco_foro.gif'><img src='/images/triangulo3.gif' border=0></td>");
	//	document.write("<td background='/images/marco_foro.gif'><span class=txt5>Buscar en Web</span></td></tr>");

	//	document.write("<tr bgcolor=#586B7C>");
	//	document.write("<td align='center' colspan=2>");
	//	document.write("<br><form action='http://search.atomz.com/search' method='get' target='busqueda'>");

	//	document.write("<input name='sp-q' size=14><br>");
	//	document.write("<input type='submit' value='Buscar' border=0><br>");
	//	document.write("<input name='sp-a' type='hidden' value='00012cb8-sp00000000'>");
	//document.write("</form></td></tr></table></td></tr></table><p>");

	//Menu
	slideMenu = new createSlideMenu("slideMenu")

	//Variables:
	slideMenu.menuy=181 //The top placement of the menu.
	slideMenu.menux=0 //The left placement of the menu
	slideMenu.useImages = 1 //Are you using images or not?
	slideMenu.pxspeed=20 //The pixel speed of the animation
	slideMenu.timspeed=25 //The timer speed of the animation
	slideMenu.inset = 10 //How much the selected items should pop to the left
	slideMenu.arrow = 0 //Set this to className that has font-family:webdings
	//if you want to use the arrow feature. Note:
	//This ONLY works on DOM capable browsers, and with
	//useImages set to 0 - It's basically just a test I did.
	//I hope to improve it later on.

	//Needed dummy classes - leave in the stylesheet!
	slideMenu.bgClass = "slideMenuBG"
	slideMenu.txtClass = "slideMenuText"

	/*******************************************************************************
	Level properties - ALL properties have to be specified in level 0
	This works the same way as the CM4 script (if you have used it)

	The level[0] values will be the default value. Any value not specified
	in higher levels will be inherited from level[0]. If anything
	is spesified in level[1], but not in level[2], level[2] (sub2 menus)
	will get the property value from level[1] and so on.

	The availble values to control the menu by level are:
	
	left           - The left placement of all items in the current level ( px value )
	width          - The width of all items in the current level  ( px value )
	height         - The height of all items in the current level  ( px value )
	between        - The number of pixels between each item in  the current level ( px value)
	className      - A name of a class specified in the stylesheet to control the
	               look of all items in this level. 
	               NOTE: The class MUST be in a stylesheet, and it most have position:absolute.
	classNameA     - A name of a class specified in the stylesheet that will control the 
 	Look of the TEXT for all items in this level. (you can also specify 
	a hover class for this className to get a mouseover effect on the 
	text.
	regImage 			 - If you choose to use image feature of the script you have to
        				 spesify the default image here.
	roundImg       - This is the image that will used when a item is selected.
	roundImg2      - This is the image used for sub-levels on the last item in a list.
			(that's how the last items in this example are rounded on the sub-levels)
	subImg         - The image used when the item has sub-items. Only in use for sub-levels
	subRound       - Same as roundImg2 - only for items that have sub-items.

	To understand the image setup see the images supplied with this script.
	NOTE: Always specify the full (relative) path to the images!

	The slideMenu_makeLevel function provides a shortcut to making levels.
	If you are more comfortable with setting the properties by name you can
	also set them like this:

	slideMenu.level[0] = new Array()
	slideMenu.level[0].left = 0
	slideMenu.level[0].width = 138
	..... and so on.

	NOTE: In level 0 below I have included the names of the variables just for
	readability - feel free to remove left = , width = , height = etcetera...
	********************************************************************************/
	slideMenu.level[0] = new slideMenu_makeLevel(
		left = 0,
		width = 138,
		height = 22,
		between = 4,
		className = "clSlideMenu",
		classNameA = "clA0",
		regImage = "/images/level0_regular.gif",
		roundImg = "/images/level0_round.gif",
		roundImg2 = "",
		subImg = "",
		subRound= "")
	
		slideMenu.level[1] = new slideMenu_makeLevel(10,127,20,1,"clSlideMenu","clA1","/images/level1_regular.gif","/images/level1_round2.gif","/images/level1_round.gif","/images/level1_sub.gif", "/images/level1_sub_round.gif")
		slideMenu.level[2] = new slideMenu_makeLevel(21,118,20,1,"clSlideMenu","clA2","/images/level2_regular.gif","/images/level2_round2.gif","/images/level2_round.gif", "/images/level2_sub.gif", "/images/level2_sub_round.gif")
		//slideMenu.level[3] = new slideMenu_makeLevel(33,108,20,1,"clSlideMenu","clA3","/images/level3_regular.gif","/images/level3_round2.gif","/images/level3_round.gif","/images/level3_sub.gif","/images/level3_sub_round.gif")
		//slideMenu.level[4] = new slideMenu_makeLevel(40,107,19,1,"clSlideMenu","clA4","/images/level4_regular.gif","/images/level4_round2.gif","/images/level4_round.gif","/images/level4_sub.gif", "/images/level4_sub_round.gif")

		//Image preload --- leave this
		for(var i=0;i<slideMenu.level;i++){
			var l = slideMenu.level[i]
			new preLoadBackgrounds(l.regImage,l.roundImg,l.roundImg2,l.subImg,l.subRound)
		}

	/**********************************************************************
	Making the menus is the same as in SlideMenu 1 only that now
	you can make as many levels as you want.

	NOTE: If you are converting from SlideMenu1 remember to add: theNameOfYourMenu.
	in front of all menu creation calls.

	The arguments to the makeMenu function are:

	TYPE - top for top item, sub for sub item, sub2 for sub2 item, sub3 
	       for sub3 item and so on (I've done it like that to keep it the same way as version 1)

	TEXT - The link text for the item

	TARGET - The target frame to open the links in. You do not have to spesify this if you
	are not in a frame enviroment. (see below for more info)
	------------------------------------------------------------
	NOTE: I get mail about this all the time so I will try and explain more:
	If you where to make a regular link that would open a link in another
	frame you would probably do like this:
	<a href="mylink.html" target="myOtherFrameName">Link</a>
	
	To do the same for a slideMenu link you do like this:

	slideMenu.makeMenu('top','My link','mylink.html','myOtherFrameName')
	------------------------------------------------------------

	mySlideMenu.makeMenu('TYPE','TEXT','LINK','TARGET')
	************************************************************************/

	//Menu 1 -----------------------
	slideMenu.makeMenu('top','Noticias')
		slideMenu.makeMenu('sub','<img src="/images/espacio.gif" width=6 height=13 border=0>Hist&oacute;rico','/paginas/hnoticias.asp')
	
	//Menu 2 -----------------------
	slideMenu.makeMenu('top','Proyectos')
		slideMenu.makeMenu('sub','<img src="/images/icon_bases.gif" width=8 height=8 border=0>Estaciones','/paginas/proyectos/ap_estaciones.htm')
		slideMenu.makeMenu('sub','<img src="/images/espacio.gif" width=6 height=13 border=0>Rover An&aacute;logo','/paginas/proyectos/rover.htm')
		slideMenu.makeMenu('sub','<img src="/images/espacio.gif" width=6 height=13 border=0>Semana del Espacio','/paginas/proyectos/sec.htm')
		slideMenu.makeMenu('sub','<img src="/images/espacio.gif" width=6 height=13 border=0>Edici&oacute;n de <i>TCM</i>','/paginas/proyectos/tcm.asp')

	//Menu 3 -----------------------
	slideMenu.makeMenu('top','Recursos')
		slideMenu.makeMenu('sub','<img src="/images/icon_acerca.gif" width=8 height=8 border=0>Acerca de Marte','/paginas/recursos/ap_acerca.htm')
		slideMenu.makeMenu('sub','<img src="/images/icon_misiones.gif" width=8 height=8 border=0>Misiones','/paginas/recursos/ap_misiones.htm')
		slideMenu.makeMenu('sub','<img src="/images/espacio.gif" width=6 height=13 border=0>Galería Imágenes','/paginas/recursos/imagenes.asp')
		slideMenu.makeMenu('sub','<img src="/images/espacio.gif" width=6 height=13 border=0>Convenciones','/paginas/convenciones/convenciones.htm')
		slideMenu.makeMenu('sub','<img src="/images/espacio.gif" width=6 height=13 border=0>Marte Hoy','/paginas/recursos/marte_hoy.htm')
		slideMenu.makeMenu('sub','<img src="/images/espacio.gif" width=6 height=13 border=0>Enlaces','/paginas/recursos/enlaces.asp')

	//Menu 4 -----------------------
	slideMenu.makeMenu('top','Art&iacute;culos')
		slideMenu.makeMenu('sub','<img src="/images/icon_tecnologia.gif" width=8 height=8 border=0>Tecnolog&iacute;a','/paginas/especiales/ap_tecnologia.htm')
		slideMenu.makeMenu('sub','<img src="/images/icon_astrobio.gif" width=8 height=8 border=0>Astrobiolog&iacute;a','/paginas/especiales/ap_astrobio.htm')
		slideMenu.makeMenu('sub','<img src="/images/icon_miscelanea.gif" width=8 height=8 border=0>Miscel&aacute;nea','/paginas/especiales/ap_miscelanea.htm')

	//Menu 6 -----------------------
	slideMenu.makeMenu('top','Arte')
		slideMenu.makeMenu('sub','<img src="/images/espacio.gif" width=6 height=13 border=0>Space Art','/paginas/arte/spaceart.asp')
		slideMenu.makeMenu('sub','<img src="/images/espacio.gif" width=6 height=13 border=0>Literatura','/paginas/arte/literatura.asp')
		slideMenu.makeMenu('sub','<img src="/images/espacio.gif" width=6 height=13 border=0>M&uacute;sica','/paginas/arte/musica.asp')

	//if (cab==123) {
	//	document.write("<table cellspacing=0 cellpadding=0 border=0><tr>");

	//		// Imagen del día
	//		document.write("<td>");
	//		document.write('<table width="100"><tr><td><font color="#ffffff">');
	//		document.write('<SCRIPT LANGUAGE="JavaScript" src="http://www.redcolony.com/p/pod.js"></script>');
	//		document.write('</font></td></tr></table>');
	//		document.write("</td>");
	//	document.write("</tr></table>");
	//}

	document.write("</td></tr></table>");

	//Initiating the menu !! 
	slideMenu.init()
}

function ForosTMSE()
{
	//Si no es una noticia nueva imprime el antiguo menú
	if (cab!=999) {
	
	var pag_actual = Extrae(window.location.href, "/");

	// Utilidades
	document.write("<table bgcolor=#9AA4B0 align=center width=90 cellspacing=0 cellpadding=1 border=0><tr><td><table width=100% cellspacing=0 cellpadding=2 border=0>");
	document.write("<tr>");
		document.write("<td width=16 background='/images/marco_foro.gif'><img src='/images/triangulo3.gif' border=0></td>");
		document.write("<td background='/images/marco_foro.gif'><span class=txt5>Utilidades</span></td>");
	document.write("</tr>");

	document.write("<tr bgcolor=#586B7C>");
		document.write("<td align='center' colspan=2>");
		document.write("<br><a href=javascript:OpenWin('/paginas/print/noticias/" + pag_actual + "?prn=" + window.location.href + "');><img src='/images/imprimir.gif' alt='Imprimir Noticia' border=0></a><p>");
		document.write("<a href=javascript:OpenForm('/paginas/servicios/remitir.asp?url=" + window.location.href + "',450,325);><img src='/images/enviar.gif' alt='Enviar a un Amigo' border=0></a><p>");
		//document.write("<a href=javascript:OpenForm('/paginas/servicios/comentar.htm?url=" + window.location.href + "',526,540);><img src='/images/comentar.gif' alt='Comentar en el Foro' border=0></a><p>");
		document.write("</td>");
	document.write("</tr>");
	document.write("</table></td></tr></table>&nbsp;<p>");
	}

	// Publicidad
	document.write("<table bgcolor=#9AA4B0 align=center width=90 cellspacing=0 cellpadding=1 border=0><tr><td><table width=100% cellspacing=0 cellpadding=2 border=0>");
	document.write("<tr>");
		document.write("<td width=16 background='/images/marco_foro.gif'><img src='/images/triangulo3.gif' border=0></td>");
		document.write("<td background='/images/marco_foro.gif'><span class=txt5>Colabora</span></td>");
	document.write("</tr>");

	document.write("<tr align=center bgcolor=#586B7C>");
		document.write("<td align='center' colspan=2>");
		document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,79,0" id="banner2" width="86" height="110">');
		document.write('<param name="movie" value="/images/banner2.swf"><param name="menu" value="false"><param name="quality" value="high"><param name="bgcolor" value="#000000">');
		document.write('<embed name="banner2" src="/images/banner2.swf" menu="false" quality="high" bgcolor="#000000" swLiveConnect="true" width="86" height="110" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"></embed>');
		document.write('</object>');
		document.write("</td>");
	document.write("</tr>");
	document.write("</table></td></tr></table>");
	document.write("</td></tr></table>"); // Doble borde de FondoTexto()
}

function Arriba()
{
	document.write("<a href='#arriba'><img src='/images/arriba.gif' alt='Arriba' border=0></a> <a href='#arriba'><font face=arial size=-1>Arriba</font></a><p>");
}

function Volver()
{
	document.write("<p><table align=center width=100% cellspacing=0 cellpadding=0 border=0><tr><td colspan=2><img src='/images/linea.gif' width=100% height=1 border=0></td></tr><tr><td><a href='javascript:history.back()'><img src='/images/volver.gif' alt='Volver' border=0></a> <a href='javascript:history.back()'><font face=arial size=-1>Volver</font></a></td><td align=right><a href='#top'><img src='/images/arriba.gif' alt='Arriba' border=0></a> <a href='#top'><font face=arial size=-1>Arriba</font></a></td></tr></table>");
}

function SoloVolver()
{
	document.write("<p><table align=center width=100% cellspacing=0 cellpadding=0 border=0><tr><td colspan=2><img src='/images/linea.gif' width=100% height=1 border=0></td></tr><tr><td><a href='javascript:history.back()'><img src='/images/volver.gif' alt='Volver' border=0></a> <a href='javascript:history.back()'><font face=arial size=-1>Volver</font></a></td></tr></table>");
}

function C_TMSE()
{
	document.write("<br><span class=txt6>&copy;2000-2010 The Mars Society Espa&ntilde;a (TMSE). Todos los derechos reservados.</span>");
}

//-->