/*! Modified for Binary Bit LAN Binary Bit Templates
 *  Copyright (c) 2007, Dav Glass <dav.glass@yahoo.com>.
 *  Code licensed under the BSD License:
 *  http://blog.davglass.com/license.txt
 *  All rights reserved.
 */
YAHOO.widget.Effects=function(){return{version:"0.8"}}();var yuiDomGet=YAHOO.util.Dom.get,yuiDom=YAHOO.util.Dom,YuiCustomEvent=YAHOO.util.CustomEvent,yuiEasing=YAHOO.util.Easing;YAHOO.widget.Effects.Hide=function(inElm){this.element=yuiDomGet(inElm);yuiDom.setStyle(this.element,"display","none");yuiDom.setStyle(this.element,"visibility","hidden")};YAHOO.widget.Effects.Hide.prototype.toString=function(){return"Effect Hide ["+this.element.id+"]"};YAHOO.widget.Effects.Show=function(inElm){this.element=yuiDomGet(inElm);yuiDom.setStyle(this.element,"display","block");yuiDom.setStyle(this.element,"visibility","visible")};YAHOO.widget.Effects.Show.prototype.toString=function(){return"Effect Show ["+this.element.id+"]"};YAHOO.widget.Effects.Fade=function(inElm,opts){this.element=yuiDomGet(inElm);var attributes={opacity:{from:1,to:0}};this.onEffectComplete=new YuiCustomEvent("oneffectcomplete",this);var ease=((opts&&opts.ease)?opts.ease:yuiEasing.easeOut);var secs=((opts&&opts.seconds)?opts.seconds:1);var delay=((opts&&opts.delay)?opts.delay:false);this.effect=new YAHOO.util.Anim(this.element,attributes,secs,ease);this.effect.onComplete.subscribe(function(){YAHOO.widget.Effects.Hide(this.element);this.onEffectComplete.fire()},this,true);if(!delay){this.effect.animate()}};YAHOO.widget.Effects.Fade.prototype.animate=function(){this.effect.animate()};YAHOO.widget.Effects.Fade.prototype.toString=function(){return"Effect Fade ["+this.element.id+"]"};YAHOO.widget.Effects.Appear=function(inElm,opts){this.element=yuiDomGet(inElm);yuiDom.setStyle(this.element,"opacity","0");YAHOO.widget.Effects.Show(this.element);var attributes={opacity:{from:0,to:1}};this.onEffectComplete=new YuiCustomEvent("oneffectcomplete",this);var ease=((opts&&opts.ease)?opts.ease:yuiEasing.easeOut);var secs=((opts&&opts.seconds)?opts.seconds:3);var delay=((opts&&opts.delay)?opts.delay:false);this.effect=new YAHOO.util.Anim(this.element,attributes,secs,ease);this.effect.onComplete.subscribe(function(){this.onEffectComplete.fire()},this,true);if(!delay){this.effect.animate()}};YAHOO.widget.Effects.Appear.prototype.animate=function(){this.effect.animate()};YAHOO.widget.Effects.Appear.prototype.toString=function(){return"Effect Appear ["+this.element.id+"]"};YAHOO.widget.Effects.BlindUp=function(inElm,opts){var ease=((opts&&opts.ease)?opts.ease:yuiEasing.easeOut);var secs=((opts&&opts.seconds)?opts.seconds:1);var delay=((opts&&opts.delay)?opts.delay:false);var ghost=((opts&&opts.ghost)?opts.ghost:false);this.element=yuiDomGet(inElm);this._height=YAHOO.widgetTools.getHeight(this.element);this._top=parseInt(yuiDom.getStyle(this.element,"top"),10);this._opts=opts;yuiDom.setStyle(this.element,"overflow","hidden");var attributes={height:{to:0}};if(ghost){attributes.opacity={to:0,from:1}}this.onEffectComplete=new YuiCustomEvent("oneffectcomplete",this);if(opts&&opts.bind&&(opts.bind=="bottom")){attributes={height:{from:0,to:parseInt(this._height,10)},top:{from:(this._top+parseInt(this._height,10)),to:this._top}};if(ghost){attributes.opacity={to:1,from:0}}}this.effect=new YAHOO.util.Anim(this.element,attributes,secs,ease);this.effect.onComplete.subscribe(function(){if(this._opts&&this._opts.bind&&(this._opts.bind=="bottom")){yuiDom.setStyle(this.element,"top",this._top+"px")}else{YAHOO.widget.Effects.Hide(this.element);yuiDom.setStyle(this.element,"height",this._height)}yuiDom.setStyle(this.element,"opacity",1);this.onEffectComplete.fire()},this,true);if(!delay){this.animate()}};YAHOO.widget.Effects.BlindUp.prototype.prepStyle=function(){if(this._opts&&this._opts.bind&&(this._opts.bind=="bottom")){yuiDom.setStyle(this.element,"height","0px");yuiDom.setStyle(this.element,"top",this._height)}YAHOO.widget.Effects.Show(this.element)};YAHOO.widget.Effects.BlindUp.prototype.animate=function(){this.prepStyle();this.effect.animate()};YAHOO.widget.Effects.BlindUp.prototype.toString=function(){return"Effect BlindUp ["+this.element.id+"]"};YAHOO.widget.Effects.BlindDown=function(inElm,opts){var ease=((opts&&opts.ease)?opts.ease:yuiEasing.easeOut);var secs=((opts&&opts.seconds)?opts.seconds:1);var delay=((opts&&opts.delay)?opts.delay:false);var ghost=((opts&&opts.ghost)?opts.ghost:false);this.element=yuiDomGet(inElm);this._opts=opts;this._height=parseInt(YAHOO.widgetTools.getHeight(this.element),10);this._top=parseInt(yuiDom.getStyle(this.element,"top"),10);yuiDom.setStyle(this.element,"overflow","hidden");var attributes={height:{from:0,to:this._height}};if(ghost){attributes.opacity={to:1,from:0}}this.onEffectComplete=new YuiCustomEvent("oneffectcomplete",this);if(opts&&opts.bind&&(opts.bind=="bottom")){attributes={height:{to:0,from:parseInt(this._height,10)},top:{to:(this._top+parseInt(this._height,10)),from:this._top}};if(ghost){attributes.opacity={to:0,from:1}}}this.effect=new YAHOO.util.Anim(this.element,attributes,secs,ease);if(opts&&opts.bind&&(opts.bind=="bottom")){this.effect.onComplete.subscribe(function(){YAHOO.widget.Effects.Hide(this.element);yuiDom.setStyle(this.element,"top",this._top+"px");yuiDom.setStyle(this.element,"height",this._height+"px");yuiDom.setStyle(this.element,"opacity",1);this.onEffectComplete.fire()},this,true)}else{this.effect.onComplete.subscribe(function(){yuiDom.setStyle(this.element,"opacity",1);this.onEffectComplete.fire()},this,true)}if(!delay){this.animate()}};YAHOO.widget.Effects.BlindDown.prototype.prepStyle=function(){if(this._opts&&this._opts.bind&&(this._opts.bind=="bottom")){}else{yuiDom.setStyle(this.element,"height","0px")}YAHOO.widget.Effects.Show(this.element)};YAHOO.widget.Effects.BlindDown.prototype.animate=function(){this.prepStyle();this.effect.animate()};YAHOO.widget.Effects.BlindDown.prototype.toString=function(){return"Effect BlindDown ["+this.element.id+"]"};YAHOO.widget.Effects.BlindRight=function(inElm,opts){var ease=((opts&&opts.ease)?opts.ease:yuiEasing.easeOut);var secs=((opts&&opts.seconds)?opts.seconds:1);var delay=((opts&&opts.delay)?opts.delay:false);var ghost=((opts&&opts.ghost)?opts.ghost:false);this.element=yuiDomGet(inElm);this._width=parseInt(yuiDom.getStyle(this.element,"width"),10);this._left=parseInt(yuiDom.getStyle(this.element,"left"),10);this._opts=opts;yuiDom.setStyle(this.element,"overflow","hidden");this.onEffectComplete=new YuiCustomEvent("oneffectcomplete",this);var attributes={width:{from:0,to:this._width}};if(ghost){attributes.opacity={to:1,from:0}}if(opts&&opts.bind&&(opts.bind=="right")){attributes={width:{to:0},left:{to:this._left+parseInt(this._width,10),from:this._left}};if(ghost){attributes.opacity={to:0,from:1}}}this.effect=new YAHOO.util.Anim(this.element,attributes,secs,ease);if(opts&&opts.bind&&(opts.bind=="right")){this.effect.onComplete.subscribe(function(){YAHOO.widget.Effects.Hide(this.element);yuiDom.setStyle(this.element,"width",this._width+"px");yuiDom.setStyle(this.element,"left",this._left+"px");this._width=null;yuiDom.setStyle(this.element,"opacity",1);this.onEffectComplete.fire()},this,true)}else{this.effect.onComplete.subscribe(function(){yuiDom.setStyle(this.element,"opacity",1);this.onEffectComplete.fire()},this,true)}if(!delay){this.animate()}};YAHOO.widget.Effects.BlindRight.prototype.prepStyle=function(){if(this._opts&&this._opts.bind&&(this._opts.bind=="right")){}else{yuiDom.setStyle(this.element,"width","0")}};YAHOO.widget.Effects.BlindRight.prototype.animate=function(){this.prepStyle();this.effect.animate()};YAHOO.widget.Effects.BlindRight.prototype.toString=function(){return"Effect BlindRight ["+this.element.id+"]"};YAHOO.widget.Effects.BlindLeft=function(inElm,opts){var ease=((opts&&opts.ease)?opts.ease:yuiEasing.easeOut);var secs=((opts&&opts.seconds)?opts.seconds:1);var delay=((opts&&opts.delay)?opts.delay:false);var ghost=((opts&&opts.ghost)?opts.ghost:false);this.ghost=ghost;this.element=yuiDomGet(inElm);this._width=yuiDom.getStyle(this.element,"width");this._left=parseInt(yuiDom.getStyle(this.element,"left"),10);this._opts=opts;yuiDom.setStyle(this.element,"overflow","hidden");var attributes={width:{to:0}};if(ghost){attributes.opacity={to:0,from:1}}this.onEffectComplete=new YuiCustomEvent("oneffectcomplete",this);if(opts&&opts.bind&&(opts.bind=="right")){attributes={width:{from:0,to:parseInt(this._width,10)},left:{from:this._left+parseInt(this._width,10),to:this._left}};if(ghost){attributes.opacity={to:1,from:0}}}this.effect=new YAHOO.util.Anim(this.element,attributes,secs,ease);if(opts&&opts.bind&&(opts.bind=="right")){this.effect.onComplete.subscribe(function(){this.onEffectComplete.fire()},this,true)}else{this.effect.onComplete.subscribe(function(){YAHOO.widget.Effects.Hide(this.element);yuiDom.setStyle(this.element,"width",this._width);yuiDom.setStyle(this.element,"left",this._left+"px");yuiDom.setStyle(this.element,"opacity",1);this._width=null;this.onEffectComplete.fire()},this,true)}if(!delay){this.animate()}};YAHOO.widget.Effects.BlindLeft.prototype.prepStyle=function(){if(this._opts&&this._opts.bind&&(this._opts.bind=="right")){YAHOO.widget.Effects.Hide(this.element);yuiDom.setStyle(this.element,"width","0px");yuiDom.setStyle(this.element,"left",parseInt(this._width,10));if(this.ghost){yuiDom.setStyle(this.element,"opacity",0)}YAHOO.widget.Effects.Show(this.element)}};YAHOO.widget.Effects.BlindLeft.prototype.animate=function(){this.prepStyle();this.effect.animate()};YAHOO.widget.Effects.BlindLeft.prototype.toString=function(){return"Effect BlindLeft ["+this.element.id+"]"};YAHOO.widget.Effects.Fold=function(inElm,opts){var ease=((opts&&opts.ease)?opts.ease:yuiEasing.easeOut);var secs=((opts&&opts.seconds)?opts.seconds:1);var delay=((opts&&opts.delay)?opts.delay:false);this.ghost=((opts&&opts.ghost)?opts.ghost:false);this.element=yuiDomGet(inElm);this._to=5;if(!delay){YAHOO.widget.Effects.Show(this.element)}yuiDom.setStyle(this.element,"overflow","hidden");this.done=false;this._height=parseInt(YAHOO.widgetTools.getHeight(this.element),10);this._width=yuiDom.getStyle(this.element,"width");this.onEffectComplete=new YuiCustomEvent("oneffectcomplete",this);if(opts&&opts.to){this._to=opts.to}var attributes={height:{to:this._to}};this.effect=new YAHOO.util.Anim(this.element,attributes,secs,ease);this.effect.onComplete.subscribe(function(){if(this.done){YAHOO.widget.Effects.Hide(this.element);yuiDom.setStyle(this.element,"height",this._height+"px");yuiDom.setStyle(this.element,"width",this._width);this.onEffectComplete.fire()}else{this.done=true;this.effect.attributes={width:{to:0},height:{from:this._to,to:this._to}};if(this.ghost){this.effect.attributes.opacity={to:0,from:1}}this.animate()}},this,true);if(!delay){this.animate()}};YAHOO.widget.Effects.Fold.prototype.animate=function(){this.effect.animate()};YAHOO.widget.Effects.Fold.prototype.toString=function(){return"Effect Fold ["+this.element.id+"]"};YAHOO.widget.Effects.UnFold=function(inElm,opts){var ease=((opts&&opts.ease)?opts.ease:yuiEasing.easeOut);var secs=((opts&&opts.seconds)?opts.seconds:1);var delay=((opts&&opts.delay)?opts.delay:false);this.ghost=((opts&&opts.ghost)?opts.ghost:false);this.element=yuiDomGet(inElm);this._height=YAHOO.widgetTools.getHeight(this.element);this._width=yuiDom.getStyle(this.element,"width");this._to=5;yuiDom.setStyle(this.element,"overflow","hidden");this.done=false;this.onEffectComplete=new YuiCustomEvent("oneffectcomplete",this);if(opts&&opts.to){this._to=opts.to}attributes={height:{from:0,to:this._to},width:{from:0,to:parseInt(this._width,10)}};if(this.ghost){attributes.opacity={to:0.15,from:0}}this.effect=new YAHOO.util.Anim(this.element,attributes,secs,ease);this.effect.onComplete.subscribe(function(){if(this.done){this.onEffectComplete.fire();this.done=false}else{this.done=true;this.effect.attributes={width:{from:parseInt(this._width,10),to:parseInt(this._width,10)},height:{from:this._to,to:parseInt(this._height,10)}};if(this.ghost){this.effect.attributes.opacity={to:1,from:0.15}}this.effect.animate()}},this,true);if(!delay){this.animate()}};YAHOO.widget.Effects.UnFold.prototype.prepStyle=function(){YAHOO.widget.Effects.Hide(this.element);yuiDom.setStyle(this.element,"height","0px");yuiDom.setStyle(this.element,"width","0px");this.effect.attributes=attributes};YAHOO.widget.Effects.UnFold.prototype.animate=function(){this.prepStyle();YAHOO.widget.Effects.Show(this.element);this.effect.animate()};YAHOO.widget.Effects.UnFold.prototype.toString=function(){return"Effect UnFold ["+this.element.id+"]"};YAHOO.widget.Effects.ShakeLR=function(inElm,opts){this.element=yuiDomGet(inElm);this._offSet=10;this._maxCount=5;this._counter=0;this._elmPos=yuiDom.getXY(this.element);var attributes={left:{to:(-this._offSet)}};this.onEffectComplete=new YuiCustomEvent("oneffectcomplete",this);if(opts&&opts.offset){this._offSet=opts.offset}if(opts&&opts.maxcount){this._maxCount=opts.maxcount}var ease=((opts&&opts.ease)?opts.ease:yuiEasing.easeOut);var secs=((opts&&opts.seconds)?opts.seconds:0.25);var delay=((opts&&opts.delay)?opts.delay:false);this.effect=new YAHOO.util.Anim(this.element,attributes,secs,ease);this.effect.onComplete.subscribe(function(){if(this.done){this.onEffectComplete.fire()}else{if(this._counter<this._maxCount){this._counter++;if(this._left){this._left=null;this.effect.attributes={left:{to:(-this._offSet)}}}else{this._left=true;this.effect.attributes={left:{to:this._offSet}}}this.effect.animate()}else{this.done=true;this._left=null;this._counter=null;this.effect.attributes={left:{to:0}};this.effect.animate()}}},this,true);if(!delay){this.effect.animate()}};YAHOO.widget.Effects.ShakeLR.prototype.animate=function(){this.effect.animate()};YAHOO.widget.Effects.ShakeLR.prototype.toString=function(){return"Effect ShakeLR ["+this.element.id+"]"};YAHOO.widget.Effects.ShakeTB=function(inElm,opts){this.element=yuiDomGet(inElm);this._offSet=10;this._maxCount=5;this._counter=0;this._elmPos=yuiDom.getXY(this.element);var attributes={top:{to:(-this._offSet)}};if(opts&&opts.offset){this._offSet=opts.offset}if(opts&&opts.maxcount){this._maxCount=opts.maxcount}this.onEffectComplete=new YuiCustomEvent("oneffectcomplete",this);var ease=((opts&&opts.ease)?opts.ease:yuiEasing.easeOut);var secs=((opts&&opts.seconds)?opts.seconds:0.25);var delay=((opts&&opts.delay)?opts.delay:false);this.effect=new YAHOO.util.Anim(this.element,attributes,secs,ease);this.effect.onComplete.subscribe(function(){if(this.done){this.onEffectComplete.fire()}else{if(this._counter<this._maxCount){this._counter++;if(this._left){this._left=null;this.effect.attributes={top:{to:(-this._offSet)}}}else{this._left=true;this.effect.attributes={top:{to:this._offSet}}}this.effect.animate()}else{this.done=true;this._left=null;this._counter=null;this.effect.attributes={top:{to:0}};this.effect.animate()}}},this,true);if(!delay){this.effect.animate()}};YAHOO.widget.Effects.ShakeTB.prototype.animate=function(){this.effect.animate()};YAHOO.widget.Effects.ShakeTB.prototype.toString=function(){return"Effect ShakeTB ["+this.element.id+"]"};YAHOO.widget.Effects.Drop=function(inElm,opts){this.element=yuiDomGet(inElm);this._height=parseInt(YAHOO.widgetTools.getHeight(this.element),10);this._top=parseInt(yuiDom.getStyle(this.element,"top"),10);var attributes={top:{from:this._top,to:(this._top+this._height)},opacity:{from:1,to:0}};this.onEffectComplete=new YuiCustomEvent("oneffectcomplete",this);var ease=((opts&&opts.ease)?opts.ease:yuiEasing.easeIn);var secs=((opts&&opts.seconds)?opts.seconds:1);var delay=((opts&&opts.delay)?opts.delay:false);this.effect=new YAHOO.util.Anim(this.element,attributes,secs,ease);this.effect.onComplete.subscribe(function(){YAHOO.widget.Effects.Hide(this.element);yuiDom.setStyle(this.element,"top",this._top+"px");yuiDom.setStyle(this.element,"opacity",1);this.onEffectComplete.fire()},this,true);if(!delay){this.animate()}};YAHOO.widget.Effects.Drop.prototype.animate=function(){this.effect.animate()};YAHOO.widget.Effects.Drop.prototype.toString=function(){return"Effect Drop ["+this.element.id+"]"};YAHOO.widget.Effects.Pulse=function(inElm,opts){this.element=yuiDomGet(inElm);this._counter=0;this._maxCount=9;var attributes={opacity:{from:1,to:0}};if(opts&&opts.maxcount){this._maxCount=opts.maxcount}this.onEffectComplete=new YuiCustomEvent("oneffectcomplete",this);var ease=((opts&&opts.ease)?opts.ease:yuiEasing.easeIn);var secs=((opts&&opts.seconds)?opts.seconds:0.25);var delay=((opts&&opts.delay)?opts.delay:false);this.effect=new YAHOO.util.Anim(this.element,attributes,secs,ease);this.effect.onComplete.subscribe(function(){if(this.done){this.onEffectComplete.fire()}else{if(this._counter<this._maxCount){this._counter++;if(this._on){this._on=null;this.effect.attributes={opacity:{to:0}}}else{this._on=true;this.effect.attributes={opacity:{to:1}}}this.effect.animate()}else{this.done=true;this._on=null;this._counter=null;this.effect.attributes={opacity:{to:1}};this.effect.animate()}}},this,true);if(!delay){this.effect.animate()}};YAHOO.widget.Effects.Pulse.prototype.animate=function(){this.effect.animate()};YAHOO.widget.Effects.Pulse.prototype.toString=function(){return"Effect Pulse ["+this.element.id+"]"};YAHOO.widget.Effects.Shrink=function(inElm,opts){this.start_elm=yuiDomGet(inElm);this.element=this.start_elm.cloneNode(true);this.start_elm.parentNode.replaceChild(this.element,this.start_elm);YAHOO.widget.Effects.Hide(this.start_elm);yuiDom.setStyle(this.element,"overflow","hidden");this.onEffectComplete=new YuiCustomEvent("oneffectcomplete",this);var ease=((opts&&opts.ease)?opts.ease:yuiEasing.easeOut);var secs=((opts&&opts.seconds)?opts.seconds:1);var delay=((opts&&opts.delay)?opts.delay:false);var attributes={width:{to:0},height:{to:0},fontSize:{from:100,to:0,unit:"%"},opacity:{from:1,to:0}};this.effect=new YAHOO.util.Anim(this.element,attributes,secs,ease);this.effect.onComplete.subscribe(function(){this.element.parentNode.replaceChild(this.start_elm,this.element);this.onEffectComplete.fire()},this,true);if(!delay){this.effect.animate()}};YAHOO.widget.Effects.Shrink.prototype.animate=function(){this.effect.animate()};YAHOO.widget.Effects.Shrink.prototype.toString=function(){return"Effect Shrink ["+this.element.id+"]"};YAHOO.widget.Effects.Grow=function(inElm,opts){this.element=yuiDomGet(inElm);var h=parseInt(YAHOO.widgetTools.getHeight(this.element),10);var w=parseInt(yuiDom.getStyle(this.element,"width"),10);yuiDom.setStyle(this.element,"overflow","hidden");this.onEffectComplete=new YuiCustomEvent("oneffectcomplete",this);var ease=((opts&&opts.ease)?opts.ease:yuiEasing.easeOut);var secs=((opts&&opts.seconds)?opts.seconds:1);var delay=((opts&&opts.delay)?opts.delay:false);var attributes={width:{to:w,from:0},height:{to:h,from:0},fontSize:{from:0,to:100,unit:"%"},opacity:{from:0,to:1}};this.effect=new YAHOO.util.Anim(this.element,attributes,secs,ease);this.effect.onComplete.subscribe(function(){this.onEffectComplete.fire()},this,true);if(!delay){this.animate()}};YAHOO.widget.Effects.Grow.prototype.animate=function(){this.effect.animate()};YAHOO.widget.Effects.Grow.prototype.toString=function(){return"Effect Grow ["+this.element.id+"]"};YAHOO.widget.Effects.TV=function(inElm,opts){var ease=((opts&&opts.ease)?opts.ease:yuiEasing.easeIn);var secs=((opts&&opts.seconds)?opts.seconds:1);var delay=((opts&&opts.delay)?opts.delay:false);this.element=yuiDomGet(inElm);this.done=false;this._height=parseInt(YAHOO.widgetTools.getHeight(this.element),10);this._width=parseInt(yuiDom.getStyle(this.element,"width"),10);yuiDom.setStyle(this.element,"overflow","hidden");var attributes={top:{from:0,to:(this._height/2)},height:{to:5}};this.onEffectComplete=new YuiCustomEvent("oneffectcomplete",this);this.effect=new YAHOO.util.Anim(this.element,attributes,secs,ease);this.effect.onComplete.subscribe(function(){if(this.done){this.onEffectComplete.fire();YAHOO.widget.Effects.Hide(this.element);yuiDom.setStyle(this.element,"height",this._height+"px");yuiDom.setStyle(this.element,"width",this._width+"px");yuiDom.setStyle(this.element,"top","");yuiDom.setStyle(this.element,"left","");yuiDom.setStyle(this.element,"opacity","1")}else{this.done=true;this.effect.attributes={top:{from:(this._height/2),to:(this._height/2)},left:{from:0,to:(this._width/2)},height:{from:5,to:5},width:{to:5},opacity:{from:1,to:0}};this.effect.animate()}},this,true);if(!delay){this.animate()}};YAHOO.widget.Effects.TV.prototype.animate=function(){this.effect.animate()};YAHOO.widget.Effects.TV.prototype.toString=function(){return"Effect TV ["+this.element.id+"]"};YAHOO.widget.Effects.Shadow=function(inElm,opts){var delay=((opts&&opts.delay)?opts.delay:false);var topOffset=((opts&&opts.top)?opts.top:8);var leftOffset=((opts&&opts.left)?opts.left:8);var shadowColor=((opts&&opts.color)?opts.color:"#ccc");var shadowOpacity=((opts&&opts.opacity)?opts.opacity:0.75);this.element=yuiDomGet(inElm);if(yuiDomGet(this.element.id+"_shadow")){this.shadow=yuiDomGet(this.element.id+"_shadow")}else{this.shadow=document.createElement("div");this.shadow.id=this.element.id+"_shadow";this.element.parentNode.appendChild(this.shadow)}var h=parseInt(YAHOO.widgetTools.getHeight(this.element),10);var w=parseInt(yuiDom.getStyle(this.element,"width"),10);var z=this.element.style.zIndex;if(!z){z=1;this.element.style.zIndex=z}yuiDom.setStyle(this.element,"overflow","hidden");yuiDom.setStyle(this.shadow,"height",h+"px");yuiDom.setStyle(this.shadow,"width",w+"px");yuiDom.setStyle(this.shadow,"background-color",shadowColor);yuiDom.setStyle(this.shadow,"opacity",0);yuiDom.setStyle(this.shadow,"position","absolute");this.shadow.style.zIndex=(z-1);var xy=yuiDom.getXY(this.element);this.onEffectComplete=new YuiCustomEvent("oneffectcomplete",this);var attributes={opacity:{from:0,to:shadowOpacity},top:{from:xy[1],to:(xy[1]+topOffset)},left:{from:xy[0],to:(xy[0]+leftOffset)}};this.effect=new YAHOO.util.Anim(this.shadow,attributes);this.effect.onComplete.subscribe(function(){this.onEffectComplete.fire()},this,true);if(!delay){this.animate()}};YAHOO.widget.Effects.Shadow.prototype.animate=function(){this.effect.animate()};YAHOO.widget.Effects.Shadow.prototype.toString=function(){return"Effect Shadow ["+this.element.id+"]"};YAHOO.widget.Effects.Puff=function(inElm,opts){var start_elm=yuiDomGet(inElm);this.element=start_this.element.cloneNode(true);start_this.element.parentNode.replaceChild(this.element,start_elm);YAHOO.widget.Effects.Hide(start_elm);var xy=yuiDom.getXY(this.element);var h=parseInt(YAHOO.widgetTools.getHeight(this.element),10);var w=parseInt(yuiDom.getStyle(this.element,"width"),10);var nh=((h/2)+h);var nw=((w/2)+w);var nto=((nh-h)/2);var nlo=((nw-w)/2);var nt=xy[1]-nto;var nl=xy[0]-nlo;yuiDom.setStyle(this.element,"position","absolute");var attributes={top:{to:nt},left:{to:nl},width:{to:nw},height:{to:nh},opacity:{from:1,to:0}};var ease=((opts&&opts.ease)?opts.ease:yuiEasing.easeOut);var secs=((opts&&opts.seconds)?opts.seconds:1);var puff=new YAHOO.util.Anim(this.element,attributes,secs,ease);puff.onComplete.subscribe(function(){this.element=this.getEl();this.element.parentNode.replaceChild(start_elm,elm)});puff.animate();return puff};YAHOO.widget.Effects.Batch=function(effects,opts){};YAHOO.widget.Effects.ContainerEffect=function(){};YAHOO.widget.Effects.ContainerEffect.BlindUpDownBinded=function(overlay,dur){var bupdownbinded=new YAHOO.widget.ContainerEffect(overlay,{attributes:{effect:"BlindUp",opts:{bind:"bottom"}},duration:dur},{attributes:{effect:"BlindDown",opts:{bind:"bottom"}},duration:dur},overlay.element,YAHOO.widget.Effects.Container);bupdownbinded.init();return bupdownbinded};YAHOO.widget.Effects.ContainerEffect.BlindUpDown=function(overlay,dur){var bupdown=new YAHOO.widget.ContainerEffect(overlay,{attributes:{effect:"BlindDown"},duration:dur},{attributes:{effect:"BlindUp"},duration:dur},overlay.element,YAHOO.widget.Effects.Container);bupdown.init();return bupdown};YAHOO.widget.Effects.ContainerEffect.BlindLeftRightBinded=function(overlay,dur){var bleftrightbinded=new YAHOO.widget.ContainerEffect(overlay,{attributes:{effect:"BlindLeft",opts:{bind:"right"}},duration:dur},{attributes:{effect:"BlindRight",opts:{bind:"right"}},duration:dur},overlay.element,YAHOO.widget.Effects.Container);bleftrightbinded.init();return bleftrightbinded};YAHOO.widget.Effects.ContainerEffect.BlindLeftRight=function(overlay,dur){var bleftright=new YAHOO.widget.ContainerEffect(overlay,{attributes:{effect:"BlindRight"},duration:dur},{attributes:{effect:"BlindLeft"},duration:dur},overlay.element,YAHOO.widget.Effects.Container);bleftright.init();return bleftright};YAHOO.widget.Effects.ContainerEffect.BlindRightFold=function(overlay,dur){var brightfold=new YAHOO.widget.ContainerEffect(overlay,{attributes:{effect:"BlindRight"},duration:dur},{attributes:{effect:"Fold"},duration:dur},overlay.element,YAHOO.widget.Effects.Container);brightfold.init();return brightfold};YAHOO.widget.Effects.ContainerEffect.BlindLeftFold=function(overlay,dur){var bleftfold=new YAHOO.widget.ContainerEffect(overlay,{attributes:{effect:"BlindLeft",opts:{bind:"right"}},duration:dur},{attributes:{effect:"Fold"},duration:dur},overlay.element,YAHOO.widget.Effects.Container);bleftfold.init();return bleftfold};YAHOO.widget.Effects.ContainerEffect.UnFoldFold=function(overlay,dur){var bunfold=new YAHOO.widget.ContainerEffect(overlay,{attributes:{effect:"UnFold"},duration:dur},{attributes:{effect:"Fold"},duration:dur},overlay.element,YAHOO.widget.Effects.Container);bunfold.init();return bunfold};YAHOO.widget.Effects.ContainerEffect.BlindDownDrop=function(overlay,dur){var bdowndrop=new YAHOO.widget.ContainerEffect(overlay,{attributes:{effect:"BlindDown"},duration:dur},{attributes:{effect:"Drop"},duration:dur},overlay.element,YAHOO.widget.Effects.Container);bdowndrop.init();return bdowndrop};YAHOO.widget.Effects.ContainerEffect.BlindUpDrop=function(overlay,dur){var bupdrop=new YAHOO.widget.ContainerEffect(overlay,{attributes:{effect:"BlindUp",opts:{bind:"bottom"}},duration:dur},{attributes:{effect:"Drop"},duration:dur},overlay.element,YAHOO.widget.Effects.Container);bupdrop.init();return bupdrop};YAHOO.widget.Effects.ContainerEffect.BlindUpDownBindedGhost=function(overlay,dur){var bupdownbinded=new YAHOO.widget.ContainerEffect(overlay,{attributes:{effect:"BlindUp",opts:{ghost:true,bind:"bottom"}},duration:dur},{attributes:{effect:"BlindDown",opts:{ghost:true,bind:"bottom"}},duration:dur},overlay.element,YAHOO.widget.Effects.Container);bupdownbinded.init();return bupdownbinded};YAHOO.widget.Effects.ContainerEffect.BlindUpDownGhost=function(overlay,dur){var bupdown=new YAHOO.widget.ContainerEffect(overlay,{attributes:{effect:"BlindDown",opts:{ghost:true}},duration:dur},{attributes:{effect:"BlindUp",opts:{ghost:true}},duration:dur},overlay.element,YAHOO.widget.Effects.Container);bupdown.init();return bupdown};YAHOO.widget.Effects.ContainerEffect.BlindLeftRightBindedGhost=function(overlay,dur){var bleftrightbinded=new YAHOO.widget.ContainerEffect(overlay,{attributes:{effect:"BlindLeft",opts:{bind:"right",ghost:true}},duration:dur},{attributes:{effect:"BlindRight",opts:{bind:"right",ghost:true}},duration:dur},overlay.element,YAHOO.widget.Effects.Container);bleftrightbinded.init();return bleftrightbinded};YAHOO.widget.Effects.ContainerEffect.BlindLeftRightGhost=function(overlay,dur){var bleftright=new YAHOO.widget.ContainerEffect(overlay,{attributes:{effect:"BlindRight",opts:{ghost:true}},duration:dur},{attributes:{effect:"BlindLeft",opts:{ghost:true}},duration:dur},overlay.element,YAHOO.widget.Effects.Container);bleftright.init();return bleftright};YAHOO.widget.Effects.ContainerEffect.BlindRightFoldGhost=function(overlay,dur){var brightfold=new YAHOO.widget.ContainerEffect(overlay,{attributes:{effect:"BlindRight",opts:{ghost:true}},duration:dur},{attributes:{effect:"Fold",opts:{ghost:true}},duration:dur},overlay.element,YAHOO.widget.Effects.Container);brightfold.init();return brightfold};YAHOO.widget.Effects.ContainerEffect.BlindLeftFoldGhost=function(overlay,dur){var bleftfold=new YAHOO.widget.ContainerEffect(overlay,{attributes:{effect:"BlindLeft",opts:{bind:"right",ghost:true}},duration:dur},{attributes:{effect:"Fold",opts:{ghost:true}},duration:dur},overlay.element,YAHOO.widget.Effects.Container);bleftfold.init();return bleftfold};YAHOO.widget.Effects.ContainerEffect.UnFoldFoldGhost=function(overlay,dur){var bleftfold=new YAHOO.widget.ContainerEffect(overlay,{attributes:{effect:"UnFold",opts:{ghost:true}},duration:dur},{attributes:{effect:"Fold",opts:{ghost:true}},duration:dur},overlay.element,YAHOO.widget.Effects.Container);bleftfold.init();return bleftfold};YAHOO.widget.Effects.ContainerEffect.BlindDownDropGhost=function(overlay,dur){var bdowndrop=new YAHOO.widget.ContainerEffect(overlay,{attributes:{effect:"BlindDown",opts:{ghost:true}},duration:dur},{attributes:{effect:"Drop"},duration:dur},overlay.element,YAHOO.widget.Effects.Container);bdowndrop.init();return bdowndrop};YAHOO.widget.Effects.ContainerEffect.BlindUpDropGhost=function(overlay,dur){var bupdrop=new YAHOO.widget.ContainerEffect(overlay,{attributes:{effect:"BlindUp",opts:{bind:"bottom",ghost:true}},duration:dur},{attributes:{effect:"Drop"},duration:dur},overlay.element,YAHOO.widget.Effects.Container);bupdrop.init();return bupdrop};YAHOO.widget.Effects.Container=function(el,attrs,dur){var opts={delay:true};if(attrs.opts){for(var i in attrs.opts){if(attrs.opts.hasOwnProperty(i)){opts[i]=attrs.opts[i]}}}var Func=eval("YAHOO.widget.Effects."+attrs.effect);var eff=new Func(el,opts);eff.onStart=eff.effect.onStart;eff.onTween=eff.effect.onTween;eff.onComplete=eff.onEffectComplete;return eff};YAHOO.widgetTools=function(){return{version:"0.8"}}();YAHOO.widgetTools.getHeight=function(el){var elm=yuiDomGet(el);var h=yuiDom.getStyle(elm,"height");if(h=="auto"){elm.style.zoom=1;h=elm.clientHeight+"px"}return h};
