var BBDN=function(){return{util:{},core:{}};}();var YAHOO=function(){return{util:{},widget:{},example:{},namespace:function(sNameSpace){if(!sNameSpace||!sNameSpace.length){return null;}var levels=sNameSpace.split(".");var currentNS=YAHOO;for(var i=(levels[0]=="YAHOO")?1:0;i<levels.length;++i){currentNS[levels[i]]=currentNS[levels[i]]||{};currentNS=currentNS[levels[i]];}return currentNS;}};}();YAHOO.util.Dom=new function(){this.get=function(el){if(typeof el=='string'){el=document.getElementById(el);}return el;};this.getStyle=function(el,property){var value=null;var dv=document.defaultView;el=this.get(el);if(property=='opacity'&&el.filters){value=1;try{value=el.filters.item('DXImageTransform.Microsoft.Alpha').opacity/100;}catch(e){try{value=el.filters.item('alpha').opacity/100;}catch(e){}}}else if(el.style[property]){value=el.style[property];}else if(el.currentStyle&&el.currentStyle[property]){value=el.currentStyle[property];}else if(dv&&dv.getComputedStyle){var converted='';for(i=0,len=property.length;i<len;++i){if(property.charAt(i)==property.charAt(i).toUpperCase()){converted=converted+'-'+property.charAt(i).toLowerCase();}else{converted=converted+property.charAt(i);}}if(dv.getComputedStyle(el,'').getPropertyValue(converted)){value=dv.getComputedStyle(el,'').getPropertyValue(converted);}}return value;};this.setStyle=function(el,property,val){el=this.get(el);switch(property){case'opacity':if(el.filters){el.style.filter='alpha(opacity='+val*100+')';if(!el.currentStyle.hasLayout){el.style.zoom=1;}}else{el.style.opacity=val;el.style['-moz-opacity']=val;el.style['-khtml-opacity']=val;}break;default:el.style[property]=val;}};this.getXY=function(el){el=this.get(el);if(el.parentNode===null||this.getStyle(el,'display')=='none'){return false;}var parent=null;var pos=[];var box;if(el.getBoundingClientRect){box=el.getBoundingClientRect();var scrollTop=document.documentElement.scrollTop||document.body.scrollTop;var scrollLeft=document.documentElement.scrollLeft||document.body.scrollLeft;return[box.left+scrollLeft,box.top+scrollTop];}else if(document.getBoxObjectFor){box=document.getBoxObjectFor(el);pos=[box.x,box.y];}else{pos=[el.offsetLeft,el.offsetTop];parent=el.offsetParent;if(parent!=el){while(parent){pos[0]+=parent.offsetLeft;pos[1]+=parent.offsetTop;parent=parent.offsetParent;}}var ua=navigator.userAgent.toLowerCase();if(ua.indexOf('opera')!=-1||(ua.indexOf('safari')!=-1&&this.getStyle(el,'position')=='absolute')){pos[1]-=document.body.offsetTop;}}if(el.parentNode){parent=el.parentNode;}else{parent=null;}while(parent&&parent.tagName!='BODY'&&parent.tagName!='HTML'){pos[0]-=parent.scrollLeft;pos[1]-=parent.scrollTop;if(parent.parentNode){parent=parent.parentNode;}else{parent=null;}}return pos;};this.getX=function(el){return this.getXY(el)[0];};this.getY=function(el){return this.getXY(el)[1];};this.setXY=function(el,pos,noRetry){el=this.get(el);var pageXY=YAHOO.util.Dom.getXY(el);if(pageXY===false){return false;}if(this.getStyle(el,'position')=='static'){this.setStyle(el,'position','relative');}var delta=[parseInt(YAHOO.util.Dom.getStyle(el,'left'),10),parseInt(YAHOO.util.Dom.getStyle(el,'top'),10)];if(isNaN(delta[0])){delta[0]=0;}if(isNaN(delta[1])){delta[1]=0;}if(pos[0]!==null){el.style.left=pos[0]-pageXY[0]+delta[0]+'px';}if(pos[1]!==null){el.style.top=pos[1]-pageXY[1]+delta[1]+'px';}var newXY=this.getXY(el);if(!noRetry&&(newXY[0]!=pos[0]||newXY[1]!=pos[1])){this.setXY(el,pos,true);}return true;};this.setX=function(el,x){return this.setXY(el,[x,null]);};this.setY=function(el,y){return this.setXY(el,[null,y]);};this.getRegion=function(el){el=this.get(el);return new YAHOO.util.Region.getRegion(el);};this.getClientWidth=function(){return(document.documentElement.offsetWidth||document.body.offsetWidth);};this.getClientHeight=function(){return(self.innerHeight||document.documentElement.clientHeight||document.body.clientHeight);};};YAHOO.util.Region=function(t,r,b,l){this.top=t;this.right=r;this.bottom=b;this.left=l;};YAHOO.util.Region.prototype.contains=function(region){return(region.left>=this.left&&region.right<=this.right&&region.top>=this.top&&region.bottom<=this.bottom);};YAHOO.util.Region.prototype.getArea=function(){return((this.bottom-this.top)*(this.right-this.left));};YAHOO.util.Region.prototype.intersect=function(region){var t=Math.max(this.top,region.top);var r=Math.min(this.right,region.right);var b=Math.min(this.bottom,region.bottom);var l=Math.max(this.left,region.left);if(b>=t&&r>=l){return new YAHOO.util.Region(t,r,b,l);}else{return null;}};YAHOO.util.Region.prototype.union=function(region){var t=Math.min(this.top,region.top);var r=Math.max(this.right,region.right);var b=Math.max(this.bottom,region.bottom);var l=Math.min(this.left,region.left);return new YAHOO.util.Region(t,r,b,l);};YAHOO.util.Region.prototype.toString=function(){return("Region {"+"  t: "+this.top+", r: "+this.right+", b: "+this.bottom+", l: "+this.left+"}");};YAHOO.util.Region.getRegion=function(el){var p=YAHOO.util.Dom.getXY(el);var t=p[1];var r=p[0]+el.offsetWidth;var b=p[1]+el.offsetHeight;var l=p[0];return new YAHOO.util.Region(t,r,b,l);};YAHOO.util.Point=function(x,y){this.x=x;this.y=y;this.top=y;this.right=x;this.bottom=y;this.left=x;};YAHOO.util.Point.prototype=new YAHOO.util.Region();YAHOO.util.CustomEvent=function(type,oScope){this.type=type;this.scope=oScope||window;this.subscribers=[];if(YAHOO.util["Event"]){YAHOO.util.Event.regCE(this);}};YAHOO.util.CustomEvent.prototype={subscribe:function(fn,obj,bOverride){this.subscribers.push(new YAHOO.util.Subscriber(fn,obj,bOverride));},unsubscribe:function(fn,obj){var found=false;for(var i=0;i<this.subscribers.length;++i){var s=this.subscribers[i];if(s&&s.contains(fn,obj)){this._delete(i);found=true;}}return found;},fire:function(){for(var i=0;i<this.subscribers.length;++i){var s=this.subscribers[i];if(s){var scope=(s.override)?s.obj:this.scope;s.fn.call(scope,this.type,arguments,s.obj);}}},unsubscribeAll:function(){for(var i=0;i<this.subscribers.length;++i){this._delete(i);}},_delete:function(index){var s=this.subscribers[index];if(s){delete s.fn;delete s.obj;}delete this.subscribers[index];}};YAHOO.util.Subscriber=function(fn,obj,bOverride){this.fn=fn;this.obj=obj||null;this.override=(bOverride);};YAHOO.util.Subscriber.prototype.contains=function(fn,obj){return(this.fn==fn&&this.obj==obj);};if(!YAHOO.util.Event){YAHOO.util.Event=function(){var loadComplete=false;var listeners=[];var delayedListeners=[];var unloadListeners=[];var customEvents=[];var legacyEvents=[];var legacyHandlers=[];return{EL:0,TYPE:1,FN:2,WFN:3,SCOPE:3,ADJ_SCOPE:4,isSafari:(navigator.userAgent.match(/safari/gi)),isIE:(!this.isSafari&&navigator.userAgent.match(/msie/gi)),addListener:function(el,sType,fn,oScope,bOverride){if(this._isValidCollection(el)){var ok=true;for(var i=0;i<el.length;++i){ok=(this.on(el[i],sType,fn,oScope,bOverride)&&ok);}return ok;}else if(typeof el=="string"){if(loadComplete){el=this.getEl(el);}else{delayedListeners[delayedListeners.length]=[el,sType,fn,oScope,bOverride];return true;}}if(!el){return false;}if("unload"==sType&&oScope!==this){unloadListeners[unloadListeners.length]=[el,sType,fn,oScope,bOverride];return true;}var scope=(bOverride)?oScope:el;var wrappedFn=function(e){return fn.call(scope,YAHOO.util.Event.getEvent(e),oScope);};var li=[el,sType,fn,wrappedFn,scope];var index=listeners.length;listeners[index]=li;if(this.useLegacyEvent(el,sType)){var legacyIndex=this.getLegacyIndex(el,sType);if(legacyIndex==-1){legacyIndex=legacyEvents.length;legacyEvents[legacyIndex]=[el,sType,el["on"+sType]];legacyHandlers[legacyIndex]=[];el["on"+sType]=function(e){YAHOO.util.Event.fireLegacyEvent(YAHOO.util.Event.getEvent(e),legacyIndex);};}legacyHandlers[legacyIndex].push(index);}else if(el.addEventListener){el.addEventListener(sType,wrappedFn,false);}else if(el.attachEvent){el.attachEvent("on"+sType,wrappedFn);}return true;},fireLegacyEvent:function(e,legacyIndex){var ok=true;var le=legacyHandlers[legacyIndex];for(i=0;i<le.length;++i){var index=le[i];if(index){var li=listeners[index];var scope=li[this.ADJ_SCOPE];var ret=li[this.WFN].call(scope,e);ok=(ok&&ret);}}return ok;},getLegacyIndex:function(el,sType){for(var i=0;i<legacyEvents.length;++i){var le=legacyEvents[i];if(le&&le[0]==el&&le[1]==sType){return i;}}return-1;},useLegacyEvent:function(el,sType){return((!el.addEventListener&&!el.attachEvent)||(sType=="click"&&this.isSafari));},removeListener:function(el,sType,fn){if(typeof el=="string"){el=this.getEl(el);}else if(this._isValidCollection(el)){var ok=true;for(var i=0;i<el.length;++i){ok=(this.removeListener(el[i],sType,fn)&&ok);}return ok;}var cacheItem=null;var index=this._getCacheIndex(el,sType,fn);if(index>=0){cacheItem=listeners[index];}if(!el||!cacheItem){return false;}if(el.removeEventListener){el.removeEventListener(sType,cacheItem[this.WFN],false);}else if(el.detachEvent){el.detachEvent("on"+sType,cacheItem[this.WFN]);}delete listeners[index][this.WFN];delete listeners[index][this.FN];delete listeners[index];return true;},getTarget:function(ev,resolveTextNode){var t=ev.target||ev.srcElement;if(resolveTextNode&&t&&"#text"==t.nodeName){return t.parentNode;}else{return t;}},getPageX:function(ev){var x=ev.pageX;if(!x&&0!==x){x=ev.clientX||0;if(this.isIE){x+=this._getScrollLeft();}}return x;},getPageY:function(ev){var y=ev.pageY;if(!y&&0!==y){y=ev.clientY||0;if(this.isIE){y+=this._getScrollTop();}}return y;},getRelatedTarget:function(ev){var t=ev.relatedTarget;if(!t){if(ev.type=="mouseout"){t=ev.toElement;}else if(ev.type=="mouseover"){t=ev.fromElement;}}return t;},getTime:function(ev){if(!ev.time){var t=new Date().getTime();try{ev.time=t;}catch(e){return t;}}return ev.time;},stopEvent:function(ev){this.stopPropagation(ev);this.preventDefault(ev);},stopPropagation:function(ev){if(ev.stopPropagation){ev.stopPropagation();}else{ev.cancelBubble=true;}},preventDefault:function(ev){if(ev.preventDefault){ev.preventDefault();}else{ev.returnValue=false;}},getEvent:function(e){var ev=e||window.event;if(!ev){var c=this.getEvent.caller;while(c){ev=c.arguments[0];if(ev&&Event==ev.constructor){break;}c=c.caller;}}return ev;},getCharCode:function(ev){return ev.charCode||(ev.type=="keypress")?ev.keyCode:0;},_getCacheIndex:function(el,sType,fn){for(var i=0;i<listeners.length;++i){var li=listeners[i];if(li&&li[this.FN]==fn&&li[this.EL]==el&&li[this.TYPE]==sType){return i;}}return-1;},_isValidCollection:function(o){return(o&&o.length&&typeof o!="string"&&!o.tagName&&!o.alert&&typeof o[0]!="undefined");},elCache:{},getEl:function(id){return document.getElementById(id);},clearCache:function(){for(i in this.elCache){delete this.elCache[i];}},regCE:function(ce){customEvents.push(ce);},_load:function(e){loadComplete=true;},_tryPreloadAttach:function(){var tryAgain=!loadComplete;for(var i=0;i<delayedListeners.length;++i){var d=delayedListeners[i];if(d){var el=this.getEl(d[this.EL]);if(el){this.on(el,d[this.TYPE],d[this.FN],d[this.SCOPE],d[this.ADJ_SCOPE]);delete delayedListeners[i];}}}if(tryAgain){setTimeout("YAHOO.util.Event._tryPreloadAttach()",50);}},_unload:function(e,me){for(var i=0;i<unloadListeners.length;++i){var l=unloadListeners[i];if(l){var scope=(l[this.ADJ_SCOPE])?l[this.SCOPE]:window;l[this.FN].call(scope,this.getEvent(e),l[this.SCOPE]);}}if(listeners&&listeners.length>0){for(i=0;i<listeners.length;++i){l=listeners[i];if(l){this.removeListener(l[this.EL],l[this.TYPE],l[this.FN]);}}this.clearCache();}for(i=0;i<customEvents.length;++i){customEvents[i].unsubscribeAll();delete customEvents[i];}for(i=0;i<legacyEvents.length;++i){delete legacyEvents[i][0];delete legacyEvents[i];}},_getScrollLeft:function(){return this._getScroll()[1];},_getScrollTop:function(){return this._getScroll()[0];},_getScroll:function(){var dd=document.documentElement;db=document.body;if(dd&&dd.scrollTop){return[dd.scrollTop,dd.scrollLeft];}else if(db){return[db.scrollTop,db.scrollLeft];}else{return[0,0];}}};}();YAHOO.util.Event.on=YAHOO.util.Event.addListener;if(document&&document.body){YAHOO.util.Event._load();}else{YAHOO.util.Event.on(window,"load",YAHOO.util.Event._load,YAHOO.util.Event,true);}YAHOO.util.Event.on(window,"unload",YAHOO.util.Event._unload,YAHOO.util.Event,true);YAHOO.util.Event._tryPreloadAttach();}YAHOO.util.Anim=function(el,attributes,duration,method){if(el){this.init(el,attributes,duration,method);}};YAHOO.util.Anim.prototype={doMethod:function(attribute,start,end){return this.method(this.currentFrame,start,end-start,this.totalFrames);},setAttribute:function(attribute,val,unit){YAHOO.util.Dom.setStyle(this.getEl(),attribute,val+unit);},getAttribute:function(attribute){return parseFloat(YAHOO.util.Dom.getStyle(this.getEl(),attribute));},defaultUnits:{opacity:' '},defaultUnit:'px',init:function(el,attributes,duration,method){var isAnimated=false;var startTime=null;var endTime=null;var actualFrames=0;var defaultValues={};el=YAHOO.util.Dom.get(el);this.attributes=attributes||{};this.duration=duration||1;this.method=method||YAHOO.util.Easing.easeNone;this.useSeconds=true;this.currentFrame=0;this.totalFrames=YAHOO.util.AnimMgr.fps;this.getEl=function(){return el;};this.setDefault=function(attribute,val){if(val=='auto'){switch(attribute){case'width':val=el.clientWidth||el.offsetWidth;break;case'height':val=el.clientHeight||el.offsetHeight;break;case'left':if(YAHOO.util.Dom.getStyle(el,'position')=='absolute'){val=el.offsetLeft;}else{val=0;}break;case'top':if(YAHOO.util.Dom.getStyle(el,'position')=='absolute'){val=el.offsetTop;}else{val=0;}break;default:val=0;}}defaultValues[attribute]=val;};this.getDefault=function(attribute){return defaultValues[attribute];};this.isAnimated=function(){return isAnimated;};this.getStartTime=function(){return startTime;};this.animate=function(){this.onStart.fire();this._onStart.fire();this.totalFrames=(this.useSeconds)?Math.ceil(YAHOO.util.AnimMgr.fps*this.duration):this.duration;YAHOO.util.AnimMgr.registerElement(this);var attributes=this.attributes;var el=this.getEl();var val;for(var attribute in attributes){val=this.getAttribute(attribute);this.setDefault(attribute,val);}isAnimated=true;actualFrames=0;startTime=new Date();};this.stop=function(){this.currentFrame=0;endTime=new Date();var data={time:endTime,duration:endTime-startTime,frames:actualFrames,fps:actualFrames/this.duration};isAnimated=false;actualFrames=0;this.onComplete.fire(data);};var onTween=function(){var start;var end=null;var val;var unit;var attributes=this['attributes'];for(var attribute in attributes){unit=attributes[attribute]['unit']||this.defaultUnits[attribute]||this.defaultUnit;if(typeof attributes[attribute]['from']!='undefined'){start=attributes[attribute]['from'];}else{start=this.getDefault(attribute);}if(typeof attributes[attribute]['to']!='undefined'){end=attributes[attribute]['to'];}else if(typeof attributes[attribute]['by']!='undefined'){end=start+attributes[attribute]['by'];}if(end!==null&&typeof end!='undefined'){val=this.doMethod(attribute,start,end);if((attribute=='width'||attribute=='height'||attribute=='opacity')&&val<0){val=0;}this.setAttribute(attribute,val,unit);}}actualFrames+=1;};this._onStart=new YAHOO.util.CustomEvent('_onStart',this);this.onStart=new YAHOO.util.CustomEvent('start',this);this.onTween=new YAHOO.util.CustomEvent('tween',this);this._onTween=new YAHOO.util.CustomEvent('_tween',this);this.onComplete=new YAHOO.util.CustomEvent('complete',this);this._onTween.subscribe(onTween);}};YAHOO.util.AnimMgr=new function(){var thread=null;var queue=[];var tweenCount=0;this.fps=200;this.delay=1;this.registerElement=function(tween){if(tween.isAnimated()){return false;}queue[queue.length]=tween;tweenCount+=1;this.start();};this.start=function(){if(thread===null){thread=setInterval(this.run,this.delay);}};this.stop=function(tween){if(!tween){clearInterval(thread);for(var i=0,len=queue.length;i<len;++i){if(queue[i].isAnimated()){queue[i].stop();}}queue=[];thread=null;tweenCount=0;}else{tween.stop();tweenCount-=1;if(tweenCount<=0){this.stop();}}};this.run=function(){for(var i=0,len=queue.length;i<len;++i){var tween=queue[i];if(!tween||!tween.isAnimated()){continue;}if(tween.currentFrame<tween.totalFrames||tween.totalFrames===null){tween.currentFrame+=1;if(tween.useSeconds){correctFrame(tween);}tween.onTween.fire();tween._onTween.fire();}else{YAHOO.util.AnimMgr.stop(tween);}}};var correctFrame=function(tween){var frames=tween.totalFrames;var frame=tween.currentFrame;var expected=(tween.currentFrame*tween.duration*1000/tween.totalFrames);var elapsed=(new Date()-tween.getStartTime());var tweak=0;if(elapsed<tween.duration*1000){tweak=Math.round((elapsed/expected-1)*tween.currentFrame);}else{tweak=frames-(frame+1);}if(tweak>0&&isFinite(tweak)){if(tween.currentFrame+tweak>=frames){tweak=frames-(frame+1);}tween.currentFrame+=tweak;}};};YAHOO.util.Bezier=new function(){this.getPosition=function(points,t){var n=points.length;var tmp=[];for(var i=0;i<n;++i){tmp[i]=[points[i][0],points[i][1]];}for(var j=1;j<n;++j){for(i=0;i<n-j;++i){tmp[i][0]=(1-t)*tmp[i][0]+t*tmp[parseInt(i+1,10)][0];tmp[i][1]=(1-t)*tmp[i][1]+t*tmp[parseInt(i+1,10)][1];}}return[tmp[0][0],tmp[0][1]];};};YAHOO.util.Easing=new function(){this.easeNone=function(t,b,c,d){return b+c*(t/=d);};this.easeIn=function(t,b,c,d){return b+c*((t/=d)*t*t);};this.easeOut=function(t,b,c,d){var ts=(t/=d)*t;var tc=ts*t;return b+c*(tc+-3*ts+3*t);};this.easeBoth=function(t,b,c,d){var ts=(t/=d)*t;var tc=ts*t;return b+c*(-2*tc+3*ts);};this.backIn=function(t,b,c,d){var ts=(t/=d)*t;var tc=ts*t;return b+c*(-3.4005*tc*ts+10.2*ts*ts+-6.2*tc+0.4*ts);};this.backOut=function(t,b,c,d){var ts=(t/=d)*t;var tc=ts*t;return b+c*(8.292*tc*ts+-21.88*ts*ts+22.08*tc+-12.69*ts+5.1975*t);};this.backBoth=function(t,b,c,d){var ts=(t/=d)*t;var tc=ts*t;return b+c*(0.402*tc*ts+-2.1525*ts*ts+-3.2*tc+8*ts+-2.05*t);};};YAHOO.util.Motion=function(el,attributes,duration,method){if(el){this.initMotion(el,attributes,duration,method);}};YAHOO.util.Motion.prototype=new YAHOO.util.Anim();YAHOO.util.Motion.prototype.defaultUnits.points='px';YAHOO.util.Motion.prototype.doMethod=function(attribute,start,end){var val=null;if(attribute=='points'){var translatedPoints=this.getTranslatedPoints();var t=this.method(this.currentFrame,0,100,this.totalFrames)/100;if(translatedPoints){val=YAHOO.util.Bezier.getPosition(translatedPoints,t);}}else{val=this.method(this.currentFrame,start,end-start,this.totalFrames);}return val;};YAHOO.util.Motion.prototype.getAttribute=function(attribute){var val=null;if(attribute=='points'){val=[this.getAttribute('left'),this.getAttribute('top')];if(isNaN(val[0])){val[0]=0;}if(isNaN(val[1])){val[1]=0;}}else{val=parseFloat(YAHOO.util.Dom.getStyle(this.getEl(),attribute));}return val;};YAHOO.util.Motion.prototype.setAttribute=function(attribute,val,unit){if(attribute=='points'){YAHOO.util.Dom.setStyle(this.getEl(),'left',val[0]+unit);YAHOO.util.Dom.setStyle(this.getEl(),'top',val[1]+unit);}else{YAHOO.util.Dom.setStyle(this.getEl(),attribute,val+unit);}};YAHOO.util.Motion.prototype.initMotion=function(el,attributes,duration,method){YAHOO.util.Anim.call(this,el,attributes,duration,method);attributes=attributes||{};attributes.points=attributes.points||{};attributes.points.control=attributes.points.control||[];this.attributes=attributes;var start;var end=null;var translatedPoints=null;this.getTranslatedPoints=function(){return translatedPoints;};var translateValues=function(val,self){var pageXY=YAHOO.util.Dom.getXY(self.getEl());val=[val[0]-pageXY[0]+start[0],val[1]-pageXY[1]+start[1]];return val;};var onStart=function(){start=this.getAttribute('points');var attributes=this.attributes;var control=attributes['points']['control']||[];if(control.length>0&&control[0].constructor!=Array){control=[control];}if(YAHOO.util.Dom.getStyle(this.getEl(),'position')=='static'){YAHOO.util.Dom.setStyle(this.getEl(),'position','relative');}if(typeof attributes['points']['from']!='undefined'){YAHOO.util.Dom.setXY(this.getEl(),attributes['points']['from']);start=this.getAttribute('points');}else if((start[0]===0||start[1]===0)){YAHOO.util.Dom.setXY(this.getEl(),YAHOO.util.Dom.getXY(this.getEl()));start=this.getAttribute('points');}var i,len;if(typeof attributes['points']['to']!='undefined'){end=translateValues(attributes['points']['to'],this);for(i=0,len=control.length;i<len;++i){control[i]=translateValues(control[i],this);}}else if(typeof attributes['points']['by']!='undefined'){end=[start[0]+attributes['points']['by'][0],start[1]+attributes['points']['by'][1]];for(i=0,len=control.length;i<len;++i){control[i]=[start[0]+control[i][0],start[1]+control[i][1]];}}if(end){translatedPoints=[start];if(control.length>0){translatedPoints=translatedPoints.concat(control);}translatedPoints[translatedPoints.length]=end;}};this._onStart.subscribe(onStart);};YAHOO.util.Scroll=function(el,attributes,duration,method){if(el){YAHOO.util.Anim.call(this,el,attributes,duration,method);}};YAHOO.util.Scroll.prototype=new YAHOO.util.Anim();YAHOO.util.Scroll.prototype.defaultUnits.scroll=' ';YAHOO.util.Scroll.prototype.doMethod=function(attribute,start,end){var val=null;if(attribute=='scroll'){val=[this.method(this.currentFrame,start[0],end[0]-start[0],this.totalFrames),this.method(this.currentFrame,start[1],end[1]-start[1],this.totalFrames)];}else{val=this.method(this.currentFrame,start,end-start,this.totalFrames);}return val;};YAHOO.util.Scroll.prototype.getAttribute=function(attribute){var val=null;var el=this.getEl();if(attribute=='scroll'){val=[el.scrollLeft,el.scrollTop];}else{val=parseFloat(YAHOO.util.Dom.getStyle(el,attribute));}return val;};YAHOO.util.Scroll.prototype.setAttribute=function(attribute,val,unit){var el=this.getEl();if(attribute=='scroll'){el.scrollLeft=val[0];el.scrollTop=val[1];}else{YAHOO.util.Dom.setStyle(el,attribute,val+unit);}};BBDN.util.BrowserSniff=new function(){var agt=navigator.userAgent.toLowerCase();var appVer=navigator.appVersion.toLowerCase();var iePos=appVer.indexOf('msie');this.is_opera=(agt.indexOf("opera")!=-1);this.is_mac=(agt.indexOf("mac")!=-1);this.is_konq=(agt.indexOf('konqueror')!=-1);var is_getElementById=(document.getElementById)?"true":"false";var is_getElementsByTagName=(document.getElementsByTagName)?"true":"false";var is_documentElement=(document.documentElement)?"true":"false";this.is_safari=((agt.indexOf('safari')!=-1)&&(agt.indexOf('mac')!=-1))?true:false;this.is_khtml=(this.is_safari||this.is_konq);this.is_gecko=((!this.is_khtml)&&(navigator.product)&&(navigator.product.toLowerCase()=="gecko"))?true:false;this.is_fb=((agt.indexOf('mozilla/5')!=-1)&&(agt.indexOf('spoofer')==-1)&&(agt.indexOf('compatible')==-1)&&(agt.indexOf('opera')==-1)&&(agt.indexOf('webtv')==-1)&&(agt.indexOf('hotjava')==-1)&&(this.is_gecko)&&(navigator.vendor=="Firebird"));this.is_fx=((agt.indexOf('mozilla/5')!=-1)&&(agt.indexOf('spoofer')==-1)&&(agt.indexOf('compatible')==-1)&&(agt.indexOf('opera')==-1)&&(agt.indexOf('webtv')==-1)&&(agt.indexOf('hotjava')==-1)&&(this.is_gecko)&&((navigator.vendor=="Firefox")||(agt.indexOf('firefox')!=-1)));this.is_moz=((agt.indexOf('mozilla/5')!=-1)&&(agt.indexOf('spoofer')==-1)&&(agt.indexOf('compatible')==-1)&&(agt.indexOf('opera')==-1)&&(agt.indexOf('webtv')==-1)&&(agt.indexOf('hotjava')==-1)&&(this.is_gecko)&&(!this.is_fb)&&(!this.is_fx)&&((navigator.vendor=="")||(navigator.vendor=="Mozilla")||(navigator.vendor=="Debian")));this.is_nav=((agt.indexOf('mozilla')!=-1)&&(agt.indexOf('spoofer')==-1)&&(agt.indexOf('compatible')==-1)&&(agt.indexOf('opera')==-1)&&(agt.indexOf('webtv')==-1)&&(agt.indexOf('hotjava')==-1)&&(!this.is_khtml)&&(!(this.is_moz))&&(!this.is_fb)&&(!this.is_fx));this.is_ie=((iePos!=-1)&&(!this.is_opera)&&(!this.is_khtml));};BBDN.util.Dom=new function(){this.verticalScrollBarVisible=function(){return(document.documentElement.clientHeight<document.documentElement.scrollHeight);};this.horizontalScrollBarVisible=function(){return(document.documentElement.clientWidth<document.documentElement.scrollWidth);};this.bothScrollBarsVisible=function(){return(this.verticalScrollBarVisible()&&this.horizontalScrollBarVisible());};this.getTotalWidth=function(){var width;if(BBDN.util.BrowserSniff.is_fx||BBDN.util.BrowserSniff.is_nav)if(this.verticalScrollBarVisible()&&!this.bothScrollBarsVisible())return document.documentElement.clientWidth;this.getInnerWidth()>this.getScrollWidth()?width=this.getInnerWidth():width=this.getScrollWidth();return width;};this.getTotalHeight=function(){var height;if(BBDN.util.BrowserSniff.is_fx||BBDN.util.BrowserSniff.is_nav)if(this.horizontalScrollBarVisible()&&!this.bothScrollBarsVisible())return document.documentElement.clientHeight;this.getInnerHeight()>this.getScrollHeight()?height=this.getInnerHeight():height=this.getScrollHeight();return height;};this.getInnerWidth=function(){var x;if(self.innerWidth)x=self.innerWidth;else if(document.documentElement&&document.documentElement.clientWidth)x=document.documentElement.clientWidth;else if(document.body)x=document.body.clientWidth;return x;};this.getInnerHeight=function(){var y;if(self.innerHeight)y=self.innerHeight;else if(document.documentElement&&document.documentElement.clientHeight)y=document.documentElement.clientHeight;else if(document.body)y=document.body.clientHeight;return y;};this.getScrollOffsetWidth=function(){var x;if(self.pageYOffset)x=self.pageXOffset;else if(document.documentElement&&document.documentElement.scrollTop)x=document.documentElement.scrollLeft;else if(document.body)x=document.body.scrollLeft;return x;};this.getScrollOffsetHeight=function(){var y;if(self.pageYOffset)y=self.pageYOffset;else if(document.documentElement&&document.documentElement.scrollTop)y=document.documentElement.scrollTop;else if(document.body)y=document.body.scrollTop;return y;};this.getScrollWidth=function(){var x=0;if(document.documentElement&&document.documentElement.scrollWidth)x=document.documentElement.scrollWidth;else if(document.body)x=document.body.scrollWidth;return x;};this.getScrollHeight=function(){var y=0;if(document.documentElement&&document.documentElement.scrollHeight)y=document.documentElement.scrollHeight;else if(document.body)y=document.body.scrollHeight;return y;};this.getBodyWidth=function(){var x;var test1=document.body.scrollWidth;var test2=document.body.offsetWidth;if(test1>test2)x=document.body.scrollWidth;else x=document.body.offsetWidth;return x;};this.getBodyHeight=function(){var y;var test1=document.body.scrollHeight;var test2=document.body.offsetHeight;if(test1>test2)y=document.body.scrollHeight;else y=document.body.offsetHeight;return y;};this.hideSelects=function(){if(BBDN.util.BrowserSniff.is_ie){var selects=[];selects=document.all.tags("SELECT");for(var i=0;i<selects.length;i++)selects[i].runtimeStyle.visibility="hidden";}};this.showSelects=function(){if(BBDN.util.BrowserSniff.is_ie){var selects=[];selects=document.all.tags("SELECT");for(var i=0;i<selects.length;i++)selects[i].runtimeStyle.visibility="";}};this.setOpacity=function(element,opacity){element.style.filter="alpha(opacity:"+opacity+")";element.style.KHTMLOpacity=opacity/100;element.style.MozOpacity=opacity/100;element.style.opacity=opacity/100;};this.documentLoaded=function(){if(document.readyState!="complete")return false;return true;};this.checkValidators=function(){try{if(Page_IsValid!=null){if(typeof(Page_Validators)=="undefined")return true;var validated=Page_ClientValidate();return Page_IsValid;}return true;}catch(e){return true;}};this.$=function(){var elements=new Array();for(var i=0;i<arguments.length;i++){var element=arguments[i];if(typeof element=='string')element=document.getElementById(element);if(arguments.length==1)return element;elements.push(element);}return elements;};this.getAbsoluteLeft=function(o){var oLeft=o.offsetLeft;var oParent;while(o.offsetParent!==null){oParent=o.offsetParent;oLeft+=oParent.offsetLeft;o=oParent;}return oLeft;};this.getAbsoluteTop=function(o){var oTop=o.offsetTop;var oParent;while(o.offsetParent!=null){oParent=o.offsetParent;oTop+=oParent.offsetTop;o=oParent;}return oTop;};this.getElementSize=function(obj){var w=obj.offsetWidth;var h=obj.offsetHeight;return{width:w,height:h};};};BBDN.util.Yahoo=new function(){this.getEasingFromString=function(easing){switch(easing){case"easeout":return YAHOO.util.Easing.easeOut;case"easeboth":return YAHOO.util.Easing.easeBoth;case"easein":return YAHOO.util.Easing.easeIn;case"easenone":return YAHOO.util.Easing.easeNone;case"backboth":return YAHOO.util.Easing.backBoth;case"backin":return YAHOO.util.Easing.backIn;case"backout":return YAHOO.util.Easing.backOut;default:return YAHOO.util.Easing.easeOut;}}};// BusyBoxDotNet. Web control library for ASP.NET to enhance user experience.
// Copyright (C) 2006  Simone Busoli, simone_b@tin.it
BBDN.core.BusyBox=function(id,title,text,width,height,imageUrl,layout,overlay,immediatelyOverlay,keepOverlay,overlayColor,overlayOpacity,opacity,showProgressBar,progressPercent,borderWidth,borderColor,borderStyle,backColor,textWeight,textStyle,textSize,textFamily,titleWeight,titleStyle,titleSize,titleFamily,textColor,titleColor,fadeInDuration,fadeInEasing,fadeOnMouseOver,fadeOnMouseOverOpacity,position,keepPosition,slideDuration,slideEasing,roundCorners,showOnLoad,anchorControlID,dockPosition){var self=this;this.ID=id;this.Title=title;this.Text=text;if(width!=="")this.Width=width;else this.Width="300px";if(height!=="")this.Height=height;else this.Height="60px";this.ImageUrl=imageUrl;this.Layout=layout;this.Overlay=overlay;this.ImmediatelyOverlay=immediatelyOverlay;this.KeepOverlay=keepOverlay;if(overlayColor===""){if(document.body.currentStyle)this.OverlayColor=document.body.currentStyle.backgroundColor;if(document.defaultView)this.OverlayColor=document.defaultView.getComputedStyle(document.body,"").getPropertyValue("background-color");if(this.OverlayColor=="transparent")this.OverlayColor="#fff";}else{this.OverlayColor=overlayColor;}this.OverlayOpacity=overlayOpacity;this.Opacity=opacity;if(borderWidth!=="")this.BorderWidth=borderWidth;else this.BorderWidth="1px";if(borderColor!=="")this.BorderColor=borderColor;else this.BorderColor="black";if(borderStyle!=="NotSet")this.BorderStyle=borderStyle;else this.BorderStyle="solid";if(backColor==="")this.BackColor="#ffffff";else this.BackColor=backColor;this.TextWeight=textWeight;this.TextStyle=textStyle;this.TextSize=textSize;this.TextFamily=textFamily;this.TitleWeight=titleWeight;this.TitleStyle=titleStyle;this.TitleSize=titleSize;this.TitleFamily=titleFamily;if(textColor!=="")this.TextColor=textColor;else this.TextColor="black";if(titleColor!=="")this.TitleColor=titleColor;else this.TitleColor="black";this.FadeInDuration=fadeInDuration;this.FadeOnMouseOver=fadeOnMouseOver;this.FadeOnMouseOverOpacity=fadeOnMouseOverOpacity;this.FinishedFading=false;this.Visible=false;this.Position=position;this.KeepPosition=keepPosition;this.SlideDuration=slideDuration;this.SlideEasing=BBDN.util.Yahoo.getEasingFromString(slideEasing);this.FadeInEasing=BBDN.util.Yahoo.getEasingFromString(fadeInEasing);this.RoundCorners=roundCorners;this.ShowOnLoad=showOnLoad;this.AnchorControlID=anchorControlID;this.DockPosition=dockPosition;this.Show=function(){if(!BBDN.util.Dom.checkValidators())return;this.container=BBDN.util.Dom.$(this.ID+"Container");create();BBDN.util.Dom.hideSelects();if(this.KeepPosition&&this.Position!=="dock"){YAHOO.util.Event.addListener(window,"resize",slideToPosition,this,true);YAHOO.util.Event.addListener(window,"scroll",slideToPosition,this,true);YAHOO.util.Event.addListener(window,"DOMMouseScroll",slideToPosition,this,true);}if(this.Overlay&&!this.ImmediatelyOverlay&&!this.ShowOnLoad){this.CreateOverlay();}if(this.FadeOnMouseOver){YAHOO.util.Event.addListener(this.box,"mouseover",makeTransparent,this,true);YAHOO.util.Event.addListener(this.box,"mouseout",resetTransparency,this,true);}};this.Close=function(){if(this.Overlay&&!this.KeepOverlay&&!this.ShowOnLoad){var overlay=BBDN.util.Dom.$(this.ID+"Overlay");if(overlay!==null)document.body.removeChild(overlay);}this.Visible=false;if(this.box!==null){if(this.ShowOnLoad){this.container.removeChild(this.box);window.clearInterval(this.hideSelectsTimer);BBDN.util.Dom.showSelects();}else document.body.removeChild(this.box);}BBDN.util.Dom.showSelects();};this.CreateOverlay=function(){var d=document;var overlay=d.createElement("div");document.body.appendChild(overlay);overlay.id=this.ID+"Overlay";overlay.style.position="absolute";overlay.style.top="0px";overlay.style.left="0px";overlay.style.zIndex="9998";overlay.style.width=BBDN.util.Dom.getTotalWidth()+"px";overlay.style.height=BBDN.util.Dom.getTotalHeight()+"px";if(BBDN.util.BrowserSniff.is_opera){overlay.style.backgroundImage="url(BusyBoxDotNet.axd?res=maskBG.png)";overlay.style.backgroundRepeat="repeat";}else{overlay.style.backgroundColor=this.OverlayColor;BBDN.util.Dom.setOpacity(overlay,this.OverlayOpacity);}};function create(){if(BBDN.util.Dom.$(self.ID))self.Close();self.box=document.createElement("div");if(self.ShowOnLoad){self.container.appendChild(self.box);self.hideSelectsTimer=window.setInterval(BBDN.util.Dom.hideSelects,100);}else document.body.appendChild(self.box);self.box.style.display="none";self.box.id=self.ID;self.box.style.position="absolute";self.box.style.zIndex="9999";self.box.style.borderWidth=self.BorderWidth;self.box.style.borderColor=self.BorderColor;self.box.style.borderStyle=self.BorderStyle;self.box.style.backgroundColor=self.BackColor;setTemplate();self.box.style.display="block";self.Visible=true;setPosition();fadeIn();}function setPosition(){if(self.Visible){var fullHeight=BBDN.util.Dom.getInnerHeight();var fullWidth=BBDN.util.Dom.getInnerWidth();var scTop=document.documentElement.scrollTop?document.documentElement.scrollTop:document.body.scrollTop;var scrollTop=parseInt(scTop,10);var scLeft=document.documentElement.scrollLeft?document.documentElement.scrollLeft:document.body.scrollLeft;var scrollLeft=parseInt(scLeft,10);if(self.ShowOnLoad){scrollTop=scrollTop-BBDN.util.Dom.getAbsoluteTop(self.container.offsetParent);scrollLeft=scrollLeft-BBDN.util.Dom.getAbsoluteLeft(self.container.offsetParent);}switch(self.Position){case"center":self.box.style.top=(scrollTop+((fullHeight-self.box.offsetHeight)/2))+"px";self.box.style.left=(scrollLeft+((fullWidth-self.box.offsetWidth)/2))+"px";break;case"centertop":self.box.style.top=(scrollTop+200)+"px";self.box.style.left=(scrollLeft+((fullWidth-self.box.offsetWidth)/2))+"px";break;case"righttop":self.box.style.top=(scrollTop+10)+"px";self.box.style.left=(scrollLeft+fullWidth-self.box.offsetWidth-20)+"px";break;case"lefttop":self.box.style.top=(scrollTop+10)+"px";self.box.style.left=(scrollLeft+10)+"px";break;case"leftbottom":self.box.style.top=(scrollTop+fullHeight-self.box.offsetHeight-20)+"px";self.box.style.left=(scrollLeft+10)+"px";break;case"rightbottom":self.box.style.top=(scrollTop+fullHeight-self.box.offsetHeight-20)+"px";self.box.style.left=(scrollLeft+fullWidth-self.box.offsetWidth-20)+"px";break;case"dock":var size=BBDN.util.Dom.getElementSize(self.box);var windowsize=BBDN.util.Dom.getElementSize(document.body);var parentelementposition=YAHOO.util.Dom.getXY(BBDN.util.Dom.$(self.AnchorControlID));var parentelementsize=BBDN.util.Dom.getElementSize(BBDN.util.Dom.$(self.AnchorControlID));if(self.DockPosition==="auto"){if((windowsize.width-parentelementposition[0]-parentelementsize.width-size.width)>0&&(parentelementposition[1]+parentelementsize.height/2-size.height/2)>0)self.DockPosition="right";else if((parentelementposition[0]-size.width)>0&&(parentelementposition[1]+parentelementsize.height/2-size.height/2)>0)self.DockPosition="left";else if((parentelementposition[0]+parentelementsize.width/2-size.width/2)>0&&(parentelementposition[1]-size.height)>0)self.DockPosition="top";else self.DockPosition="bottom";}switch(self.DockPosition){case"right":self.box.style.left=parentelementposition[0]+parentelementsize.width+"px";self.box.style.top=parentelementposition[1]+parentelementsize.height/2-size.height/2+"px";break;case"left":self.box.style.left=parentelementposition[0]-size.width+"px";self.box.style.top=parentelementposition[1]+parentelementsize.height/2-size.height/2+"px";break;case"top":self.box.style.left=parentelementposition[0]+parentelementsize.width/2-size.width/2+"px";self.box.style.top=parentelementposition[1]-size.height+"px";break;case"bottom":self.box.style.left=parentelementposition[0]+parentelementsize.width/2-size.width/2+"px";self.box.style.top=parentelementposition[1]+parentelementsize.height+"px";break;}break;}}}function slideToPosition(){if(self.Visible){var fullHeight=BBDN.util.Dom.getInnerHeight();var fullWidth=BBDN.util.Dom.getInnerWidth();var scTop=document.documentElement.scrollTop?document.documentElement.scrollTop:document.body.scrollTop;var scrollTop=parseInt(scTop,10);var scLeft=document.documentElement.scrollLeft?document.documentElement.scrollLeft:document.body.scrollLeft;var scrollLeft=parseInt(scLeft,10);if(self.ShowOnLoad){scrollTop=scrollTop-BBDN.util.Dom.getAbsoluteTop(self.container.offsetParent);scrollLeft=scrollLeft-BBDN.util.Dom.getAbsoluteLeft(self.container.offsetParent);}var xPos,yPos;switch(self.Position){case"center":yPos=scrollTop+((fullHeight-self.box.offsetHeight)/2);xPos=scrollLeft+((fullWidth-self.box.offsetWidth)/2);break;case"centertop":yPos=scrollTop+200;xPos=scrollLeft+((fullWidth-self.box.offsetWidth)/2);break;case"righttop":yPos=scrollTop+10;xPos=scrollLeft+fullWidth-self.box.offsetWidth-20;break;case"lefttop":yPos=scrollTop+10;xPos=scrollLeft+10;break;case"leftbottom":yPos=scrollTop+fullHeight-self.box.offsetHeight-20;xPos=scrollLeft+10;break;case"rightbottom":yPos=scrollTop+fullHeight-self.box.offsetHeight-20;xPos=scrollLeft+fullWidth-self.box.offsetWidth-20;break;}var attributes={top:{to:yPos},left:{to:xPos}};var anim=new YAHOO.util.Anim(self.ID,attributes,(self.SlideDuration/1000),self.SlideEasing);anim.animate();}}function fadeIn(){if(self.Visible){if(self.FadeInDuration>0){BBDN.util.Dom.setOpacity(self.box,0);var attributes={opacity:{to:(self.Opacity/100)}};var anim=new YAHOO.util.Anim(self.ID,attributes,(self.FadeInDuration/1000),self.FadeInEasing);anim.onComplete.subscribe(onFinishedFading,self,true);anim.animate();}else{BBDN.util.Dom.setOpacity(self.box,self.Opacity);self.FinishedFading=true;}}}function onFinishedFading(){self.FinishedFading=true;}function makeTransparent(){if(self.FinishedFading)BBDN.util.Dom.setOpacity(self.box,self.FadeOnMouseOverOpacity);}function resetTransparency(){if(self.FinishedFading)BBDN.util.Dom.setOpacity(self.box,self.Opacity);}function setTemplate(){var tableID=self.ID+"Table";var textID=self.ID+"Text";var titleID=self.ID+"Title";var imageID=self.ID+"Image";switch(self.Layout){case"classic":self.box.innerHTML="<table id=\""+tableID+"\" border=0 cellpadding=0 cellspacing=0>"+"	<tr valign=\"top\">"+"		<td rowspan=\"2\"><img border=\"0\" id=\""+imageID+"\" src=\""+self.ImageUrl+"\" /></td>"+"		<td width=\"100%\"><p id=\""+titleID+"\">"+self.Title+"</p></td>"+"	</tr>"+"	<tr valign=\"top\">"+"		<td><p id=\""+textID+"\">"+self.Text+"</p></td>"+"	</tr>"+"</table>";var table=BBDN.util.Dom.$(tableID);table.style.width=self.Width;table.style.height=self.Height;var title=BBDN.util.Dom.$(titleID);title.style.fontWeight=self.TitleWeight;title.style.fontStyle=self.TitleStyle;title.style.fontSize=self.TitleSize;title.style.fontFamily=self.TitleFamily;title.style.margin="15px 10px 0px 10px";title.style.color=self.TitleColor;var text=BBDN.util.Dom.$(textID);text.style.fontWeight=self.TextWeight;text.style.fontStyle=self.TextStyle;text.style.fontSize=self.TextSize;text.style.fontFamily=self.TextFamily;text.style.margin="20px 10px 15px 10px";text.style.color=self.TextColor;var image=BBDN.util.Dom.$(imageID);image.style.margin="15px 5px 10px 10px";break;case"classicbottomimage":self.box.innerHTML="<table id=\""+tableID+"\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\">"+"	<tr valign=\"top\">"+"		<td width=\"100%\"><p id=\""+titleID+"\">"+self.Title+"</p></td>"+"	</tr>"+"	<tr valign=\"top\">"+"		<td><p id=\""+textID+"\">"+self.Text+"</p></td>"+"	</tr>"+"	<tr valign=\"top\">"+"		<td align=\"center\"><img border=\"0\" id=\""+imageID+"\" src=\""+self.ImageUrl+"\" /></td>"+"	</tr>"+"</table>";var table=BBDN.util.Dom.$(tableID);table.style.width=self.Width;table.style.height=self.Height;var title=BBDN.util.Dom.$(titleID);title.style.fontWeight=self.TitleWeight;title.style.fontStyle=self.TitleStyle;title.style.fontSize=self.TitleSize;title.style.fontFamily=self.TitleFamily;title.style.margin="15px 10px 0px 10px";title.style.color=self.TitleColor;var text=BBDN.util.Dom.$(textID);text.style.fontWeight=self.TextWeight;text.style.fontStyle=self.TextStyle;text.style.fontSize=self.TextSize;text.style.fontFamily=self.TextFamily;text.style.margin="20px 10px 15px 10px";text.style.color=self.TextColor;var image=BBDN.util.Dom.$(imageID);image.style.margin="0px 0px 10px 0px";break;case"imageonly":self.box.innerHTML="<img border=\"0\" id=\""+imageID+"\" src=\""+self.ImageUrl+"\" />";var image=BBDN.util.Dom.$(imageID);image.style.margin="0px 0px 0px 0px";break;case"textonly":self.box.innerHTML="<span id=\""+textID+"\">"+self.Text+"</span>";var text=BBDN.util.Dom.$(textID);text.style.fontWeight=self.TextWeight;text.style.fontStyle=self.TextStyle;text.style.fontSize=self.TextSize;text.style.fontFamily=self.TextFamily;text.style.margin="20px 10px 15px 10px";text.style.color=self.TextColor;break;}}}