Phonevite.Slide=function(A,B){this._init(A,B)};Phonevite.Slide.prototype={options:{interval:100,position:"relative",step:10,width:"auto",hide:false,border:"",apply:function(A){for(var B in A){if(YAHOO.lang.hasOwnProperty(A,B)){this[B.toLowerCase()]=A[B]}}}},_init:function(A,B){this.element=YAHOO.util.Dom.get(A);this.elementHeight=this._getHeight();if(B){this.options.apply(B)}this._createHiddenWrapper();if(this.options.hide==true){this.hide()}},_getHeight:function(){return this.element.offsetHeight},_createHiddenWrapper:function(){var A=this.element;var C=document.createElement("div");C.style.overflow="hidden";C.style.height=this.elementHeight+"px";C.style.position=this.options.position;C.style.width=this.options.width;var B=A.parentNode;B.appendChild(C);C.appendChild(A);this.element=A},slideIn:function(){if(this.fMv==true){return }this.fMv=true;if(this.fIn==true){this.fMv=false;return }this.fIn=true;var A=0;var B=this.elementHeight;var C=this;this.event_o=window.setInterval(function(){if(B>=0){C.element.style.marginTop=A+"px";A-=C.options.step;C.element.parentNode.style.height=B+"px";B-=C.options.step}else{window.clearInterval(C.event_o);C.element.parentNode.style.height="0px";C.element.style.marginTop="-"+C.elementHeight+"px";C.fMv=false}},this.options.interval)},slideOut:function(){if(this.fMv==true){return }this.fMv=true;if(this.fIn==false){this.fMv=false;return }this.fIn=false;var A=this.elementHeight;var B=0;var C=this;this.event_o=window.setInterval(function(){if(B<C.elementHeight){A-=C.options.step;C.element.style.marginTop=parseInt(A)>0?"-"+A+"px":"0";B+=C.options.step;C.element.parentNode.style.height=B+"px"}else{window.clearInterval(C.event_o);C.element.parentNode.style.height=C.elementHeight+"px";C.element.style.marginTop="0px";C.fMv=false}},this.options.interval)},toggle:function(){if(this.fIn==true){this.slideOut()}else{this.slideIn()}},hide:function(){this.element.parentNode.style.height="0px";this.element.style.marginTop="-"+this.elementHeight+"px";this.fIn=true},timeout:function(funcName,timeout){var thisObj=this;setTimeout(function(){eval("thisObj."+funcName+"();")},timeout)},isMouseOut:function(B){var C=YAHOO.util.Region.getRegion(this.element);var A={x:0,y:0};if(!B){B=window.event}if(B.pageX||B.pageY){A.x=B.pageX;A.y=B.pageY}else{if(B.clientX||B.clientY){A.x=B.clientX+document.body.scrollLeft+document.documentElement.scrollLeft;A.y=B.clientY+document.body.scrollTop+document.documentElement.scrollTop}}return C.left+5<A.x&&A.x<C.right&&C.top+5<A.y&&A.y<C.bottom?false:true}};