
var YAHOO=window.YAHOO||{};YAHOO.namespace=function(_1){if(!_1||!_1.length){return null;}var _2=_1.split(".");var _3=YAHOO;for(var i=(_2[0]=="YAHOO")?1:0;i<_2.length;++i){_3[_2[i]]=_3[_2[i]]||{};_3=_3[_2[i]];}return _3;};YAHOO.namespace("util");YAHOO.namespace("widget");YAHOO.namespace("example");YAHOO.util.Dom=function(){var ua=navigator.userAgent.toLowerCase();var id_counter=0;return{get:function(el){if(typeof el!='string'&&!(el instanceof Array)){return el;}if(typeof el=='string'){return document.getElementById(el);}else{var collection=[];for(var i=0,len=el.length;i<len;++i){collection[collection.length]=this.get(el[i]);}return collection;}return null;},getStyle:function(el,property){var f=function(el,self){var value=null;var dv=document.defaultView;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(var 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,'')&&dv.getComputedStyle(el,'').getPropertyValue(converted)){value=dv.getComputedStyle(el,'').getPropertyValue(converted);}}return value;};return this.batch(el,f,this);},setStyle:function(el,property,val){var f=function(el,self){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.batch(el,f,this);},getXY:function(el){var f=function(el,self){if(el.parentNode===null||self.getStyle(el,'display')=='none'){return false;}var parent=null;var pos=[];var box;if(el.getBoundingClientRect){box=el.getBoundingClientRect();Math.max(document.documentElement.scrollTop,document.body.scrollTop);var scrollTop=Math.max(document.documentElement.scrollTop,document.body.scrollTop);var scrollLeft=Math.max(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;}}if(ua.indexOf('opera')!=-1||(ua.indexOf('safari')!=-1&&self.getStyle(el,'position')=='absolute')){pos[0]-=document.body.offsetLeft;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;};return this.batch(el,f,this);},getX:function(el){return this.getXY(el)[0];},getY:function(el){return this.getXY(el)[1];},setXY:function(el,pos,noRetry){var f=function(el,self){var style_pos=self.getStyle(el,'position');if(style_pos=='static'){self.setStyle(el,'position','relative');style_pos='relative';}var pageXY=YAHOO.util.Dom.getXY(el);if(pageXY===false){return false;}var delta=[parseInt(YAHOO.util.Dom.getStyle(el,'left'),10),parseInt(YAHOO.util.Dom.getStyle(el,'top'),10)];if(isNaN(delta[0])){delta[0]=(style_pos=='relative')?0:el.offsetLeft;}if(isNaN(delta[1])){delta[1]=(style_pos=='relative')?0:el.offsetTop;}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=self.getXY(el);if(!noRetry&&(newXY[0]!=pos[0]||newXY[1]!=pos[1])){var retry=function(){YAHOO.util.Dom.setXY(el,pos,true);};setTimeout(retry,0);}};this.batch(el,f,this);},setX:function(el,x){this.setXY(el,[x,null]);},setY:function(el,y){this.setXY(el,[null,y]);},getRegion:function(el){var f=function(el,self){return new YAHOO.util.Region.getRegion(el);};return this.batch(el,f,this);},getClientWidth:function(){return(document.documentElement.offsetWidth||document.body.offsetWidth);},getClientHeight:function(){return(self.innerHeight||document.documentElement.clientHeight||document.body.clientHeight);},getElementsByClassName:function(className,tag,root){var re=new RegExp('(?:^|\\s+)'+className+'(?:\\s+|$)');var method=function(el){return re.test(el['className']);};return this.getElementsBy(method,tag,root);},hasClass:function(el,className){var f=function(el,self){var re=new RegExp('(?:^|\\s+)'+className+'(?:\\s+|$)');return re.test(el['className']);};return this.batch(el,f,this);},addClass:function(el,className){var f=function(el,self){if(self.hasClass(el,className)){return;}el['className']=[el['className'],className].join(' ');};this.batch(el,f,this);},removeClass:function(el,className){var f=function(el,self){if(!self.hasClass(el,className)){return;}var re=new RegExp('(?:^|\\s+)'+className+'(?:\\s+|$)','g');var c=el['className'];el['className']=c.replace(re,' ');};this.batch(el,f,this);},replaceClass:function(el,oldClassName,newClassName){var f=function(el,self){self.removeClass(el,oldClassName);self.addClass(el,newClassName);};this.batch(el,f,this);},generateId:function(el,prefix){prefix=prefix||'yui-gen';var f=function(el,self){el=el||{};if(!el.id){el.id=prefix+id_counter++;}return el.id;};return this.batch(el,f,this);},isAncestor:function(haystack,needle){haystack=this.get(haystack);if(!haystack||!needle){return false;}var f=function(needle,self){if(haystack.contains&&ua.indexOf('safari')<0){return haystack.contains(needle);}else if(haystack.compareDocumentPosition){return!!(haystack.compareDocumentPosition(needle)&16);}else{var parent=needle.parentNode;while(parent){if(parent==haystack){return true;}else if(parent.tagName=='HTML'){return false;}parent=parent.parentNode;}return false;}};return this.batch(needle,f,this);},inDocument:function(el){var f=function(el,self){return self.isAncestor(document.documentElement,el);};return this.batch(el,f,this);},getElementsBy:function(method,tag,root){tag=tag||'*';root=this.get(root)||document;var nodes=[];var elements=root.getElementsByTagName(tag);for(var i=0,len=elements.length;i<len;++i){if(method(elements[i])){nodes[nodes.length]=elements[i];}}return nodes;},batch:function(el,method,o){el=this.get(el);if(!el||!el.length){return method(el,o);}var collection=[];for(var i=0,len=el.length;i<len;++i){collection[collection.length]=method(el[i],o);}return collection;}};}();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(_1,_2){this.type=_1;this.scope=_2||window;this.subscribers=[];if(YAHOO.util.Event){YAHOO.util.Event.regCE(this);}};YAHOO.util.CustomEvent.prototype={subscribe:function(fn,_4,_5){this.subscribers.push(new YAHOO.util.Subscriber(fn,_4,_5));},unsubscribe:function(fn,_6){var _7=false;for(var i=0,len=this.subscribers.length;i<len;++i){var s=this.subscribers[i];if(s&&s.contains(fn,_6)){this._delete(i);_7=true;}}return _7;},fire:function(){for(var i=0,len=this.subscribers.length;i<len;++i){var s=this.subscribers[i];if(s){var _10=(s.override)?s.obj:this.scope;s.fn.call(_10,this.type,arguments,s.obj);}}},unsubscribeAll:function(){for(var i=0,len=this.subscribers.length;i<len;++i){this._delete(i);}},_delete:function(_11){var s=this.subscribers[_11];if(s){delete s.fn;delete s.obj;}delete this.subscribers[_11];}};YAHOO.util.Subscriber=function(fn,obj,_13){this.fn=fn;this.obj=obj||null;this.override=(_13);};YAHOO.util.Subscriber.prototype.contains=function(fn,obj){return(this.fn==fn&&this.obj==obj);};if(!YAHOO.util.Event){YAHOO.util.Event=function(){var _14=false;var _15=[];var _16=[];var _17=[];var _18=[];var _19=[];var _20=[];var _21=[];var _22=0;var _23=[];var _24=0;var _25={};return{POLL_RETRYS:200,POLL_INTERVAL:50,EL:0,TYPE:1,FN:2,WFN:3,SCOPE:3,ADJ_SCOPE:4,isSafari:(/Safari|Konqueror|KHTML/gi).test(navigator.userAgent),isIE:(!this.isSafari&&!navigator.userAgent.match(/opera/gi)&&navigator.userAgent.match(/msie/gi)),addDelayedListener:function(el,_27,fn,_28,_29){_16[_16.length]=[el,_27,fn,_28,_29];if(_14){_22=this.POLL_RETRYS;this.startTimeout(0);}},startTimeout:function(_30){var _31=this;var _32=function(){_31._tryPreloadAttach();};this.timeout=setTimeout(_32,_30);},onAvailable:function(_33,_34,_35,_36){_23.push({id:_33,fn:_34,obj:_35,override:_36});_22=this.POLL_RETRYS;this.startTimeout(0);},addListener:function(el,_37,fn,_38,_39){if(!fn||!fn.call){return false;}if(this._isValidCollection(el)){var ok=true;for(var i=0,len=el.length;i<len;++i){ok=(this.on(el[i],_37,fn,_38,_39)&&ok);}return ok;}else{if(typeof el=="string"){var oEl=this.getEl(el);if(_14&&oEl){el=oEl;}else{this.addDelayedListener(el,_37,fn,_38,_39);return true;}}}if(!el){return false;}if("unload"==_37&&_38!==this){_17[_17.length]=[el,_37,fn,_38,_39];return true;}var _42=(_39)?_38:el;var _43=function(e){return fn.call(_42,YAHOO.util.Event.getEvent(e),_38);};var li=[el,_37,fn,_43,_42];var _46=_15.length;_15[_46]=li;this.mapListener(el,_37,fn,_46);if(this.useLegacyEvent(el,_37)){var _47=this.getLegacyIndex(el,_37);if(_47==-1){_47=_19.length;_21[el.id+_37]=_47;_19[_47]=[el,_37,el["on"+_37]];_20[_47]=[];el["on"+_37]=function(e){return YAHOO.util.Event.fireLegacyEvent(YAHOO.util.Event.getEvent(e),_47);};}_20[_47].push(_46);}else{if(el.addEventListener){el.addEventListener(_37,_43,false);}else{if(el.attachEvent){el.attachEvent("on"+_37,_43);}}}return true;},fireLegacyEvent:function(e,_48){var ok=true;var le=_20[_48];for(var i=0,len=le.length;i<len;++i){var _50=le[i];if(_50){var li=_15[_50];if(li&&li[this.WFN]){var _51=li[this.ADJ_SCOPE];var ret=li[this.WFN].call(_51,e);ok=(ok&&ret);}else{delete le[i];}}}return ok;},getLegacyIndex:function(el,_53){var key=this.generateId(el)+_53;if(typeof _21[key]=="undefined"){return-1;}else{return _21[key];}},useLegacyEvent:function(el,_55){return((!el.addEventListener&&!el.attachEvent)||(_55=="click"&&this.isSafari));},removeListener:function(el,_56,fn,_57){if(!fn||!fn.call){return false;}if(typeof el=="string"){el=this.getEl(el);}else{if(this._isValidCollection(el)){var ok=true;for(var i=0,len=el.length;i<len;++i){ok=(this.removeListener(el[i],_56,fn)&&ok);}return ok;}}if("unload"==_56){for(i=0,len=_17.length;i<len;i++){var li=_17[i];if(li&&li[0]==el&&li[1]==_56&&li[2]==fn){delete _17[i];return true;}}return false;}var _58=null;if("undefined"==typeof _57){_57=this._getCacheIndex(el,_56,fn);}if(_57>=0){_58=_15[_57];}if(!el||!_58){return false;}if(el.removeEventListener){el.removeEventListener(_56,_58[this.WFN],false);}else{if(el.detachEvent){el.detachEvent("on"+_56,_58[this.WFN]);}}delete _15[_57][this.WFN];delete _15[_57][this.FN];delete _15[_57];return true;},getTarget:function(ev,_60){var t=ev.target||ev.srcElement;if(_60&&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;},getXY:function(ev){return[this.getPageX(ev),this.getPageY(ev)];},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,_65,fn){var key=el.id+_65;if(!_25[key]){return-1;}else{for(var i=0,len=_25[key].length;i<len;++i){var _66=_25[key][i];if(_66.fn==fn){return _66.index;}}}return-1;},generateId:function(el){var id=el.id;if(!id){id="yui-event-auto-id-"+(_24++);el.id=id;}return id;},mapListener:function(_68,_69,_70,_71){var key=this.generateId(_68)+_69;if(!_25[key]){_25[key]=[];}_25[key].push({fn:_70,index:_71});},_isValidCollection:function(o){return(o&&o.length&&typeof o!="string"&&!o.tagName&&!o.alert&&typeof o[0]!="undefined");},getEl:function(id){return document.getElementById(id);},clearCache:function(){},regCE:function(ce){_18.push(ce);},_load:function(e){_14=true;},_tryPreloadAttach:function(){if(this.locked){return false;}this.locked=true;var _74=!_14;if(!_74){_74=(_22>0);}var _75=[];for(var i=0,len=_16.length;i<len;++i){var d=_16[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 _16[i];}else{_75.push(d);}}}_16=_75;notAvail=[];for(i=0,len=_23.length;i<len;++i){var _77=_23[i];if(_77){el=this.getEl(_77.id);if(el){var _78=(_77.override)?_77.obj:el;_77.fn.call(_78,_77.obj);delete _23[i];}else{notAvail.push(_77);}}}_22=(_75.length===0&&notAvail.length===0)?0:_22-1;if(_74){this.startTimeout(this.POLL_INTERVAL);}this.locked=false;},_unload:function(e,me,_80){for(var i=0,len=_17.length;i<len;++i){var l=_17[i];if(l){var _82=(l[this.ADJ_SCOPE])?l[this.SCOPE]:window;l[this.FN].call(_82,this.getEvent(e),l[this.SCOPE]);}}len=_15.length;if(len){for(i=0;i<len;++i){l=_15[i];if(l){this.removeListener(l[this.EL],l[this.TYPE],l[this.FN],i);}}this.clearCache();}for(i=0,len=_18.length;i<len;++i){_18[i].unsubscribeAll();delete _18[i];}for(i=0,len=_19.length;i<len;++i){delete _19[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));},defaultUnit:'px',defaultUnits:{opacity:' '},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.constructor!=Array&&(val=='auto'||isNaN(val))){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(){if(this.isAnimated()){return false;}
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(){if(!this.isAnimated()){return false;}
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')
{if(typeof start!=='string'){end=[];for(var i=0,len=start.length;i<len;++i)
{end[i]=start[i]+attributes[attribute]['by'][i];}}
else
{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);}};YAHOO.namespace('Media.Dtk');YAHOO.Media.Dtk.CarouselMgr=new function(){var collections=new Array;return{init:function(id){var tScroller=YAHOO.util.Dom.get(id);var hashId=YAHOO.util.Dom.generateId(tScroller);if(!collections[hashId]){collections[hashId]=YAHOO.Media.Dtk.Carousel;collections[hashId].init(tScroller);}},initAll:function(){var scrollers=YAHOO.util.Dom.getElementsByClassName('dtk-carousel','div',document);for(var x=0;x<scrollers.length;x++){YAHOO.Media.Dtk.CarouselMgr.init(scrollers[x]);}}}}();YAHOO.Media.Dtk.Carousel=function(){function init(obj){s=YAHOO.util.Dom.getElementsByClassName('scrollbody','div',obj);var list=YAHOO.util.Dom.getElementsByClassName('dtk-list','ul',obj);var len=list.length;var r=YAHOO.util.Dom.getRegion(list[0]);s[0].scrollDistance=r.right-r.left;s[0].pages=len;s[0].current=0;if(len>1){addNavContainer(obj,s[0]);s[0].nav=YAHOO.util.Dom.getElementsByClassName('navigation','div',obj)[0];addNavButtons(obj,s[0]);addPageIndicators(obj,s[0]);updateNavState(s[0]);}}
function getDataSuccess(o){if(o.responseText){var oArr=eval(o.responseText);var list=YAHOO.util.Dom.getElementsByClassName('dtk-list','ul',YAHOO.util.Dom.get(o.argument.id));if(oArr){var numPostLoad=oArr.length;var numPages=list.length;for(var i=0;i<numPostLoad;i++){var pg=oArr[i].pgIdx;var html=oArr[i].pgHtml;if(pg<numPages){list[pg].innerHTML=html;}}}}}
function getDataFailure(o){}
function getData(id,url){var callback={success:getDataSuccess,failure:getDataFailure,argument:{id:id}}
var oConObj=YAHOO.util.Connect.asyncRequest('GET',url,callback,null);}
function addNavContainer(obj,scrollBody){scrollBody.navContainer=document.createElement('div');scrollBody.navContainerSpan=document.createElement('span');YAHOO.util.Dom.addClass(scrollBody.navContainer,"navigation");scrollBody.parentNode.insertBefore(scrollBody.navContainer,scrollBody);scrollBody.navContainer.appendChild(scrollBody.navContainerSpan);}
function addPageIndicators(obj,scrollBody){scrollBody.navList=document.createElement('div');YAHOO.util.Dom.addClass(scrollBody.navList,'scrollnav');var len=scrollBody.pages;var navWidth=YAHOO.util.Dom.getStyle(scrollBody.nav,'width');navWidth=navWidth.substr(0,navWidth.length-2);for(var x=0;x<len;x++){var linkItem=document.createElement('a');linkItem.setAttribute("href","pg:"+(x+1));YAHOO.util.Event.addListener(linkItem,"click",scrollToPage,{scrollBody:scrollBody,targetPage:x});if(x==scrollBody.current){YAHOO.util.Dom.addClass(linkItem,'current');}
scrollBody.navList.appendChild(linkItem);}
scrollBody.nav.appendChild(scrollBody.navList);var indicators=scrollBody.nav.getElementsByTagName('a');var indWidth=YAHOO.util.Dom.getStyle(indicators[2],'width');indWidth=indWidth.substr(0,indWidth.length-2);var newNavWidth=parseInt(navWidth)+(parseInt(indWidth)*(len+1));YAHOO.util.Dom.setStyle(scrollBody.nav,'width',newNavWidth+'px');}
function addNavButtons(obj,scrollBody){scrollBody.prev=document.createElement('a');scrollBody.prev.setAttribute("href","#");scrollBody.next=scrollBody.prev.cloneNode(true);YAHOO.util.Dom.addClass(scrollBody.prev,"prev");YAHOO.util.Dom.addClass(scrollBody.next,"next");YAHOO.util.Event.addListener(scrollBody.prev,"click",scrollPrev,{scrollBody:scrollBody});YAHOO.util.Event.addListener(scrollBody.next,"click",scrollNext,{scrollBody:scrollBody});scrollBody.nav.appendChild(scrollBody.next);scrollBody.nav.appendChild(scrollBody.prev);}
function scrollNext(e,obj){this.blur();YAHOO.util.Event.stopEvent(e);if(!obj.scrollBody.anim){obj.scrollBody.anim=new YAHOO.util.Scroll(obj.scrollBody,{scroll:{}},1.5,YAHOO.util.Easing.easeOut);}
if(!obj.scrollBody.anim.isAnimated()){if(obj.scrollBody.current<obj.scrollBody.pages-1){var end=(++obj.scrollBody.current)*obj.scrollBody.scrollDistance;obj.scrollBody.anim.attributes.scroll.to=[end,0];obj.scrollBody.anim.animate();}
updateNavState(obj.scrollBody);}}
function scrollPrev(e,obj){this.blur();YAHOO.util.Event.stopEvent(e);if(!obj.scrollBody.anim){obj.scrollBody.anim=new YAHOO.util.Scroll(obj.scrollBody,{scroll:{}},1.5,YAHOO.util.Easing.easeOut);}
if(!obj.scrollBody.anim.isAnimated()){if(obj.scrollBody.current>0){var end=(--obj.scrollBody.current)*obj.scrollBody.scrollDistance;obj.scrollBody.anim.attributes.scroll.to=[end,0];obj.scrollBody.anim.animate();}
updateNavState(obj.scrollBody);}}
function scrollToPage(e,obj){this.blur();YAHOO.util.Event.stopEvent(e);if(!obj.scrollBody.anim){obj.scrollBody.anim=new YAHOO.util.Scroll(obj.scrollBody,{scroll:{}},1.5,YAHOO.util.Easing.easeOut);}
if(!obj.scrollBody.anim.isAnimated()){if(obj.scrollBody.current!=obj.targetPage){var end=obj.targetPage*obj.scrollBody.scrollDistance;obj.scrollBody.current=obj.targetPage;obj.scrollBody.anim.attributes.scroll.to=[end,0];obj.scrollBody.anim.animate();}
updateNavState(obj.scrollBody);}}
function updateNavState(obj){var len=obj.navList.childNodes.length;for(var x=0;x<len;x++){YAHOO.util.Dom.removeClass(obj.navList.childNodes[x],'current');if(x==obj.current){YAHOO.util.Dom.addClass(obj.navList.childNodes[x],'current');}}
if(obj.current==0){YAHOO.util.Dom.addClass(obj.prev,'off');YAHOO.util.Dom.setStyle(obj.prev,'opacity',0.6);YAHOO.util.Dom.removeClass(obj.next,'off');YAHOO.util.Dom.setStyle(obj.next,'opacity',1);}
else if(obj.current==(len-1)){YAHOO.util.Dom.removeClass(obj.prev,'off');YAHOO.util.Dom.setStyle(obj.prev,'opacity',1);YAHOO.util.Dom.addClass(obj.next,'off');YAHOO.util.Dom.setStyle(obj.next,'opacity',0.6);}else{YAHOO.util.Dom.removeClass(obj.prev,'off');YAHOO.util.Dom.setStyle(obj.prev,'opacity',1);YAHOO.util.Dom.removeClass(obj.next,'off');YAHOO.util.Dom.setStyle(obj.next,'opacity',1);}}
return{init:init,getData:getData}}();YAHOO.namespace("Media.Dtk.GlobalSearch");YAHOO.Media.Dtk.GlobalSearch.TabsMgr={oProcessed:{},set:function(sKey,bValue){this.oProcessed[sKey]=bValue;},get:function(sKey){return(typeof(this.oProcessed[sKey])!='undefined'&&this.oProcessed[sKey]==1);}};YAHOO.Media.Dtk.GlobalSearch.Tabs=function(sModuleName){this.sModuleName=sModuleName;this.dCurTab="";this.dCurTabNum=1;this.aTabs=[];this.sTrigger="click";this.fAction=null;this.oActionVars=null;this.sTabTag="li";this.sClickTag="a";this.sOnName="on";this.sOffName="off";this.sHiLiteName="sparkle";this.bRoundCorners=false;this.aDataProcessed=[];this.bDropShadow=false;};YAHOO.Media.Dtk.GlobalSearch.Tabs.prototype.dropShadowOff=function(){this.bDropShadow=false;}
YAHOO.Media.Dtk.GlobalSearch.Tabs.prototype.dropShadowOn=function(){this.bDropShadow=true;}
YAHOO.Media.Dtk.GlobalSearch.Tabs.prototype.changeAction=function(action,vars){this.fAction=action;this.oActionVars=vars;};YAHOO.Media.Dtk.GlobalSearch.Tabs.prototype.setupTabs=function(){var dTab=document.getElementById(this.sModuleName).getElementsByTagName(this.sTabTag);var nTabLength=dTab.length,i,j;for(i=0;i<nTabLength;i++){if(this.bDropShadow){var txtNode=document.createTextNode(dTab[i].firstChild.innerHTML);var dShad=document.createElement("span");dShad.appendChild(txtNode);dTab[i].insertBefore(dShad,dTab[i].firstChild);}
if(YAHOO.util.Dom.hasClass(dTab[i],this.sOnName)){this.dCurTab=dTab[i];}
var dClickTag=dTab[i].getElementsByTagName(this.sClickTag)||0;var nClickTagLength=dClickTag.length;for(j=0;j<nClickTagLength;j++){if(dClickTag[j].href.indexOf('schedule.cgi')<0){var self=this;dClickTag[j].order=(i+1);this.aTabs[(i+1)]=dClickTag[j];var oSelf=this;var fAction=function(e){if(e){YAHOO.util.Event.stopEvent(e);}
self.tabAction(e,oSelf,self);return false;}
YAHOO.util.Event.addListener(dClickTag[j],this.sTrigger,fAction);if(this.sTrigger!="click"){dClickTag[j].onclick=function(){return false;};}}}}};YAHOO.Media.Dtk.GlobalSearch.Tabs.prototype.tabAction=function(e,dNode,oSelf){if(typeof(dNode.href)=='undefined'){dNode=e.srcElement||e.target;}
if(dNode.tagName=='IMG'){dNode=dNode.parentNode;}
if((oSelf.dCurTabNum-1)>0){YAHOO.util.Dom.removeClass(oSelf.aTabs[(oSelf.dCurTabNum-1)].parentNode.parentNode,oSelf.sOffName);}
YAHOO.util.Dom.removeClass(oSelf.dCurTab,oSelf.sOnName);oSelf.dCurTab=(oSelf.oActionVars.type=='tab'?dNode.parentNode.parentNode:dNode.parentNode);YAHOO.util.Dom.removeClass(oSelf.dCurTab,oSelf.sHiLiteName);oSelf.dCurTabNum=dNode.order;YAHOO.util.Dom.addClass(oSelf.dCurTab,oSelf.sOnName);if((oSelf.dCurTabNum-1)>0){YAHOO.util.Dom.addClass(oSelf.aTabs[(oSelf.dCurTabNum-1)].parentNode.parentNode,oSelf.sOffName);}
if(oSelf.fAction){oSelf.fAction(oSelf.oActionVars,dNode,this);}
return false;};YAHOO.Media.Dtk.GlobalSearch.ChangeVert=function(args,self){var obj=args.obj,tab=self;YAHOO.util.Dom.addClass(obj.dCurTab,'on');YAHOO.util.Dom.addClass(tab.parentNode,'on');obj.dCurTab=tab.parentNode;document.sf1.action=tab.href;var text=tab.innerHTML;document.getElementById('dtk-search').className='tab-'+text.toLowerCase();if(typeof(this.first)=="undefined")this.searchbox=document.getElementById("dtk-searchbox").innerHTML;this.first=true;var searchbox=document.getElementById("dtk-searchbox");var leftfooter=document.getElementById("dtk-sboxfooter");var rightfooter=document.getElementById("dtk-sboxlinks");if(typeof(YAHOO.Media.Dtk.nSearchBoxWidth)=='undefined'){YAHOO.Media.Dtk.nSearchBoxWidth=YAHOO.util.Dom.getStyle("dtk-searchbox","width");}
if(searchbox.innerHTML!=this.searchbox){var value=document.sf1.p.value;searchbox.innerHTML=this.searchbox;if(YAHOO.Media.Dtk.nPageSize==1){searchbox.style.marginLeft="auto";}
else{searchbox.style.width=YAHOO.Media.Dtk.nSearchBoxWidth;}
document.sf1.p.value=value;}
if(leftfooter){leftfooter.style.display="block";}
if(rightfooter){rightfooter.style.display="block";}
frPrefix="Dtk-tab-";_ver=(typeof(ver)!="undefined"?ver:"");if(typeof(YAHOO.Media.Dtk.GlobalSearch.oSearch)=='object'){document.sf1.fr.value=frPrefix+YAHOO.Media.Dtk.GlobalSearch.oSearch[text].frcode+"-t"+_ver;}
if(document.getElementById("searchlabel")){document.getElementById("dtk-searchlabel").title=text+" search: enter a search term and press Enter";}
document.getElementById("p").title=text+" search: enter a search term and press Enter";setTimeout("document.sf1.p.focus()",1);};YAHOO.Media.Dtk.GlobalSearch.bProcKeyDown=1;YAHOO.Media.Dtk.GlobalSearch.fKeyDown=function(e,oVerts){var src=e.srcElement||e.target;var code=e.keyCode,id=e.id,gk,_ffs=0;if(typeof(YAHOO.Media.Dtk.GlobalSearch.bKeyDown)=='undefined'){YAHOO.Media.Dtk.GlobalSearch.bKeyDown=1;}
if(code==13){return;}
else if((code==191||code==222)&&id!='p'&&YAHOO.Media.Dtk.GlobalSearch._ff){_ffs=1;gk=0;}
else if((code<31||code>41)&&(code<16||code>18)&&code!=9&&code!=8){gk=1;}
else{gk=0;}
var sFormClassName=document.getElementById('dtk-search').className;if(src.id=='p'||src.id=='scsz'||src.id=='dtk-searchsubmit'){if(code==9&&!e.shiftKey&&YAHOO.Media.Dtk.GlobalSearch.bProcKeyDown==0){YAHOO.Media.Dtk.GlobalSearch.bProcKeyDown=1;}else if((code==9&&src.id=='p')||(code==9&&!e.shiftKey&&src.id=='dtk-searchsubmit'&&YAHOO.Media.Dtk.GlobalSearch.bProcKeyDown==1)){var nTab=oVerts.dCurTabNum,nTabLength=(oVerts.aTabs.length-1);nTab=(e.shiftKey&&nTab>0)?nTab-1:(nTab<=nTabLength?nTab+1:nTab);if(nTab>0&&nTab<=nTabLength&&!e.ctrlKey&&!e.altKey){YAHOO.util.Event.stopEvent(e);oVerts.tabAction(e,oVerts.aTabs[nTab],oVerts);document.sf1.p.focus();return false;}}else if(gk==1){YAHOO.Media.Dtk.GlobalSearch.bProcKeyDown=0;}}
else if(!_ffs&&gk==1&&src.type!='text'&&!e.ctrlKey&&!e.altKey){document.sf1.p.value='';document.sf1.p.focus();}}
var agt=navigator.userAgent.toLowerCase();var mac=agt.indexOf("mac")!=-1;var macIe=mac&&document.all;YAHOO.namespace("Bwy");YAHOO.Bwy.tabbedNav=function(){var closeTimeout=null;var openTimeout=null;var foDiv=null;var shieldFrame=null;var createFlyout=function(footer){var propNav=YAHOO.util.Dom.getElementsByClassName("prop","div",footer);var links=propNav[0].getElementsByTagName("LI");var foDiv=document.createElement("DIV");YAHOO.util.Dom.addClass(foDiv,"dtk-flyout");var foUL=document.createElement("UL");YAHOO.util.Dom.addClass(foDiv,"shownews");for(var x=0;x<links.length;x++){var cloneLink=document.createElement("LI");cloneLink.innerHTML=links[x].innerHTML;foUL.appendChild(cloneLink);}
foDiv.appendChild(foUL);if(!shieldFrame){shieldFrame=document.createElement("IFRAME");YAHOO.util.Dom.addClass(shieldFrame,"shieldFrame");footer.appendChild(shieldFrame);}
footer.appendChild(foDiv);positionFlyout(foDiv);moreFlyout();};var moreFlyout=function(){var sn=YAHOO.util.Dom.get("sub-nav");var mls=YAHOO.util.Dom.getElementsByClassName("more","A",sn);var submores=YAHOO.util.Dom.getElementsByClassName("submore","div",sn);if(mls.length&&submores.length){mls[0].goright=true;positionUnder(mls[0],submores[0],true);attachEvents(mls[0],submores[0]);}};var clickMore=function(e,obj){YAHOO.util.Event.preventDefault(e);showFlyout(obj);};var showFlyout=function(obj){YAHOO.util.Dom.setStyle(obj,"visibility","visible");YAHOO.util.Dom.setStyle(shieldFrame,"visibility","visible");if(em=YAHOO.util.Dom.get("y_embed")){var tds=YAHOO.util.Dom.getElementsByClassName("yup-playercontent","td",em);if(tds.length){for(var x=0;x<tds.length;x++){var embeds=tds[x].getElementsByTagName("EMBED");if(embeds.length){YAHOO.util.Dom.setStyle(embeds[0],"visibility","hidden");}
var objs=tds[x].getElementsByTagName("OBJECT");for(var n=0;n<objs.length;n++){YAHOO.util.Dom.setStyle(objs[n],"visibility","hidden");}}}}
if(openTimeout)clearTimeout(openTimeout);};var mOverMore=function(e,obj){if(closeTimeout)clearTimeout(closeTimeout);positionUnder(this,obj,this.goright);startOpen(obj);};var mOutMore=function(e,obj){startClose(obj);};var mOverFlyout=function(e){if(closeTimeout)clearTimeout(closeTimeout);};var mOutFlyout=function(e){startClose(this);};var startClose=function(obj){var closeIt=function(o){return function(){YAHOO.util.Dom.setStyle(o,"visibility","hidden");YAHOO.util.Dom.setStyle(shieldFrame,"visibility","hidden");if(em=YAHOO.util.Dom.get("y_embed")){var tds=YAHOO.util.Dom.getElementsByClassName("yup-playercontent","td",em);if(tds.length){for(var x=0;x<tds.length;x++){var embeds=tds[x].getElementsByTagName("EMBED");if(embeds.length){YAHOO.util.Dom.setStyle(embeds[0],"visibility","visible");}
var objs=tds[x].getElementsByTagName("OBJECT");for(var n=0;n<objs.length;n++){YAHOO.util.Dom.setStyle(objs[n],"visibility","visible");}}}}}};closeTimeout=setTimeout(closeIt(obj),1000);};var startOpen=function(obj){var openIt=function(o){return function(){showFlyout(o);}};openTimeout=setTimeout(openIt(obj),1000);};var positionFlyout=function(fo){var bread=YAHOO.util.Dom.get("dtk-bread");var morelinks=YAHOO.util.Dom.getElementsByClassName("more","a",bread);positionUnder(morelinks[0],fo);attachEvents(morelinks[0],fo);};var attachEvents=function(m,u){YAHOO.util.Event.addListener(m,"click",clickMore,u);YAHOO.util.Event.addListener(m,"mouseover",mOverMore,u);YAHOO.util.Event.addListener(m,"mouseout",mOutMore,u);YAHOO.util.Event.addListener(u,"mouseover",mOverFlyout);YAHOO.util.Event.addListener(u,"mouseout",mOutFlyout);};var moveFlyout=function(){var fo=YAHOO.util.Dom.getElementsByClassName("dtk-flyout","div",document)[0];var bread=YAHOO.util.Dom.get("dtk-bread");var morelinks=YAHOO.util.Dom.getElementsByClassName("more","a",bread);positionUnder(morelinks[0],fo);};var positionUnder=function(m,u,right){var mXY=YAHOO.util.Dom.getXY(m);var mRegion=YAHOO.util.Dom.getRegion(m);var uRegion=YAHOO.util.Dom.getRegion(u);YAHOO.util.Dom.setStyle(shieldFrame,"height",(uRegion.bottom-uRegion.top)+"px");YAHOO.util.Dom.setStyle(shieldFrame,"width",(uRegion.right-uRegion.left)+"px");var x=mXY[0]-54;if(right){var uRegion=YAHOO.util.Dom.getRegion(u);var w=uRegion.right-uRegion.left;x=(x-w)+(mRegion.right-mRegion.left);YAHOO.util.Dom.setStyle(shieldFrame,"display","none");}
YAHOO.util.Dom.setXY(u,[x,mRegion.bottom+6]);YAHOO.util.Dom.setXY(shieldFrame,[x,mRegion.bottom+6]);};YAHOO.util.Event.addListener(window,"resize",moveFlyout);return{init:function(){createFlyout(this);}};}();YAHOO.util.Event.onAvailable('dtk-footernav',YAHOO.Bwy.tabbedNav.init);var UFO={req:["movie","width","height","majorversion","build"],opt:["play","loop","menu","quality","scale","salign","wmode","bgcolor","base","flashvars","devicefont","allowscriptaccess","seamlesstabbing","allowfullscreen"],optAtt:["id","name","align"],optExc:["swliveconnect"],ximovie:"ufo.swf",xiwidth:"215",xiheight:"138",ua:navigator.userAgent.toLowerCase(),pluginType:"",fv:[0,0],foList:[],create:function(FO,id){if(!UFO.uaHas("w3cdom")||UFO.uaHas("ieMac"))return;UFO.getFlashVersion();UFO.foList[id]=UFO.updateFO(FO);UFO.createCSS("#"+id,"visibility:hidden;");UFO.domLoad(id);},updateFO:function(FO){if(typeof FO.xi!="undefined"&&FO.xi=="true"){if(typeof FO.ximovie=="undefined")FO.ximovie=UFO.ximovie;if(typeof FO.xiwidth=="undefined")FO.xiwidth=UFO.xiwidth;if(typeof FO.xiheight=="undefined")FO.xiheight=UFO.xiheight;}
FO.mainCalled=false;return FO;},domLoad:function(id){var _t=setInterval(function(){if((document.getElementsByTagName("body")[0]!=null||document.body!=null)&&document.getElementById(id)!=null){UFO.main(id);clearInterval(_t);}},250);if(typeof document.addEventListener!="undefined"){document.addEventListener("DOMContentLoaded",function(){UFO.main(id);clearInterval(_t);},null);}},main:function(id){var _fo=UFO.foList[id];if(_fo.mainCalled)return;UFO.foList[id].mainCalled=true;document.getElementById(id).style.visibility="hidden";if(UFO.hasRequired(id)){if(UFO.hasFlashVersion(parseInt(_fo.majorversion,10),parseInt(_fo.build,10))){if(typeof _fo.setcontainercss!="undefined"&&_fo.setcontainercss=="true")UFO.setContainerCSS(id);UFO.writeSWF(id);}
else if(_fo.xi=="true"&&UFO.hasFlashVersion(6,65)){UFO.createDialog(id);}}
document.getElementById(id).style.visibility="visible";},createCSS:function(selector,declaration){var _h=document.getElementsByTagName("head")[0];var _s=UFO.createElement("style");if(!UFO.uaHas("ieWin"))_s.appendChild(document.createTextNode(selector+" {"+declaration+"}"));_s.setAttribute("type","text/css");_s.setAttribute("media","screen");_h.appendChild(_s);if(UFO.uaHas("ieWin")&&document.styleSheets&&document.styleSheets.length>0){var _ls=document.styleSheets[document.styleSheets.length-1];if(typeof _ls.addRule=="object")_ls.addRule(selector,declaration);}},setContainerCSS:function(id){var _fo=UFO.foList[id];var _w=/%/.test(_fo.width)?"":"px";var _h=/%/.test(_fo.height)?"":"px";UFO.createCSS("#"+id,"width:"+_fo.width+_w+"; height:"+_fo.height+_h+";");if(_fo.width=="100%"){UFO.createCSS("body","margin-left:0; margin-right:0; padding-left:0; padding-right:0;");}
if(_fo.height=="100%"){UFO.createCSS("html","height:100%; overflow:hidden;");UFO.createCSS("body","margin-top:0; margin-bottom:0; padding-top:0; padding-bottom:0; height:100%;");}},createElement:function(el){return(UFO.uaHas("xml")&&typeof document.createElementNS!="undefined")?document.createElementNS("http://www.w3.org/1999/xhtml",el):document.createElement(el);},createObjParam:function(el,aName,aValue){var _p=UFO.createElement("param");_p.setAttribute("name",aName);_p.setAttribute("value",aValue);el.appendChild(_p);},uaHas:function(ft){var _u=UFO.ua;switch(ft){case"w3cdom":return(typeof document.getElementById!="undefined"&&typeof document.getElementsByTagName!="undefined"&&(typeof document.createElement!="undefined"||typeof document.createElementNS!="undefined"));case"xml":var _m=document.getElementsByTagName("meta");var _l=_m.length;for(var i=0;i<_l;i++){if(/content-type/i.test(_m[i].getAttribute("http-equiv"))&&/xml/i.test(_m[i].getAttribute("content")))return true;}
return false;case"ieMac":return/msie/.test(_u)&&!/opera/.test(_u)&&/mac/.test(_u);case"ieWin":return/msie/.test(_u)&&!/opera/.test(_u)&&/win/.test(_u);case"gecko":return/gecko/.test(_u)&&!/applewebkit/.test(_u);case"opera":return/opera/.test(_u);case"safari":return/applewebkit/.test(_u);default:return false;}},getFlashVersion:function(){if(UFO.fv[0]!=0)return;if(navigator.plugins&&typeof navigator.plugins["Shockwave Flash"]=="object"){UFO.pluginType="npapi";var _d=navigator.plugins["Shockwave Flash"].description;if(typeof _d!="undefined"){_d=_d.replace(/^.*\s+(\S+\s+\S+$)/,"$1");var _m=parseInt(_d.replace(/^(.*)\..*$/,"$1"),10);var _r=/r/.test(_d)?parseInt(_d.replace(/^.*r(.*)$/,"$1"),10):0;UFO.fv=[_m,_r];}}
else if(window.ActiveXObject){UFO.pluginType="ax";try{var _a=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7");}
catch(e){try{var _a=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");UFO.fv=[6,0];_a.AllowScriptAccess="always";}
catch(e){if(UFO.fv[0]==6)return;}
try{var _a=new ActiveXObject("ShockwaveFlash.ShockwaveFlash");}
catch(e){}}
if(typeof _a=="object"){var _d=_a.GetVariable("$version");if(typeof _d!="undefined"){_d=_d.replace(/^\S+\s+(.*)$/,"$1").split(",");UFO.fv=[parseInt(_d[0],10),parseInt(_d[2],10)];}}}},hasRequired:function(id){var _l=UFO.req.length;for(var i=0;i<_l;i++){if(typeof UFO.foList[id][UFO.req[i]]=="undefined")return false;}
return true;},hasFlashVersion:function(major,release){return(UFO.fv[0]>major||(UFO.fv[0]==major&&UFO.fv[1]>=release))?true:false;},writeSWF:function(id){var _fo=UFO.foList[id];var _e=document.getElementById(id);if(UFO.pluginType=="npapi"){if(UFO.uaHas("gecko")||UFO.uaHas("xml")){while(_e.hasChildNodes()){_e.removeChild(_e.firstChild);}
var _obj=UFO.createElement("object");_obj.setAttribute("type","application/x-shockwave-flash");_obj.setAttribute("data",_fo.movie);_obj.setAttribute("width",_fo.width);_obj.setAttribute("height",_fo.height);var _l=UFO.optAtt.length;for(var i=0;i<_l;i++){if(typeof _fo[UFO.optAtt[i]]!="undefined")_obj.setAttribute(UFO.optAtt[i],_fo[UFO.optAtt[i]]);}
var _o=UFO.opt.concat(UFO.optExc);var _l=_o.length;for(var i=0;i<_l;i++){if(typeof _fo[_o[i]]!="undefined")UFO.createObjParam(_obj,_o[i],_fo[_o[i]]);}
_e.appendChild(_obj);}
else{var _emb="";var _o=UFO.opt.concat(UFO.optAtt).concat(UFO.optExc);var _l=_o.length;for(var i=0;i<_l;i++){if(typeof _fo[_o[i]]!="undefined")_emb+=' '+_o[i]+'="'+_fo[_o[i]]+'"';}
_e.innerHTML='<embed type="application/x-shockwave-flash" src="'+_fo.movie+'" width="'+_fo.width+'" height="'+_fo.height+'" pluginspage="http://www.macromedia.com/go/getflashplayer"'+_emb+'></embed>';}}
else if(UFO.pluginType=="ax"){var _objAtt="";var _l=UFO.optAtt.length;for(var i=0;i<_l;i++){if(typeof _fo[UFO.optAtt[i]]!="undefined")_objAtt+=' '+UFO.optAtt[i]+'="'+_fo[UFO.optAtt[i]]+'"';}
var _objPar="";var _l=UFO.opt.length;for(var i=0;i<_l;i++){if(typeof _fo[UFO.opt[i]]!="undefined")_objPar+='<param name="'+UFO.opt[i]+'" value="'+_fo[UFO.opt[i]]+'" />';}
var _p=window.location.protocol=="https:"?"https:":"http:";_e.innerHTML='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"'+_objAtt+' width="'+_fo.width+'" height="'+_fo.height+'" codebase="'+_p+'//download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version='+_fo.majorversion+',0,'+_fo.build+',0"><param name="movie" value="'+_fo.movie+'" />'+_objPar+'</object>';}},createDialog:function(id){var _fo=UFO.foList[id];UFO.createCSS("html","height:100%; overflow:hidden;");UFO.createCSS("body","height:100%; overflow:hidden;");UFO.createCSS("#xi-con","position:absolute; left:0; top:0; z-index:1000; width:100%; height:100%; background-color:#fff; filter:alpha(opacity:75); opacity:0.75;");UFO.createCSS("#xi-dia","position:absolute; left:50%; top:50%; margin-left: -"+Math.round(parseInt(_fo.xiwidth,10)/2)+"px; margin-top: -"+Math.round(parseInt(_fo.xiheight,10)/2)+"px; width:"+_fo.xiwidth+"px; height:"+_fo.xiheight+"px;");var _b=document.getElementsByTagName("body")[0];var _c=UFO.createElement("div");_c.setAttribute("id","xi-con");var _d=UFO.createElement("div");_d.setAttribute("id","xi-dia");_c.appendChild(_d);_b.appendChild(_c);var _mmu=window.location;if(UFO.uaHas("xml")&&UFO.uaHas("safari")){var _mmd=document.getElementsByTagName("title")[0].firstChild.nodeValue=document.getElementsByTagName("title")[0].firstChild.nodeValue.slice(0,47)+" - Flash Player Installation";}
else{var _mmd=document.title=document.title.slice(0,47)+" - Flash Player Installation";}
var _mmp=UFO.pluginType=="ax"?"ActiveX":"PlugIn";var _uc=typeof _fo.xiurlcancel!="undefined"?"&xiUrlCancel="+_fo.xiurlcancel:"";var _uf=typeof _fo.xiurlfailed!="undefined"?"&xiUrlFailed="+_fo.xiurlfailed:"";UFO.foList["xi-dia"]={movie:_fo.ximovie,width:_fo.xiwidth,height:_fo.xiheight,majorversion:"6",build:"65",flashvars:"MMredirectURL="+_mmu+"&MMplayerType="+_mmp+"&MMdoctitle="+_mmd+_uc+_uf};UFO.writeSWF("xi-dia");},expressInstallCallback:function(){var _b=document.getElementsByTagName("body")[0];var _c=document.getElementById("xi-con");_b.removeChild(_c);UFO.createCSS("body","height:auto; overflow:auto;");UFO.createCSS("html","height:auto; overflow:auto;");},cleanupIELeaks:function(){var _o=document.getElementsByTagName("object");var _l=_o.length
for(var i=0;i<_l;i++){_o[i].style.display="none";for(var x in _o[i]){if(typeof _o[i][x]=="function"){_o[i][x]=null;}}}}};if(typeof window.attachEvent!="undefined"&&UFO.uaHas("ieWin")){window.attachEvent("onunload",UFO.cleanupIELeaks);}
YAHOO.Bwy.JsQuicksearchForm=function(id,redirectOverrides){var theContainer=document.getElementById(id);var submitForm=function(e,obj){var selValue=document.getElementById(obj.formSelectId);var selTitle=selValue[selValue.selectedIndex].getAttribute('title');var formAction=obj.theForm.getAttribute('action')+selValue.value;if(selTitle){formAction='/'+selTitle+formAction;}
obj.theForm.setAttribute('action',formAction);if(selValue.value!=''){if(redirectOverrides&&redirectOverrides[selValue.value]!=undefined){window.location=redirectOverrides[selValue.value];return;}
obj.theForm.submit();}}
var adjustContainer=function(theContainer){var theForm=theContainer.getElementsByTagName('form')[0];var formSelects=theForm.getElementsByTagName('select');var formPs=theForm.getElementsByTagName('p');var formSubmit=formPs[1].getElementsByTagName('input');var formObject={theForm:theForm,formSelectId:YAHOO.util.Dom.generateId(formSelects),formSubmitId:YAHOO.util.Dom.generateId(formSubmit)};YAHOO.util.Dom.addClass(theContainer,'js-show');YAHOO.util.Dom.addClass(formObject.formSubmitId,'js-hide');YAHOO.util.Dom.replaceClass(theContainer,'quicksearch-mod','quicksearch-mod-wjs');theForm.removeChild(formPs[1]);var success=YAHOO.util.Event.addListener(formObject.formSelectId,'change',submitForm,formObject);}
adjustContainer(theContainer);}
YAHOO.Bwy.ShowHideTerms=function(){var Dom=YAHOO.util.Dom;var Event=YAHOO.util.Event;var Anim=YAHOO.util.Anim;var terms=Dom.getElementsByClassName('terms');var termsLen=terms.length;function showHideTerms(e,termObj){var hval=termObj.a.innerHTML;var showHide=hval.substring(0,1);if(showHide=='+'){for(x=0;x<termObj.pLen;x++){Dom.replaceClass(termObj.p[x],'js-hide','js-show');termObj.a.innerHTML='- '+termObj.hval;}}else{for(x=0;x<termObj.pLen;x++){Dom.replaceClass(termObj.p[x],'js-show','js-hide');termObj.a.innerHTML='+ '+termObj.hval;}}}
function adjustTerms(){for(x=0;x<termsLen;x++){var term=terms[x];var termObj={h:term.getElementsByTagName('h4')[0],a:document.createElement('a'),p:term.getElementsByTagName('p')}
termObj.pLen=termObj.p.length;termObj.hval=termObj.h.innerHTML;var hnew='+ '+termObj.hval;termObj.a.setAttribute('href','#1');termObj.a.innerHTML=hnew;termObj.h.innerHTML='';termObj.h.appendChild(termObj.a);for(y=0;y<termObj.pLen;y++){Dom.addClass(termObj.p[y],'js-hide');}
Event.addListener(termObj.a,'click',showHideTerms,termObj);}}
adjustTerms();}