if(!window.MVD2){window.MVD2={}}if(!MVD2.extend){MVD2.extend=function(C,B){for(var A in B){if(B.hasOwnProperty(A)){C[A]=B[A]}}};MVD2.nullFunc=function(){return this};MVD2.elemExtension={show:function(){this.style.display=((this.nodeName=="SPAN")||(this.nodeName=="A"))?"inline":"block";return this},hide:function(){this.style.display="none";return this},setHTML:function(A){this.innerHTML=A;return this},getWidth:function(){if(this.style.pixelWidth){return this.style.pixelWidth}else{return parseInt(this.style.width,10)}},getHeight:function(){if(this.style.pixelHeight){return this.style.pixelHeight}else{return parseInt(this.style.height,10)}},setTop:function(A){if(this.style.pixelTop){this.style.pixelTop=A}else{this.style.top=A+"px"}return this},setLeft:function(A){if(this.style.pixelLeft){this.style.pixelLeft=A}else{this.style.left=A+"px"}return this},setHeight:function(A){if(this.style.pixelHeight){this.style.pixelHeight=A}else{this.style.height=A+"px"}return this},setWidth:function(A){if(this.style.pixelWidth){this.style.pixelWidth=A}else{this.style.width=A+"px"}return this},setOpacity:function(A){A=(A>=100)?99.99999:A;this.style.filter="alpha(opacity:"+A+")";this.style.KHTMLOpacity=A/100;this.style.MozOpacity=A/100;this.style.opacity=A/100;return this},fadeOut:function(){return this.hide()},showAndHide:function(B){if(!B){B=2000}var A=this.show();var C=setTimeout(function(){A.fadeOut()},B);return this}};MVD2.extend(MVD2,{elemNull:{show:MVD2.nullFunc,setHTML:MVD2.nullFunc,hide:MVD2.nullFunc},extendElement:function(A){if(A){MVD2.extend(A,MVD2.elemExtension)}return A},get:function(A){return MVD2.extendElement(document.getElementById(A))},createElem:function(A){return MVD2.extendElement(document.createElement(A))},getSafe:function(A){return MVD2.get(A)||MVD2.elemNull},delCookie:function(A){var B=new Date();B.setTime(B.getTime()-1);document.cookie=A+"=;expires="+B.toGMTString()}})}if(!MVD2.Tween){MVD2.Tween=function(A){MVD2.extend(this,{from:0,to:1,time:500,onFinish:null,update:function(){},onStart:null,mode:0,steps:1,step:0,timer:null,isActive:function(){return(this.timer!==null)},fps:30,stepFunction:null,transition:function(B){return 1-Math.cos(Math.PI*B/2)}});MVD2.extend(this,A);return this};MVD2.extend(MVD2.Tween.prototype,{stepForward:function(){with(this){if(step>(steps-1)){update(to);clearInterval(timer);timer=null;if(onFinish){onFinish()}}else{step++;update(from+(to-from)*transition(step/steps))}}},stepBackward:function(){with(this){if(step<=0){update(from);clearInterval(timer);timer=null;if(onFinish){onFinish()}}else{step--;update(from+(to-from)*transition(step/steps))}}},programTimer:function(){var A=this;this.timer=setInterval(function(){A.stepFunction()},this.time/this.steps)},start:function(){if(this.timer===null){with(this){stepFunction=stepForward;if(onStart){onStart()}steps=Math.round((fps*time)/1000);step=0;update(from);programTimer()}}else{this.stepFunction=this.stepForward}},rewind:function(){if(this.timer==null){with(this){this.stepFunction=this.stepBackward;if(onStart){onStart()}steps=Math.round((fps*time)/1000);step=steps;update(to);programTimer()}}else{this.stepFunction=this.stepBackward}},stop:function(){if(this.timer){clearInterval(this.timer);this.timer=null}}});if(MVD2.elemExtension){MVD2.elemExtension.fadeOut=function(C){var B=this;if(!C){C=500}var A=new MVD2.Tween({from:100,to:0,time:C,update:function(D){B.setOpacity(D)},onFinish:function(){B.hide();B.setOpacity(100)}});A.start()}}}if(!window.MVD){window.MVD={}}if(!MVD.BanExp){MVD.BanExp=function(){var A=0;var H;var E;var D;var F;var C;function B(S,R,N,L,J,P){var O=MVD2.get(S);var M=MVD2.get(R);var K=MVD2.extend(M.getElementsByTagName("embed")[0]);var Q=(K&&K.height)?K:M;H=new MVD2.Tween({from:N,to:L,transition:function(T){return Math.sin(Math.PI*T/2)},update:function(T){O.setHeight(T);Q.setHeight(T)},onFinish:function(){if(A===1){A=2}else{if(A===3){A=0}}}});E=P;F=J;if(J===0){G()}else{if(J>0){C=setTimeout(function(){G();C=0},J*1000)}}}function I(){if(A===2){A=3;H.rewind();if(D){clearTimeout(D);D=0}}}function G(){if(A===0){A=1;H.start();if(E){D=setTimeout(function(){I();D=0},E*1000)}}}return{init:B,close:I,show:G}}()}
