//Manejo de paneles deslizantes //Ricardo Ortega - 2003-2006 jspns4=document.layers?1:0; jspie4=document.all; jspns6=document.getElementById&&!document.all?1:0; jspspeed=60; jsphidding=0; jsp_init(840,90,125); jsp_show(); //Inicia mostrando function jsp_init(a,b,t){ slidemenu_width=a+"px"; //'260px'; //specify width of menu (in pixels) slidemenu_reveal=b+"px"; //'22px'; //specify amount that menu should protrude initially slidemenu_top=t+"px"; // '100px'; //specify vertical offset of menu on page window.onload=regenerate2; rightboundary=0; leftboundary=(parseInt(slidemenu_width)-parseInt(slidemenu_reveal))*-1; if(jspie4||jspns6){ themenu=(jspns6)? document.getElementById("slidepanel").style : document.all.slidepanel.style; } else if(jspns4){ themenu=document.layers.slidepanel; } } function regenerate(){ window.location.reload(); } function regenerate2(){ if(jspns4){ document.slidemenubar.left=((parseInt(slidemenu_width)-parseInt(slidemenu_reveal))*-1); document.slidemenubar.visibility="show"; setTimeout("window.onresize=regenerate",400); } } function jsp_close(){ if(window.showit)clearInterval(showit); if(window.hideit)clearInterval(hideit); if(jsphidding==0){ jsphidding=1; jsp_hide(); } else{ jsphidding=0; jsp_show(); } } function jsp_show(){ if(jsphidding){clearInterval(showit);return;} if(window.hideit)clearInterval(hideit); showit=setInterval("showengine()",8); } function jsp_hide(){ if(window.showit)clearInterval(showit); hideit=setInterval("hideengine()",8); } function showengine(){ if(jsphidding){if(window.showit)clearInterval(showit);return;} if ((jspie4||jspns6)&&parseInt(themenu.left)=leftboundary) themenu.left=parseInt(themenu.left)-jspspeed+"px"; else if(jspns4&&themenu.left>leftboundary) themenu.left-=jspspeed; else if (window.hideit){ themenu.left=leftboundary; clearInterval(hideit); if(window.showit)clearInterval(showit); //jsphidding=0; } }