f=window;n=document;r=Array;s=true;t=false;function w(v){this[this.length]=v}function x(){if(this.length>0){var v=this[this.length-1];this.length--;return(v);}}function bf(divName,y){var q=n.getElementById(divName);if(q){q.style.background='url('+y+')'}}function z(className){var c=0;var i=0;var k=new r();var tags=n.getElementsByTagName("*");if(tags.length==0){tags=n.getElementsByTagName("div");}for(i=0;i<tags.length;i++){if(tags[i].className==className){k[c]=tags[i];c++}}return(k);}function h(className,o){var arg='hidden';var i=0;if(o){arg='visible'}var j=z(className);for(i=0;i<j.length;i++){j[i].style.visibility=arg}}function e(l,ba,g){m();f.p2h_delay=ba;bb(l,g);h(l,s);h(l+"hide",t);if(g==0){h("hidey",t);}}function d(g){m();p(g);}function p(g){if(f.p2h_popmenuarray){while(f.p2h_popmenuarray.length>g){var u=p2h_popmenuarray.pop();h(u,t);h(u+"hide",s);}}if(g==0){h("hidey",s);}}function bb(l,g){if(!f.p2h_popmenuarray){f.p2h_popmenuarray=new r();if(!f.p2h_popmenuarray.push){f.p2h_popmenuarray.push=w}if(!f.p2h_popmenuarray.pop){f.p2h_popmenuarray.pop=x}}p(g);f.p2h_popmenuarray.push(l);}function m(){if(f.p2h_timeoutid){clearTimeout(f.p2h_timeoutid);f.p2h_timeoutid=null}}function b(){if(p2h_delay==0){P2H_CloseMenu();return}m();f.p2h_timeoutid=setTimeout('P2H_CloseMenu()',f.p2h_delay);}function P2H_CloseMenu(){m();p(0);}function bc(bd,className){var c=0;var i=0;var k=new r();var tags=n.getElementsByTagName(bd);for(i=0;i<tags.length;i++){if(tags[i].className==className){k[c]=tags[i];c++}}return(k);}function bg(be,o){var arg='none';var i=0;if(o){arg='block'}var j=bc('li',be);if(j!=null){for(i=0;i<j.length;i++){j[i].style.display=arg}}}