function isIE(){return/msie/i.test(navigator.userAgent)&&!/opera/i.test(navigator.userAgent)}var o={fps:50,dur:0.2,trans:0.1};var cover={init:function(b,a){this.elm=b;this.trans=a==undefined?0.9:a;this.mr=getScrollBarWidth()},show:function(){if(!$("popup_cover")){var a=new Element("div",{id:"popup_cover"});$("body").insert({top:a})}$("popup_cover").setStyle("opacity: 0; width: "+document.viewport.getWidth()+"px; height: "+document.viewport.getHeight()+"px").show();new Effect.Opacity("popup_cover",{from:0,to:this.trans,duration:o.dur})},hide:function(){new Effect.Opacity("popup_cover",{from:this.trans,to:0,duration:o.dur,afterFinish:function(){$("popup_cover").hide()}})}};function getScrollBarWidth(){var c=new Element("p",{style:"width: 100%; height: 200px"});var d=new Element("div",{style:"position: absolute; top: 0; left: 0; visibility: hidden; width: 200px; height: 150px; overflow: hidden"});d.appendChild(c);document.body.appendChild(d);var b=c.offsetWidth;d.style.overflow="scroll";var a=c.offsetWidth;if(b==a){a=d.clientWidth}Element.remove(d);return b-a}Event.observe(document,"dom:loaded",function(){var a=[];Event.observe("fbt","mouseover",function(){if(a.fb!=undefined){a.fb.cancel()}a.fb=new Effect.Morph("fb",{style:"top: 16px",duration:0.1})});Event.observe("fbt","mouseout",function(){if(a.fb!=undefined){a.fb.cancel()}a.fb=new Effect.Morph("fb",{style:"top: 25px",duration:0.1})});Event.observe("lit","mouseover",function(){if(a.li!=undefined){a.li.cancel()}a.li=new Effect.Morph("li",{style:"top: 17px",duration:0.1})});Event.observe("lit","mouseout",function(){if(a.li!=undefined){a.li.cancel()}a.li=new Effect.Morph("li",{style:"top: 25px",duration:0.1})});Event.observe("twt","mouseover",function(){if(a.tw!=undefined){a.tw.cancel()}a.tw=new Effect.Morph("tw",{style:"top: 16px",duration:0.1})});Event.observe("twt","mouseout",function(){if(a.tw!=undefined){a.tw.cancel()}a.tw=new Effect.Morph("tw",{style:"top: 25px",duration:0.1})})});
