if (ie4||ns6)
document.write('<div id="slidemenubar2" style="left:'+((parseInt(slidemenu_width)-parseInt(slidemenu_reveal))*-1)+'px; top:'+slidemenu_top+'; width:'+slidemenu_width+'" onMouseover="pull()" onMouseout="draw()">')
else if (ns4){
document.write('<style>\n#slidemenubar{\nwidth:'+slidemenu_width+';}\n<\/style>\n')
document.write('<layer id="slidemenubar" left=0 top='+slidemenu_top+' width='+slidemenu_width+' onMouseover="pull()" onMouseout="draw()" visibility=hide>')
}


var sitems=new Array()

///////////Edit below/////////////////////////////////

//siteitems[x]=["Item Text", "Optional URL associated with text"]
sitems[0]=["--", ""]
sitems[1]=["Información del centro", "./infoindex.htm"];
sitems[2]=["Información Académica General", "./infoacadindex.htm"];
sitems[3]=["Calendario Escolar", "./calendindex.htm"];
sitems[4]=["Horarios", "./horaindex.htm"];
sitems[5]=["--",""];
sitems[6]=["Departamentos", "./dptoindex.htm"];
sitems[7]=["--",""];
sitems[8]=["Biblioteca", "./biblioindex.htm"];
sitems[9]=["Actividades Extraescolares", "./actextraindex.htm"];
sitems[10]=["--",""];
sitems[11]=["Consejo Escolar", "./conseindex.htm"];
sitems[12]=["A.M.P.A.", "./ampaindex.htm"];
sitems[13]=["--",""];
sitems[14]=["Alumnos", "./alumindex.htm"];
sitems[15]=["Calendario Exámenes", "./calexindex.htm"];
sitems[16]=["--",""];
sitems[17]=["Comunicados", "./comunindex.htm"];
sitems[18]=["--",""];
sitems[19]=["Enlaces", "./enlaindex.htm"];
sitems[20]=["--",""];

//If you want the links to load in another frame/window, specify name of target (ie: target="_new")
var target=""

/////////////////////////////////////////////////////////

if (ie4||ns4||ns6){
document.write("<table summary='' border=0 style='border:1px solid "+menuBGColor+"' cellpadding=0 cellspacing=0>");
document.write("<tr><td style='font-size:10pt;color:"+linkBGColor+"' align='right' valign='middle' bgcolor='"+menuBGColor+"'>&nbsp;</td>");
document.write("<td align='center' valign='top' bgcolor='"+menuBGColor+"' rowspan='"+(sitems.length+1)+"' style='border:1px solid "+menuBGColor+";font-size:10pt;color:"+linkBGColor+"'>");
document.write("<b> m e n ú</b><br><a href='./index.htm'>");
document.write("<img alt='' src='images/menurelieve.jpg' height='105' width='99' border='0'/></a><b>");
document.write("<br />I<br />E<br />S<br /><br />S<br />a<br />n<br /><br />J<br />u<br />a<br />");
document.write("n<br /><br />B<br />a<br />u<br />i<br />t<br />i<br />s<br />t<br />a<br /></b>");
document.write("</td></tr>");
for (i=1;i<sitems.length;i++){
if (sitems[i][1]!=""){
document.write("<tr>");
document.write("<td style='text-align:right;font-size:10pt;color:"+menuBGColor+";background-color:"+linkBGColor+";border:1px solid "+menuBGColor+"' ");
document.write(" onmouseover=\"this.style.backgroundColor='"+linkOverBGColor+"'\" ");
document.write(" onmouseout=\"this.style.backgroundColor='"+linkBGColor+"'\" >");
document.write("<a href='"+sitems[i][1]+"' target='"+target+"' style='text-decoration:none;color:"+menuBGColor+"'>")
document.write(sitems[i][0])}
else {
document.write("<tr >");
document.write("<td ALIGN='right' BGCOLOR='"+menuBGColor+"' style='font-size:1pt'>&nbsp;");

}
if (sitems[i][1]!=""){
document.write('</a></td></tr>')
}
else {
document.write('</td></tr>')
}
}
document.write("</table>");
}

function regenerate(){
window.location.reload()
}
function regenerate2(){
if (ns4){
document.slidemenubar.left=((parseInt(slidemenu_width)-parseInt(slidemenu_reveal))*-1)
document.slidemenubar.visibility="show"
setTimeout("window.onresize=regenerate",400)
}
}
window.onload=regenerate2

rightboundary=0
leftboundary=(parseInt(slidemenu_width)-parseInt(slidemenu_reveal))*-1

if (ie4||ns6){
document.write('</div>')
themenu=(ns6)? document.getElementById("slidemenubar2").style : document.all.slidemenubar2.style
}
else if (ns4){
document.write('</layer>')
themenu=document.layers.slidemenubar
}

function pull(){
if (window.drawit)
clearInterval(drawit)
pullit=setInterval("pullengine()",10)
}
function draw(){
clearInterval(pullit)
drawit=setInterval("drawengine()",10)
}
function pullengine(){
if ((ie4||ns6)&&parseInt(themenu.left)<rightboundary)
themenu.left=parseInt(themenu.left)+speed+"px"
else if(ns4&&themenu.left<rightboundary)
themenu.left+=speed
else if (window.pullit){
themenu.left=0
clearInterval(pullit)
}
}

function drawengine(){
if ((ie4||ns6)&&parseInt(themenu.left)>leftboundary)
themenu.left=parseInt(themenu.left)-speed+"px"
else if(ns4&&themenu.left>leftboundary)
themenu.left-=speed
else if (window.drawit){
themenu.left=leftboundary
clearInterval(drawit)
}
}