var sidepanel=function(){return{init:function(d,i){m=document.getElementById(i);m.style.display="block";e=m.getElementsByTagName('div');for(var j=0;j<e.length;j++){if(e[j].className=='sv_sidebarmenu_tab'){l=e[j]}if(e[j].className=='sv_sidebarmenu_content'){c=e[j]}}to=((sidepanel.h()/2)-l.offsetHeight)+sidepanel.t();le=(d=="right")?sidepanel.w()-l.offsetWidth:0;m.d=d;m.sw=c.offsetWidth;m.op=false;m.cw=0;m.cl=m.sl=le;c.style.overflow="hidden";c.style.width="0px";m.style.position="fixed";m.style.top=to+"px";m.style.left=le+"px";l.onclick=function(){sidepanel.a(i)}},a:function(i){m=document.getElementById(i);e=m.getElementsByTagName('div');for(var j=0;j<e.length;j++){if(e[j].className=='sv_sidebarmenu_content'){c=e[j]}}if(!m.op&&(m.sw-2)>=m.cw){m.cw=m.cw+11;m.cl=(m.d=="right")?m.cl-11:0;c.style.width=m.cw+"px";m.style.left=m.cl+"px"}if(!m.op&&(m.sw-2)<=m.cw){m.op=true;c.style.width=(m.sw-2)+"px";m.style.left=(m.d=="right")?(m.sl-(m.sw-2))+"px":"0px";clearTimeout(m.ti);m.ti=null;return}if(m.op&&m.cw>0){m.cw=m.cw-11;m.cl=(m.d=="right")?m.cl+11:0;c.style.width=m.cw+"px";m.style.left=m.cl+"px"}if(m.op&&m.cw<=0){m.op=false;c.style.width=0+"px";m.style.left=m.sl+"px";clearTimeout(m.ti);m.ti=null;return}m.ti=setTimeout(function(){sidepanel.a(i)},15)},t:function(){return document.body.scrollTop||document.documentElement.scrollTop},w:function(){return(document.documentElement.clientWidth||document.body.clientWidth)||self.innerWidth},h:function(){return self.innerHeight||(document.documentElement.clientHeight||document.body.clientHeight)}}}();
