if(typeof YAHOO=="undefined"){YAHOO={}}if(typeof YAHOO.Shortcuts=="undefined"){YAHOO.Shortcuts={}}YAHOO.Shortcuts.YUI=YAHOO;function YuiSandbox(yuiContent){return eval("(function(){\n"+yuiContent+"\n return YAHOO;\n})();")};YAHOO.Shortcuts.YUI = YuiSandbox("if(typeof YAHOO==\"undefined\"||!YAHOO){var YAHOO={}}YAHOO.namespace=function(){var F=arguments,G=null,I,J,H;for(I=0;I<F.length;I=I+1){H=F[I].split(\".\");G=YAHOO;for(J=(H[0]==\"YAHOO\")?1:0;J<H.length;J=J+1){G[H[J]]=G[H[J]]||{};G=G[H[J]]}}return G};YAHOO.log=function(F,E,G){var H=YAHOO.widget.Logger;if(H&&H.log){return H.log(F,E,G)}else{return false}};YAHOO.register=function(M,R,J){var N=YAHOO.env.modules;if(!N[M]){N[M]={versions:[],builds:[]}}var L=N[M],O=J.version,P=J.build,Q=YAHOO.env.listeners;L.name=M;L.version=O;L.build=P;L.versions.push(O);L.builds.push(P);L.mainClass=R;for(var K=0;K<Q.length;K=K+1){Q[K](L)}if(R){R.VERSION=O;R.BUILD=P}else{YAHOO.log(\"mainClass is undefined for module \"+M,\"warn\")}};YAHOO.env=YAHOO.env||{modules:[],listeners:[]};YAHOO.env.getVersion=function(B){return YAHOO.env.modules[B]||null};YAHOO.env.ua=function(){var E={ie:0,opera:0,gecko:0,webkit:0,mobile:null};var F=navigator.userAgent,D;if((/KHTML/).test(F)){E.webkit=1}D=F.match(/AppleWebKit\\/([^\s]*)/);if(D&&D[1]){E.webkit=parseFloat(D[1]);if(/ Mobile\\//.test(F)){E.mobile=\"Apple\"}else{D=F.match(/NokiaN[^\\/]*/);if(D){E.mobile=D[0]}}}if(!E.webkit){D=F.match(/Opera[\s\\/]([^\s]*)/);if(D&&D[1]){E.opera=parseFloat(D[1]);D=F.match(/Opera Mini[^;]*/);if(D){E.mobile=D[0]}}else{D=F.match(/MSIE\s([^;]*)/);if(D&&D[1]){E.ie=parseFloat(D[1])}else{D=F.match(/Gecko\\/([^\s]*)/);if(D){E.gecko=1;D=F.match(/rv:([^\s\)]*)/);if(D&&D[1]){E.gecko=parseFloat(D[1])}}}}}return E}();(function(){YAHOO.namespace(\"util\",\"widget\",\"example\");if(\"undefined\"!==typeof YAHOO_config){var H=YAHOO_config.listener,E=YAHOO.env.listeners,F=true,G;if(H){for(G=0;G<E.length;G=G+1){if(E[G]==H){F=false;break}}if(F){E.push(H)}}}})();YAHOO.lang=YAHOO.lang||{isArray:function(D){if(D){var C=YAHOO.lang;return C.isNumber(D.length)&&C.isFunction(D.splice)}return false},isBoolean:function(B){return typeof B===\"boolean\"},isFunction:function(B){return typeof B===\"function\"},isNull:function(B){return B===null},isNumber:function(B){return typeof B===\"number\"&&isFinite(B)},isObject:function(B){return(B&&(typeof B===\"object\"||YAHOO.lang.isFunction(B)))||false},isString:function(B){return typeof B===\"string\"},isUndefined:function(B){return typeof B===\"undefined\"},hasOwnProperty:function(C,D){if(Object.prototype.hasOwnProperty){return C.hasOwnProperty(D)}return !YAHOO.lang.isUndefined(C[D])&&C.constructor.prototype[D]!==C[D]},_IEEnumFix:function(K,L){if(YAHOO.env.ua.ie){var I=[\"toString\",\"valueOf\"],G;for(G=0;G<I.length;G=G+1){var H=I[G],J=L[H];if(YAHOO.lang.isFunction(J)&&J!=Object.prototype[H]){K[H]=J}}}},extend:function(H,G,I){if(!G||!H){throw new Error(\"YAHOO.lang.extend failed, please check that all dependencies are included.\")}var J=function(){};J.prototype=G.prototype;H.prototype=new J();H.prototype.constructor=H;H.superclass=G.prototype;if(G.prototype.constructor==Object.prototype.constructor){G.prototype.constructor=G}if(I){for(var F in I){H.prototype[F]=I[F]}YAHOO.lang._IEEnumFix(H.prototype,I)}},augmentObject:function(I,J){if(!J||!I){throw new Error(\"Absorb failed, verify dependencies.\")}var G=arguments,K,H,L=G[2];if(L&&L!==true){for(K=2;K<G.length;K=K+1){I[G[K]]=J[G[K]]}}else{for(H in J){if(L||!I[H]){I[H]=J[H]}}YAHOO.lang._IEEnumFix(I,J)}},augmentProto:function(F,G){if(!G||!F){throw new Error(\"Augment failed, verify dependencies.\")}var E=[F.prototype,G.prototype];for(var H=2;H<arguments.length;H=H+1){E.push(arguments[H])}YAHOO.lang.augmentObject.apply(this,E)},dump:function(N,R){var L=YAHOO.lang,K,S,P=[],O=\"{...}\",M=\"f(){...}\",Q=\", \",T=\" => \";if(!L.isObject(N)){return N+\"\"}else{if(N instanceof Date||(\"nodeType\" in N&&\"tagName\" in N)){return N}else{if(L.isFunction(N)){return M}}}R=(L.isNumber(R))?R:3;if(L.isArray(N)){P.push(\"[\");for(K=0,S=N.length;K<S;K=K+1){if(L.isObject(N[K])){P.push((R>0)?L.dump(N[K],R-1):O)}else{P.push(N[K])}P.push(Q)}if(P.length>1){P.pop()}P.push(\"]\")}else{P.push(\"{\");for(K in N){if(L.hasOwnProperty(N,K)){P.push(K+T);if(L.isObject(N[K])){P.push((R>0)?L.dump(N[K],R-1):O)}else{P.push(N[K])}P.push(Q)}}if(P.length>1){P.pop()}P.push(\"}\")}return P.join(\"\")},substitute:function(V,T,c){var f,g,h,Z,Y,W,R=YAHOO.lang,a=[],S,e=\"dump\",b=\" \",U=\"{\",X=\"}\";for(;;){f=V.lastIndexOf(U);if(f<0){break}g=V.indexOf(X,f);if(f+1>=g){break}S=V.substring(f+1,g);Z=S;W=null;h=Z.indexOf(b);if(h>-1){W=Z.substring(h+1);Z=Z.substring(0,h)}Y=T[Z];if(c){Y=c(Z,Y,W)}if(R.isObject(Y)){if(R.isArray(Y)){Y=R.dump(Y,parseInt(W,10))}else{W=W||\"\";var d=W.indexOf(e);if(d>-1){W=W.substring(4)}if(Y.toString===Object.prototype.toString||d>-1){Y=R.dump(Y,parseInt(W,10))}else{Y=Y.toString()}}}else{if(!R.isString(Y)&&!R.isNumber(Y)){Y=\"~-\"+a.length+\"-~\";a[a.length]=S}}V=V.substring(0,f)+Y+V.substring(g+1)}for(f=a.length-1;f>=0;f=f-1){V=V.replace(new RegExp(\"~-\"+f+\"-~\"),\"{\"+a[f]+\"}\",\"g\")}return V},trim:function(C){try{return C.replace(/^\s+|\s+$/g,\"\")}catch(D){return C}},merge:function(){var F={},H=arguments;for(var G=0,E=H.length;G<E;G=G+1){YAHOO.lang.augmentObject(F,H[G],true)}return F},later:function(O,L,N,J,R){O=O||0;L=L||{};var K=N,P=J,Q,M;if(YAHOO.lang.isString(N)){K=L[N]}if(!K){throw new TypeError(\"method undefined\")}if(!YAHOO.lang.isArray(P)){P=[J]}Q=function(){K.apply(L,P)};M=(R)?setInterval(Q,O):setTimeout(Q,O);return{interval:R,cancel:function(){if(this.interval){clearInterval(M)}else{clearTimeout(M)}}}},isValue:function(D){var C=YAHOO.lang;return(C.isObject(D)||C.isString(D)||C.isNumber(D)||C.isBoolean(D))}};YAHOO.util.Lang=YAHOO.lang;YAHOO.lang.augment=YAHOO.lang.augmentProto;YAHOO.augment=YAHOO.lang.augmentProto;YAHOO.extend=YAHOO.lang.extend;YAHOO.register(\"yahoo\",YAHOO,{version:\"2.4.1\",build:\"742\"});YAHOO.util.CustomEvent=function(H,J,I,F){this.type=H;this.scope=J||window;this.silent=I;this.signature=F||YAHOO.util.CustomEvent.LIST;this.subscribers=[];if(!this.silent){}var G=\"_YUICEOnSubscribe\";if(H!==G){this.subscribeEvent=new YAHOO.util.CustomEvent(G,this,true)}this.lastError=null};YAHOO.util.CustomEvent.LIST=0;YAHOO.util.CustomEvent.FLAT=1;YAHOO.util.CustomEvent.prototype={subscribe:function(F,E,D){if(!F){throw new Error(\"Invalid callback for subscriber to '\"+this.type+\"'\")}if(this.subscribeEvent){this.subscribeEvent.fire(F,E,D)}this.subscribers.push(new YAHOO.util.Subscriber(F,E,D))},unsubscribe:function(J,H){if(!J){return this.unsubscribeAll()}var I=false;for(var L=0,G=this.subscribers.length;L<G;++L){var K=this.subscribers[L];if(K&&K.contains(J,H)){this._delete(L);I=true}}return I},fire:function(){var M=this.subscribers.length;if(!M&&this.silent){return true}var U=[],W=true,N,T=false;for(N=0;N<arguments.length;++N){U.push(arguments[N])}if(!this.silent){}for(N=0;N<M;++N){var Q=this.subscribers[N];if(!Q){T=true}else{if(!this.silent){}var R=Q.getScope(this.scope);if(this.signature==YAHOO.util.CustomEvent.FLAT){var P=null;if(U.length>0){P=U[0]}try{W=Q.fn.call(R,P,Q.obj)}catch(X){this.lastError=X}}else{try{W=Q.fn.call(R,this.type,U,Q.obj)}catch(V){this.lastError=V}}if(false===W){if(!this.silent){}return false}}}if(T){var S=[],O=this.subscribers;for(N=0,M=O.length;N<M;N=N+1){S.push(O[N])}this.subscribers=S}return true},unsubscribeAll:function(){for(var D=0,C=this.subscribers.length;D<C;++D){this._delete(C-1-D)}this.subscribers=[];return D},_delete:function(C){var D=this.subscribers[C];if(D){delete D.fn;delete D.obj}this.subscribers[C]=null},toString:function(){return\"CustomEvent: '\"+this.type+\"', scope: \"+this.scope}};YAHOO.util.Subscriber=function(F,E,D){this.fn=F;this.obj=YAHOO.lang.isUndefined(E)?null:E;this.override=D};YAHOO.util.Subscriber.prototype.getScope=function(B){if(this.override){if(this.override===true){return this.obj}else{return this.override}}return B};YAHOO.util.Subscriber.prototype.contains=function(C,D){if(D){return(this.fn==C&&this.obj==D)}else{return(this.fn==C)}};YAHOO.util.Subscriber.prototype.toString=function(){return\"Subscriber { obj: \"+this.obj+\", override: \"+(this.override||\"no\")+\" }\"};if(!YAHOO.util.Event){YAHOO.util.Event=function(){var Q=false;var P=[];var O=[];var R=[];var T=[];var L=0;var S=[];var M=[];var N=0;var K={63232:38,63233:40,63234:37,63235:39,63276:33,63277:34,25:9};return{POLL_RETRYS:4000,POLL_INTERVAL:10,EL:0,TYPE:1,FN:2,WFN:3,UNLOAD_OBJ:3,ADJ_SCOPE:4,OBJ:5,OVERRIDE:6,lastError:null,isSafari:YAHOO.env.ua.webkit,webkit:YAHOO.env.ua.webkit,isIE:YAHOO.env.ua.ie,_interval:null,_dri:null,DOMReady:false,startInterval:function(){if(!this._interval){var B=this;var A=function(){B._tryPreloadAttach()};this._interval=setInterval(A,this.POLL_INTERVAL)}},onAvailable:function(D,G,C,E,F){var B=(YAHOO.lang.isString(D))?[D]:D;for(var A=0;A<B.length;A=A+1){S.push({id:B[A],fn:G,obj:C,override:E,checkReady:F})}L=this.POLL_RETRYS;this.startInterval()},onContentReady:function(D,B,C,A){this.onAvailable(D,B,C,A,true)},onDOMReady:function(B,C,A){if(this.DOMReady){setTimeout(function(){var D=window;if(A){if(A===true){D=C}else{D=A}}B.call(D,\"DOMReady\",[],C)},0)}else{this.DOMReadyEvent.subscribe(B,C,A)}},addListener:function(b,d,D,I,c){if(!D||!D.call){return false}if(this._isValidCollection(b)){var C=true;for(var H=0,F=b.length;H<F;++H){C=this.on(b[H],d,D,I,c)&&C}return C}else{if(YAHOO.lang.isString(b)){var J=this.getEl(b);if(J){b=J}else{this.onAvailable(b,function(){YAHOO.util.Event.on(b,d,D,I,c)});return true}}}if(!b){return false}if(\"unload\"==d&&I!==this){O[O.length]=[b,d,D,I,c];return true}var A=b;if(c){if(c===true){A=I}else{A=c}}var a=function(U){return D.call(A,YAHOO.util.Event.getEvent(U,b),I)};var B=[b,d,D,a,A,I,c];var G=P.length;P[G]=B;if(this.useLegacyEvent(b,d)){var Z=this.getLegacyIndex(b,d);if(Z==-1||b!=R[Z][0]){Z=R.length;M[b.id+d]=Z;R[Z]=[b,d,b[\"on\"+d]];T[Z]=[];b[\"on\"+d]=function(U){YAHOO.util.Event.fireLegacyEvent(YAHOO.util.Event.getEvent(U),Z)}}T[Z].push(B)}else{try{this._simpleAdd(b,d,a,false)}catch(E){this.lastError=E;this.removeListener(b,d,D);return false}}return true},fireLegacyEvent:function(F,H){var D=true,J,B,C,A,E;B=T[H];for(var I=0,G=B.length;I<G;++I){C=B[I];if(C&&C[this.WFN]){A=C[this.ADJ_SCOPE];E=C[this.WFN].call(A,F);D=(D&&E)}}J=R[H];if(J&&J[2]){J[2](F)}return D},getLegacyIndex:function(A,C){var B=this.generateId(A)+C;if(typeof M[B]==\"undefined\"){return -1}else{return M[B]}},useLegacyEvent:function(A,C){if(this.webkit&&(\"click\"==C||\"dblclick\"==C)){var B=parseInt(this.webkit,10);if(!isNaN(B)&&B<418){return true}}return false},removeListener:function(W,X,C){var H,E,A;if(typeof W==\"string\"){W=this.getEl(W)}else{if(this._isValidCollection(W)){var B=true;for(H=0,E=W.length;H<E;++H){B=(this.removeListener(W[H],X,C)&&B)}return B}}if(!C||!C.call){return this.purgeElement(W,false,X)}if(\"unload\"==X){for(H=0,E=O.length;H<E;H++){A=O[H];if(A&&A[0]==W&&A[1]==X&&A[2]==C){O[H]=null;return true}}return false}var G=null;var F=arguments[3];if(\"undefined\"===typeof F){F=this._getCacheIndex(W,X,C)}if(F>=0){G=P[F]}if(!W||!G){return false}if(this.useLegacyEvent(W,X)){var I=this.getLegacyIndex(W,X);var J=T[I];if(J){for(H=0,E=J.length;H<E;++H){A=J[H];if(A&&A[this.EL]==W&&A[this.TYPE]==X&&A[this.FN]==C){J[H]=null;break}}}}else{try{this._simpleRemove(W,X,G[this.WFN],false)}catch(D){this.lastError=D;return false}}delete P[F][this.WFN];delete P[F][this.FN];P[F]=null;return true},getTarget:function(C,A){var B=C.target||C.srcElement;return this.resolveTextNode(B)},resolveTextNode:function(A){if(A&&3==A.nodeType){return A.parentNode}else{return A}},getPageX:function(A){var B=A.pageX;if(!B&&0!==B){B=A.clientX||0;if(this.isIE){B+=this._getScrollLeft()}}return B},getPageY:function(B){var A=B.pageY;if(!A&&0!==A){A=B.clientY||0;if(this.isIE){A+=this._getScrollTop()}}return A},getXY:function(A){return[this.getPageX(A),this.getPageY(A)]},getRelatedTarget:function(A){var B=A.relatedTarget;if(!B){if(A.type==\"mouseout\"){B=A.toElement}else{if(A.type==\"mouseover\"){B=A.fromElement}}}return this.resolveTextNode(B)},getTime:function(C){if(!C.time){var A=new Date().getTime();try{C.time=A}catch(B){this.lastError=B;return A}}return C.time},stopEvent:function(A){this.stopPropagation(A);this.preventDefault(A)},stopPropagation:function(A){if(A.stopPropagation){A.stopPropagation()}else{A.cancelBubble=true}},preventDefault:function(A){if(A.preventDefault){A.preventDefault()}else{A.returnValue=false}},getEvent:function(D,B){var A=D||window.event;if(!A){var C=this.getEvent.caller;while(C){A=C.arguments[0];if(A&&Event==A.constructor){break}C=C.caller}}return A},getCharCode:function(A){var B=A.keyCode||A.charCode||0;if(YAHOO.env.ua.webkit&&(B in K)){B=K[B]}return B},_getCacheIndex:function(D,C,E){for(var F=0,A=P.length;F<A;++F){var B=P[F];if(B&&B[this.FN]==E&&B[this.EL]==D&&B[this.TYPE]==C){return F}}return -1},generateId:function(B){var A=B.id;if(!A){A=\"yuievtautoid-\"+N;++N;B.id=A}return A},_isValidCollection:function(A){try{return(A&&typeof A!==\"string\"&&A.length&&!A.tagName&&!A.alert&&typeof A[0]!==\"undefined\")}catch(B){return false}},elCache:{},getEl:function(A){return(typeof A===\"string\")?document.getElementById(A):A},clearCache:function(){},DOMReadyEvent:new YAHOO.util.CustomEvent(\"DOMReady\",this),_load:function(A){if(!Q){Q=true;var B=YAHOO.util.Event;B._ready();B._tryPreloadAttach()}},_ready:function(A){var B=YAHOO.util.Event;if(!B.DOMReady){B.DOMReady=true;B.DOMReadyEvent.fire();B._simpleRemove(document,\"DOMContentLoaded\",B._ready)}},_tryPreloadAttach:function(){if(this.locked){return false}if(this.isIE){if(!this.DOMReady){this.startInterval();return false}}this.locked=true;var D=!Q;if(!D){D=(L>0)}var E=[];var C=function(I,H){var J=I;if(H.override){if(H.override===true){J=H.obj}else{J=H.override}}H.fn.call(J,H.obj)};var A,B,F,G;for(A=0,B=S.length;A<B;++A){F=S[A];if(F&&!F.checkReady){G=this.getEl(F.id);if(G){C(G,F);S[A]=null}else{E.push(F)}}}for(A=0,B=S.length;A<B;++A){F=S[A];if(F&&F.checkReady){G=this.getEl(F.id);if(G){if(Q||G.nextSibling){C(G,F);S[A]=null}}else{E.push(F)}}}L=(E.length===0)?0:L-1;if(D){this.startInterval()}else{clearInterval(this._interval);this._interval=null}this.locked=false;return true},purgeElement:function(F,E,C){var H=(YAHOO.lang.isString(F))?this.getEl(F):F;var D=this.getListeners(H,C),G,B;if(D){for(G=0,B=D.length;G<B;++G){var A=D[G];this.removeListener(H,A.type,A.fn,A.index)}}if(E&&H&&H.childNodes){for(G=0,B=H.childNodes.length;G<B;++G){this.purgeElement(H.childNodes[G],E,C)}}},getListeners:function(H,J){var E=[],I;if(!J){I=[P,O]}else{if(J===\"unload\"){I=[O]}else{I=[P]}}var C=(YAHOO.lang.isString(H))?this.getEl(H):H;for(var F=0;F<I.length;F=F+1){var A=I[F];if(A&&A.length>0){for(var D=0,B=A.length;D<B;++D){var G=A[D];if(G&&G[this.EL]===C&&(!J||J===G[this.TYPE])){E.push({type:G[this.TYPE],fn:G[this.FN],obj:G[this.OBJ],adjust:G[this.OVERRIDE],scope:G[this.ADJ_SCOPE],index:D})}}}}return(E.length)?E:null},_unload:function(C){var D=YAHOO.util.Event,F,G,A,B,H;for(F=0,B=O.length;F<B;++F){A=O[F];if(A){var E=window;if(A[D.ADJ_SCOPE]){if(A[D.ADJ_SCOPE]===true){E=A[D.UNLOAD_OBJ]}else{E=A[D.ADJ_SCOPE]}}A[D.FN].call(E,D.getEvent(C,A[D.EL]),A[D.UNLOAD_OBJ]);O[F]=null;A=null;E=null}}O=null;if(YAHOO.env.ua.ie&&P&&P.length>0){G=P.length;while(G){H=G-1;A=P[H];if(A){D.removeListener(A[D.EL],A[D.TYPE],A[D.FN],H)}G--}A=null}R=null;D._simpleRemove(window,\"unload\",D._unload)},_getScrollLeft:function(){return this._getScroll()[1]},_getScrollTop:function(){return this._getScroll()[0]},_getScroll:function(){var B=document.documentElement,A=document.body;if(B&&(B.scrollTop||B.scrollLeft)){return[B.scrollTop,B.scrollLeft]}else{if(A){return[A.scrollTop,A.scrollLeft]}else{return[0,0]}}},regCE:function(){},_simpleAdd:function(){if(window.addEventListener){return function(D,C,A,B){D.addEventListener(C,A,(B))}}else{if(window.attachEvent){return function(D,C,A,B){D.attachEvent(\"on\"+C,A)}}else{return function(){}}}}(),_simpleRemove:function(){if(window.removeEventListener){return function(D,C,A,B){D.removeEventListener(C,A,(B))}}else{if(window.detachEvent){return function(A,C,B){A.detachEvent(\"on\"+C,B)}}else{return function(){}}}}()}}();(function(){var B=YAHOO.util.Event;B.on=B.addListener;if(B.isIE){YAHOO.util.Event.onDOMReady(YAHOO.util.Event._tryPreloadAttach,YAHOO.util.Event,true);B._dri=setInterval(function(){var A=document.createElement(\"p\");try{A.doScroll(\"left\");clearInterval(B._dri);B._dri=null;B._ready();A=null}catch(D){A=null}},B.POLL_INTERVAL)}else{if(B.webkit){B._dri=setInterval(function(){var A=document.readyState;if(\"loaded\"==A||\"complete\"==A){clearInterval(B._dri);B._dri=null;B._ready()}},B.POLL_INTERVAL)}else{B._simpleAdd(document,\"DOMContentLoaded\",B._ready)}}B._simpleAdd(window,\"load\",B._load);B._simpleAdd(window,\"unload\",B._unload);B._tryPreloadAttach()})()}YAHOO.util.EventProvider=function(){};YAHOO.util.EventProvider.prototype={__yui_events:null,__yui_subscribers:null,subscribe:function(G,K,H,I){this.__yui_events=this.__yui_events||{};var J=this.__yui_events[G];if(J){J.subscribe(K,H,I)}else{this.__yui_subscribers=this.__yui_subscribers||{};var L=this.__yui_subscribers;if(!L[G]){L[G]=[]}L[G].push({fn:K,obj:H,override:I})}},unsubscribe:function(M,K,I){this.__yui_events=this.__yui_events||{};var H=this.__yui_events;if(M){var J=H[M];if(J){return J.unsubscribe(K,I)}}else{var N=true;for(var L in H){if(YAHOO.lang.hasOwnProperty(H,L)){N=N&&H[L].unsubscribe(K,I)}}return N}return false},unsubscribeAll:function(B){return this.unsubscribe(B)},createEvent:function(P,J){this.__yui_events=this.__yui_events||{};var M=J||{};var N=this.__yui_events;if(N[P]){}else{var O=M.scope||this;var R=(M.silent);var L=new YAHOO.util.CustomEvent(P,O,R,YAHOO.util.CustomEvent.FLAT);N[P]=L;if(M.onSubscribeCallback){L.subscribeEvent.subscribe(M.onSubscribeCallback)}this.__yui_subscribers=this.__yui_subscribers||{};var Q=this.__yui_subscribers[P];if(Q){for(var K=0;K<Q.length;++K){L.subscribe(Q[K].fn,Q[K].obj,Q[K].override)}}}return N[P]},fireEvent:function(K,L,H,M){this.__yui_events=this.__yui_events||{};var I=this.__yui_events[K];if(!I){return null}var N=[];for(var J=1;J<arguments.length;++J){N.push(arguments[J])}return I.fire.apply(I,N)},hasEvent:function(B){if(this.__yui_events){if(this.__yui_events[B]){return true}}return false}};YAHOO.util.KeyListener=function(G,H,L,K){if(!G){}else{if(!H){}else{if(!L){}}}if(!K){K=YAHOO.util.KeyListener.KEYDOWN}var J=new YAHOO.util.CustomEvent(\"keyPressed\");this.enabledEvent=new YAHOO.util.CustomEvent(\"enabled\");this.disabledEvent=new YAHOO.util.CustomEvent(\"disabled\");if(typeof G==\"string\"){G=document.getElementById(G)}if(typeof L==\"function\"){J.subscribe(L)}else{J.subscribe(L.fn,L.scope,L.correctScope)}function I(A,B){if(!H.shift){H.shift=false}if(!H.alt){H.alt=false}if(!H.ctrl){H.ctrl=false}if(A.shiftKey==H.shift&&A.altKey==H.alt&&A.ctrlKey==H.ctrl){var D;if(H.keys instanceof Array){for(var C=0;C<H.keys.length;C++){D=H.keys[C];if(D==A.charCode){J.fire(A.charCode,A);break}else{if(D==A.keyCode){J.fire(A.keyCode,A);break}}}}else{D=H.keys;if(D==A.charCode){J.fire(A.charCode,A)}else{if(D==A.keyCode){J.fire(A.keyCode,A)}}}}}this.enable=function(){if(!this.enabled){YAHOO.util.Event.addListener(G,K,I);this.enabledEvent.fire(H)}this.enabled=true};this.disable=function(){if(this.enabled){YAHOO.util.Event.removeListener(G,K,I);this.disabledEvent.fire(H)}this.enabled=false};this.toString=function(){return\"KeyListener [\"+H.keys+\"] \"+G.tagName+(G.id?\"[\"+G.id+\"]\":\"\")}};YAHOO.util.KeyListener.KEYDOWN=\"keydown\";YAHOO.util.KeyListener.KEYUP=\"keyup\";YAHOO.util.KeyListener.KEY={ALT:18,BACK_SPACE:8,CAPS_LOCK:20,CONTROL:17,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,LEFT:37,META:224,NUM_LOCK:144,PAGE_DOWN:34,PAGE_UP:33,PAUSE:19,PRINTSCREEN:44,RIGHT:39,SCROLL_LOCK:145,SHIFT:16,SPACE:32,TAB:9,UP:38};YAHOO.register(\"event\",YAHOO.util.Event,{version:\"2.4.1\",build:\"742\"});(function(){var S=YAHOO.util,Y,a,c=0,Z={},e={},W=window.document;var R=YAHOO.env.ua.opera,X=YAHOO.env.ua.webkit,T=YAHOO.env.ua.gecko,d=YAHOO.env.ua.ie;var f={HYPHEN:/(-[a-z])/i,ROOT_TAG:/^body|html$/i};var V=function(B){if(!f.HYPHEN.test(B)){return B}if(Z[B]){return Z[B]}var A=B;while(f.HYPHEN.exec(A)){A=A.replace(RegExp.$1,RegExp.$1.substr(1).toUpperCase())}Z[B]=A;return A};var U=function(A){var B=e[A];if(!B){B=new RegExp(\"(?:^|\\s+)\"+A+\"(?:\\s+|$)\");e[A]=B}return B};if(W.defaultView&&W.defaultView.getComputedStyle){Y=function(D,A){var B=null;if(A==\"float\"){A=\"cssFloat\"}var C=W.defaultView.getComputedStyle(D,\"\");if(C){B=C[V(A)]}return D.style[A]||B}}else{if(W.documentElement.currentStyle&&d){Y=function(E,C){switch(V(C)){case\"opacity\":var A=100;try{A=E.filters[\"DXImageTransform.Microsoft.Alpha\"].opacity}catch(B){try{A=E.filters(\"alpha\").opacity}catch(B){}}return A/100;case\"float\":C=\"styleFloat\";default:var D=E.currentStyle?E.currentStyle[C]:null;return(E.style[C]||D)}}}else{Y=function(B,A){return B.style[A]}}}if(d){a=function(C,B,A){switch(B){case\"opacity\":if(YAHOO.lang.isString(C.style.filter)){C.style.filter=\"alpha(opacity=\"+A*100+\")\";if(!C.currentStyle||!C.currentStyle.hasLayout){C.style.zoom=1}}break;case\"float\":B=\"styleFloat\";default:C.style[B]=A}}}else{a=function(C,B,A){if(B==\"float\"){B=\"cssFloat\"}C.style[B]=A}}var Q=function(B,A){return B&&B.nodeType==1&&(!A||A(B))};YAHOO.util.Dom={get:function(B){if(B&&(B.tagName||B.item)){return B}if(YAHOO.lang.isString(B)||!B){return W.getElementById(B)}if(B.length!==undefined){var A=[];for(var C=0,D=B.length;C<D;++C){A[A.length]=S.Dom.get(B[C])}return A}return B},getStyle:function(C,A){A=V(A);var B=function(D){return Y(D,A)};return S.Dom.batch(C,B,S.Dom,true)},setStyle:function(D,B,A){B=V(B);var C=function(E){a(E,B,A)};S.Dom.batch(D,C,S.Dom,true)},getXY:function(B){var A=function(C){if((C.parentNode===null||C.offsetParent===null||this.getStyle(C,\"display\")==\"none\")&&C!=C.ownerDocument.body){return false}return b(C)};return S.Dom.batch(B,A,S.Dom,true)},getX:function(B){var A=function(C){return S.Dom.getXY(C)[0]};return S.Dom.batch(B,A,S.Dom,true)},getY:function(B){var A=function(C){return S.Dom.getXY(C)[1]};return S.Dom.batch(B,A,S.Dom,true)},setXY:function(D,A,B){var C=function(E){var F=this.getStyle(E,\"position\");if(F==\"static\"){this.setStyle(E,\"position\",\"relative\");F=\"relative\"}var H=this.getXY(E);if(H===false){return false}var I=[parseInt(this.getStyle(E,\"left\"),10),parseInt(this.getStyle(E,\"top\"),10)];if(isNaN(I[0])){I[0]=(F==\"relative\")?0:E.offsetLeft}if(isNaN(I[1])){I[1]=(F==\"relative\")?0:E.offsetTop}if(A[0]!==null){E.style.left=A[0]-H[0]+I[0]+\"px\"}if(A[1]!==null){E.style.top=A[1]-H[1]+I[1]+\"px\"}if(!B){var G=this.getXY(E);if((A[0]!==null&&G[0]!=A[0])||(A[1]!==null&&G[1]!=A[1])){this.setXY(E,A,true)}}};S.Dom.batch(D,C,S.Dom,true)},setX:function(A,B){S.Dom.setXY(A,[B,null])},setY:function(B,A){S.Dom.setXY(B,[null,A])},getRegion:function(B){var A=function(D){if((D.parentNode===null||D.offsetParent===null||this.getStyle(D,\"display\")==\"none\")&&D!=W.body){return false}var C=S.Region.getRegion(D);return C};return S.Dom.batch(B,A,S.Dom,true)},getClientWidth:function(){return S.Dom.getViewportWidth()},getClientHeight:function(){return S.Dom.getViewportHeight()},getElementsByClassName:function(E,A,D,C){A=A||\"*\";D=(D)?S.Dom.get(D):null||W;if(!D){return[]}var H=[],I=D.getElementsByTagName(A),B=U(E);for(var G=0,F=I.length;G<F;++G){if(B.test(I[G].className)){H[H.length]=I[G];if(C){C.call(I[G],I[G])}}}return H},hasClass:function(B,C){var D=U(C);var A=function(E){return D.test(E.className)};return S.Dom.batch(B,A,S.Dom,true)},addClass:function(B,C){var A=function(D){if(this.hasClass(D,C)){return false}D.className=YAHOO.lang.trim([D.className,C].join(\" \"));return true};return S.Dom.batch(B,A,S.Dom,true)},removeClass:function(B,C){var D=U(C);var A=function(F){if(!this.hasClass(F,C)){return false}var E=F.className;F.className=E.replace(D,\" \");if(this.hasClass(F,C)){this.removeClass(F,C)}F.className=YAHOO.lang.trim(F.className);return true};return S.Dom.batch(B,A,S.Dom,true)},replaceClass:function(B,D,E){if(!E||D===E){return false}var C=U(D);var A=function(F){if(!this.hasClass(F,D)){this.addClass(F,E);return true}F.className=F.className.replace(C,\" \"+E+\" \");if(this.hasClass(F,D)){this.replaceClass(F,D,E)}F.className=YAHOO.lang.trim(F.className);return true};return S.Dom.batch(B,A,S.Dom,true)},generateId:function(C,A){A=A||\"yui-gen\";var B=function(E){if(E&&E.id){return E.id}var D=A+c++;if(E){E.id=D}return D};return S.Dom.batch(C,B,S.Dom,true)||B.apply(S.Dom,arguments)},isAncestor:function(B,A){B=S.Dom.get(B);A=S.Dom.get(A);if(!B||!A){return false}if(B.contains&&A.nodeType&&!X){return B.contains(A)}else{if(B.compareDocumentPosition&&A.nodeType){return !!(B.compareDocumentPosition(A)&16)}else{if(A.nodeType){return !!this.getAncestorBy(A,function(C){return C==B})}}}return false},inDocument:function(A){return this.isAncestor(W.documentElement,A)},getElementsBy:function(H,F,E,C){F=F||\"*\";E=(E)?S.Dom.get(E):null||W;if(!E){return[]}var D=[],A=E.getElementsByTagName(F);for(var B=0,G=A.length;B<G;++B){if(H(A[B])){D[D.length]=A[B];if(C){C(A[B])}}}return D},batch:function(C,H,A,E){C=(C&&(C.tagName||C.item))?C:S.Dom.get(C);if(!C||!H){return false}var D=(E)?A:window;if(C.tagName||C.length===undefined){return H.call(D,C,A)}var B=[];for(var F=0,G=C.length;F<G;++F){B[B.length]=H.call(D,C[F],A)}return B},getDocumentHeight:function(){var A=(W.compatMode!=\"CSS1Compat\")?W.body.scrollHeight:W.documentElement.scrollHeight;var B=Math.max(A,S.Dom.getViewportHeight());return B},getDocumentWidth:function(){var A=(W.compatMode!=\"CSS1Compat\")?W.body.scrollWidth:W.documentElement.scrollWidth;var B=Math.max(A,S.Dom.getViewportWidth());return B},getViewportHeight:function(){var B=self.innerHeight;var A=W.compatMode;if((A||d)&&!R){B=(A==\"CSS1Compat\")?W.documentElement.clientHeight:W.body.clientHeight}return B},getViewportWidth:function(){var B=self.innerWidth;var A=W.compatMode;if(A||d){B=(A==\"CSS1Compat\")?W.documentElement.clientWidth:W.body.clientWidth}return B},getAncestorBy:function(B,A){while(B=B.parentNode){if(Q(B,A)){return B}}return null},getAncestorByClassName:function(B,C){B=S.Dom.get(B);if(!B){return null}var A=function(D){return S.Dom.hasClass(D,C)};return S.Dom.getAncestorBy(B,A)},getAncestorByTagName:function(B,C){B=S.Dom.get(B);if(!B){return null}var A=function(D){return D.tagName&&D.tagName.toUpperCase()==C.toUpperCase()};return S.Dom.getAncestorBy(B,A)},getPreviousSiblingBy:function(B,A){while(B){B=B.previousSibling;if(Q(B,A)){return B}}return null},getPreviousSibling:function(A){A=S.Dom.get(A);if(!A){return null}return S.Dom.getPreviousSiblingBy(A)},getNextSiblingBy:function(B,A){while(B){B=B.nextSibling;if(Q(B,A)){return B}}return null},getNextSibling:function(A){A=S.Dom.get(A);if(!A){return null}return S.Dom.getNextSiblingBy(A)},getFirstChildBy:function(C,A){var B=(Q(C.firstChild,A))?C.firstChild:null;return B||S.Dom.getNextSiblingBy(C.firstChild,A)},getFirstChild:function(B,A){B=S.Dom.get(B);if(!B){return null}return S.Dom.getFirstChildBy(B)},getLastChildBy:function(C,A){if(!C){return null}var B=(Q(C.lastChild,A))?C.lastChild:null;return B||S.Dom.getPreviousSiblingBy(C.lastChild,A)},getLastChild:function(A){A=S.Dom.get(A);return S.Dom.getLastChildBy(A)},getChildrenBy:function(C,A){var B=S.Dom.getFirstChildBy(C,A);var D=B?[B]:[];S.Dom.getNextSiblingBy(B,function(E){if(!A||A(E)){D[D.length]=E}return false});return D},getChildren:function(A){A=S.Dom.get(A);if(!A){}return S.Dom.getChildrenBy(A)},getDocumentScrollLeft:function(A){A=A||W;return Math.max(A.documentElement.scrollLeft,A.body.scrollLeft)},getDocumentScrollTop:function(A){A=A||W;return Math.max(A.documentElement.scrollTop,A.body.scrollTop)},insertBefore:function(A,B){A=S.Dom.get(A);B=S.Dom.get(B);if(!A||!B||!B.parentNode){return null}return B.parentNode.insertBefore(A,B)},insertAfter:function(A,B){A=S.Dom.get(A);B=S.Dom.get(B);if(!A||!B||!B.parentNode){return null}if(B.nextSibling){return B.parentNode.insertBefore(A,B.nextSibling)}else{return B.parentNode.appendChild(A)}},getClientRegion:function(){var B=S.Dom.getDocumentScrollTop(),C=S.Dom.getDocumentScrollLeft(),A=S.Dom.getViewportWidth()+C,D=S.Dom.getViewportHeight()+B;return new S.Region(B,A,D,C)}};var b=function(){if(W.documentElement.getBoundingClientRect){return function(B){var A=B.getBoundingClientRect();var C=B.ownerDocument;return[A.left+S.Dom.getDocumentScrollLeft(C),A.top+S.Dom.getDocumentScrollTop(C)]}}else{return function(B){var A=[B.offsetLeft,B.offsetTop];var C=B.offsetParent;var D=(X&&S.Dom.getStyle(B,\"position\")==\"absolute\"&&B.offsetParent==B.ownerDocument.body);if(C!=B){while(C){A[0]+=C.offsetLeft;A[1]+=C.offsetTop;if(!D&&X&&S.Dom.getStyle(C,\"position\")==\"absolute\"){D=true}C=C.offsetParent}}if(D){A[0]-=B.ownerDocument.body.offsetLeft;A[1]-=B.ownerDocument.body.offsetTop}C=B.parentNode;while(C.tagName&&!f.ROOT_TAG.test(C.tagName)){if(S.Dom.getStyle(C,\"display\").search(/^inline|table-row.*$/i)){A[0]-=C.scrollLeft;A[1]-=C.scrollTop}C=C.parentNode}return A}}}()})();YAHOO.util.Region=function(G,F,E,H){this.top=G;this[1]=G;this.right=F;this.bottom=E;this.left=H;this[0]=H};YAHOO.util.Region.prototype.contains=function(B){return(B.left>=this.left&&B.right<=this.right&&B.top>=this.top&&B.bottom<=this.bottom)};YAHOO.util.Region.prototype.getArea=function(){return((this.bottom-this.top)*(this.right-this.left))};YAHOO.util.Region.prototype.intersect=function(G){var I=Math.max(this.top,G.top);var H=Math.min(this.right,G.right);var F=Math.min(this.bottom,G.bottom);var J=Math.max(this.left,G.left);if(F>=I&&H>=J){return new YAHOO.util.Region(I,H,F,J)}else{return null}};YAHOO.util.Region.prototype.union=function(G){var I=Math.min(this.top,G.top);var H=Math.max(this.right,G.right);var F=Math.max(this.bottom,G.bottom);var J=Math.min(this.left,G.left);return new YAHOO.util.Region(I,H,F,J)};YAHOO.util.Region.prototype.toString=function(){return(\"Region {top: \"+this.top+\", right: \"+this.right+\", bottom: \"+this.bottom+\", left: \"+this.left+\"}\")};YAHOO.util.Region.getRegion=function(J){var H=YAHOO.util.Dom.getXY(J);var K=H[1];var I=H[0]+J.offsetWidth;var G=H[1]+J.offsetHeight;var L=H[0];return new YAHOO.util.Region(K,I,G,L)};YAHOO.util.Point=function(C,D){if(YAHOO.lang.isArray(C)){D=C[1];C=C[0]}this.x=this.right=this.left=this[0]=C;this.y=this.top=this.bottom=this[1]=D};YAHOO.util.Point.prototype=new YAHOO.util.Region();YAHOO.register(\"dom\",YAHOO.util.Dom,{version:\"2.4.1\",build:\"742\"});if(!YAHOO.util.DragDropMgr){YAHOO.util.DragDropMgr=function(){var B=YAHOO.util.Event;return{ids:{},handleIds:{},dragCurrent:null,dragOvers:{},deltaX:0,deltaY:0,preventDefault:true,stopPropagation:true,initialized:false,locked:false,interactionInfo:null,init:function(){this.initialized=true},POINT:0,INTERSECT:1,STRICT_INTERSECT:2,mode:0,_execOnAll:function(H,I){for(var G in this.ids){for(var J in this.ids[G]){var A=this.ids[G][J];if(!this.isTypeOfDD(A)){continue}A[H].apply(A,I)}}},_onLoad:function(){this.init();B.on(document,\"mouseup\",this.handleMouseUp,this,true);B.on(document,\"mousemove\",this.handleMouseMove,this,true);B.on(window,\"unload\",this._onUnload,this,true);B.on(window,\"resize\",this._onResize,this,true)},_onResize:function(A){this._execOnAll(\"resetConstraints\",[])},lock:function(){this.locked=true},unlock:function(){this.locked=false},isLocked:function(){return this.locked},locationCache:{},useCache:true,clickPixelThresh:3,clickTimeThresh:1000,dragThreshMet:false,clickTimeout:null,startX:0,startY:0,fromTimeout:false,regDragDrop:function(A,D){if(!this.initialized){this.init()}if(!this.ids[D]){this.ids[D]={}}this.ids[D][A.id]=A},removeDDFromGroup:function(A,F){if(!this.ids[F]){this.ids[F]={}}var E=this.ids[F];if(E&&E[A.id]){delete E[A.id]}},_remove:function(A){for(var D in A.groups){if(D&&this.ids[D][A.id]){delete this.ids[D][A.id]}}delete this.handleIds[A.id]},regHandle:function(A,D){if(!this.handleIds[A]){this.handleIds[A]={}}this.handleIds[A][D]=D},isDragDrop:function(A){return(this.getDDById(A))?true:false},getRelated:function(A,K){var H=[];for(var I in A.groups){for(var J in this.ids[I]){var L=this.ids[I][J];if(!this.isTypeOfDD(L)){continue}if(!K||L.isTarget){H[H.length]=L}}}return H},isLegalTarget:function(A,G){var I=this.getRelated(A,true);for(var H=0,J=I.length;H<J;++H){if(I[H].id==G.id){return true}}return false},isTypeOfDD:function(A){return(A&&A.__ygDragDrop)},isHandle:function(A,D){return(this.handleIds[A]&&this.handleIds[A][D])},getDDById:function(A){for(var D in this.ids){if(this.ids[D][A]){return this.ids[D][A]}}return null},handleMouseDown:function(A,E){this.currentTarget=YAHOO.util.Event.getTarget(A);this.dragCurrent=E;var F=E.getEl();this.startX=YAHOO.util.Event.getPageX(A);this.startY=YAHOO.util.Event.getPageY(A);this.deltaX=this.startX-F.offsetLeft;this.deltaY=this.startY-F.offsetTop;this.dragThreshMet=false;this.clickTimeout=setTimeout(function(){var C=YAHOO.util.DDM;C.startDrag(C.startX,C.startY);C.fromTimeout=true},this.clickTimeThresh)},startDrag:function(F,A){clearTimeout(this.clickTimeout);var E=this.dragCurrent;if(E){E.b4StartDrag(F,A)}if(E){E.startDrag(F,A)}this.dragThreshMet=true},handleMouseUp:function(A){if(this.dragCurrent){clearTimeout(this.clickTimeout);if(this.dragThreshMet){if(this.fromTimeout){this.handleMouseMove(A)}this.fromTimeout=false;this.fireEvents(A,true)}else{}this.stopDrag(A);this.stopEvent(A)}},stopEvent:function(A){if(this.stopPropagation){YAHOO.util.Event.stopPropagation(A)}if(this.preventDefault){YAHOO.util.Event.preventDefault(A)}},stopDrag:function(A,D){if(this.dragCurrent&&!D){if(this.dragThreshMet){this.dragCurrent.b4EndDrag(A);this.dragCurrent.endDrag(A)}this.dragCurrent.onMouseUp(A)}this.dragCurrent=null;this.dragOvers={}},handleMouseMove:function(A){var H=this.dragCurrent;if(H){if(YAHOO.util.Event.isIE&&!A.button){this.stopEvent(A);return this.handleMouseUp(A)}if(!this.dragThreshMet){var F=Math.abs(this.startX-YAHOO.util.Event.getPageX(A));var G=Math.abs(this.startY-YAHOO.util.Event.getPageY(A));if(F>this.clickPixelThresh||G>this.clickPixelThresh){this.startDrag(this.startX,this.startY)}}if(this.dragThreshMet){H.b4Drag(A);if(H){H.onDrag(A)}if(H){this.fireEvents(A,false)}}this.stopEvent(A)}},fireEvents:function(Z,j){var X=this.dragCurrent;if(!X||X.isLocked()||X.dragOnly){return }var h=YAHOO.util.Event.getPageX(Z),i=YAHOO.util.Event.getPageY(Z),g=new YAHOO.util.Point(h,i),l=X.getTargetCoord(g.x,g.y),o=X.getDragEl(),a=new YAHOO.util.Region(l.y,l.x+o.offsetWidth,l.y+o.offsetHeight,l.x),m=[],k=[],p=[],Y=[],b=[],q={},f=[];for(var d in this.dragOvers){var A=this.dragOvers[d];if(!this.isTypeOfDD(A)){continue}if(!this.isOverTarget(g,A,this.mode,a)){k.push(A)}m[d]=true;delete this.dragOvers[d]}for(var e in X.groups){if(\"string\"!=typeof e){continue}for(d in this.ids[e]){var n=this.ids[e][d];if(!this.isTypeOfDD(n)){continue}if(n.isTarget&&!n.isLocked()&&n!=X){if(this.isOverTarget(g,n,this.mode,a)){q[e]=true;if(j){Y.push(n)}else{if(!m[n.id]){b.push(n)}else{p.push(n)}this.dragOvers[n.id]=n}}}}}this.interactionInfo={out:k,enter:b,over:p,drop:Y,point:g,draggedRegion:a,sourceRegion:this.locationCache[X.id],validDrop:j};for(var r in q){f.push(r)}if(j&&!Y.length){this.interactionInfo.validDrop=false;X.onInvalidDrop(Z)}if(this.mode){if(k.length){X.b4DragOut(Z,k);if(X){X.onDragOut(Z,k)}}if(b.length){if(X){X.onDragEnter(Z,b,f)}}if(p.length){if(X){X.b4DragOver(Z,p,f)}if(X){X.onDragOver(Z,p,f)}}if(Y.length){if(X){X.b4DragDrop(Z,Y,f)}if(X){X.onDragDrop(Z,Y,f)}}}else{var c=0;for(d=0,c=k.length;d<c;++d){if(X){X.b4DragOut(Z,k[d].id,f[0])}if(X){X.onDragOut(Z,k[d].id,f[0])}}for(d=0,c=b.length;d<c;++d){if(X){X.onDragEnter(Z,b[d].id,f[0])}}for(d=0,c=p.length;d<c;++d){if(X){X.b4DragOver(Z,p[d].id,f[0])}if(X){X.onDragOver(Z,p[d].id,f[0])}}for(d=0,c=Y.length;d<c;++d){if(X){X.b4DragDrop(Z,Y[d].id,f[0])}if(X){X.onDragDrop(Z,Y[d].id,f[0])}}}},getBestMatch:function(H){var A=null;var I=H.length;if(I==1){A=H[0]}else{for(var G=0;G<I;++G){var J=H[G];if(this.mode==this.INTERSECT&&J.cursorIsOver){A=J;break}else{if(!A||!A.overlap||(J.overlap&&A.overlap.getArea()<J.overlap.getArea())){A=J}}}}return A},refreshCache:function(K){var I=K||this.ids;for(var L in I){if(\"string\"!=typeof L){continue}for(var J in this.ids[L]){var H=this.ids[L][J];if(this.isTypeOfDD(H)){var A=this.getLocation(H);if(A){this.locationCache[H.id]=A}else{delete this.locationCache[H.id]}}}}},verifyEl:function(E){try{if(E){var F=E.offsetParent;if(F){return true}}}catch(A){}return false},getLocation:function(V){if(!this.isTypeOfDD(V)){return null}var X=V.getEl(),S,A,N,Q,R,P,O,T,W;try{S=YAHOO.util.Dom.getXY(X)}catch(U){}if(!S){return null}A=S[0];N=A+X.offsetWidth;Q=S[1];R=Q+X.offsetHeight;P=Q-V.padding[0];O=N+V.padding[1];T=R+V.padding[2];W=A-V.padding[3];return new YAHOO.util.Region(P,O,T,W)},isOverTarget:function(M,L,A,R){var Q=this.locationCache[L.id];if(!Q||!this.useCache){Q=this.getLocation(L);this.locationCache[L.id]=Q}if(!Q){return false}L.cursorIsOver=Q.contains(M);var N=this.dragCurrent;if(!N||(!A&&!N.constrainX&&!N.constrainY)){return L.cursorIsOver}L.overlap=null;if(!R){var P=N.getTargetCoord(M.x,M.y);var K=N.getDragEl();R=new YAHOO.util.Region(P.y,P.x+K.offsetWidth,P.y+K.offsetHeight,P.x)}var O=R.intersect(Q);if(O){L.overlap=O;return(A)?true:L.cursorIsOver}else{return false}},_onUnload:function(A,D){this.unregAll()},unregAll:function(){if(this.dragCurrent){this.stopDrag();this.dragCurrent=null}this._execOnAll(\"unreg\",[]);this.ids={}},elementCache:{},getElWrapper:function(A){var D=this.elementCache[A];if(!D||!D.el){D=this.elementCache[A]=new this.ElementWrapper(YAHOO.util.Dom.get(A))}return D},getElement:function(A){return YAHOO.util.Dom.get(A)},getCss:function(A){var D=YAHOO.util.Dom.get(A);return(D)?D.style:null},ElementWrapper:function(A){this.el=A||null;this.id=this.el&&A.id;this.css=this.el&&A.style},getPosX:function(A){return YAHOO.util.Dom.getX(A)},getPosY:function(A){return YAHOO.util.Dom.getY(A)},swapNode:function(F,H){if(F.swapNode){F.swapNode(H)}else{var A=H.parentNode;var G=H.nextSibling;if(G==F){A.insertBefore(F,H)}else{if(H==F.nextSibling){A.insertBefore(H,F)}else{F.parentNode.replaceChild(H,F);A.insertBefore(F,G)}}}},getScroll:function(){var F,H,A=document.documentElement,G=document.body;if(A&&(A.scrollTop||A.scrollLeft)){F=A.scrollTop;H=A.scrollLeft}else{if(G){F=G.scrollTop;H=G.scrollLeft}else{}}return{top:F,left:H}},getStyle:function(A,D){return YAHOO.util.Dom.getStyle(A,D)},getScrollTop:function(){return this.getScroll().top},getScrollLeft:function(){return this.getScroll().left},moveToEl:function(F,A){var E=YAHOO.util.Dom.getXY(A);YAHOO.util.Dom.setXY(F,E)},getClientHeight:function(){return YAHOO.util.Dom.getViewportHeight()},getClientWidth:function(){return YAHOO.util.Dom.getViewportWidth()},numericSort:function(A,D){return(A-D)},_timeoutCount:0,_addListeners:function(){var A=YAHOO.util.DDM;if(YAHOO.util.Event&&document){A._onLoad()}else{if(A._timeoutCount>2000){}else{setTimeout(A._addListeners,10);if(document&&document.body){A._timeoutCount+=1}}}},handleWasClicked:function(F,A){if(this.isHandle(A,F.id)){return true}else{var E=F.parentNode;while(E){if(this.isHandle(A,E.id)){return true}else{E=E.parentNode}}}return false}}}();YAHOO.util.DDM=YAHOO.util.DragDropMgr;YAHOO.util.DDM._addListeners()}(function(){var C=YAHOO.util.Event;var D=YAHOO.util.Dom;YAHOO.util.DragDrop=function(A,F,B){if(A){this.init(A,F,B)}};YAHOO.util.DragDrop.prototype={id:null,config:null,dragElId:null,handleElId:null,invalidHandleTypes:null,invalidHandleIds:null,invalidHandleClasses:null,startPageX:0,startPageY:0,groups:null,locked:false,lock:function(){this.locked=true},unlock:function(){this.locked=false},isTarget:true,padding:null,dragOnly:false,_domRef:null,__ygDragDrop:true,constrainX:false,constrainY:false,minX:0,maxX:0,minY:0,maxY:0,deltaX:0,deltaY:0,maintainOffset:false,xTicks:null,yTicks:null,primaryButtonOnly:true,available:false,hasOuterHandles:false,cursorIsOver:false,overlap:null,b4StartDrag:function(B,A){},startDrag:function(B,A){},b4Drag:function(A){},onDrag:function(A){},onDragEnter:function(B,A){},b4DragOver:function(A){},onDragOver:function(B,A){},b4DragOut:function(A){},onDragOut:function(B,A){},b4DragDrop:function(A){},onDragDrop:function(B,A){},onInvalidDrop:function(A){},b4EndDrag:function(A){},endDrag:function(A){},b4MouseDown:function(A){},onMouseDown:function(A){},onMouseUp:function(A){},onAvailable:function(){},getEl:function(){if(!this._domRef){this._domRef=D.get(this.id)}return this._domRef},getDragEl:function(){return D.get(this.dragElId)},init:function(A,F,B){this.initTarget(A,F,B);C.on(this._domRef||this.id,\"mousedown\",this.handleMouseDown,this,true)},initTarget:function(A,F,B){this.config=B||{};this.DDM=YAHOO.util.DDM;this.groups={};if(typeof A!==\"string\"){this._domRef=A;A=D.generateId(A)}this.id=A;this.addToGroup((F)?F:\"default\");this.handleElId=A;C.onAvailable(A,this.handleOnAvailable,this,true);this.setDragElId(A);this.invalidHandleTypes={A:\"A\"};this.invalidHandleIds={};this.invalidHandleClasses=[];this.applyConfig()},applyConfig:function(){this.padding=this.config.padding||[0,0,0,0];this.isTarget=(this.config.isTarget!==false);this.maintainOffset=(this.config.maintainOffset);this.primaryButtonOnly=(this.config.primaryButtonOnly!==false);this.dragOnly=((this.config.dragOnly===true)?true:false)},handleOnAvailable:function(){this.available=true;this.resetConstraints();this.onAvailable()},setPadding:function(B,H,A,G){if(!H&&0!==H){this.padding=[B,B,B,B]}else{if(!A&&0!==A){this.padding=[B,H,B,H]}else{this.padding=[B,H,A,G]}}},setInitPosition:function(I,J){var B=this.getEl();if(!this.DDM.verifyEl(B)){return }var K=I||0;var L=J||0;var A=D.getXY(B);this.initPageX=A[0]-K;this.initPageY=A[1]-L;this.lastPageX=A[0];this.lastPageY=A[1];this.setStartPosition(A)},setStartPosition:function(A){var B=A||D.getXY(this.getEl());this.deltaSetXY=null;this.startPageX=B[0];this.startPageY=B[1]},addToGroup:function(A){this.groups[A]=true;this.DDM.regDragDrop(this,A)},removeFromGroup:function(A){if(this.groups[A]){delete this.groups[A]}this.DDM.removeDDFromGroup(this,A)},setDragElId:function(A){this.dragElId=A},setHandleElId:function(A){if(typeof A!==\"string\"){A=D.generateId(A)}this.handleElId=A;this.DDM.regHandle(this.id,A)},setOuterHandleElId:function(A){if(typeof A!==\"string\"){A=D.generateId(A)}C.on(A,\"mousedown\",this.handleMouseDown,this,true);this.setHandleElId(A);this.hasOuterHandles=true},unreg:function(){C.removeListener(this.id,\"mousedown\",this.handleMouseDown);this._domRef=null;this.DDM._remove(this)},isLocked:function(){return(this.DDM.isLocked()||this.locked)},handleMouseDown:function(A,B){var K=A.which||A.button;if(this.primaryButtonOnly&&K>1){return }if(this.isLocked()){return }var L=this.b4MouseDown(A);var J=this.onMouseDown(A);if((L===false)||(J===false)){return }this.DDM.refreshCache(this.groups);var I=new YAHOO.util.Point(C.getPageX(A),C.getPageY(A));if(!this.hasOuterHandles&&!this.DDM.isOverTarget(I,this)){}else{if(this.clickValidator(A)){this.setStartPosition();this.DDM.handleMouseDown(A,this);this.DDM.stopEvent(A)}else{}}},clickValidator:function(A){var B=C.getTarget(A);return(this.isValidHandleChild(B)&&(this.id==this.handleElId||this.DDM.handleWasClicked(B,this.id)))},getTargetCoord:function(B,G){var H=B-this.deltaX;var A=G-this.deltaY;if(this.constrainX){if(H<this.minX){H=this.minX}if(H>this.maxX){H=this.maxX}}if(this.constrainY){if(A<this.minY){A=this.minY}if(A>this.maxY){A=this.maxY}}H=this.getTick(H,this.xTicks);A=this.getTick(A,this.yTicks);return{x:H,y:A}},addInvalidHandleType:function(B){var A=B.toUpperCase();this.invalidHandleTypes[A]=A},addInvalidHandleId:function(A){if(typeof A!==\"string\"){A=D.generateId(A)}this.invalidHandleIds[A]=A},addInvalidHandleClass:function(A){this.invalidHandleClasses.push(A)},removeInvalidHandleType:function(B){var A=B.toUpperCase();delete this.invalidHandleTypes[A]},removeInvalidHandleId:function(A){if(typeof A!==\"string\"){A=D.generateId(A)}delete this.invalidHandleIds[A]},removeInvalidHandleClass:function(B){for(var A=0,F=this.invalidHandleClasses.length;A<F;++A){if(this.invalidHandleClasses[A]==B){delete this.invalidHandleClasses[A]}}},isValidHandleChild:function(I){var J=true;var A;try{A=I.nodeName.toUpperCase()}catch(B){A=I.nodeName}J=J&&!this.invalidHandleTypes[A];J=J&&!this.invalidHandleIds[I.id];for(var K=0,L=this.invalidHandleClasses.length;J&&K<L;++K){J=!D.hasClass(I,this.invalidHandleClasses[K])}return J},setXTicks:function(A,H){this.xTicks=[];this.xTickSize=H;var B={};for(var G=this.initPageX;G>=this.minX;G=G-H){if(!B[G]){this.xTicks[this.xTicks.length]=G;B[G]=true}}for(G=this.initPageX;G<=this.maxX;G=G+H){if(!B[G]){this.xTicks[this.xTicks.length]=G;B[G]=true}}this.xTicks.sort(this.DDM.numericSort)},setYTicks:function(A,H){this.yTicks=[];this.yTickSize=H;var B={};for(var G=this.initPageY;G>=this.minY;G=G-H){if(!B[G]){this.yTicks[this.yTicks.length]=G;B[G]=true}}for(G=this.initPageY;G<=this.maxY;G=G+H){if(!B[G]){this.yTicks[this.yTicks.length]=G;B[G]=true}}this.yTicks.sort(this.DDM.numericSort)},setXConstraint:function(A,B,F){this.leftConstraint=parseInt(A,10);this.rightConstraint=parseInt(B,10);this.minX=this.initPageX-this.leftConstraint;this.maxX=this.initPageX+this.rightConstraint;if(F){this.setXTicks(this.initPageX,F)}this.constrainX=true},clearConstraints:function(){this.constrainX=false;this.constrainY=false;this.clearTicks()},clearTicks:function(){this.xTicks=null;this.yTicks=null;this.xTickSize=0;this.yTickSize=0},setYConstraint:function(F,A,B){this.topConstraint=parseInt(F,10);this.bottomConstraint=parseInt(A,10);this.minY=this.initPageY-this.topConstraint;this.maxY=this.initPageY+this.bottomConstraint;if(B){this.setYTicks(this.initPageY,B)}this.constrainY=true},resetConstraints:function(){if(this.initPageX||this.initPageX===0){var A=(this.maintainOffset)?this.lastPageX-this.initPageX:0;var B=(this.maintainOffset)?this.lastPageY-this.initPageY:0;this.setInitPosition(A,B)}else{this.setInitPosition()}if(this.constrainX){this.setXConstraint(this.leftConstraint,this.rightConstraint,this.xTickSize)}if(this.constrainY){this.setYConstraint(this.topConstraint,this.bottomConstraint,this.yTickSize)}},getTick:function(A,K){if(!K){return A}else{if(K[0]>=A){return K[0]}else{for(var M=0,N=K.length;M<N;++M){var L=M+1;if(K[L]&&K[L]>=A){var B=A-K[M];var J=K[L]-A;return(J>B)?K[M]:K[L]}}return K[K.length-1]}}},toString:function(){return(\"DragDrop \"+this.id)}}})();YAHOO.util.DD=function(E,D,F){if(E){this.init(E,D,F)}};YAHOO.extend(YAHOO.util.DD,YAHOO.util.DragDrop,{scroll:true,autoOffset:function(G,H){var E=G-this.startPageX;var F=H-this.startPageY;this.setDelta(E,F)},setDelta:function(D,C){this.deltaX=D;this.deltaY=C},setDragElPos:function(E,F){var D=this.getDragEl();this.alignElWithMouse(D,E,F)},alignElWithMouse:function(O,K,L){var M=this.getTargetCoord(K,L);if(!this.deltaSetXY){var J=[M.x,M.y];YAHOO.util.Dom.setXY(O,J);var N=parseInt(YAHOO.util.Dom.getStyle(O,\"left\"),10);var P=parseInt(YAHOO.util.Dom.getStyle(O,\"top\"),10);this.deltaSetXY=[N-M.x,P-M.y]}else{YAHOO.util.Dom.setStyle(O,\"left\",(M.x+this.deltaSetXY[0])+\"px\");YAHOO.util.Dom.setStyle(O,\"top\",(M.y+this.deltaSetXY[1])+\"px\")}this.cachePosition(M.x,M.y);var I=this;setTimeout(function(){I.autoScroll.call(I,M.x,M.y,O.offsetHeight,O.offsetWidth)},0)},cachePosition:function(F,D){if(F){this.lastPageX=F;this.lastPageY=D}else{var E=YAHOO.util.Dom.getXY(this.getEl());this.lastPageX=E[0];this.lastPageY=E[1]}},autoScroll:function(W,X,b,V){if(this.scroll){var U=this.DDM.getClientHeight();var Q=this.DDM.getClientWidth();var S=this.DDM.getScrollTop();var O=this.DDM.getScrollLeft();var Y=b+X;var T=V+W;var Z=(U+S-X-this.deltaY);var a=(Q+O-W-this.deltaX);var P=40;var R=(document.all)?80:30;if(Y>U&&Z<P){window.scrollTo(O,S+R)}if(X<S&&S>0&&X-S<P){window.scrollTo(O,S-R)}if(T>Q&&a<P){window.scrollTo(O+R,S)}if(W<O&&O>0&&W-O<P){window.scrollTo(O-R,S)}}},applyConfig:function(){YAHOO.util.DD.superclass.applyConfig.call(this);this.scroll=(this.config.scroll!==false)},b4MouseDown:function(B){this.setStartPosition();this.autoOffset(YAHOO.util.Event.getPageX(B),YAHOO.util.Event.getPageY(B))},b4Drag:function(B){this.setDragElPos(YAHOO.util.Event.getPageX(B),YAHOO.util.Event.getPageY(B))},toString:function(){return(\"DD \"+this.id)}});YAHOO.util.DDProxy=function(E,D,F){if(E){this.init(E,D,F);this.initFrame()}};YAHOO.util.DDProxy.dragElId=\"ygddfdiv\";YAHOO.extend(YAHOO.util.DDProxy,YAHOO.util.DD,{resizeFrame:true,centerFrame:false,createFrame:function(){var L=this,G=document.body;if(!G||!G.firstChild){setTimeout(function(){L.createFrame()},50);return }var H=this.getDragEl(),I=YAHOO.util.Dom;if(!H){H=document.createElement(\"div\");H.id=this.dragElId;var J=H.style;J.position=\"absolute\";J.visibility=\"hidden\";J.cursor=\"move\";J.border=\"2px solid #aaa\";J.zIndex=999;J.height=\"25px\";J.width=\"25px\";var K=document.createElement(\"div\");I.setStyle(K,\"height\",\"100%\");I.setStyle(K,\"width\",\"100%\");I.setStyle(K,\"background-color\",\"#ccc\");I.setStyle(K,\"opacity\",\"0\");H.appendChild(K);G.insertBefore(H,G.firstChild)}},initFrame:function(){this.createFrame()},applyConfig:function(){YAHOO.util.DDProxy.superclass.applyConfig.call(this);this.resizeFrame=(this.config.resizeFrame!==false);this.centerFrame=(this.config.centerFrame);this.setDragElId(this.config.dragElId||YAHOO.util.DDProxy.dragElId)},showFrame:function(G,H){var I=this.getEl();var F=this.getDragEl();var J=F.style;this._resizeProxy();if(this.centerFrame){this.setDelta(Math.round(parseInt(J.width,10)/2),Math.round(parseInt(J.height,10)/2))}this.setDragElPos(G,H);YAHOO.util.Dom.setStyle(F,\"visibility\",\"visible\")},_resizeProxy:function(){if(this.resizeFrame){var O=YAHOO.util.Dom;var L=this.getEl();var K=this.getDragEl();var P=parseInt(O.getStyle(K,\"borderTopWidth\"),10);var N=parseInt(O.getStyle(K,\"borderRightWidth\"),10);var Q=parseInt(O.getStyle(K,\"borderBottomWidth\"),10);var J=parseInt(O.getStyle(K,\"borderLeftWidth\"),10);if(isNaN(P)){P=0}if(isNaN(N)){N=0}if(isNaN(Q)){Q=0}if(isNaN(J)){J=0}var R=Math.max(0,L.offsetWidth-N-J);var M=Math.max(0,L.offsetHeight-P-Q);O.setStyle(K,\"width\",R+\"px\");O.setStyle(K,\"height\",M+\"px\")}},b4MouseDown:function(F){this.setStartPosition();var D=YAHOO.util.Event.getPageX(F);var E=YAHOO.util.Event.getPageY(F);this.autoOffset(D,E)},b4StartDrag:function(C,D){this.showFrame(C,D)},b4EndDrag:function(B){YAHOO.util.Dom.setStyle(this.getDragEl(),\"visibility\",\"hidden\")},endDrag:function(F){var G=YAHOO.util.Dom;var H=this.getEl();var E=this.getDragEl();G.setStyle(E,\"visibility\",\"\");G.setStyle(H,\"visibility\",\"hidden\");YAHOO.util.DDM.moveToEl(H,E);G.setStyle(E,\"visibility\",\"hidden\");G.setStyle(H,\"visibility\",\"\")},toString:function(){return(\"DDProxy \"+this.id)}});YAHOO.util.DDTarget=function(E,D,F){if(E){this.initTarget(E,D,F)}};YAHOO.extend(YAHOO.util.DDTarget,YAHOO.util.DragDrop,{toString:function(){return(\"DDTarget \"+this.id)}});YAHOO.register(\"dragdrop\",YAHOO.util.DragDropMgr,{version:\"2.4.1\",build:\"742\"});(function(){YAHOO.util.Config=function(A){if(A){this.init(A)}};var F=YAHOO.lang,E=YAHOO.util.CustomEvent,D=YAHOO.util.Config;D.CONFIG_CHANGED_EVENT=\"configChanged\";D.BOOLEAN_TYPE=\"boolean\";D.prototype={owner:null,queueInProgress:false,config:null,initialConfig:null,eventQueue:null,configChangedEvent:null,init:function(A){this.owner=A;this.configChangedEvent=this.createEvent(D.CONFIG_CHANGED_EVENT);this.configChangedEvent.signature=E.LIST;this.queueInProgress=false;this.config={};this.initialConfig={};this.eventQueue=[]},checkBoolean:function(A){return(typeof A==D.BOOLEAN_TYPE)},checkNumber:function(A){return(!isNaN(A))},fireEvent:function(C,A){var B=this.config[C];if(B&&B.event){B.event.fire(A)}},addProperty:function(A,B){A=A.toLowerCase();this.config[A]=B;B.event=this.createEvent(A,{scope:this.owner});B.event.signature=E.LIST;B.key=A;if(B.handler){B.event.subscribe(B.handler,this.owner)}this.setProperty(A,B.value,true);if(!B.suppressEvent){this.queueProperty(A,B.value)}},getConfig:function(){var C={},A,B;for(A in this.config){B=this.config[A];if(B&&B.event){C[A]=B.value}}return C},getProperty:function(B){var A=this.config[B.toLowerCase()];if(A&&A.event){return A.value}else{return undefined}},resetProperty:function(B){B=B.toLowerCase();var A=this.config[B];if(A&&A.event){if(this.initialConfig[B]&&!F.isUndefined(this.initialConfig[B])){this.setProperty(B,this.initialConfig[B]);return true}}else{return false}},setProperty:function(C,A,H){var B;C=C.toLowerCase();if(this.queueInProgress&&!H){this.queueProperty(C,A);return true}else{B=this.config[C];if(B&&B.event){if(B.validator&&!B.validator(A)){return false}else{B.value=A;if(!H){this.fireEvent(C,A);this.configChangedEvent.fire([C,A])}return true}}else{return false}}},queueProperty:function(C,W){C=C.toLowerCase();var U=this.config[C],b=false,c,f,e,d,X,V,g,Z,Y,A,a,B,h;if(U&&U.event){if(!F.isUndefined(W)&&U.validator&&!U.validator(W)){return false}else{if(!F.isUndefined(W)){U.value=W}else{W=U.value}b=false;c=this.eventQueue.length;for(a=0;a<c;a++){f=this.eventQueue[a];if(f){e=f[0];d=f[1];if(e==C){this.eventQueue[a]=null;this.eventQueue.push([C,(!F.isUndefined(W)?W:d)]);b=true;break}}}if(!b&&!F.isUndefined(W)){this.eventQueue.push([C,W])}}if(U.supercedes){X=U.supercedes.length;for(B=0;B<X;B++){V=U.supercedes[B];g=this.eventQueue.length;for(h=0;h<g;h++){Z=this.eventQueue[h];if(Z){Y=Z[0];A=Z[1];if(Y==V.toLowerCase()){this.eventQueue.push([Y,A]);this.eventQueue[h]=null;break}}}}}return true}else{return false}},refireEvent:function(B){B=B.toLowerCase();var A=this.config[B];if(A&&A.event&&!F.isUndefined(A.value)){if(this.queueInProgress){this.queueProperty(B)}else{this.fireEvent(B,A.value)}}},applyConfig:function(H,A){var B,C;if(A){C={};for(B in H){if(F.hasOwnProperty(H,B)){C[B.toLowerCase()]=H[B]}}this.initialConfig=C}for(B in H){if(F.hasOwnProperty(H,B)){this.queueProperty(B,H[B])}}},refresh:function(){var A;for(A in this.config){this.refireEvent(A)}},fireQueue:function(){var I,A,J,B,C;this.queueInProgress=true;for(I=0;I<this.eventQueue.length;I++){A=this.eventQueue[I];if(A){J=A[0];B=A[1];C=this.config[J];C.value=B;this.fireEvent(J,B)}}this.queueInProgress=false;this.eventQueue=[]},subscribeToConfigEvent:function(I,C,A,J){var B=this.config[I.toLowerCase()];if(B&&B.event){if(!D.alreadySubscribed(B.event,C,A)){B.event.subscribe(C,A,J)}return true}else{return false}},unsubscribeFromConfigEvent:function(H,C,A){var B=this.config[H.toLowerCase()];if(B&&B.event){return B.event.unsubscribe(C,A)}else{return false}},toString:function(){var A=\"Config\";if(this.owner){A+=\" [\"+this.owner.toString()+\"]\"}return A},outputEventQueue:function(){var H=\"\",A,C,B=this.eventQueue.length;for(C=0;C<B;C++){A=this.eventQueue[C];if(A){H+=A[0]+\"=\"+A[1]+\", \"}}return H},destroy:function(){var B=this.config,C,A;for(C in B){if(F.hasOwnProperty(B,C)){A=B[C];A.event.unsubscribeAll();A.event=null}}this.configChangedEvent.unsubscribeAll();this.configChangedEvent=null;this.owner=null;this.config=null;this.initialConfig=null;this.eventQueue=null}};D.alreadySubscribed=function(K,B,A){var J=K.subscribers.length,L,C;if(J>0){C=J-1;do{L=K.subscribers[C];if(L&&L.obj==A&&L.fn==B){return true}}while(C--)}return false};YAHOO.lang.augmentProto(D,YAHOO.util.EventProvider)}());(function(){YAHOO.widget.Module=function(A,B){if(A){this.init(A,B)}else{}};var c=YAHOO.util.Dom,P=YAHOO.util.Config,V=YAHOO.util.Event,W=YAHOO.util.CustomEvent,b=YAHOO.widget.Module,a,T,U,d,S={BEFORE_INIT:\"beforeInit\",INIT:\"init\",APPEND:\"append\",BEFORE_RENDER:\"beforeRender\",RENDER:\"render\",CHANGE_HEADER:\"changeHeader\",CHANGE_BODY:\"changeBody\",CHANGE_FOOTER:\"changeFooter\",CHANGE_CONTENT:\"changeContent\",DESTORY:\"destroy\",BEFORE_SHOW:\"beforeShow\",SHOW:\"show\",BEFORE_HIDE:\"beforeHide\",HIDE:\"hide\"},Z={VISIBLE:{key:\"visible\",value:true,validator:YAHOO.lang.isBoolean},EFFECT:{key:\"effect\",suppressEvent:true,supercedes:[\"visible\"]},MONITOR_RESIZE:{key:\"monitorresize\",value:true},APPEND_TO_DOCUMENT_BODY:{key:\"appendtodocumentbody\",value:false}};b.IMG_ROOT=null;b.IMG_ROOT_SSL=null;b.CSS_MODULE=\"yui-module\";b.CSS_HEADER=\"hd\";b.CSS_BODY=\"bd\";b.CSS_FOOTER=\"ft\";b.RESIZE_MONITOR_SECURE_URL=\"javascript:false;\";b.textResizeEvent=new W(\"textResize\");function X(){if(!a){a=document.createElement(\"div\");a.innerHTML=('<div class=\"'+b.CSS_HEADER+'\"></div><div class=\"'+b.CSS_BODY+'\"></div><div class=\"'+b.CSS_FOOTER+'\"></div>');T=a.firstChild;U=T.nextSibling;d=U.nextSibling}return a}function Y(){if(!T){X()}return(T.cloneNode(false))}function R(){if(!U){X()}return(U.cloneNode(false))}function Q(){if(!d){X()}return(d.cloneNode(false))}b.prototype={constructor:b,element:null,header:null,body:null,footer:null,id:null,imageRoot:b.IMG_ROOT,initEvents:function(){var A=W.LIST;this.beforeInitEvent=this.createEvent(S.BEFORE_INIT);this.beforeInitEvent.signature=A;this.initEvent=this.createEvent(S.INIT);this.initEvent.signature=A;this.appendEvent=this.createEvent(S.APPEND);this.appendEvent.signature=A;this.beforeRenderEvent=this.createEvent(S.BEFORE_RENDER);this.beforeRenderEvent.signature=A;this.renderEvent=this.createEvent(S.RENDER);this.renderEvent.signature=A;this.changeHeaderEvent=this.createEvent(S.CHANGE_HEADER);this.changeHeaderEvent.signature=A;this.changeBodyEvent=this.createEvent(S.CHANGE_BODY);this.changeBodyEvent.signature=A;this.changeFooterEvent=this.createEvent(S.CHANGE_FOOTER);this.changeFooterEvent.signature=A;this.changeContentEvent=this.createEvent(S.CHANGE_CONTENT);this.changeContentEvent.signature=A;this.destroyEvent=this.createEvent(S.DESTORY);this.destroyEvent.signature=A;this.beforeShowEvent=this.createEvent(S.BEFORE_SHOW);this.beforeShowEvent.signature=A;this.showEvent=this.createEvent(S.SHOW);this.showEvent.signature=A;this.beforeHideEvent=this.createEvent(S.BEFORE_HIDE);this.beforeHideEvent.signature=A;this.hideEvent=this.createEvent(S.HIDE);this.hideEvent.signature=A},platform:function(){var A=navigator.userAgent.toLowerCase();if(A.indexOf(\"windows\")!=-1||A.indexOf(\"win32\")!=-1){return\"windows\"}else{if(A.indexOf(\"macintosh\")!=-1){return\"mac\"}else{return false}}}(),browser:function(){var A=navigator.userAgent.toLowerCase();if(A.indexOf(\"opera\")!=-1){return\"opera\"}else{if(A.indexOf(\"msie 7\")!=-1){return\"ie7\"}else{if(A.indexOf(\"msie\")!=-1){return\"ie\"}else{if(A.indexOf(\"safari\")!=-1){return\"safari\"}else{if(A.indexOf(\"gecko\")!=-1){return\"gecko\"}else{return false}}}}}}(),isSecure:function(){if(window.location.href.toLowerCase().indexOf(\"https\")===0){return true}else{return false}}(),initDefaultConfig:function(){this.cfg.addProperty(Z.VISIBLE.key,{handler:this.configVisible,value:Z.VISIBLE.value,validator:Z.VISIBLE.validator});this.cfg.addProperty(Z.EFFECT.key,{suppressEvent:Z.EFFECT.suppressEvent,supercedes:Z.EFFECT.supercedes});this.cfg.addProperty(Z.MONITOR_RESIZE.key,{handler:this.configMonitorResize,value:Z.MONITOR_RESIZE.value});this.cfg.addProperty(Z.APPEND_TO_DOCUMENT_BODY.key,{value:Z.APPEND_TO_DOCUMENT_BODY.value})},init:function(B,C){var E,A;this.initEvents();this.beforeInitEvent.fire(b);this.cfg=new P(this);if(this.isSecure){this.imageRoot=b.IMG_ROOT_SSL}if(typeof B==\"string\"){E=B;B=document.getElementById(B);if(!B){B=(X()).cloneNode(false);B.id=E}}this.element=B;if(B.id){this.id=B.id}A=this.element.firstChild;if(A){var F=false,G=false,D=false;do{if(1==A.nodeType){if(!F&&c.hasClass(A,b.CSS_HEADER)){this.header=A;F=true}else{if(!G&&c.hasClass(A,b.CSS_BODY)){this.body=A;G=true}else{if(!D&&c.hasClass(A,b.CSS_FOOTER)){this.footer=A;D=true}}}}}while((A=A.nextSibling))}this.initDefaultConfig();c.addClass(this.element,b.CSS_MODULE);if(C){this.cfg.applyConfig(C,true)}if(!P.alreadySubscribed(this.renderEvent,this.cfg.fireQueue,this.cfg)){this.renderEvent.subscribe(this.cfg.fireQueue,this.cfg,true)}this.initEvent.fire(b)},initResizeMonitor:function(){var E,D,B;function A(){b.textResizeEvent.fire()}if(!YAHOO.env.ua.opera){D=c.get(\"_yuiResizeMonitor\");if(!D){D=document.createElement(\"iframe\");if(this.isSecure&&b.RESIZE_MONITOR_SECURE_URL&&YAHOO.env.ua.ie){D.src=b.RESIZE_MONITOR_SECURE_URL}if(YAHOO.env.ua.gecko){B=[\"<html><head><script \",'type=\"text/javascript\">',\"window.onresize=function(){window.parent.\",\"YAHOO.widget.Module.textResizeEvent.\",\"fire();}\",\"<\\/script></head>\",\"<body></body></html>\"].join(\"\");D.src=\"data:text/html;charset=utf-8,\"+encodeURIComponent(B)}D.id=\"_yuiResizeMonitor\";D.style.position=\"absolute\";D.style.visibility=\"hidden\";var C=document.body.firstChild;if(C){document.body.insertBefore(D,C)}else{document.body.appendChild(D)}D.style.width=\"10em\";D.style.height=\"10em\";D.style.top=(-1*D.offsetHeight)+\"px\";D.style.left=(-1*D.offsetWidth)+\"px\";D.style.borderWidth=\"0\";D.style.visibility=\"visible\";if(YAHOO.env.ua.webkit){E=D.contentWindow.document;E.open();E.close()}}if(D&&D.contentWindow){b.textResizeEvent.subscribe(this.onDomResize,this,true);if(!b.textResizeInitialized){if(!YAHOO.env.ua.gecko){if(!V.on(D.contentWindow,\"resize\",A)){V.on(D,\"resize\",A)}}b.textResizeInitialized=true}this.resizeMonitor=D}}},onDomResize:function(A,B){var C=-1*this.resizeMonitor.offsetWidth,D=-1*this.resizeMonitor.offsetHeight;this.resizeMonitor.style.top=D+\"px\";this.resizeMonitor.style.left=C+\"px\"},setHeader:function(A){var B=this.header||(this.header=Y());if(typeof A==\"string\"){B.innerHTML=A}else{B.innerHTML=\"\";B.appendChild(A)}this.changeHeaderEvent.fire(A);this.changeContentEvent.fire()},appendToHeader:function(A){var B=this.header||(this.header=Y());B.appendChild(A);this.changeHeaderEvent.fire(A);this.changeContentEvent.fire()},setBody:function(A){var B=this.body||(this.body=R());if(typeof A==\"string\"){B.innerHTML=A}else{B.innerHTML=\"\";B.appendChild(A)}this.changeBodyEvent.fire(A);this.changeContentEvent.fire()},appendToBody:function(A){var B=this.body||(this.body=R());B.appendChild(A);this.changeBodyEvent.fire(A);this.changeContentEvent.fire()},setFooter:function(A){var B=this.footer||(this.footer=Q());if(typeof A==\"string\"){B.innerHTML=A}else{B.innerHTML=\"\";B.appendChild(A)}this.changeFooterEvent.fire(A);this.changeContentEvent.fire()},appendToFooter:function(A){var B=this.footer||(this.footer=Q());B.appendChild(A);this.changeFooterEvent.fire(A);this.changeContentEvent.fire()},render:function(C,E){var B=this,A;function D(F){if(typeof F==\"string\"){F=document.getElementById(F)}if(F){B._addToParent(F,B.element);B.appendEvent.fire()}}this.beforeRenderEvent.fire();if(!E){E=this.element}if(C){D(C)}else{if(!c.inDocument(this.element)){return false}}if(this.header&&!c.inDocument(this.header)){A=E.firstChild;if(A){E.insertBefore(this.header,A)}else{E.appendChild(this.header)}}if(this.body&&!c.inDocument(this.body)){if(this.footer&&c.isAncestor(this.moduleElement,this.footer)){E.insertBefore(this.body,this.footer)}else{E.appendChild(this.body)}}if(this.footer&&!c.inDocument(this.footer)){E.appendChild(this.footer)}this.renderEvent.fire();return true},destroy:function(){var B,A;if(this.element){V.purgeElement(this.element,true);B=this.element.parentNode}if(B){B.removeChild(this.element)}this.element=null;this.header=null;this.body=null;this.footer=null;b.textResizeEvent.unsubscribe(this.onDomResize,this);this.cfg.destroy();this.cfg=null;this.destroyEvent.fire();for(A in this){if(A instanceof W){A.unsubscribeAll()}}},show:function(){this.cfg.setProperty(\"visible\",true)},hide:function(){this.cfg.setProperty(\"visible\",false)},configVisible:function(C,D,B){var A=D[0];if(A){this.beforeShowEvent.fire();c.setStyle(this.element,\"display\",\"block\");this.showEvent.fire()}else{this.beforeHideEvent.fire();c.setStyle(this.element,\"display\",\"none\");this.hideEvent.fire()}},configMonitorResize:function(B,C,A){var D=C[0];if(D){this.initResizeMonitor()}else{b.textResizeEvent.unsubscribe(this.onDomResize,this,true);this.resizeMonitor=null}},_addToParent:function(B,A){if(!this.cfg.getProperty(\"appendtodocumentbody\")&&B===document.body&&B.firstChild){B.insertBefore(A,B.firstChild)}else{B.appendChild(A)}},toString:function(){return\"Module \"+this.id}};YAHOO.lang.augmentProto(b,YAHOO.util.EventProvider)}());(function(){YAHOO.widget.Overlay=function(A,B){YAHOO.widget.Overlay.superclass.constructor.call(this,A,B)};var S=YAHOO.lang,P=YAHOO.util.CustomEvent,T=YAHOO.widget.Module,O=YAHOO.util.Event,K=YAHOO.util.Dom,L=YAHOO.util.Config,M=YAHOO.widget.Overlay,R,N={BEFORE_MOVE:\"beforeMove\",MOVE:\"move\"},Q={X:{key:\"x\",validator:S.isNumber,suppressEvent:true,supercedes:[\"iframe\"]},Y:{key:\"y\",validator:S.isNumber,suppressEvent:true,supercedes:[\"iframe\"]},XY:{key:\"xy\",suppressEvent:true,supercedes:[\"iframe\"]},CONTEXT:{key:\"context\",suppressEvent:true,supercedes:[\"iframe\"]},FIXED_CENTER:{key:\"fixedcenter\",value:false,validator:S.isBoolean,supercedes:[\"iframe\",\"visible\"]},WIDTH:{key:\"width\",suppressEvent:true,supercedes:[\"context\",\"fixedcenter\",\"iframe\"]},HEIGHT:{key:\"height\",suppressEvent:true,supercedes:[\"context\",\"fixedcenter\",\"iframe\"]},ZINDEX:{key:\"zindex\",value:null},CONSTRAIN_TO_VIEWPORT:{key:\"constraintoviewport\",value:false,validator:S.isBoolean,supercedes:[\"iframe\",\"x\",\"y\",\"xy\"]},IFRAME:{key:\"iframe\",value:(YAHOO.env.ua.ie==6?true:false),validator:S.isBoolean,supercedes:[\"zindex\"]}};M.IFRAME_SRC=\"javascript:false;\";M.IFRAME_OFFSET=3;M.VIEWPORT_OFFSET=10;M.TOP_LEFT=\"tl\";M.TOP_RIGHT=\"tr\";M.BOTTOM_LEFT=\"bl\";M.BOTTOM_RIGHT=\"br\";M.CSS_OVERLAY=\"yui-overlay\";M.windowScrollEvent=new P(\"windowScroll\");M.windowResizeEvent=new P(\"windowResize\");M.windowScrollHandler=function(A){if(YAHOO.env.ua.ie){if(!window.scrollEnd){window.scrollEnd=-1}clearTimeout(window.scrollEnd);window.scrollEnd=setTimeout(function(){M.windowScrollEvent.fire()},1)}else{M.windowScrollEvent.fire()}};M.windowResizeHandler=function(A){if(YAHOO.env.ua.ie){if(!window.resizeEnd){window.resizeEnd=-1}clearTimeout(window.resizeEnd);window.resizeEnd=setTimeout(function(){M.windowResizeEvent.fire()},100)}else{M.windowResizeEvent.fire()}};M._initialized=null;if(M._initialized===null){O.on(window,\"scroll\",M.windowScrollHandler);O.on(window,\"resize\",M.windowResizeHandler);M._initialized=true}YAHOO.extend(M,T,{init:function(A,B){M.superclass.init.call(this,A);this.beforeInitEvent.fire(M);K.addClass(this.element,M.CSS_OVERLAY);if(B){this.cfg.applyConfig(B,true)}if(this.platform==\"mac\"&&YAHOO.env.ua.gecko){if(!L.alreadySubscribed(this.showEvent,this.showMacGeckoScrollbars,this)){this.showEvent.subscribe(this.showMacGeckoScrollbars,this,true)}if(!L.alreadySubscribed(this.hideEvent,this.hideMacGeckoScrollbars,this)){this.hideEvent.subscribe(this.hideMacGeckoScrollbars,this,true)}}this.initEvent.fire(M)},initEvents:function(){M.superclass.initEvents.call(this);var A=P.LIST;this.beforeMoveEvent=this.createEvent(N.BEFORE_MOVE);this.beforeMoveEvent.signature=A;this.moveEvent=this.createEvent(N.MOVE);this.moveEvent.signature=A},initDefaultConfig:function(){M.superclass.initDefaultConfig.call(this);this.cfg.addProperty(Q.X.key,{handler:this.configX,validator:Q.X.validator,suppressEvent:Q.X.suppressEvent,supercedes:Q.X.supercedes});this.cfg.addProperty(Q.Y.key,{handler:this.configY,validator:Q.Y.validator,suppressEvent:Q.Y.suppressEvent,supercedes:Q.Y.supercedes});this.cfg.addProperty(Q.XY.key,{handler:this.configXY,suppressEvent:Q.XY.suppressEvent,supercedes:Q.XY.supercedes});this.cfg.addProperty(Q.CONTEXT.key,{handler:this.configContext,suppressEvent:Q.CONTEXT.suppressEvent,supercedes:Q.CONTEXT.supercedes});this.cfg.addProperty(Q.FIXED_CENTER.key,{handler:this.configFixedCenter,value:Q.FIXED_CENTER.value,validator:Q.FIXED_CENTER.validator,supercedes:Q.FIXED_CENTER.supercedes});this.cfg.addProperty(Q.WIDTH.key,{handler:this.configWidth,suppressEvent:Q.WIDTH.suppressEvent,supercedes:Q.WIDTH.supercedes});this.cfg.addProperty(Q.HEIGHT.key,{handler:this.configHeight,suppressEvent:Q.HEIGHT.suppressEvent,supercedes:Q.HEIGHT.supercedes});this.cfg.addProperty(Q.ZINDEX.key,{handler:this.configzIndex,value:Q.ZINDEX.value});this.cfg.addProperty(Q.CONSTRAIN_TO_VIEWPORT.key,{handler:this.configConstrainToViewport,value:Q.CONSTRAIN_TO_VIEWPORT.value,validator:Q.CONSTRAIN_TO_VIEWPORT.validator,supercedes:Q.CONSTRAIN_TO_VIEWPORT.supercedes});this.cfg.addProperty(Q.IFRAME.key,{handler:this.configIframe,value:Q.IFRAME.value,validator:Q.IFRAME.validator,supercedes:Q.IFRAME.supercedes})},moveTo:function(B,A){this.cfg.setProperty(\"xy\",[B,A])},hideMacGeckoScrollbars:function(){K.removeClass(this.element,\"show-scrollbars\");K.addClass(this.element,\"hide-scrollbars\")},showMacGeckoScrollbars:function(){K.removeClass(this.element,\"hide-scrollbars\");K.addClass(this.element,\"show-scrollbars\")},configVisible:function(e,h,G){var f=h[0],d=K.getStyle(this.element,\"visibility\"),F=this.cfg.getProperty(\"effect\"),I=[],J=(this.platform==\"mac\"&&YAHOO.env.ua.gecko),i=L.alreadySubscribed,H,g,j,B,C,D,A,E,c;if(d==\"inherit\"){j=this.element.parentNode;while(j.nodeType!=9&&j.nodeType!=11){d=K.getStyle(j,\"visibility\");if(d!=\"inherit\"){break}j=j.parentNode}if(d==\"inherit\"){d=\"visible\"}}if(F){if(F instanceof Array){E=F.length;for(B=0;B<E;B++){H=F[B];I[I.length]=H.effect(this,H.duration)}}else{I[I.length]=F.effect(this,F.duration)}}if(f){if(J){this.showMacGeckoScrollbars()}if(F){if(f){if(d!=\"visible\"||d===\"\"){this.beforeShowEvent.fire();c=I.length;for(C=0;C<c;C++){g=I[C];if(C===0&&!i(g.animateInCompleteEvent,this.showEvent.fire,this.showEvent)){g.animateInCompleteEvent.subscribe(this.showEvent.fire,this.showEvent,true)}g.animateIn()}}}}else{if(d!=\"visible\"||d===\"\"){this.beforeShowEvent.fire();K.setStyle(this.element,\"visibility\",\"visible\");this.cfg.refireEvent(\"iframe\");this.showEvent.fire()}}}else{if(J){this.hideMacGeckoScrollbars()}if(F){if(d==\"visible\"){this.beforeHideEvent.fire();c=I.length;for(D=0;D<c;D++){A=I[D];if(D===0&&!i(A.animateOutCompleteEvent,this.hideEvent.fire,this.hideEvent)){A.animateOutCompleteEvent.subscribe(this.hideEvent.fire,this.hideEvent,true)}A.animateOut()}}else{if(d===\"\"){K.setStyle(this.element,\"visibility\",\"hidden\")}}}else{if(d==\"visible\"||d===\"\"){this.beforeHideEvent.fire();K.setStyle(this.element,\"visibility\",\"hidden\");this.hideEvent.fire()}}}},doCenterOnDOMEvent:function(){if(this.cfg.getProperty(\"visible\")){this.center()}},configFixedCenter:function(E,G,D){var C=G[0],A=L.alreadySubscribed,F=M.windowResizeEvent,B=M.windowScrollEvent;if(C){this.center();if(!A(this.beforeShowEvent,this.center,this)){this.beforeShowEvent.subscribe(this.center)}if(!A(F,this.doCenterOnDOMEvent,this)){F.subscribe(this.doCenterOnDOMEvent,this,true)}if(!A(B,this.doCenterOnDOMEvent,this)){B.subscribe(this.doCenterOnDOMEvent,this,true)}}else{this.beforeShowEvent.unsubscribe(this.center);F.unsubscribe(this.doCenterOnDOMEvent,this);B.unsubscribe(this.doCenterOnDOMEvent,this)}},configHeight:function(D,A,C){var B=A[0],E=this.element;K.setStyle(E,\"height\",B);this.cfg.refireEvent(\"iframe\")},configWidth:function(D,B,C){var E=B[0],A=this.element;K.setStyle(A,\"width\",E);this.cfg.refireEvent(\"iframe\")},configzIndex:function(E,B,D){var C=B[0],A=this.element;if(!C){C=K.getStyle(A,\"zIndex\");if(!C||isNaN(C)){C=0}}if(this.iframe||this.cfg.getProperty(\"iframe\")===true){if(C<=0){C=1}}K.setStyle(A,\"zIndex\",C);this.cfg.setProperty(\"zIndex\",C,true);if(this.iframe){this.stackIframe()}},configXY:function(F,A,E){var C=A[0],B=C[0],D=C[1];this.cfg.setProperty(\"x\",B);this.cfg.setProperty(\"y\",D);this.beforeMoveEvent.fire([B,D]);B=this.cfg.getProperty(\"x\");D=this.cfg.getProperty(\"y\");this.cfg.refireEvent(\"iframe\");this.moveEvent.fire([B,D])},configX:function(E,A,D){var B=A[0],C=this.cfg.getProperty(\"y\");this.cfg.setProperty(\"x\",B,true);this.cfg.setProperty(\"y\",C,true);this.beforeMoveEvent.fire([B,C]);B=this.cfg.getProperty(\"x\");C=this.cfg.getProperty(\"y\");K.setX(this.element,B,true);this.cfg.setProperty(\"xy\",[B,C],true);this.cfg.refireEvent(\"iframe\");this.moveEvent.fire([B,C])},configY:function(E,A,D){var B=this.cfg.getProperty(\"x\"),C=A[0];this.cfg.setProperty(\"x\",B,true);this.cfg.setProperty(\"y\",C,true);this.beforeMoveEvent.fire([B,C]);B=this.cfg.getProperty(\"x\");C=this.cfg.getProperty(\"y\");K.setY(this.element,C,true);this.cfg.setProperty(\"xy\",[B,C],true);this.cfg.refireEvent(\"iframe\");this.moveEvent.fire([B,C])},showIframe:function(){var A=this.iframe,B;if(A){B=this.element.parentNode;if(B!=A.parentNode){this._addToParent(B,A)}A.style.display=\"block\"}},hideIframe:function(){if(this.iframe){this.iframe.style.display=\"none\"}},syncIframe:function(){var B=this.iframe,E=this.element,C=M.IFRAME_OFFSET,A=(C*2),D;if(B){B.style.width=(E.offsetWidth+A+\"px\");B.style.height=(E.offsetHeight+A+\"px\");D=this.cfg.getProperty(\"xy\");if(!S.isArray(D)||(isNaN(D[0])||isNaN(D[1]))){this.syncPosition();D=this.cfg.getProperty(\"xy\")}K.setXY(B,[(D[0]-C),(D[1]-C)])}},stackIframe:function(){if(this.iframe){var A=K.getStyle(this.element,\"zIndex\");if(!YAHOO.lang.isUndefined(A)&&!isNaN(A)){K.setStyle(this.iframe,\"zIndex\",(A-1))}}},configIframe:function(E,F,D){var B=F[0];function C(){var I=this.iframe,H=this.element,G;if(!I){if(!R){R=document.createElement(\"iframe\");if(this.isSecure){R.src=M.IFRAME_SRC}if(YAHOO.env.ua.ie){R.style.filter=\"alpha(opacity=0)\";R.frameBorder=0}else{R.style.opacity=\"0\"}R.style.position=\"absolute\";R.style.border=\"none\";R.style.margin=\"0\";R.style.padding=\"0\";R.style.display=\"none\"}I=R.cloneNode(false);G=H.parentNode;var J=G||document.body;this._addToParent(J,I);this.iframe=I}this.showIframe();this.syncIframe();this.stackIframe();if(!this._hasIframeEventListeners){this.showEvent.subscribe(this.showIframe);this.hideEvent.subscribe(this.hideIframe);this.changeContentEvent.subscribe(this.syncIframe);this._hasIframeEventListeners=true}}function A(){C.call(this);this.beforeShowEvent.unsubscribe(A);this._iframeDeferred=false}if(B){if(this.cfg.getProperty(\"visible\")){C.call(this)}else{if(!this._iframeDeferred){this.beforeShowEvent.subscribe(A);this._iframeDeferred=true}}}else{this.hideIframe();if(this._hasIframeEventListeners){this.showEvent.unsubscribe(this.showIframe);this.hideEvent.unsubscribe(this.hideIframe);this.changeContentEvent.unsubscribe(this.syncIframe);this._hasIframeEventListeners=false}}},configConstrainToViewport:function(E,B,D){function A(){if(YAHOO.lang.isUndefined(this.cfg.getProperty(\"xy\"))){this.syncPosition()}var H=this.cfg.getProperty(\"x\");var F=this.cfg.getProperty(\"y\");var G=this.getConstrainedXY(H,F);if(G[0]!==H||G[1]!==F){this.moveTo(G[0],G[1])}}var C=B[0];if(C){if(!L.alreadySubscribed(this.beforeMoveEvent,this.enforceConstraints,this)){this.beforeMoveEvent.subscribe(this.enforceConstraints,this,true)}if(!L.alreadySubscribed(this.beforeShowEvent,A)){this.beforeShowEvent.subscribe(A)}}else{this.beforeShowEvent.unsubscribe(A);this.beforeMoveEvent.unsubscribe(this.enforceConstraints,this)}},configContext:function(G,A,E){var C=A[0],F,D,B;if(C){F=C[0];D=C[1];B=C[2];if(F){if(typeof F==\"string\"){this.cfg.setProperty(\"context\",[document.getElementById(F),D,B],true)}if(D&&B){this.align(D,B)}}}},align:function(A,B){var D=this.cfg.getProperty(\"context\"),E=this,F,G,C;function H(J,I){switch(A){case M.TOP_LEFT:E.moveTo(I,J);break;case M.TOP_RIGHT:E.moveTo((I-G.offsetWidth),J);break;case M.BOTTOM_LEFT:E.moveTo(I,(J-G.offsetHeight));break;case M.BOTTOM_RIGHT:E.moveTo((I-G.offsetWidth),(J-G.offsetHeight));break}}if(D){F=D[0];G=this.element;E=this;if(!A){A=D[1]}if(!B){B=D[2]}if(G&&F){C=K.getRegion(F);switch(B){case M.TOP_LEFT:H(C.top,C.left);break;case M.TOP_RIGHT:H(C.top,C.right);break;case M.BOTTOM_LEFT:H(C.bottom,C.left);break;case M.BOTTOM_RIGHT:H(C.bottom,C.right);break}}}},enforceConstraints:function(A,B,E){var C=B[0];var D=this.getConstrainedXY(C[0],C[1]);this.cfg.setProperty(\"x\",D[0],true);this.cfg.setProperty(\"y\",D[1],true);this.cfg.setProperty(\"xy\",D,true)},getConstrainedXY:function(D,F){var a=M.VIEWPORT_OFFSET,E=K.getViewportWidth(),I=K.getViewportHeight(),b=this.element.offsetHeight,G=this.element.offsetWidth,A=K.getDocumentScrollLeft(),C=K.getDocumentScrollTop();var J=D;var c=F;if(G+a<E){var H=A+a;var B=A+E-G-a;if(D<H){J=H}else{if(D>B){J=B}}}else{J=a+A}if(b+a<I){var Z=C+a;var d=C+I-b-a;if(F<Z){c=Z}else{if(F>d){c=d}}}else{c=a+C}return[J,c]},center:function(){var F=M.VIEWPORT_OFFSET,E=this.element.offsetWidth,G=this.element.offsetHeight,A=K.getViewportWidth(),D=K.getViewportHeight(),B,C;if(E<A){B=(A/2)-(E/2)+K.getDocumentScrollLeft()}else{B=F+K.getDocumentScrollLeft()}if(G<D){C=(D/2)-(G/2)+K.getDocumentScrollTop()}else{C=F+K.getDocumentScrollTop()}this.cfg.setProperty(\"xy\",[parseInt(B,10),parseInt(C,10)]);this.cfg.refireEvent(\"iframe\")},syncPosition:function(){var A=K.getXY(this.element);this.cfg.setProperty(\"x\",A[0],true);this.cfg.setProperty(\"y\",A[1],true);this.cfg.setProperty(\"xy\",A,true)},onDomResize:function(C,A){var B=this;M.superclass.onDomResize.call(this,C,A);setTimeout(function(){B.syncPosition();B.cfg.refireEvent(\"iframe\");B.cfg.refireEvent(\"context\")},0)},bringToTop:function(){var F=[],G=this.element;function C(J,Y){var b=K.getStyle(J,\"zIndex\"),I=K.getStyle(Y,\"zIndex\"),Z=(!b||isNaN(b))?0:parseInt(b,10),a=(!I||isNaN(I))?0:parseInt(I,10);if(Z>a){return -1}else{if(Z<a){return 1}else{return 0}}}function H(I){var V=K.hasClass(I,M.CSS_OVERLAY),J=YAHOO.widget.Panel;if(V&&!K.isAncestor(G,V)){if(J&&K.hasClass(I,J.CSS_PANEL)){F[F.length]=I.parentNode}else{F[F.length]=I}}}K.getElementsBy(H,\"DIV\",document.body);F.sort(C);var B=F[0],D;if(B){D=K.getStyle(B,\"zIndex\");if(!isNaN(D)){var E=false;if(B!=G){E=true}else{if(F.length>1){var A=K.getStyle(F[1],\"zIndex\");if(!isNaN(A)&&(D==A)){E=true}}}if(E){this.cfg.setProperty(\"zindex\",(parseInt(D,10)+2))}}}},destroy:function(){if(this.iframe){this.iframe.parentNode.removeChild(this.iframe)}this.iframe=null;M.windowResizeEvent.unsubscribe(this.doCenterOnDOMEvent,this);M.windowScrollEvent.unsubscribe(this.doCenterOnDOMEvent,this);M.superclass.destroy.call(this)},toString:function(){return\"Overlay \"+this.id}})}());(function(){YAHOO.widget.OverlayManager=function(A){this.init(A)};var J=YAHOO.widget.Overlay,K=YAHOO.util.Event,I=YAHOO.util.Dom,L=YAHOO.util.Config,H=YAHOO.util.CustomEvent,G=YAHOO.widget.OverlayManager;G.CSS_FOCUSED=\"focused\";G.prototype={constructor:G,overlays:null,initDefaultConfig:function(){this.cfg.addProperty(\"overlays\",{suppressEvent:true});this.cfg.addProperty(\"focusevent\",{value:\"mousedown\"})},init:function(A){this.cfg=new L(this);this.initDefaultConfig();if(A){this.cfg.applyConfig(A,true)}this.cfg.fireQueue();var B=null;this.getActive=function(){return B};this.focus=function(E){var D=this.find(E);if(D){if(B!=D){if(B){B.blur()}this.bringToTop(D);B=D;I.addClass(B.element,G.CSS_FOCUSED);D.focusEvent.fire()}}};this.remove=function(E){var N=this.find(E),F;if(N){if(B==N){B=null}var D=(N.element===null&&N.cfg===null)?true:false;if(!D){F=I.getStyle(N.element,\"zIndex\");N.cfg.setProperty(\"zIndex\",-1000,true)}this.overlays.sort(this.compareZIndexDesc);this.overlays=this.overlays.slice(0,(this.overlays.length-1));N.hideEvent.unsubscribe(N.blur);N.destroyEvent.unsubscribe(this._onOverlayDestroy,N);if(!D){K.removeListener(N.element,this.cfg.getProperty(\"focusevent\"),this._onOverlayElementFocus);N.cfg.setProperty(\"zIndex\",F,true);N.cfg.setProperty(\"manager\",null)}N.focusEvent.unsubscribeAll();N.blurEvent.unsubscribeAll();N.focusEvent=null;N.blurEvent=null;N.focus=null;N.blur=null}};this.blurAll=function(){var D=this.overlays.length,E;if(D>0){E=D-1;do{this.overlays[E].blur()}while(E--)}};this._onOverlayBlur=function(D,E){B=null};var C=this.cfg.getProperty(\"overlays\");if(!this.overlays){this.overlays=[]}if(C){this.register(C);this.overlays.sort(this.compareZIndexDesc)}},_onOverlayElementFocus:function(A){var C=K.getTarget(A),B=this.close;if(B&&(C==B||I.isAncestor(B,C))){this.blur()}else{this.focus()}},_onOverlayDestroy:function(B,C,A){this.remove(A)},register:function(F){var B=this,A,D,E,C;if(F instanceof J){F.cfg.addProperty(\"manager\",{value:this});F.focusEvent=F.createEvent(\"focus\");F.focusEvent.signature=H.LIST;F.blurEvent=F.createEvent(\"blur\");F.blurEvent.signature=H.LIST;F.focus=function(){B.focus(this)};F.blur=function(){if(B.getActive()==this){I.removeClass(this.element,G.CSS_FOCUSED);this.blurEvent.fire()}};F.blurEvent.subscribe(B._onOverlayBlur);F.hideEvent.subscribe(F.blur);F.destroyEvent.subscribe(this._onOverlayDestroy,F,this);K.on(F.element,this.cfg.getProperty(\"focusevent\"),this._onOverlayElementFocus,null,F);A=I.getStyle(F.element,\"zIndex\");if(!isNaN(A)){F.cfg.setProperty(\"zIndex\",parseInt(A,10))}else{F.cfg.setProperty(\"zIndex\",0)}this.overlays.push(F);this.bringToTop(F);return true}else{if(F instanceof Array){D=0;C=F.length;for(E=0;E<C;E++){if(this.register(F[E])){D++}}if(D>0){return true}}else{return false}}},bringToTop:function(N){var D=this.find(N),A,F,C;if(D){C=this.overlays;C.sort(this.compareZIndexDesc);F=C[0];if(F){A=I.getStyle(F.element,\"zIndex\");if(!isNaN(A)){var B=false;if(F!==D){B=true}else{if(C.length>1){var E=I.getStyle(C[1].element,\"zIndex\");if(!isNaN(E)&&(A==E)){B=true}}}if(B){D.cfg.setProperty(\"zindex\",(parseInt(A,10)+2))}}C.sort(this.compareZIndexDesc)}}},find:function(D){var B=this.overlays,A=B.length,C;if(A>0){C=A-1;if(D instanceof J){do{if(B[C]==D){return B[C]}}while(C--)}else{if(typeof D==\"string\"){do{if(B[C].id==D){return B[C]}}while(C--)}}return null}},compareZIndexDesc:function(A,B){var C=(A.cfg)?A.cfg.getProperty(\"zIndex\"):null,D=(B.cfg)?B.cfg.getProperty(\"zIndex\"):null;if(C===null&&D===null){return 0}else{if(C===null){return 1}else{if(D===null){return -1}else{if(C>D){return -1}else{if(C<D){return 1}else{return 0}}}}}},showAll:function(){var B=this.overlays,A=B.length,C;if(A>0){C=A-1;do{B[C].show()}while(C--)}},hideAll:function(){var B=this.overlays,A=B.length,C;if(A>0){C=A-1;do{B[C].hide()}while(C--)}},toString:function(){return\"OverlayManager\"}}}());(function(){YAHOO.widget.Tooltip=function(A,B){YAHOO.widget.Tooltip.superclass.constructor.call(this,A,B)};var K=YAHOO.lang,O=YAHOO.util.Event,M=YAHOO.util.Dom,S=YAHOO.widget.Tooltip,T,R={PREVENT_OVERLAP:{key:\"preventoverlap\",value:true,validator:K.isBoolean,supercedes:[\"x\",\"y\",\"xy\"]},SHOW_DELAY:{key:\"showdelay\",value:200,validator:K.isNumber},AUTO_DISMISS_DELAY:{key:\"autodismissdelay\",value:5000,validator:K.isNumber},HIDE_DELAY:{key:\"hidedelay\",value:250,validator:K.isNumber},TEXT:{key:\"text\",suppressEvent:true},CONTAINER:{key:\"container\"}};S.CSS_TOOLTIP=\"yui-tt\";function Q(A,B,G){var D=G[0],F=G[1],E=this.cfg,C=E.getProperty(\"width\");if(C==F){E.setProperty(\"width\",D)}this.unsubscribe(\"hide\",this._onHide,G)}function L(A,B){var G=document.body,C=this.cfg,D=C.getProperty(\"width\"),F,E;if((!D||D==\"auto\")&&(C.getProperty(\"container\")!=G||C.getProperty(\"x\")>=M.getViewportWidth()||C.getProperty(\"y\")>=M.getViewportHeight())){E=this.element.cloneNode(true);E.style.visibility=\"hidden\";E.style.top=\"0px\";E.style.left=\"0px\";G.appendChild(E);F=(E.offsetWidth+\"px\");G.removeChild(E);E=null;C.setProperty(\"width\",F);C.refireEvent(\"xy\");this.subscribe(\"hide\",Q,[(D||\"\"),F])}}function N(A,B,C){this.render(C)}function P(){O.onDOMReady(N,this.cfg.getProperty(\"container\"),this)}YAHOO.extend(S,YAHOO.widget.Overlay,{init:function(A,B){S.superclass.init.call(this,A);this.beforeInitEvent.fire(S);M.addClass(this.element,S.CSS_TOOLTIP);if(B){this.cfg.applyConfig(B,true)}this.cfg.queueProperty(\"visible\",false);this.cfg.queueProperty(\"constraintoviewport\",true);this.setBody(\"\");this.subscribe(\"beforeShow\",L);this.subscribe(\"init\",P);this.subscribe(\"render\",this.onRender);this.initEvent.fire(S)},initDefaultConfig:function(){S.superclass.initDefaultConfig.call(this);this.cfg.addProperty(R.PREVENT_OVERLAP.key,{value:R.PREVENT_OVERLAP.value,validator:R.PREVENT_OVERLAP.validator,supercedes:R.PREVENT_OVERLAP.supercedes});this.cfg.addProperty(R.SHOW_DELAY.key,{handler:this.configShowDelay,value:200,validator:R.SHOW_DELAY.validator});this.cfg.addProperty(R.AUTO_DISMISS_DELAY.key,{handler:this.configAutoDismissDelay,value:R.AUTO_DISMISS_DELAY.value,validator:R.AUTO_DISMISS_DELAY.validator});this.cfg.addProperty(R.HIDE_DELAY.key,{handler:this.configHideDelay,value:R.HIDE_DELAY.value,validator:R.HIDE_DELAY.validator});this.cfg.addProperty(R.TEXT.key,{handler:this.configText,suppressEvent:R.TEXT.suppressEvent});this.cfg.addProperty(R.CONTAINER.key,{handler:this.configContainer,value:document.body})},configText:function(A,B,D){var C=B[0];if(C){this.setBody(C)}},configContainer:function(D,A,C){var B=A[0];if(typeof B==\"string\"){this.cfg.setProperty(\"container\",document.getElementById(B),true)}},_removeEventListeners:function(){var C=this._context,B,D,A;if(C){B=C.length;if(B>0){A=B-1;do{D=C[A];O.removeListener(D,\"mouseover\",this.onContextMouseOver);O.removeListener(D,\"mousemove\",this.onContextMouseMove);O.removeListener(D,\"mouseout\",this.onContextMouseOut)}while(A--)}}},configContext:function(E,A,D){var F=A[0],C,B,G,H;if(F){if(!(F instanceof Array)){if(typeof F==\"string\"){this.cfg.setProperty(\"context\",[document.getElementById(F)],true)}else{this.cfg.setProperty(\"context\",[F],true)}F=this.cfg.getProperty(\"context\")}this._removeEventListeners();this._context=F;C=this._context;if(C){B=C.length;if(B>0){H=B-1;do{G=C[H];O.on(G,\"mouseover\",this.onContextMouseOver,this);O.on(G,\"mousemove\",this.onContextMouseMove,this);O.on(G,\"mouseout\",this.onContextMouseOut,this)}while(H--)}}}},onContextMouseMove:function(A,B){B.pageX=O.getPageX(A);B.pageY=O.getPageY(A)},onContextMouseOver:function(C,A){var B=this;if(A.hideProcId){clearTimeout(A.hideProcId);A.hideProcId=null}O.on(B,\"mousemove\",A.onContextMouseMove,A);if(B.title){A._tempTitle=B.title;B.title=\"\"}A.showProcId=A.doShow(C,B)},onContextMouseOut:function(C,A){var B=this;if(A._tempTitle){B.title=A._tempTitle;A._tempTitle=null}if(A.showProcId){clearTimeout(A.showProcId);A.showProcId=null}if(A.hideProcId){clearTimeout(A.hideProcId);A.hideProcId=null}A.hideProcId=setTimeout(function(){A.hide()},A.cfg.getProperty(\"hidedelay\"))},doShow:function(D,B){var C=25,A=this;if(YAHOO.env.ua.opera&&B.tagName&&B.tagName.toUpperCase()==\"A\"){C+=12}return setTimeout(function(){var E=A.cfg.getProperty(\"text\");if(A._tempTitle&&(E===\"\"||YAHOO.lang.isUndefined(E)||YAHOO.lang.isNull(E))){A.setBody(A._tempTitle)}else{A.cfg.refireEvent(\"text\")}A.moveTo(A.pageX,A.pageY+C);if(A.cfg.getProperty(\"preventoverlap\")){A.preventOverlap(A.pageX,A.pageY)}O.removeListener(B,\"mousemove\",A.onContextMouseMove);A.show();A.hideProcId=A.doHide()},this.cfg.getProperty(\"showdelay\"))},doHide:function(){var A=this;return setTimeout(function(){A.hide()},this.cfg.getProperty(\"autodismissdelay\"))},preventOverlap:function(C,D){var B=this.element.offsetHeight,E=new YAHOO.util.Point(C,D),A=M.getRegion(this.element);A.top-=5;A.left-=5;A.right+=5;A.bottom+=5;if(A.contains(E)){this.cfg.setProperty(\"y\",(D-B-5))}},onRender:function(E,F){function D(){var H=this.element,I=this._shadow;if(I){I.style.width=(H.offsetWidth+6)+\"px\";I.style.height=(H.offsetHeight+1)+\"px\"}}function A(){M.addClass(this._shadow,\"yui-tt-shadow-visible\")}function B(){M.removeClass(this._shadow,\"yui-tt-shadow-visible\")}function C(){var J=this._shadow,W,X,H,I;if(!J){W=this.element;X=YAHOO.widget.Module;H=YAHOO.env.ua.ie;I=this;if(!T){T=document.createElement(\"div\");T.className=\"yui-tt-shadow\"}J=T.cloneNode(false);W.appendChild(J);this._shadow=J;A.call(this);this.subscribe(\"beforeShow\",A);this.subscribe(\"beforeHide\",B);if(H==6||(H==7&&document.compatMode==\"BackCompat\")){window.setTimeout(function(){D.call(I)},0);this.cfg.subscribeToConfigEvent(\"width\",D);this.cfg.subscribeToConfigEvent(\"height\",D);this.subscribe(\"changeContent\",D);X.textResizeEvent.subscribe(D,this,true);this.subscribe(\"destroy\",function(){X.textResizeEvent.unsubscribe(D,this)})}}}function G(){C.call(this);this.unsubscribe(\"beforeShow\",G)}if(this.cfg.getProperty(\"visible\")){C.call(this)}else{this.subscribe(\"beforeShow\",G)}},destroy:function(){this._removeEventListeners();S.superclass.destroy.call(this)},toString:function(){return\"Tooltip \"+this.id}})}());(function(){YAHOO.widget.Panel=function(A,B){YAHOO.widget.Panel.superclass.constructor.call(this,A,B)};var f=YAHOO.lang,Y=YAHOO.util.DD,l=YAHOO.util.Dom,T=YAHOO.util.Event,d=YAHOO.widget.Overlay,a=YAHOO.util.CustomEvent,c=YAHOO.util.Config,X=YAHOO.widget.Panel,e,V,i,h={SHOW_MASK:\"showMask\",HIDE_MASK:\"hideMask\",DRAG:\"drag\"},Z={CLOSE:{key:\"close\",value:true,validator:f.isBoolean,supercedes:[\"visible\"]},DRAGGABLE:{key:\"draggable\",value:(Y?true:false),validator:f.isBoolean,supercedes:[\"visible\"]},DRAG_ONLY:{key:\"dragonly\",value:false,validator:f.isBoolean,supercedes:[\"draggable\"]},UNDERLAY:{key:\"underlay\",value:\"shadow\",supercedes:[\"visible\"]},MODAL:{key:\"modal\",value:false,validator:f.isBoolean,supercedes:[\"visible\",\"zindex\"]},KEY_LISTENERS:{key:\"keylisteners\",suppressEvent:true,supercedes:[\"visible\"]}};X.CSS_PANEL=\"yui-panel\";X.CSS_PANEL_CONTAINER=\"yui-panel-container\";function b(A,B){if(!this.header&&this.cfg.getProperty(\"draggable\")){this.setHeader(\"&#160;\")}}function U(C,D,B){var F=B[0],A=B[1],G=this.cfg,E=G.getProperty(\"width\");if(E==A){G.setProperty(\"width\",F)}this.unsubscribe(\"hide\",U,B)}function j(C,D){var E=YAHOO.env.ua.ie,F,A,B;if(E==6||(E==7&&document.compatMode==\"BackCompat\")){F=this.cfg;A=F.getProperty(\"width\");if(!A||A==\"auto\"){B=(this.element.offsetWidth+\"px\");F.setProperty(\"width\",B);this.subscribe(\"hide\",U,[(A||\"\"),B])}}}function g(){this.blur()}function W(B,C){var A=this;function D(E){var F=E.tagName.toUpperCase(),G=false;switch(F){case\"A\":case\"BUTTON\":case\"SELECT\":case\"TEXTAREA\":if(!l.isAncestor(A.element,E)){T.on(E,\"focus\",g,E,true);G=true}break;case\"INPUT\":if(E.type!=\"hidden\"&&!l.isAncestor(A.element,E)){T.on(E,\"focus\",g,E,true);G=true}break}return G}this.focusableElements=l.getElementsBy(D)}function k(B,C){var E=this.focusableElements,D=E.length,A,F;for(F=0;F<D;F++){A=E[F];T.removeListener(A,\"focus\",g)}}YAHOO.extend(X,d,{init:function(A,B){X.superclass.init.call(this,A);this.beforeInitEvent.fire(X);l.addClass(this.element,X.CSS_PANEL);this.buildWrapper();if(B){this.cfg.applyConfig(B,true)}this.subscribe(\"showMask\",W);this.subscribe(\"hideMask\",k);this.subscribe(\"beforeRender\",b);this.initEvent.fire(X)},initEvents:function(){X.superclass.initEvents.call(this);var A=a.LIST;this.showMaskEvent=this.createEvent(h.SHOW_MASK);this.showMaskEvent.signature=A;this.hideMaskEvent=this.createEvent(h.HIDE_MASK);this.hideMaskEvent.signature=A;this.dragEvent=this.createEvent(h.DRAG);this.dragEvent.signature=A},initDefaultConfig:function(){X.superclass.initDefaultConfig.call(this);this.cfg.addProperty(Z.CLOSE.key,{handler:this.configClose,value:Z.CLOSE.value,validator:Z.CLOSE.validator,supercedes:Z.CLOSE.supercedes});this.cfg.addProperty(Z.DRAGGABLE.key,{handler:this.configDraggable,value:Z.DRAGGABLE.value,validator:Z.DRAGGABLE.validator,supercedes:Z.DRAGGABLE.supercedes});this.cfg.addProperty(Z.DRAG_ONLY.key,{value:Z.DRAG_ONLY.value,validator:Z.DRAG_ONLY.validator,supercedes:Z.DRAG_ONLY.supercedes});this.cfg.addProperty(Z.UNDERLAY.key,{handler:this.configUnderlay,value:Z.UNDERLAY.value,supercedes:Z.UNDERLAY.supercedes});this.cfg.addProperty(Z.MODAL.key,{handler:this.configModal,value:Z.MODAL.value,validator:Z.MODAL.validator,supercedes:Z.MODAL.supercedes});this.cfg.addProperty(Z.KEY_LISTENERS.key,{handler:this.configKeyListeners,suppressEvent:Z.KEY_LISTENERS.suppressEvent,supercedes:Z.KEY_LISTENERS.supercedes})},configClose:function(B,D,F){var E=D[0],C=this.close;function A(G,H){H.hide()}if(E){if(!C){if(!i){i=document.createElement(\"span\");i.innerHTML=\"&#160;\";i.className=\"container-close\"}C=i.cloneNode(true);this.innerElement.appendChild(C);T.on(C,\"click\",A,this);this.close=C}else{C.style.display=\"block\"}}else{if(C){C.style.display=\"none\"}}},configDraggable:function(C,D,B){var A=D[0];if(A){if(!Y){this.cfg.setProperty(\"draggable\",false);return }if(this.header){l.setStyle(this.header,\"cursor\",\"move\");this.registerDragDrop()}this.subscribe(\"beforeShow\",j)}else{if(this.dd){this.dd.unreg()}if(this.header){l.setStyle(this.header,\"cursor\",\"auto\")}this.unsubscribe(\"beforeShow\",j)}},configUnderlay:function(J,K,C){var L=YAHOO.env.ua,A=(this.platform==\"mac\"&&L.gecko),I=K[0].toLowerCase(),G=this.underlay,F=this.element;function H(){var M=this.underlay;l.addClass(M,\"yui-force-redraw\");window.setTimeout(function(){l.removeClass(M,\"yui-force-redraw\")},0)}function E(){var M;if(!G){if(!V){V=document.createElement(\"div\");V.className=\"underlay\"}G=V.cloneNode(false);this.element.appendChild(G);this.underlay=G;M=L.ie;if(M==6||(M==7&&document.compatMode==\"BackCompat\")){this.sizeUnderlay();this.cfg.subscribeToConfigEvent(\"width\",this.sizeUnderlay);this.cfg.subscribeToConfigEvent(\"height\",this.sizeUnderlay);this.changeContentEvent.subscribe(this.sizeUnderlay);YAHOO.widget.Module.textResizeEvent.subscribe(this.sizeUnderlay,this,true)}if(L.webkit&&L.webkit<420){this.changeContentEvent.subscribe(H)}}}function B(){E.call(this);this._underlayDeferred=false;this.beforeShowEvent.unsubscribe(B)}function D(){if(this._underlayDeferred){this.beforeShowEvent.unsubscribe(B);this._underlayDeferred=false}if(G){this.cfg.unsubscribeFromConfigEvent(\"width\",this.sizeUnderlay);this.cfg.unsubscribeFromConfigEvent(\"height\",this.sizeUnderlay);this.changeContentEvent.unsubscribe(this.sizeUnderlay);this.changeContentEvent.unsubscribe(H);YAHOO.widget.Module.textResizeEvent.unsubscribe(this.sizeUnderlay,this,true);this.element.removeChild(G);this.underlay=null}}switch(I){case\"shadow\":l.removeClass(F,\"matte\");l.addClass(F,\"shadow\");break;case\"matte\":if(!A){D.call(this)}l.removeClass(F,\"shadow\");l.addClass(F,\"matte\");break;default:if(!A){D.call(this)}l.removeClass(F,\"shadow\");l.removeClass(F,\"matte\");break}if((I==\"shadow\")||(A&&!G)){if(this.cfg.getProperty(\"visible\")){E.call(this)}else{if(!this._underlayDeferred){this.beforeShowEvent.subscribe(B);this._underlayDeferred=true}}}},configModal:function(C,D,A){var B=D[0];if(B){if(!this._hasModalityEventListeners){this.subscribe(\"beforeShow\",this.buildMask);this.subscribe(\"beforeShow\",this.bringToTop);this.subscribe(\"beforeShow\",this.showMask);this.subscribe(\"hide\",this.hideMask);d.windowResizeEvent.subscribe(this.sizeMask,this,true);this._hasModalityEventListeners=true}}else{if(this._hasModalityEventListeners){if(this.cfg.getProperty(\"visible\")){this.hideMask();this.removeMask()}this.unsubscribe(\"beforeShow\",this.buildMask);this.unsubscribe(\"beforeShow\",this.bringToTop);this.unsubscribe(\"beforeShow\",this.showMask);this.unsubscribe(\"hide\",this.hideMask);d.windowResizeEvent.unsubscribe(this.sizeMask,this);this._hasModalityEventListeners=false}}},removeMask:function(){var A=this.mask,B;if(A){this.hideMask();B=A.parentNode;if(B){B.removeChild(A)}this.mask=null}},configKeyListeners:function(A,D,E){var B=D[0],F,G,C;if(B){if(B instanceof Array){G=B.length;for(C=0;C<G;C++){F=B[C];if(!c.alreadySubscribed(this.showEvent,F.enable,F)){this.showEvent.subscribe(F.enable,F,true)}if(!c.alreadySubscribed(this.hideEvent,F.disable,F)){this.hideEvent.subscribe(F.disable,F,true);this.destroyEvent.subscribe(F.disable,F,true)}}}else{if(!c.alreadySubscribed(this.showEvent,B.enable,B)){this.showEvent.subscribe(B.enable,B,true)}if(!c.alreadySubscribed(this.hideEvent,B.disable,B)){this.hideEvent.subscribe(B.disable,B,true);this.destroyEvent.subscribe(B.disable,B,true)}}}},configHeight:function(A,C,E){var D=C[0],B=this.innerElement;l.setStyle(B,\"height\",D);this.cfg.refireEvent(\"iframe\")},configWidth:function(A,D,E){var B=D[0],C=this.innerElement;l.setStyle(C,\"width\",B);this.cfg.refireEvent(\"iframe\")},configzIndex:function(C,D,A){X.superclass.configzIndex.call(this,C,D,A);if(this.mask||this.cfg.getProperty(\"modal\")===true){var B=l.getStyle(this.element,\"zIndex\");if(!B||isNaN(B)){B=0}if(B===0){this.cfg.setProperty(\"zIndex\",1)}else{this.stackMask()}}},buildWrapper:function(){var A=this.element.parentNode,C=this.element,B=document.createElement(\"div\");B.className=X.CSS_PANEL_CONTAINER;B.id=C.id+\"_c\";if(A){A.insertBefore(B,C)}B.appendChild(C);this.element=B;this.innerElement=C;l.setStyle(this.innerElement,\"visibility\",\"inherit\")},sizeUnderlay:function(){var A=this.underlay,B;if(A){B=this.element;A.style.width=B.offsetWidth+\"px\";A.style.height=B.offsetHeight+\"px\"}},registerDragDrop:function(){var A=this;if(this.header){if(!Y){return }var B=(this.cfg.getProperty(\"dragonly\")===true);this.dd=new Y(this.element.id,this.id,{dragOnly:B});if(!this.header.id){this.header.id=this.id+\"_h\"}this.dd.startDrag=function(){var D,H,F,C,E,G;if(YAHOO.env.ua.ie==6){l.addClass(A.element,\"drag\")}if(A.cfg.getProperty(\"constraintoviewport\")){var I=d.VIEWPORT_OFFSET;D=A.element.offsetHeight;H=A.element.offsetWidth;F=l.getViewportWidth();C=l.getViewportHeight();E=l.getDocumentScrollLeft();G=l.getDocumentScrollTop();if(D+I<C){this.minY=G+I;this.maxY=G+C-D-I}else{this.minY=G+I;this.maxY=G+I}if(H+I<F){this.minX=E+I;this.maxX=E+F-H-I}else{this.minX=E+I;this.maxX=E+I}this.constrainX=true;this.constrainY=true}else{this.constrainX=false;this.constrainY=false}A.dragEvent.fire(\"startDrag\",arguments)};this.dd.onDrag=function(){A.syncPosition();A.cfg.refireEvent(\"iframe\");if(this.platform==\"mac\"&&YAHOO.env.ua.gecko){this.showMacGeckoScrollbars()}A.dragEvent.fire(\"onDrag\",arguments)};this.dd.endDrag=function(){if(YAHOO.env.ua.ie==6){l.removeClass(A.element,\"drag\")}A.dragEvent.fire(\"endDrag\",arguments);A.moveEvent.fire(A.cfg.getProperty(\"xy\"))};this.dd.setHandleElId(this.header.id);this.dd.addInvalidHandleType(\"INPUT\");this.dd.addInvalidHandleType(\"SELECT\");this.dd.addInvalidHandleType(\"TEXTAREA\")}},buildMask:function(){var A=this.mask;if(!A){if(!e){e=document.createElement(\"div\");e.className=\"mask\";e.innerHTML=\"&#160;\"}A=e.cloneNode(true);A.id=this.id+\"_mask\";document.body.insertBefore(A,document.body.firstChild);this.mask=A;this.stackMask()}},hideMask:function(){if(this.cfg.getProperty(\"modal\")&&this.mask){this.mask.style.display=\"none\";this.hideMaskEvent.fire();l.removeClass(document.body,\"masked\")}},showMask:function(){if(this.cfg.getProperty(\"modal\")&&this.mask){l.addClass(document.body,\"masked\");this.sizeMask();this.mask.style.display=\"block\";this.showMaskEvent.fire()}},sizeMask:function(){if(this.mask){this.mask.style.height=l.getDocumentHeight()+\"px\";this.mask.style.width=l.getDocumentWidth()+\"px\"}},stackMask:function(){if(this.mask){var A=l.getStyle(this.element,\"zIndex\");if(!YAHOO.lang.isUndefined(A)&&!isNaN(A)){l.setStyle(this.mask,\"zIndex\",A-1)}}},render:function(A){return X.superclass.render.call(this,A,this.innerElement)},destroy:function(){d.windowResizeEvent.unsubscribe(this.sizeMask,this);this.removeMask();if(this.close){T.purgeElement(this.close)}X.superclass.destroy.call(this)},toString:function(){return\"Panel \"+this.id}})}());(function(){YAHOO.widget.Dialog=function(A,B){YAHOO.widget.Dialog.superclass.constructor.call(this,A,B)};var O=YAHOO.util.Event,P=YAHOO.util.CustomEvent,K=YAHOO.util.Dom,M=YAHOO.util.KeyListener,Q=YAHOO.util.Connect,S=YAHOO.widget.Dialog,T=YAHOO.lang,N={BEFORE_SUBMIT:\"beforeSubmit\",SUBMIT:\"submit\",MANUAL_SUBMIT:\"manualSubmit\",ASYNC_SUBMIT:\"asyncSubmit\",FORM_SUBMIT:\"formSubmit\",CANCEL:\"cancel\"},R={POST_METHOD:{key:\"postmethod\",value:\"async\"},BUTTONS:{key:\"buttons\",value:\"none\"}};S.CSS_DIALOG=\"yui-dialog\";function L(){var C=this._aButtons,A,D,B;if(T.isArray(C)){A=C.length;if(A>0){B=A-1;do{D=C[B];if(YAHOO.widget.Button&&D instanceof YAHOO.widget.Button){D.destroy()}else{if(D.tagName.toUpperCase()==\"BUTTON\"){O.purgeElement(D);O.purgeElement(D,false)}}}while(B--)}}}YAHOO.extend(S,YAHOO.widget.Panel,{form:null,initDefaultConfig:function(){S.superclass.initDefaultConfig.call(this);this.callback={success:null,failure:null,argument:null};this.cfg.addProperty(R.POST_METHOD.key,{handler:this.configPostMethod,value:R.POST_METHOD.value,validator:function(A){if(A!=\"form\"&&A!=\"async\"&&A!=\"none\"&&A!=\"manual\"){return false}else{return true}}});this.cfg.addProperty(R.BUTTONS.key,{handler:this.configButtons,value:R.BUTTONS.value})},initEvents:function(){S.superclass.initEvents.call(this);var A=P.LIST;this.beforeSubmitEvent=this.createEvent(N.BEFORE_SUBMIT);this.beforeSubmitEvent.signature=A;this.submitEvent=this.createEvent(N.SUBMIT);this.submitEvent.signature=A;this.manualSubmitEvent=this.createEvent(N.MANUAL_SUBMIT);this.manualSubmitEvent.signature=A;this.asyncSubmitEvent=this.createEvent(N.ASYNC_SUBMIT);this.asyncSubmitEvent.signature=A;this.formSubmitEvent=this.createEvent(N.FORM_SUBMIT);this.formSubmitEvent.signature=A;this.cancelEvent=this.createEvent(N.CANCEL);this.cancelEvent.signature=A},init:function(A,B){S.superclass.init.call(this,A);this.beforeInitEvent.fire(S);K.addClass(this.element,S.CSS_DIALOG);this.cfg.setProperty(\"visible\",false);if(B){this.cfg.applyConfig(B,true)}this.showEvent.subscribe(this.focusFirst,this,true);this.beforeHideEvent.subscribe(this.blurButtons,this,true);this.subscribe(\"changeBody\",this.registerForm);this.initEvent.fire(S)},doSubmit:function(){var C=this.form,E=false,F=false,D,B,G,A;switch(this.cfg.getProperty(\"postmethod\")){case\"async\":D=C.elements;B=D.length;if(B>0){G=B-1;do{if(D[G].type==\"file\"){E=true;break}}while(G--)}if(E&&YAHOO.env.ua.ie&&this.isSecure){F=true}A=(C.getAttribute(\"method\")||\"POST\").toUpperCase();Q.setForm(C,E,F);Q.asyncRequest(A,C.getAttribute(\"action\"),this.callback);this.asyncSubmitEvent.fire();break;case\"form\":C.submit();this.formSubmitEvent.fire();break;case\"none\":case\"manual\":this.manualSubmitEvent.fire();break}},registerForm:function(){var D=this.element.getElementsByTagName(\"form\")[0],A=this,B,C;if(this.form){if(this.form==D&&K.isAncestor(this.element,this.form)){return }else{O.purgeElement(this.form);this.form=null}}if(!D){D=document.createElement(\"form\");D.name=\"frm_\"+this.id;this.body.appendChild(D)}if(D){this.form=D;O.on(D,\"submit\",function(E){O.stopEvent(E);this.submit();this.form.blur()},this,true);this.firstFormElement=function(){var E,F,G=D.elements.length;for(E=0;E<G;E++){F=D.elements[E];if(F.focus&&!F.disabled&&F.type!=\"hidden\"){return F}}return null}();this.lastFormElement=function(){var E,F,G=D.elements.length;for(E=G-1;E>=0;E--){F=D.elements[E];if(F.focus&&!F.disabled&&F.type!=\"hidden\"){return F}}return null}();if(this.cfg.getProperty(\"modal\")){B=this.firstFormElement||this.firstButton;if(B){this.preventBackTab=new M(B,{shift:true,keys:9},{fn:A.focusLast,scope:A,correctScope:true});this.showEvent.subscribe(this.preventBackTab.enable,this.preventBackTab,true);this.hideEvent.subscribe(this.preventBackTab.disable,this.preventBackTab,true)}C=this.lastButton||this.lastFormElement;if(C){this.preventTabOut=new M(C,{shift:false,keys:9},{fn:A.focusFirst,scope:A,correctScope:true});this.showEvent.subscribe(this.preventTabOut.enable,this.preventTabOut,true);this.hideEvent.subscribe(this.preventTabOut.disable,this.preventTabOut,true)}}}},configClose:function(E,B,D){var C=B[0];function A(F,G){G.cancel()}if(C){if(!this.close){this.close=document.createElement(\"div\");K.addClass(this.close,\"container-close\");this.close.innerHTML=\"&#160;\";this.innerElement.appendChild(this.close);O.on(this.close,\"click\",A,this)}else{this.close.style.display=\"block\"}}else{if(this.close){this.close.style.display=\"none\"}}},configButtons:function(C,D,I){var H=YAHOO.widget.Button,A=D[0],X=this.innerElement,B,F,Y,E,G,Z,J;L.call(this);this._aButtons=null;if(T.isArray(A)){G=document.createElement(\"span\");G.className=\"button-group\";E=A.length;this._aButtons=[];for(J=0;J<E;J++){B=A[J];if(H){Y=new H({label:B.text,container:G});F=Y.get(\"element\");if(B.isDefault){Y.addClass(\"default\");this.defaultHtmlButton=F}if(T.isFunction(B.handler)){Y.set(\"onclick\",{fn:B.handler,obj:this,scope:this})}else{if(T.isObject(B.handler)&&T.isFunction(B.handler.fn)){Y.set(\"onclick\",{fn:B.handler.fn,obj:((!T.isUndefined(B.handler.obj))?B.handler.obj:this),scope:(B.handler.scope||this)})}}this._aButtons[this._aButtons.length]=Y}else{F=document.createElement(\"button\");F.setAttribute(\"type\",\"button\");if(B.isDefault){F.className=\"default\";this.defaultHtmlButton=F}F.innerHTML=B.text;if(T.isFunction(B.handler)){O.on(F,\"click\",B.handler,this,true)}else{if(T.isObject(B.handler)&&T.isFunction(B.handler.fn)){O.on(F,\"click\",B.handler.fn,((!T.isUndefined(B.handler.obj))?B.handler.obj:this),(B.handler.scope||this))}}G.appendChild(F);this._aButtons[this._aButtons.length]=F}B.htmlButton=F;if(J===0){this.firstButton=F}if(J==(E-1)){this.lastButton=F}}this.setFooter(G);Z=this.footer;if(K.inDocument(this.element)&&!K.isAncestor(X,Z)){X.appendChild(Z)}this.buttonSpan=G}else{G=this.buttonSpan;Z=this.footer;if(G&&Z){Z.removeChild(G);this.buttonSpan=null;this.firstButton=null;this.lastButton=null;this.defaultHtmlButton=null}}this.cfg.refireEvent(\"iframe\");this.cfg.refireEvent(\"underlay\")},getButtons:function(){var A=this._aButtons;if(A){return A}},focusFirst:function(E,A,C){var F=this.firstFormElement,B;if(A){B=A[1];if(B){O.stopEvent(B)}}if(F){try{F.focus()}catch(D){}}else{this.focusDefaultButton()}},focusLast:function(F,A,D){var C=this.cfg.getProperty(\"buttons\"),G=this.lastFormElement,B;if(A){B=A[1];if(B){O.stopEvent(B)}}if(C&&T.isArray(C)){this.focusLastButton()}else{if(G){try{G.focus()}catch(E){}}}},focusDefaultButton:function(){var B=this.defaultHtmlButton;if(B){try{B.focus()}catch(A){}}},blurButtons:function(){var C=this.cfg.getProperty(\"buttons\"),F,D,A,B;if(C&&T.isArray(C)){F=C.length;if(F>0){B=(F-1);do{D=C[B];if(D){A=D.htmlButton;if(A){try{A.blur()}catch(E){}}}}while(B--)}}},focusFirstButton:function(){var C=this.cfg.getProperty(\"buttons\"),D,B;if(C&&T.isArray(C)){D=C[0];if(D){B=D.htmlButton;if(B){try{B.focus()}catch(A){}}}}},focusLastButton:function(){var C=this.cfg.getProperty(\"buttons\"),A,D,B;if(C&&T.isArray(C)){A=C.length;if(A>0){D=C[(A-1)];if(D){B=D.htmlButton;if(B){try{B.focus()}catch(E){}}}}}},configPostMethod:function(A,B,C){this.registerForm()},validate:function(){return true},submit:function(){if(this.validate()){this.beforeSubmitEvent.fire();this.doSubmit();this.submitEvent.fire();this.hide();return true}else{return false}},cancel:function(){this.cancelEvent.fire();this.hide()},getData:function(){var l=this.form,g,G,D,e,F,I,J,h,C,f,B,k,i,d,j,A,E;function H(U){var V=U.tagName.toUpperCase();return((V==\"INPUT\"||V==\"TEXTAREA\"||V==\"SELECT\")&&U.name==e)}if(l){g=l.elements;G=g.length;D={};for(A=0;A<G;A++){e=g[A].name;F=K.getElementsBy(H,\"*\",l);I=F.length;if(I>0){if(I==1){F=F[0];J=F.type;h=F.tagName.toUpperCase();switch(h){case\"INPUT\":if(J==\"checkbox\"){D[e]=F.checked}else{if(J!=\"radio\"){D[e]=F.value}}break;case\"TEXTAREA\":D[e]=F.value;break;case\"SELECT\":C=F.options;f=C.length;B=[];for(E=0;E<f;E++){k=C[E];if(k.selected){i=k.value;if(!i||i===\"\"){i=k.text}B[B.length]=i}}D[e]=B;break}}else{J=F[0].type;switch(J){case\"radio\":for(E=0;E<I;E++){d=F[E];if(d.checked){D[e]=d.value;break}}break;case\"checkbox\":B=[];for(E=0;E<I;E++){j=F[E];if(j.checked){B[B.length]=j.value}}D[e]=B;break}}}}}return D},destroy:function(){L.call(this);this._aButtons=null;var B=this.element.getElementsByTagName(\"form\"),A;if(B.length>0){A=B[0];if(A){O.purgeElement(A);if(A.parentNode){A.parentNode.removeChild(A)}this.form=null}}S.superclass.destroy.call(this)},toString:function(){return\"Dialog \"+this.id}})}());(function(){YAHOO.widget.SimpleDialog=function(A,B){YAHOO.widget.SimpleDialog.superclass.constructor.call(this,A,B)};var E=YAHOO.util.Dom,F=YAHOO.widget.SimpleDialog,D={ICON:{key:\"icon\",value:\"none\",suppressEvent:true},TEXT:{key:\"text\",value:\"\",suppressEvent:true,supercedes:[\"icon\"]}};F.ICON_BLOCK=\"blckicon\";F.ICON_ALARM=\"alrticon\";F.ICON_HELP=\"hlpicon\";F.ICON_INFO=\"infoicon\";F.ICON_WARN=\"warnicon\";F.ICON_TIP=\"tipicon\";F.ICON_CSS_CLASSNAME=\"yui-icon\";F.CSS_SIMPLEDIALOG=\"yui-simple-dialog\";YAHOO.extend(F,YAHOO.widget.Dialog,{initDefaultConfig:function(){F.superclass.initDefaultConfig.call(this);this.cfg.addProperty(D.ICON.key,{handler:this.configIcon,value:D.ICON.value,suppressEvent:D.ICON.suppressEvent});this.cfg.addProperty(D.TEXT.key,{handler:this.configText,value:D.TEXT.value,suppressEvent:D.TEXT.suppressEvent,supercedes:D.TEXT.supercedes})},init:function(A,B){F.superclass.init.call(this,A);this.beforeInitEvent.fire(F);E.addClass(this.element,F.CSS_SIMPLEDIALOG);this.cfg.queueProperty(\"postmethod\",\"manual\");if(B){this.cfg.applyConfig(B,true)}this.beforeRenderEvent.subscribe(function(){if(!this.body){this.setBody(\"\")}},this,true);this.initEvent.fire(F)},registerForm:function(){F.superclass.registerForm.call(this);this.form.innerHTML+='<input type=\"hidden\" name=\"'+this.id+'\" value=\"\"/>'},configIcon:function(N,O,B){var A=O[0],P=this.body,C=F.ICON_CSS_CLASSNAME,L,M;if(A&&A!=\"none\"){L=E.getElementsByClassName(C,\"*\",P);if(L){M=L.parentNode;if(M){M.removeChild(L);L=null}}if(A.indexOf(\".\")==-1){L=document.createElement(\"span\");L.className=(C+\" \"+A);L.innerHTML=\"&#160;\"}else{L=document.createElement(\"img\");L.src=(this.imageRoot+A);L.className=C}if(L){P.insertBefore(L,P.firstChild)}}},configText:function(C,H,B){var A=H[0];if(A){this.setBody(A);this.cfg.refireEvent(\"icon\")}},toString:function(){return\"SimpleDialog \"+this.id}})}());(function(){YAHOO.widget.ContainerEffect=function(D,A,B,J,C){if(!C){C=YAHOO.util.Anim}this.overlay=D;this.attrIn=A;this.attrOut=B;this.targetElement=J||D.element;this.animClass=C};var H=YAHOO.util.Dom,F=YAHOO.util.CustomEvent,G=YAHOO.util.Easing,E=YAHOO.widget.ContainerEffect;E.FADE=function(J,C){var A={attributes:{opacity:{from:0,to:1}},duration:C,method:G.easeIn};var D={attributes:{opacity:{to:0}},duration:C,method:G.easeOut};var B=new E(J,A,D,J.element);B.handleUnderlayStart=function(){var I=this.overlay.underlay;if(I&&YAHOO.env.ua.ie){var L=(I.filters&&I.filters.length>0);if(L){H.addClass(J.element,\"yui-effect-fade\")}}};B.handleUnderlayComplete=function(){var I=this.overlay.underlay;if(I&&YAHOO.env.ua.ie){H.removeClass(J.element,\"yui-effect-fade\")}};B.handleStartAnimateIn=function(M,N,I){H.addClass(I.overlay.element,\"hide-select\");if(!I.overlay.underlay){I.overlay.cfg.refireEvent(\"underlay\")}I.handleUnderlayStart();H.setStyle(I.overlay.element,\"visibility\",\"visible\");H.setStyle(I.overlay.element,\"opacity\",0)};B.handleCompleteAnimateIn=function(M,N,I){H.removeClass(I.overlay.element,\"hide-select\");if(I.overlay.element.style.filter){I.overlay.element.style.filter=null}I.handleUnderlayComplete();I.overlay.cfg.refireEvent(\"iframe\");I.animateInCompleteEvent.fire()};B.handleStartAnimateOut=function(M,N,I){H.addClass(I.overlay.element,\"hide-select\");I.handleUnderlayStart()};B.handleCompleteAnimateOut=function(M,N,I){H.removeClass(I.overlay.element,\"hide-select\");if(I.overlay.element.style.filter){I.overlay.element.style.filter=null}H.setStyle(I.overlay.element,\"visibility\",\"hidden\");H.setStyle(I.overlay.element,\"opacity\",1);I.handleUnderlayComplete();I.overlay.cfg.refireEvent(\"iframe\");I.animateOutCompleteEvent.fire()};B.init();return B};E.SLIDE=function(L,C){var M=L.cfg.getProperty(\"x\")||H.getX(L.element),A=L.cfg.getProperty(\"y\")||H.getY(L.element),B=H.getClientWidth(),D=L.element.offsetWidth,N=new E(L,{attributes:{points:{to:[M,A]}},duration:C,method:G.easeIn},{attributes:{points:{to:[(B+25),A]}},duration:C,method:G.easeOut},L.element,YAHOO.util.Motion);N.handleStartAnimateIn=function(K,I,J){J.overlay.element.style.left=((-25)-D)+\"px\";J.overlay.element.style.top=A+\"px\"};N.handleTweenAnimateIn=function(R,S,K){var J=H.getXY(K.overlay.element),T=J[0],I=J[1];if(H.getStyle(K.overlay.element,\"visibility\")==\"hidden\"&&T<M){H.setStyle(K.overlay.element,\"visibility\",\"visible\")}K.overlay.cfg.setProperty(\"xy\",[T,I],true);K.overlay.cfg.refireEvent(\"iframe\")};N.handleCompleteAnimateIn=function(K,I,J){J.overlay.cfg.setProperty(\"xy\",[M,A],true);J.startX=M;J.startY=A;J.overlay.cfg.refireEvent(\"iframe\");J.animateInCompleteEvent.fire()};N.handleStartAnimateOut=function(T,I,K){var S=H.getViewportWidth(),J=H.getXY(K.overlay.element),R=J[1];K.animOut.attributes.points.to=[(S+25),R]};N.handleTweenAnimateOut=function(S,T,R){var J=H.getXY(R.overlay.element),I=J[0],K=J[1];R.overlay.cfg.setProperty(\"xy\",[I,K],true);R.overlay.cfg.refireEvent(\"iframe\")};N.handleCompleteAnimateOut=function(K,I,J){H.setStyle(J.overlay.element,\"visibility\",\"hidden\");J.overlay.cfg.setProperty(\"xy\",[M,A]);J.animateOutCompleteEvent.fire()};N.init();return N};E.prototype={init:function(){this.beforeAnimateInEvent=this.createEvent(\"beforeAnimateIn\");this.beforeAnimateInEvent.signature=F.LIST;this.beforeAnimateOutEvent=this.createEvent(\"beforeAnimateOut\");this.beforeAnimateOutEvent.signature=F.LIST;this.animateInCompleteEvent=this.createEvent(\"animateInComplete\");this.animateInCompleteEvent.signature=F.LIST;this.animateOutCompleteEvent=this.createEvent(\"animateOutComplete\");this.animateOutCompleteEvent.signature=F.LIST;this.animIn=new this.animClass(this.targetElement,this.attrIn.attributes,this.attrIn.duration,this.attrIn.method);this.animIn.onStart.subscribe(this.handleStartAnimateIn,this);this.animIn.onTween.subscribe(this.handleTweenAnimateIn,this);this.animIn.onComplete.subscribe(this.handleCompleteAnimateIn,this);this.animOut=new this.animClass(this.targetElement,this.attrOut.attributes,this.attrOut.duration,this.attrOut.method);this.animOut.onStart.subscribe(this.handleStartAnimateOut,this);this.animOut.onTween.subscribe(this.handleTweenAnimateOut,this);this.animOut.onComplete.subscribe(this.handleCompleteAnimateOut,this)},animateIn:function(){this.beforeAnimateInEvent.fire();this.animIn.animate()},animateOut:function(){this.beforeAnimateOutEvent.fire();this.animOut.animate()},handleStartAnimateIn:function(B,C,A){},handleTweenAnimateIn:function(B,C,A){},handleCompleteAnimateIn:function(B,C,A){},handleStartAnimateOut:function(B,C,A){},handleTweenAnimateOut:function(B,C,A){},handleCompleteAnimateOut:function(B,C,A){},toString:function(){var A=\"ContainerEffect\";if(this.overlay){A+=\" [\"+this.overlay.toString()+\"]\"}return A}};YAHOO.lang.augmentProto(E,YAHOO.util.EventProvider)})();YAHOO.register(\"container\",YAHOO.widget.Module,{version:\"2.4.1\",build:\"742\"});" );
if(!window.YAHOO){var YAHOO={}}if(!YAHOO.SC_ULT){YAHOO.SC_ULT={}}if(!YAHOO.SC_ULT.IMG){YAHOO.SC_ULT.IMG=new Image()}YAHOO.SC_ULT.SRC_SPACEID_KEY="_S";YAHOO.SC_ULT.DEST_SPACEID_KEY="_s";YAHOO.SC_ULT.BEACON="http://geo.yahoo.com/t/b";YAHOO.SC_ULT.YLC_LIBSRC=2;YAHOO.SC_ULT.CTRL_C="\x03";YAHOO.SC_ULT.CTRL_D="\x04";YAHOO.SC_ULT.BASE64_STR="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789._-";(function(){YAHOO.SC_ULT.track_click=function(C,F){if(!C||!F){return C}F._r=YAHOO.SC_ULT.YLC_LIBSRC;var G=[];var D=0;for(var B in F){var A=F[B];if(typeof (A)=="undefined"){A=F[B]=""}if(B.length<1){return C}if(B.length>8){return C}if(B.indexOf(" ")!=-1){return C}if(YAHOO.SC_ULT.has_ctrl_char(B)||YAHOO.SC_ULT.has_ctrl_char(A)){return C}G[D++]=B}G=G.sort();var E=[];for(D=0;D<G.length;D++){E[D]=G[D]+YAHOO.SC_ULT.CTRL_C+F[G[D]]}E=E.join(YAHOO.SC_ULT.CTRL_D);if(E.length<1||E.length>1024){return C}E="/;_ylc="+YAHOO.SC_ULT.encode64(E);D=C.indexOf("/*");if(D==-1){D=C.indexOf("/?")}if(D==-1){D=C.indexOf("?")}if(D==-1){return C+E}else{return C.substr(0,D)+E+C.substr(D)}};YAHOO.SC_ULT.beacon_click=function(C,B){if(!B){B=YAHOO.SC_ULT.IMG}if(C){var A=YAHOO.SC_ULT.track_click(YAHOO.SC_ULT.BEACON,C);A+="?t="+Math.random();B.src=A}return true};YAHOO.SC_ULT.has_ctrl_char=function(B){for(var A=0;A<B.length;A++){if(B.charCodeAt(A)<32){return true}}return false};YAHOO.SC_ULT.encode64=function(C){var A="";var J,H,F="";var I,G,E,D="";var B=0;do{J=C.charCodeAt(B++);H=C.charCodeAt(B++);F=C.charCodeAt(B++);I=J>>2;G=((J&3)<<4)|(H>>4);E=((H&15)<<2)|(F>>6);D=F&63;if(isNaN(H)){E=D=64}else{if(isNaN(F)){D=64}}A=A+YAHOO.SC_ULT.BASE64_STR.charAt(I)+YAHOO.SC_ULT.BASE64_STR.charAt(G)+YAHOO.SC_ULT.BASE64_STR.charAt(E)+YAHOO.SC_ULT.BASE64_STR.charAt(D);J=H=F="";I=G=E=D=""}while(B<C.length);return A}})();YAHOO.Shortcuts.Utils={resizeImageToMaxSize:function(A,D,C,B){if(!document.getElementById(B)&&B!="undefined"){return }if(B!="undefined"){document.getElementById(B).style.visibility="hidden"}else{A.style.visibility="hidden"}width=A.width;height=A.height;if(width/D<height/C){if(height>C){ratio=height/C;height=C;width=Math.round(width/ratio)}}else{if(width>D){ratio=width/D;width=D;height=Math.round(height/ratio)}}A.width=width;A.height=height;if(document.getElementById(B)&&B!="undefined"){document.getElementById(B).style.visibility="visible"}else{A.style.visibility="visible"}},absoluteUrl:function(A){if(A.indexOf("http:")==0){return A}if(A.indexOf("//")==0){return document.location.protocol+A}if(A.charAt(0)=="/"){return document.location.protocol+"//"+document.location.host+A}if(A.charAt(0)=="#"){return document.URL+A}var B=document.URL.lastIndexOf("/");return document.URL.substr(0,B)+"/"+A},getShortcutServerUrl:function(){return YAHOO.Shortcuts.globals.isQA?YAHOO.Shortcuts.Utils.getShortcutQAServerUrl():"fe.shortcuts.search.yahoo.com"},getShortcutQAServerUrl:function(){return"fe01.livewords.search.sp1.yahoo.com"},ucWords:function(A){if(A&&typeof (A)=="string"){A=A.replace(/^\w|\s+\w/g,function(B){return B.toUpperCase()})}return A},insertRef:function(E,C,F,B){F=F||document;var D;if(typeof B=="undefined"){B=true}if(B){D=F.getElementsByTagName("head")[0]}else{D=F.getElementsByTagName("body")[0]}if(D){var A;if(C){A=F.createElement("script");if(E.indexOf("http")==0){A.setAttribute("src",E)}else{A.innerHTML=E}}else{A=F.createElement("link");A.setAttribute("rel","stylesheet");A.setAttribute("type","text/css");A.setAttribute("href",E)}D.appendChild(A)}},makeAnnObject:function(A){return{text:A,context:"",weight:1,type:["shortcuts:/instance"],metaData:null}},wrapEntityText:function(E,B){if(E&&!/.*\/place/.test(B)){var D=/\S\s+\S/;var A=1;var F=0;var C;while((C=E.substr(F).search(D))!=-1){A++;F=F+C+1}if(A>1&&A<4){return'"'+E+'"'}}return E},getOptions:function(C){if(C&&C.txt&&C.url){var A=(typeof C.url=="function")?C.url():C.url;var D="";var B="";if(C.js!=""){B="href='#' onclick='"+C.js+"'"}else{B="href='"+A+"'"}if(C.new_window===false){D+='<a style="cursor: pointer" '+B}else{D+='<a style="cursor: pointer" target="ylw_wn" '+B}if(C.tt){D+="' title='"+C.tt+"'"}D+=' class="lwOption"></a>';return D}return""},makeAd:function(B){var A='<div id="ylwad">'+B+"</div>";return A},followAdLink:function(B,A){if(YAHOO.Shortcuts.globals.currentAd){window.open(YAHOO.Shortcuts.globals.currentAd)}},noFollowAdLink:function(B,A){YAHOO.Shortcuts.YUI.util.Event.stopPropagation(B)},adHover:function(){if(!document.getElementById("ylwad").className.match(/sponsorHover/)){YAHOO.Shortcuts.YUI.util.Dom.addClass("ylwad","sponsorHover")}},adMouseout:function(){document.getElementById("ylwad").className=""},adImageHover:function(B,A){document.getElementById("ylwad").className="";YAHOO.Shortcuts.YUI.util.Event.stopPropagation(B)},adNoOp:function(){},setAdContents:function(B){var D=document.getElementById("ylwad");if(D){YAHOO.Shortcuts.YUI.util.Event.addListener("ylwad","mouseover",YAHOO.Shortcuts.Utils.adHover,this,true);YAHOO.Shortcuts.YUI.util.Event.addListener("ylwad","mouseout",YAHOO.Shortcuts.Utils.adMouseout,this,true);YAHOO.Shortcuts.YUI.util.Event.removeListener("ylwad","click");YAHOO.Shortcuts.YUI.util.Event.addListener("ylwad","click",YAHOO.Shortcuts.Utils.followAdLink,this,true);if(B){if(B.ads){var C=B.ads[0];var A=/http:\/\/[^\'\"]*/.exec(C);C=C.replace(/http:\/\/[^\'\"]*/,"#");C=C.replace(/target=[\"\']_blank[\'\"]/,"");YAHOO.Shortcuts.globals.currentAd=A;D.style.display="block";D.innerHTML="";D.innerHTML+=C;D.innerHTML+='<span id="ylwad_discl" style="font-size:9px;color:#999;">Ad</span>';if(window.ShortcutsOverlay){window.ShortcutsOverlay.resizeEvent.fire()}return }}D.style.display="none"}},setDittoAdContents:function(D){var H=document.getElementById("ylwad");if(H){YAHOO.Shortcuts.YUI.util.Event.addListener("ylwad","mouseover",YAHOO.Shortcuts.Utils.adHover,this,true);YAHOO.Shortcuts.YUI.util.Event.addListener("ylwad","mouseout",YAHOO.Shortcuts.Utils.adMouseout,this,true);YAHOO.Shortcuts.YUI.util.Event.removeListener("ylwad","click");YAHOO.Shortcuts.YUI.util.Event.addListener("ylwad","click",YAHOO.Shortcuts.Utils.followAdLink,this,true);if(D){if(D.ads){var E=D.ads[0];var B=D.ads[0]["treatment"];YAHOO.Shortcuts.globals.currentAd=E.url;var C="ddImage_"+B;var G="ylwad_discl_";switch(B){case"Z":alignment="l";break;case"C":case"H":alignment="l";break;case"F":case"G":alignment="r";break;default:B="Z";alignment="l";break}dittoAd='<table width="'+(YAHOO.Shortcuts.globals.isIE?"333px":"100%")+'" cellpadding="0" cellspacing="0" border="0"><tr><td>'+(B=="Z"?"":'<div id="ylwadImage" class="'+C+'"><img src="'+E.image+'" onload="if (this.width == 1) {this.parentNode.style.display=\'none\';}"></img></div><div style="display:none"><img src="http://iar.worthathousandwords.com/iar.gif?pid=5475&subid='+YAHOO.Shortcuts.globals.frcode+"&ia_dm="+escape("yahoo.com")+"&ts="+new Date().getTime()+'"></div>')+'<div class="ddText_'+alignment+'"><div class="ddTitle">'+E.title+'</div><div class="ddDesc">'+E.desc+'</div><div class="ddUrl">'+E.site+"</div></td></tr></table>";H.innerHTML='<div class="sponsor">'+dittoAd+'</div><div id="'+G+alignment+'" style="font-size:9px;color:#999;">Ad</div>';H.style.display="block";if(YAHOO.Shortcuts.Utils.getCookie("YSC_AD")!=B){var A=window.location.hostname;var F=A.split(".");if(F.length<2||!isNaN(Number(F[F.length-1]))){domain=A}else{domain=F[F.length-2]+"."+F[F.length-1]}YAHOO.Shortcuts.Utils.setCookie("YSC_AD",B,domain,null)}if(window.ShortcutsOverlay){window.ShortcutsOverlay.resizeEvent.fire()}}else{H.innerHTML='<div class="sponsor" STYLE="visibility:hidden"></div>';H.style.display="block"}}else{H.style.display="none"}YAHOO.Shortcuts.YUI.util.Event.addListener("ylwadImage","mouseover",YAHOO.Shortcuts.Utils.adImageHover,this,true);YAHOO.Shortcuts.YUI.util.Event.removeListener("ylwadImage","click");YAHOO.Shortcuts.YUI.util.Event.addListener("ylwadImage","click",YAHOO.Shortcuts.Utils.noFollowAdLink,this,true)}},serialize:function(G){var A={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"};var F="";switch(typeof G){case"object":var C=[];if(YAHOO.Shortcuts.YUI.lang.isArray(G)){var B=G.length;for(var E=0;E<B;E++){var D=G[E];if(D){C.push(YAHOO.Shortcuts.Utils.serialize(D))}else{C.push("null")}}F="["+C.join(",")+"]"}else{for(var E in G){if(G.hasOwnProperty(E)){var D=G[E];if(D){C.push(YAHOO.Shortcuts.Utils.serialize(E)+":"+YAHOO.Shortcuts.Utils.serialize(D))}else{C.push(YAHOO.Shortcuts.Utils.serialize(E)+":null")}}}F="{"+C.join(",")+"}"}break;case"string":if(/["\\\x00-\x1f]/.test(G)){F='"'+G.replace(/[\x00-\x1f\\"]/g,function(H){var I=A[H];if(I){return I}I=H.charCodeAt();return"\\u00"+Math.floor(I/16).toString(16)+(I%16).toString(16)})+'"'}else{F='"'+G+'"'}break;case"number":case"boolean":F=String(G);break}return F},truncateString:function(B,C,A){if(B&&B.length>C){B=B.substr(0,C);if(A){B+="..."}else{B=B.replace(/\s\S*$/,"...")}}return B},isParentATag:function(B){var A=0;while(B.parentNode&&B.parentNode!=B.ownerDocument.body&&++A<=5){if(B.parentNode.tagName.toLowerCase()=="a"){return true}B=B.parentNode}return false},openSearchPage:function(B){var A="http://search.yahoo.com/search?p="+escape(B)+"&fr="+YAHOO.Shortcuts.globals.frcode;window.open(A)},getElementWindow:function(C){if(!C){return window}var B=(/Safari|Konqueror|KHTML/gi).test(navigator.userAgent);var A=C.ownerDocument;if(B&&!A.parentWindow){YAHOO.Shortcuts.Utils.fixSafariDocumentParentWindow(window.top)}return A.parentWindow||A.defaultView},getViewportWidth:function(F,E){F=F||window;E=E||document;var D=F.innerWidth;var G=E.compatMode;var B=navigator.userAgent.toLowerCase();var A=(B.indexOf("opera")>-1);var C=(!A&&B.indexOf("msie")>-1);if(G||C){D=(G=="CSS1Compat")?E.documentElement.clientWidth:E.body.clientWidth}return D},getViewportSize:function(G,F){G=G||window;F=F||document;var E=G.innerWidth;var A=G.innerHeight;var H=F.compatMode;var C=navigator.userAgent.toLowerCase();var B=(C.indexOf("opera")>-1);var D=(!B&&C.indexOf("msie")>-1);if(H||D){E=(H=="CSS1Compat")?F.documentElement.clientWidth:F.body.clientWidth;A=(H=="CSS1Compat")?F.documentElement.clientHeight:F.body.clientHeight}return([E,A])},removeChildren:function(A){if(A){while(A.hasChildNodes()){A.removeChild(A.childNodes[0])}}},getWordFromSelection:function(B,A){try{var F=B.target||B.srcElement;var H=F.ownerDocument;var D={};if(H.body&&H.body.createTextRange){var C=H.body.createTextRange();C.moveToPoint(B.clientX,B.clientY);C.expand("word");D.word=C.text;D.pre=-C.moveStart("word",-A);D.startchar=C.text.lastIndexOf(D.word);D.post=C.moveEnd("word",A);D.text=C.text}else{if(B.rangeParent&&H.createRange){if(!Range.startOfWord){YAHOO.Shortcuts.Utils.extendRangeClass()}var C=H.createRange();C.setStart(B.rangeParent,B.rangeOffset);C.setEnd(B.rangeParent,B.rangeOffset);YAHOO.Shortcuts.Utils.expandRangeToWord(C);D.word=C.toString();D.pre=YAHOO.Shortcuts.Utils.expandLeftByWord(C,A);D.startchar=C.toString().lastIndexOf(D.word);D.post=YAHOO.Shortcuts.Utils.expandRightByWord(C,A);D.text=C.toString();C.detach()}else{if(window.getSelection&&H.createRange){if(!Range.startOfWord){YAHOO.Shortcuts.Utils.extendRangeClass()}var G=window.getSelection();var C=H.createRange();C.setStart(G.anchorNode,G.anchorOffset);C.setEnd(G.focusNode,G.focusOffset);YAHOO.Shortcuts.Utils.expandRangeToWord(C);D.word=C.toString();D.pre=YAHOO.Shortcuts.Utils.expandLeftByWord(C,A);D.startchar=C.toString().lastIndexOf(D.word);D.post=YAHOO.Shortcuts.Utils.expandRightByWord(C,A);D.text=C.toString();C.detach()}else{return null}}}D.word=YAHOO.Shortcuts.Utils.normalizeString(D.word);D.text=YAHOO.Shortcuts.Utils.normalizeString(D.text);return D}catch(E){return(null)}},expandRangeToWord:function(A){if(A.startOffset>0){A.setStart(A.startContainer,A.startOffset-1)}while(A.endOffset<A.endContainer.length&&Range.whitespace.test(A.toString())){A.setEnd(A.endContainer,A.endOffset+1);A.setStart(A.startContainer,A.startOffset+1)}while(A.startOffset>0&&!Range.startOfWord.test(A.toString())){A.setStart(A.startContainer,A.startOffset-1)}if(Range.startOfWord.test(A.toString())){A.setStart(A.startContainer,A.startOffset+1)}while(A.endOffset<A.endContainer.length&&!Range.endOfWord.test(A.toString())){A.setEnd(A.endContainer,A.endOffset+1)}if(A.endOffset<A.endContainer.length){A.setEnd(A.endContainer,A.endOffset-1)}return A.toString()},expandLeftByWord:function(C,A){var B=false;var E=0;try{while(E<A){if(C.startOffset==0){var F=YAHOO.Shortcuts.Utils.getPreviousTextNode(C.startContainer);if(!F){return(B)?E++:E}C.setStart(F,0);C.setStart(C.startContainer,C.startContainer.length)}if(!B&&!Range.endOfWordMovingLeft.test(C.toString())){C.setStart(C.startContainer,C.startOffset-1);continue}B=true;if(!Range.startOfWordMovingLeft.test(C.toString())){C.setStart(C.startContainer,C.startOffset-1);continue}E++;B=false}}catch(D){}return E},expandRightByWord:function(C,A){var B=false;var F=0;try{while(F<A){if(C.endOffset==C.endContainer.length){var D=YAHOO.Shortcuts.Utils.getNextTextNode(C.endContainer);if(!D){return(B)?F++:F}C.setEnd(D,0)}if(!B&&!Range.startOfWordMovingRight.test(C.toString())){C.setEnd(C.endContainer,C.endOffset+1);continue}B=true;if(!Range.endOfWordMovingRight.test(C.toString())){C.setEnd(C.endContainer,C.endOffset+1);continue}F++;B=false}}catch(E){}return F},getPreviousTextNode:function(A){return YAHOO.Shortcuts.Utils.getAdjacentTextNode(A,"previous")},getNextTextNode:function(A){return YAHOO.Shortcuts.Utils.getAdjacentTextNode(A,"next")},getAdjacentTextNode:function(E,A,D){A=A?A:"previous";var B=E[A+"Sibling"];var C=A=="previous"?"lastChild":"firstChild";if(D&&E.nodeType==Node.TEXT_NODE){return E}else{if(B){if(B.nodeType==Node.TEXT_NODE){return B}else{if(!Range.permeable.test(B.nodeName)){return null}else{E=B;while(E[C]){E=E[C]}return YAHOO.Shortcuts.Utils.getAdjacentTextNode(E,A,true)}}}else{if(E.parentNode){return YAHOO.Shortcuts.Utils.getAdjacentTextNode(E.parentNode,A,true)}else{return null}}}},normalizeString:function(A){A=A.replace(/[\n\r\f\t\v\s]+/gi," ");A=A.replace(/^\s+/,"");A=A.replace(/\s+$/,"");A=A.replace(/[\.,;\(\)'\?!\-]+$/,"");A=A.replace(/^[\.,;\(\)'\?!\-]+/,"");A=A.replace(/'s$/,"");return A},extendRangeClass:function(){Range.startOfWord=/^[\s\.,;]\S+$/;Range.endOfWord=/^\S+[\s\.,;]$/;Range.whitespace=/^[\s\.,;]+$/;Range.startOfWordMovingLeft=/^[\s\.,;]\S/;Range.endOfWordMovingLeft=/^\S[\s\.,;]/;Range.startOfWordMovingRight=/[\s\.,;]\S$/;Range.endOfWordMovingRight=/\S[\s\.,;]$/;Range.permeable=/^(a|em|strong|img|b|i|u|p|br)$/i},utf8to16:function(F){if(!F){return }var B,D,A,G;var E,C;B="";A=F.length;D=0;while(D<A){G=F.charCodeAt(D++);switch(G>>4){case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:B+=F.charAt(D-1);break;case 12:case 13:E=F.charCodeAt(D++);B+=String.fromCharCode(((G&31)<<6)|(E&63));break;case 14:E=F.charCodeAt(D++);C=F.charCodeAt(D++);B+=String.fromCharCode(((G&15)<<12)|((E&63)<<6)|((C&63)<<0));break}}return B},fixSafariDocumentParentWindow:function(B){try{B.document.parentWindow=B;for(var A=0;A<B.frames.length;A++){YAHOO.Shortcuts.Utils.fixSafariDocumentParentWindow(B.frames[A])}}catch(C){}},getCookie:function(B){if(document.cookie.length>0){var C=document.cookie.indexOf(B+"=");var A;if(C!=-1){C+=B.length+1;A=document.cookie.indexOf(";",C);if(A==-1){A=document.cookie.length}return(unescape(document.cookie.substring(C,A)))}}return("")},setCookie:function(A,D,C,E){var B=new Date();B.setDate(B.getDate()+E);document.cookie=A+"="+escape(D)+";domain="+C+";path=/"+((E==null)?"":";expires="+B.toGMTString())},handlePopUpOption:function(C){if(C=="query"){var B=this.getCookie("YSC");if(B!=""){this.setPopUpOption(B,false);return }}if(this.getCookie("T")!=""){var D="YAHOO.Shortcuts.Utils.setPopUpOption";var A="http://"+YAHOO.Shortcuts.Utils.getShortcutServerUrl()+"/options/options.php?action="+escape(C)+"&callback="+escape(D);this.insertRef(A,true)}else{if(C=="query"){this.setPopUpOption("0",true)}else{if(C=="enable"){this.setPopUpOption("2",true)}else{if(C=="disable"){this.setPopUpOption("1",true)}}}}},setPopUpOption:function(C,B){if(typeof B=="undefined"){B=true}switch(C){case"2":YAHOO.Shortcuts.globals.disableHover=false;break;case"1":YAHOO.Shortcuts.globals.disableHover=true;break;case"0":break;default:return }if(B){var A=window.location.hostname;var D=A.split(".");if(D.length<2||!isNaN(Number(D[D.length-1]))){domain=A}else{domain=D[D.length-2]+"."+D[D.length-1]}this.setCookie("YSC",C,domain,9*31);this.setCookie("YSC","0",A,-1)}}};YAHOO.Shortcuts.Globals=function(E,D,C,G,A){this.yscMain=E;this.yui=E.YUI;this.frcode=A;this.showAd=true;this.overlaySpaceId="97546169";this.hostSpaceId="97546168";this.adUrl="http://fe.shortcuts.search.yahoo.com/build";this.destMenuToggle=false;this.enableClickSearch=false;this.ifrList=null;this.eventTargets={};this.entityManager=new YAHOO.Shortcuts.EntityManager(D,this);this.annSet=D;this.modSet=G;this.currentObj=null;this.hover=null;this.overlay=null;this.metaData=C;this.fallback=false;var B=window.location.hostname;this.is31898=new RegExp("^web31898").test(B);this.isQA=(new RegExp("^web32310").test(B))||(new RegExp("^web32311").test(B)||/f6122/.test(B)||window.YAHOO_Shortcuts_isQA);this.isSafari=(/Safari|Konqueror|KHTML/gi).test(navigator.userAgent);this.isIE=(/MSIE/gi).test(navigator.userAgent);this.isOpera=(/Opera/gi).test(navigator.userAgent);this.isWindows=(/Windows/gi).test(navigator.userAgent);this.button=-1;this.currentTabPosition=1;this.stopWords={};var H=["about","after","also","base","been","before","comment","each","find","follow","from","give","have","here","include","info","into","late","like","link","make","need","numb","provide","question","relate","reserve","resource","right","service","shall","should","site","some","such","take","than","that","their","there","these","they","this","through","update","what","when","which","will","with","work","would","year","your"];for(var F=0;F<H.length;F++){this.stopWords[H[F]]=1}this.ultHandler=null;this.enableDynamicHighlighting=false;this.disableHover=false;this.enableDitto=false;this.glue=null;this.glueMode="h";if(YAHOO.Shortcuts.health&&YAHOO.Shortcuts.health.glueMode){this.glueMode=YAHOO.Shortcuts.health.glueMode}};YAHOO.Shortcuts.Globals.prototype.setAnnotationSet=function(A){if(!this.annSet){this.annSet=A}else{for(var B in A){if(A.hasOwnProperty(B)){this.annSet[B]=A[B]}}}if(YAHOO.ShortcutsData){YAHOO.ShortcutsData.annotationSet=A}this.entityManager=new YAHOO.Shortcuts.EntityManager(this.annSet,this);this.eventTargets={};this.getEntityVisibilities(A)};YAHOO.Shortcuts.Globals.prototype.setMetaData=function(A){if(!this.metaData){this.metaData=A}else{for(var B in A){if(A.hasOwnProperty(B)){this.metaData[B]=A[B]}}}};YAHOO.Shortcuts.Globals.prototype.getAnnotationSet=function(){return this.annSet};YAHOO.Shortcuts.Globals.prototype.getMetaData=function(){return this.metaData};YAHOO.Shortcuts.Globals.prototype.setModules=function(A){this.modSet=A};YAHOO.Shortcuts.Globals.prototype.instrumentURI=function(A,B,E,D){if(!/^http:.*yahoo.com\/.*/.test(A)){return(A)}if(!window.opera&&!/Apple/.test(navigator.vendor)){if(B&&!/^http:/.test(A)){B=false}var C=B?"http://rds.yahoo.com/**"+A.replace("%26","%2526"):A;E[YAHOO.SC_ULT.SRC_SPACEID_KEY]=D;E.frcode=this.frcode;E.url=window.location.href;return YAHOO.SC_ULT.track_click(C,E)}else{return A}};YAHOO.Shortcuts.Globals.prototype.handlePartnerName=function(A){if(!this.pName||this.pName=="Yahoo!"){if(A=="Yahoo! Shortcuts"){return'<img src="http://l.yimg.com/us.yimg.com/i/us/sch/sc/logo_preview.gif">'}return A}else{var B=new RegExp("Yahoo!","g");return A.replace(B,this.pName)}};YAHOO.Shortcuts.Globals.prototype.handlePopUpOption=function(A){var B=new RegExp("pop_up_option","g");if(!this.disableHover){return(A.replace(B,'<h3>Don\'t like the Preview Pop-ups?</h3>Disabling the preview pop-ups involves the use of "cookies".  If you don\'t know what these are, don\'t worry, just be aware that you may see the pop-ups return if you work on more than one computer, or change or update your web brower.  If that happens, just return here to <a href="javascript:void(0);" onclick="YAHOO.Shortcuts.globals.disableHoverMenu();">switch them off</a> again.'))}else{return(A.replace(B,'<h3>Want the Preview Pop-ups back?</h3><a href="javascript:void(0);" onclick="YAHOO.Shortcuts.globals.enableHoverMenu();">Click here</a> to turn them back on.  You can always turn them off again if you change your mind.'))}};YAHOO.Shortcuts.Globals.prototype.showShortcutsLogo=function(F,C,B,E){var A=E?"http://l.yimg.com/us.yimg.com/i/us/shc/gr/yshortcuts_black.gif":"http://l.yimg.com/us.yimg.com/i/us/sch/sc/logo_preview.gif";var D='<img src="'+A+'" style="border:0;">';if(C){if(B=="hover"){D="<a href=\"#\" onclick=\"window.ShortcutsOverlay.makeOverlay('hover', '"+F+"', 'unknown', 0, true, true, true, this);return false;\">"+D+"</a>"}else{if(B=="overlay"){D='<a href="#" onclick="window.ShortcutsOverlay.makeAboutPanel(\''+F+"');return false;\">"+D+"</a>"}}}return D};YAHOO.Shortcuts.Globals.prototype.openFeedbackWindow=function(B){if(!B||B=="http://help.yahoo.com/fast/help/us/shortcuts/cgi_feedback"){B="http://help.yahoo.com/l/us/yahoo/search/shortcuts_feedback.html"}if(window.ShortcutsOverlay.currentObj){var C=window.ShortcutsOverlay.currentObj;if(C){var A="Text:\n"+C.text+"\n\nType:\n"+C.type.toString().replace(/,/,"\n");if(C.context){A=A+"\n\nContext:\n"+C.context}B=B+"?textarea40="+encodeURIComponent(A)+"&fr="+this.frcode+"&referer="+encodeURIComponent(window.location);window.open(B)}}};YAHOO.Shortcuts.Globals.prototype.setEventHandlers=function(D,A,F){var E=(typeof D=="string")?D:D.id;this.eventTargets[E]={parent_ATag:A};if(this.isSafari){var C=C||document;var B=typeof D=="string"?C.getElementById(D):D;this.yui.util.Event.addListener(B,"mouseover",function(J,I){var K=J.target||J.srcElement;while(!K.id||K.tagName.toLowerCase()!="span"||K.className!="yshortcuts"){K=K.parentNode}var H=YAHOO.Shortcuts.Utils.getElementWindow(K);var G=I.yui.util.Event.getXY(J);K.style.backgroundColor="#DCEEFF";K.style.color="#000";K.style.borderBottom="dashed 1px #0066CC";K.style.cursor="pointer";K.style.cursor="hand";H.ShortcutsHover.prepareContextMenu(K);if(!I.disableHover||I.entityManager.needsHover(K.id)){H.ShortcutsHover.setContextMenuTimer=setTimeout(function(){H.ShortcutsHover.displayContextMenu(K,G)},1000)}},this);this.yui.util.Event.addListener(B,"mouseout",function(I,H){var K=I.target||I.srcElement;while(!K.id||K.tagName.toLowerCase()!="span"||K.className!="yshortcuts"){K=K.parentNode}var G=YAHOO.Shortcuts.Utils.getElementWindow(K);var J=this.annSet||G.YAHOO.ShortcutsData.annotationSet;K.style.background="transparent";K.style.color="";if(J[E].visible==0){K.style.borderBottom="none"}G.ShortcutsHover.currentId=null;if(!H.disableHover||H.entityManager.needsHover(K.id)){clearTimeout(G.ShortcutsHover.setContextMenuTimer);clearTimeout(G.ShortcutsHover.menuTimer);G.ShortcutsHover.menuTimer=setTimeout(G.ShortcutsHover.hideContextMenu,700)}},this)}};YAHOO.Shortcuts.Globals.prototype.unsetEventHandlers=function(A){var B=(typeof A=="string")?A:A.id;delete this.eventTargets[B]};YAHOO.Shortcuts.Globals.prototype.eventCallback=function(I,D){var J=I.target||I.srcElement;var B=J.id;while(!B&&J.parentNode&&typeof this.eventTargets[B]=="undefined"&&J.parentNode!=J.ownerDocument.body){J=J.parentNode;B=J.id}if(!B||typeof this.eventTargets[B]=="undefined"){return }var G=YAHOO.Shortcuts.Utils.getElementWindow(J);var L=J.ownerDocument;var C=this.annSet||G.YAHOO.ShortcutsData.annotationSet;var E=C[B].visible;switch(I.type){case"mouseover":if(!YAHOO.Shortcuts.Utils.isParentATag(J)){J.style.borderBottom="dashed 1px #0066CC";J.style.cursor="pointer";J.style.cursor="hand";J.style.backgroundColor="#DCEEFF";J.style.color="#000"}G.ShortcutsHover.prepareContextMenu(J);if(!this.disableHover||this.entityManager.needsHover(B)){var A=this.yui.util.Event.getXY(I);G.ShortcutsHover.setContextMenuTimer=setTimeout(function(){G.ShortcutsHover.displayContextMenu(J,A)},1000)}break;case"mousedown":this.button=I.button;if(!this.eventTargets[B]["parent_ATag"]){if(!this.disableHover||this.entityManager.needsHover(B)){G.ShortcutsHover.hideContextMenu()}G.ShortcutsHover.downXY=this.yui.util.Event.getXY(I)}break;case"mouseup":this.button=-1;if(J.style.cursor=="text"){J.style.cursor="pointer";J.style.cursor="hand"}if(!this.eventTargets[B]["parent_ATag"]){var F=true;G.ShortcutsHover.upXY=this.yui.util.Event.getXY(I);if(!G.ShortcutsHover.downXY){G.ShortcutsHover.downXY=this.yui.util.Event.getXY(I);G.ShortcutsHover.downXY[0]=G.ShortcutsHover.downXY[0]-10;G.ShortcutsHover.downXY[1]=G.ShortcutsHover.downXY[1]-10}var K=G.ShortcutsHover.upXY[0]-G.ShortcutsHover.downXY[0];var H=G.ShortcutsHover.upXY[1]-G.ShortcutsHover.downXY[1];if(K>2||K<-2||H>2||H<-2){F=false}if(F){if(C[B].visible==0&&!C[B].ult_hover&&this.frcode!="csc_ymailcl"&&this.frcode!="csc_ymailm"){this.ultHandler.sendOne(C,B,this.frcode)}G.ShortcutsHover.prepareContextMenuOnClick(J);this.selectFirstAction(I,B,J,0)}}break;case"mouseout":if(!YAHOO.Shortcuts.Utils.isParentATag(J)){J.style.background="transparent";J.style.color="";if(E==0){J.style.borderBottom=""}}G.ShortcutsHover.currentId=null;if(!this.disableHover||this.entityManager.needsHover(B)){clearTimeout(G.ShortcutsHover.setContextMenuTimer);clearTimeout(G.ShortcutsHover.menuTimer);G.ShortcutsHover.menuTimer=setTimeout(G.ShortcutsHover.hideContextMenu,700)}break;case"mousemove":if((this.isIE&&this.button==1)||(!this.isIE&&this.button==0)){J.style.cursor="text";G.ShortcutsHover.currentId=null;if(!this.disableHover||this.entityManager.needsHover(B)){clearTimeout(G.ShortcutsHover.setContextMenuTimer);clearTimeout(G.ShortcutsHover.menuTimer);G.ShortcutsHover.menuTimer=setTimeout(G.ShortcutsHover.hideContextMenu,700)}}break}};YAHOO.Shortcuts.Globals.prototype.insertActuator=function(F,E,D,C){var B=D.getElementById(E);if(B){var A=YAHOO.Shortcuts.Utils.isParentATag(B);if(C){this.setEventHandlers(B,A,F)}if(!A){if(!C&&F[E].visible==0){F[E].visible=2}if(F[E].visible!=0){B.style.borderBottom="dashed 1px #0066CC";B.style.cursor="pointer";B.style.cursor="hand"}}}};YAHOO.Shortcuts.Globals.prototype.initTestBucket=function(D){if(D.modelInfo&&typeof D.annotationSet.length!="undefined"){var C=Math.random()*100;var E=0;for(var B=0;B<20;B++){var A=""+B;if(typeof D.modelInfo[A]=="undefined"){break}E+=parseFloat(D.modelInfo[A].bucketSplit);if(E>=C){D.modelID=D.modelInfo[A].modelID;D.asid=D.modelInfo[A].asid;if(typeof D.annotationSet[B]!="undefined"){D.annotationSet=D.annotationSet[B]}break}}if(typeof D.modelID=="undefined"){D.modelID=D.modelInfo["0"].modelID;D.asid=D.modelInfo["0"].asid;if(typeof D.annotationSet[0]!="undefined"){D.annotationSet=D.annotationSet[0]}}this.annSet=D.annotationSet;if(this.entityManager){this.entityManager.annSet=this.annSet}}else{if(D.modelInfo&&D.modelInfo.modelID&&D.modelInfo.asid){D.modelID=D.modelInfo.modelID;D.asid=D.modelInfo.asid}else{if(D.modelInfo&&D.modelInfo["0"]){D.modelID=D.modelInfo["0"].modelID;D.asid=D.modelInfo["0"].asid}}}};YAHOO.Shortcuts.Globals.prototype.registerAnnotationEventHandlers=function(F){if(!F.YAHOO.ShortcutsData){return }this.initTestBucket(F.YAHOO.ShortcutsData);if(YAHOO.Shortcuts.health&&YAHOO.Shortcuts.health.blacklist){for(var D in YAHOO.Shortcuts.health.blacklist){for(var G in F.YAHOO.ShortcutsData.annotationSet){if(D.toLowerCase()==F.YAHOO.ShortcutsData.annotationSet[G].text.toLowerCase()){F.YAHOO.ShortcutsData.annotationSet[G].blacklisted=true}}}}var C=F.YAHOO.ShortcutsData.annotationSet;this.getEntityVisibilities(C);if(C&&typeof (C)=="object"){if(this.customMarkupFn&&typeof this.customMarkupFn=="function"){this.customMarkupFn(C)}else{this.highlightEntities(C,F,true);var E=(F&&F.document)?F.document:document;var B=this.yui.util.Event;var A=E.body;if(!this.isSafari){B.removeListener(A,"mouseover",YAHOO.Shortcuts.globals.eventCallback);B.removeListener(A,"mouseout",YAHOO.Shortcuts.globals.eventCallback);B.addListener(A,"mouseover",YAHOO.Shortcuts.globals.eventCallback,this,true);B.addListener(A,"mouseout",YAHOO.Shortcuts.globals.eventCallback,this,true)}B.removeListener(A,"mousedown",YAHOO.Shortcuts.globals.eventCallback);B.removeListener(A,"mouseup",YAHOO.Shortcuts.globals.eventCallback);B.removeListener(A,"mousemove",YAHOO.Shortcuts.globals.eventCallback);B.addListener(A,"mousedown",YAHOO.Shortcuts.globals.eventCallback,this,true);B.addListener(A,"mouseup",YAHOO.Shortcuts.globals.eventCallback,this,true);B.addListener(A,"mousemove",YAHOO.Shortcuts.globals.eventCallback,this,true);if(this.enableClickSearch){B.removeListener(A,"dblclick",YAHOO.Shortcuts.globals.clickSearch);B.addListener(A,"dblclick",YAHOO.Shortcuts.globals.clickSearch)}}}};YAHOO.Shortcuts.Globals.prototype.checkType=function(E,I){var G=E.entity_types;var B=E.entity_types;if(G instanceof String){B=new RegExp(E.entity_types)}var D=I.type;var H=I.metaData;if(H&&typeof H=="object"){var F=H;if(this.yui.lang.isArray(F)){for(var C=0;C<F.length;C++){if(F[C].type){D+=","+F[C].type.toString()}}}}if(String(D).match(B)){var A=E.excl_types;if(E.excl_types instanceof String){A=new RegExp(A)}if(String(D).match(A)&&A){return false}if(I&&typeof E.menu_text=="function"&&E.menu_text(I)==""){return false}return true}else{return false}};YAHOO.Shortcuts.Globals.prototype.getModules=function(B,D,E,G,I){var J=this.entityManager.getModules(B,D.text,I);this.firstChoice=null;var C={modName:E,numMods:0};for(var H=0;H<J.length;H++){var F=J[H];if(typeof F!="string"){F=J[H].modname;if(this.glue.exclude[J[H].modid]==1){continue}J[H]["height"]="330";J[H]["module_type"]="overlay.iframe";J[H]["module_url"]["url"]=this.glue.moduleUrl;this.modSet[F]=J[H];if(this.glue!=null){var A=this.glue.moreUrl.replace(/<entity>/g,encodeURIComponent(D.text));J[H].branding={url:A,label:this.glue.label}}}this.modSet[F].ult=null;if(C.modName=="unknown"&&(!G||this.modSet[F].module_type=="overlay.iframe")){C.modName=F;this.firstChoice=F}C[F]=this.modSet[F];C.numMods++}return C};YAHOO.Shortcuts.Globals.prototype.getUrl=function(B,C){var A="";C=C||"overlay";if(C=="overlay"){if(B.module_url){if(this.is31898&&B.module_url.url31898){A=B.module_url.url31898}else{if(this.isQA&&B.module_url.url_q_a){A=B.module_url.url_q_a}else{A=B.module_url.url}}}else{A=B.url}}else{if(C=="preview"){if(B.preview_content){if(this.isQA&&B.preview_content.url_q_a){A=B.preview_content.url_q_a}else{A=B.preview_content.url}}}}return A};YAHOO.Shortcuts.Globals.prototype.parseUrl=function(aObj,stem,args,metaIndex,phraseIt,includeMeta,parameters){var parsedUrl;var argStr=null;if(typeof (args)=="string"){argStr=args}else{if(typeof (args)=="function"){argStr=args(aObj)}}if(argStr!=null){argStr=argStr.replace(/<entity>/g,encodeURIComponent(phraseIt?YAHOO.Shortcuts.Utils.wrapEntityText(aObj.text,aObj.type):aObj.text));argStr=argStr.replace(/<context>/g,encodeURIComponent(aObj.context));argStr=argStr.replace(/<type>/g,encodeURIComponent(aObj.type));argStr=argStr.replace(/<wiki>/g,encodeURIComponent((typeof (YAHOO.Shortcuts.Overlay.prototype.wikiId)!="undefined")?YAHOO.Shortcuts.Overlay.prototype.wikiId:""))}else{argStr="?entity="+encodeURIComponent(aObj.text)+"&type="+encodeURIComponent(aObj.type)+"&context="+encodeURIComponent(aObj.context)}if(typeof (stem)=="function"){stem=stem(aObj)}parsedUrl=stem+argStr;if(includeMeta){parsedUrl=this.yscMain.hasSensitiveText&&aObj.visible!=0?parsedUrl+"&hasSensitiveText=true":parsedUrl;parsedUrl=parsedUrl+"&lang="+this.language+"&location="+this.location;parsedUrl=parsedUrl+"&fr="+this.frcode;var argsToPassToModule=new Array("predictionProbability","category","wikiId","extendedFrom");for(i=0;i<argsToPassToModule.length;i++){var evalValue=eval("aObj."+argsToPassToModule[i]);if(evalValue!="undefined"){parsedUrl=parsedUrl+"&"+argsToPassToModule[i]+"="+evalValue}}var parsedMeta="";var meta=aObj.metaData;if(meta&&typeof meta=="object"){var metadata=meta;if(this.yui.lang.isArray(metadata)){metadata=meta[metaIndex]}for(var o in metadata){if(metadata.hasOwnProperty(o)){if(metadata[o]){metadata[o].replace("+","%2B");parsedMeta+="&"+o+"="+encodeURIComponent(metadata[o])}}}}parsedUrl=parsedMeta?parsedUrl+parsedMeta:parsedUrl}if(typeof parameters!="undefined"){list="";for(var field in parameters){list+=field+"="+parameters[field]+"|"}parsedUrl+="&params="+encodeURIComponent(list);hideOnFail=this.glue.hideOnFail}else{hideOnFail=false}return{url:parsedUrl,hideOnFail:hideOnFail}};YAHOO.Shortcuts.Globals.prototype.makeAdCall=function(K,E,J,D,I,G,A){var F=null;if(G=="click"){F=K.ult;D.modid=A}else{if(G=="hover"){F=K.ult_hover}else{if(G=="embed"){D.modid=A}else{F=this.adUrl}}}if(!F){F=this.adUrl;D.sclabel=K.text;D.it=K.type.toString();D.n_typ=K.type.length;D.wt=K.weight;D.category=K.category?K.category.join(","):"";D.isext=(typeof K.extended!="undefined"&&K.extended!=null)?K.extended:"";D.extfrom=K.extfrom?K.extfrom:"";D.visible=K.visible;if(YAHOO.ShortcutsData&&YAHOO.ShortcutsData.modelID&&YAHOO.ShortcutsData.asid){D.modelID=YAHOO.ShortcutsData.modelID;D.asid=YAHOO.ShortcutsData.asid}if(typeof K.relScore!="undefined"){D.relScore=K.relScore}if(K.ult_pending==true){D.fb="1"}else{D.fb="0"}if(G=="click"){D.sec="inline";D.slk="entityclick_co"}else{if(G=="hover"){D.sec="inline";D.slk="entityhover_co"}else{if(G=="embed"){D.sec="inline";D.slk="entityembed_co"}else{if(G=="disable"){D.sec="help";D.slk="disable"}else{if(G=="enable"){D.sec="help";D.slk="enable"}}}}}}F=F+"?entity="+encodeURIComponent(K.text)+"&tabPosition="+this.currentTabPosition+"&mode="+E+"&num_modules=1&callback="+J+"&fr="+escape(YAHOO.Shortcuts.globals.frcode);if(K.context){F+="&context="+encodeURIComponent(K.context)}var C=D.e_typ;if(C&&G=="click"){if(C=="searchbox"){F=F+"&track=search"}if(C=="direct"||C=="hover"){F=F+"&track=click"}}else{if(G=="disable"){F+="&track=disable"}else{if(G=="enable"){F+="&track=enable"}}}F+="&modid="+A+"&visible="+K.visible+"&treatment="+escape(YAHOO.Shortcuts.Utils.getCookie("YSC_AD"));F=this.instrumentURI(F,false,D,I);var H=document.getElementsByTagName("head")[0];var B=document.createElement("script");B.setAttribute("type","text/javascript");B.setAttribute("src",F);H.appendChild(B)};YAHOO.Shortcuts.Globals.prototype.searchCallback=function(C){var B=YAHOO.Shortcuts.Utils.makeAnnObject(this.cQuery);if(C&&C.annotationSet){for(var A in C.annotationSet){if(C.annotationSet.hasOwnProperty(A)){if(C.annotationSet[A].text==this.cQuery){B=C.annotationSet[A]}break}}}YAHOO.Shortcuts.globals.annSet.currentSearchObj=B;YAHOO.Shortcuts.globals.overlay.makeOverlay("searchbox","currentSearchObj","unknown",0,false,false,false);YAHOO.Shortcuts.globals.overlay.hideAbout(this.firstChoice)};YAHOO.Shortcuts.Globals.prototype.makeClosure=function(C,D){var A=[];if(arguments.length>2){for(var B=2;B<arguments.length;B++){A[B-2]=arguments[B]}return function(){C.apply(D,A)}}else{return function(){C.apply(D)}}};YAHOO.Shortcuts.Globals.prototype.addUltLinks=function(A){var B=this.annSet||this.yscMain.annotationSet;if(B&&A){for(id in A){if(A.hasOwnProperty(id)){B[id]["ult_pending"]=false;B[id]["ult"]=A[id]["ult"];B[id]["ult_hover"]=A[id]["ult_hover"]}}}};YAHOO.Shortcuts.Globals.prototype.getModuleMenuText=function(B,E,C){var D="";if(this.modSet[B]){if(typeof this.modSet[B].menu_text=="string"){D=this.modSet[B].menu_text.replace(/<entity>/g,E.text)}else{D=this.modSet[B].menu_text(E)}if(C&&D.length>this.menuLength){var A=this.menuLength;D=D.substr(0,this.menuLength);D=D.replace(/\w+$/,"");D+="..."}}return D};YAHOO.Shortcuts.Globals.prototype.getModuleMenuAction=function(C,B,F){var E="";if(this.modSet[C].module_type=="overlay.iframe"){E="onclick=\"window.ShortcutsOverlay.makeOverlay( 'hover','"+B+"', '"+C+"', 0, false,true,true"+(YAHOO.Shortcuts.centerDialogs?",true":"")+', this); return false;" href="#"'}else{if(this.modSet[C].module_type=="overlay.lightbox"){E="onclick=\"window.ShortcutsOverlay.makeLightbox('hover', '"+B+"', '"+C+"', 0, false,true,true"+(YAHOO.Shortcuts.centerDialogs?",true":"")+', this); return false;" href="#"'}else{if(this.modSet[C].module_type=="action.js"){if(C=="gotourlAction"&&F.metaData&&F.metaData.linkHref){E='href="'+F.metaData.linkHref+'" target="_blank" title="Go to '+F.metaData.linkHref+'"'}else{var A="#";if(C=="gotoDomainAction"&&F.metaData&&F.metaData.domain_url){A=F.metaData.domain_url}E="onclick=\"window.ShortcutsHover.menuActionHandler('"+B+"','"+C+"','action.js','hover', this); return false;\" href=\""+A+'"'}}else{var D=[];D.push(F.metaData);E='href="#" onclick="window.ShortcutsHover.menuActionHandler(\''+B+"','"+C+"','action','hover', this);return false;\""}}}return E};YAHOO.Shortcuts.Globals.prototype.clickSearch=function(D,C){var A=D.target;while(A&&A!=A.ownerDocument.body){if((A.id&&A.id=="lwOverlay")||(A.className&&A.className=="yshortcuts")){return }A=A.parentNode}var B=YAHOO.Shortcuts.Utils.getWordFromSelection(D,10);if(B&&B.text){window.ShortcutsOverlay.clickQuery=B;window.ShortcutsOverlay.simpleSearch(D,B.text,"clicksearch")}return true};YAHOO.Shortcuts.Globals.prototype.getEntityVisibilities=function(E){var C=YAHOO.ShortcutsExt.CustomConfiguration;var B=true;for(var D in E){if(E.hasOwnProperty(D)){var A=E[D].metaData;if(typeof A=="undefined"){B=false;break}if(this.yui.lang.isArray(A)){A=A[0]}if(typeof A.visible=="undefined"){B=false;break}if(A.visible=="true"){E[D].visible=1}else{E[D].visible=0}}}if(!B){for(var D in E){if(E.hasOwnProperty(D)){if(E[D].category.toString().indexOf("IDENTIFIER")>=0||E[D].type.toString().indexOf("shortcuts:/us/place/virtual/web_site")>=0||E[D].type.toString().indexOf("shortcuts:/us/instance/organization/company/yahoo_property")>=0||E[D].type.toString().indexOf("shortcuts:/us/instance/organization/domain")>=0||E[D].type.toString().indexOf("shortcuts:/us/instance/identifier")>=0||E[D].type.toString().indexOf("shortcuts:/us/instance/place/us/street")>=0){E[D].visible=1}}}this.selectSeedSet(E,C.conceptMinWeight,C.otherMinWeight,C.seedSetMinSize,C.seedSetMaxSize)}for(var D in E){if(E.hasOwnProperty(D)){if(typeof E[D].visible=="undefined"){E[D].visible=C.isEntityVisible(E[D])}}}};YAHOO.Shortcuts.Globals.prototype.selectSeedSet=function(F,A,K,J,D){if(typeof A=="undefined"){A=3.3}if(typeof K=="undefined"){K=0.75}if(typeof J=="undefined"){J=2}if(typeof D=="undefined"){D=15}var E=[];var M=-1;var C=-1;for(var B in F){if(F.hasOwnProperty(B)){if(F[B].startchar<M||M==-1){M=F[B].startchar}if(F[B].endchar>C){C=F[B].endchar}if(typeof F[B].visible!="undefined"){continue}if(F[B].category.toString().indexOf("CONCEPT")>=0){if(F[B].weight>=A){E.push(F[B])}else{F[B].visible=0}}else{if(F[B].weight>=K){E.push(F[B])}else{F[B].visible=0}}}}var H=Math.round((C-M+1)/500);if(H<J){H=J}else{if(H>D){H=D}}E.sort(this.sortAnnotationArray);var I={};var G=0;var L=0;while(G<E.length){if(L>=H){break}if(I[E[G].text]){E[G].visible=0}else{E[G].visible=1;I[E[G].text]=true;L++}G++}for(j=G;j<E.length;j++){E[j].visible=0}};YAHOO.Shortcuts.Globals.prototype.sortAnnotationArray=function(B,A){if(B.text.toLowerCase()!=A.text.toLowerCase()){return(A.weight-B.weight)}else{return(B.startchar-A.startchar)}};YAHOO.Shortcuts.Globals.prototype.highlightEntities=function(D,E,C){var I=(E&&E.document)?E.document:document;for(var A in D){if(D.hasOwnProperty(A)){var B=D[A];if(B.blacklisted){continue}B.text=YAHOO.Shortcuts.Utils.utf8to16(B.text);if(!B.clientMetaData||!B.clientMetaData.disabled){if(B.type.toString().indexOf("shortcuts:/us/instance/identifier/hyperlink")!=-1){if(B.metaData&&B.metaData.linkProtocol=="http"){if(B.metaData.linkHref.indexOf("/ym/Compose?To=")==0){B.type="shortcuts:/us/instance/identifier/email_address";B.text=B.metaData.linkHref.slice(15)}B.metaData.linkHref=YAHOO.Shortcuts.Utils.absoluteUrl(B.metaData.linkHref)}}var J=this.getModules(A,B,"unknown",false,E);if(J.numMods>0){this.insertActuator(D,A,I,C)}}if(B.clientMetaData&&B.clientMetaData.embeds){var H=B.clientMetaData.embeds.split(":");var G=H[0];var F=new YAHOO.Shortcuts.Embed();F.displayModule(G,B,this.modSet[H[1]])}}}};YAHOO.Shortcuts.Globals.prototype.getRelatedEntities=function(B,E){var D=this.annSet||B.YAHOO.ShortcutsData.annotationSet;var A={};if(D[E].visible==0){A[E]=D[E]}if(typeof D[E].showOnClick!="undefined"){var C=D[E].showOnClick;for(i=0;i<C.length;i++){if(D[C[i]].visible==0&&(typeof D[C[i]].blacklisted=="undefined"||!D[C[i]].blacklisted)){A[C[i]]=D[C[i]]}}}return(A)};YAHOO.Shortcuts.Globals.prototype.disableHoverMenu=function(){if(!confirm(this.disablePopUpConfirm)){return }this.disableHover=true;var A=YAHOO.Shortcuts.menuWindow;if(A.ShortcutsOverlay){A.ShortcutsOverlay.destroyOverlay()}this.trackPopUpOption("disable");YAHOO.Shortcuts.Utils.handlePopUpOption("disable")};YAHOO.Shortcuts.Globals.prototype.enableHoverMenu=function(){this.disableHover=false;var A=YAHOO.Shortcuts.menuWindow;if(A.ShortcutsOverlay){A.ShortcutsOverlay.destroyOverlay()}this.trackPopUpOption("enable");YAHOO.Shortcuts.Utils.handlePopUpOption("enable")};YAHOO.Shortcuts.Globals.prototype.trackPopUpOption=function(B){if(window.ShortcutsOverlay.currentObj){var C=window.ShortcutsOverlay.currentObj;var A={};A.referer=window.location;A.context=C.context;this.makeAdCall(C,"noop","YAHOO.Shortcuts.Utils.adNoOp",A,this.hostSpaceId,B,"")}};YAHOO.Shortcuts.Globals.prototype.selectFirstAction=function(E,D,C,A){var B=YAHOO.Shortcuts.Utils.getElementWindow(C);var F={};if(E.which){F.which=E.which}if(E.button){F.button=E.button}if(E.target){F.target=E.target}if(E.srcElement){F.srcElement=E.srcElement}if(!this.entityManager.needsServerValidation(D)){B.ShortcutsHover.selectFirstAction(F,D)}else{if(this.glueMode=="h"||this.glueMode=="c"){if(A>6){B.ShortcutsHover.selectFirstAction(F,D)}else{if(this.entityManager.needsServerValidation(D)){setTimeout(function(){B.ShortcutsHover.glob.selectFirstAction(F,D,C,A+1)},100)}else{B.ShortcutsHover.selectFirstAction(F,D)}}}else{B.ShortcutsHover.selectFirstAction(F,D)}}};YAHOO.Shortcuts.Hover=function(B,A,C){this.menu=null;this.menuHeader=null;this.menuBody=null;this.menuFooter=null;this.glob=B;this.ns="YAHOO.Shortcuts.globals.";this.yui=C;this.util=A;this.Dom=C.util.Dom;this.currentId=null;this.currentStatus="none";this.currentPreviewContent={};this.disambMenuTarget="";this.disambMenuChosen=false;this.maxMenuItemCount=3};YAHOO.Shortcuts.Hover.prototype.getDocument=function(){return this.menu.getDocument()};YAHOO.Shortcuts.Hover.prototype.init=function(A){this.hideContextMenu=this.glob.makeClosure(this._hideContextMenu,this);this.initMenu(A)};YAHOO.Shortcuts.Hover.prototype.getMenuWindow=function(){return this.menuWindow};YAHOO.Shortcuts.Hover.prototype.initMenu=function(D){D=(D&&D.document)?D:window;this.menuWindow=D;var C=D.document;var B="lwPreview";var A=C.getElementById(B);if(!A){A=C.createElement("DIV");A.id=B;A.className="module overlay";C.body.appendChild(A);A.style.top=-400;A.style.left=-400;A.style.position="absolute";A.innerHTML='<div class="hd"></div><div class="bd"></div><div class="ft"></div>'}this.menu=new this.yui.widget.Overlay(A,{monitorresize:false,visible:false,iframe:!(this.glob.isSafari||this.glob.isIE||this.glob.isOpera)});this.menu.setBody("");if(C.getElementById(B)){this.menu.show()}else{this.menu.render(C.body)}if(!(D.YAHOO&&D.YAHOO.Shortcuts)){D.YAHOO={Shortcuts:{}}}this.menu.getDocument=function(){return document};this.yui.util.Event.addListener(A,"mouseover",function(G,F){var H=G.target||G.srcElement;var E=YAHOO.Shortcuts.Utils.getElementWindow(H);clearTimeout(E.ShortcutsHover.setContextMenuTimer);clearTimeout(E.ShortcutsHover.menuTimer)},this,true);this.yui.util.Event.addListener(A,"mouseout",function(G,F){var H=G.target||G.srcElement;var E=YAHOO.Shortcuts.Utils.getElementWindow(H);F.yui.util.Event.preventDefault(G);E.ShortcutsHover.menuTimer=setTimeout(E.ShortcutsHover.hideContextMenu,700)},this,true)};YAHOO.Shortcuts.Hover.prototype.menuActionHandler=function(E,M,N,F,G){var J={sec:"inline",slk:"entityclick",e_typ:F};var I=this.util.getElementWindow(G);var C=I.YAHOO.ShortcutsData.annotationSet[E];var D=this.glob.modSet[M];this.glob.makeAdCall(C,"noop","YAHOO.Shortcuts.Utils.adNoOp",J,this.glob.hostSpaceId,"click",M);if(N=="action.js"){D.module_js(C.text,C,I.YAHOO.ShortcutsData)}else{var A=this.glob.getUrl(D);var L=this.glob.parseUrl(C,A,D.module_url.args,0,true,D.parameters);var H=L.url;var K=false;if(typeof D.module_url.open_in_same_window!="undefined"){K=D.module_url.open_in_same_window}if(K){I.location=H}else{window.open(H)}}if(I.ShortcutsHover){I.ShortcutsHover.hideContextMenuTimer=setTimeout(I.ShortcutsHover.hideContextMenu,700)}if(this.glob.enableDynamicHighlighting){var B=this.glob.getRelatedEntities(I,E);this.glob.highlightEntities(B,I,false);this.glob.ultHandler.send(B,this.glob.frcode,false)}};YAHOO.Shortcuts.Hover.prototype.selectFirstAction=function(E,G){if(!E){var E=window.event}if(E.which){rightclick=(E.which==3)}else{if(E.button){rightclick=(E.button==2)}}var C=E.target||E.srcElement;var D=this.util.getElementWindow(C);var F=D.YAHOO.ShortcutsData.annotationSet[G];if(F&&!rightclick){var B=this.glob.getModules(G,F,"unknown",false,D);var A=B[B.modName];var C=E.target||E.srcElement;if(A.module_type=="overlay.iframe"){this.getMenuWindow().ShortcutsOverlay.makeOverlay("direct",G,"unknown",0,false,true,true,C)}else{if(A.module_type=="overlay.lightbox"){this.getMenuWindow().ShortcutsOverlay.makeLightbox("direct",G,"unknown",0,false,true,true,C)}else{this.menuActionHandler(G,B.modName,A.module_type,"direct",C)}}}};YAHOO.Shortcuts.Hover.prototype.setPreviewContent=function(A,M,B){var D=this.glob.modSet[B];var C='<div id="prevContent"';if(D&&D.preview_content&&D.preview_content.bgcolor){C+=' style="background-color:'+D.preview_content.bgcolor+';"'}C+=">";if(this.disambMenuTarget==""||(this.disambMenuTarget==A&&!this.disambMenuChosen)){var L=this.getDisambiguationMenu(A,M,B);if(L&&L!=""){this.disambMenuTarget=A;this.currentPreviewContent={html:L,type:"menu",src:null};return }}if(D&&D.preview_content){var F=D.preview_content.type;if(F=="inline"){var H=D.preview_content.html;if(typeof H=="function"){H=H(M)}C+='<div id="lwPrevInline">';C+=H;C+="</div>";this.currentPreviewContent={type:"inline",src:null}}else{if(F=="iframe"){var G=typeof D.preview_content.title;var K="";if(G=="undefined"||(G=="boolean"&&D.preview_content.title)){K=YAHOO.Shortcuts.Utils.truncateString(M.text,36)}else{if(G=="function"){K=D.preview_content.title(M,A);if(K.charAt(0)!="<"){K=YAHOO.Shortcuts.Utils.truncateString(K,37)}}}if(K&&K.length>0){C+='<div class="title">'+K+"</div>"}var E=this.glob.parseUrl(M,this.glob.getUrl(D,"preview"),D.preview_content.args,0,false,true,D.parameters);var J=E.url;J+="&mt=preview";if(this.glob.isSafari&&!this.glob.isWindows){C+='<iframe frameborder="0" scrolling="no" id="lwPrevFrame"'}else{C+='<iframe frameborder="0" scrolling="no" id="lwPrevFrame" src="'+J+'"'}if(D.preview_content.height){C+=' style="height:'+D.preview_content.height+'px;"'}C+="></iframe>";this.currentPreviewContent={type:"iframe",src:J}}}}else{C+='<div id="lwPrevLink">';C+=this.glob.getModuleMenuText(B,M,false);C+="</div>";this.currentPreviewContent={type:null,src:null}}var I=this.glob.getModuleMenuAction(B,A,M);C+='<a id="lw_prev_ov" '+I+"></a>";C+="</div>";this.currentPreviewContent.html=C};YAHOO.Shortcuts.Hover.prototype.getDisambiguationMenu=function(K,T,C){var M="";if(C=="mapsModule"&&this.yui.lang.isArray(T.metaData)){var S=new Array("geoCountry","geoState","geoTown","geoCounty");var E="geoPlaceType";var W=T.metaData;var J;var B,A,X;var Q=new Array();var R=new Array();var V=new Array();for(var P=0;P<W.length;P++){var I="|";for(var N=0;N<S.length;N++){if(W[P][S[N]]!=undefined&&W[P][S[N]].length>0){I=I+W[P][S[N]]+"|"}}Q[P]=I}var H=false;for(var L in W){if(!W[L].geoIsoCountryCode||W[L].geoIsoCountryCode!="US"){H=true}}if(H){A=0}else{A=1}for(var P=0;P<W.length;P++){V[P]="";if(W[P][S[A]]&&W[P]["geoName"]&&W[P][S[A]].toLowerCase()!=W[P]["geoName"].toLowerCase()){V[P]=W[P][S[A]]}}var G='<div id="disamb"><img src="http://us.i1.yimg.com/us.yimg.com/i/us/shc/gr/map_icon.jpg" width=25 height=22><strong>Would you like a map for:</strong><br>';var D=0;for(var P=0;P<W.length;P++){if(W[P].geoName){R[P]="";B=A;var F;do{B=B+1;F=true;for(var N=0;N<W.length;N++){if(P==N){continue}if(!W[P][S[B]]){F=false}else{if(Q[N].indexOf("|"+V[P]+"|")!=-1&&Q[N].indexOf("|"+W[P][S[B]]+"|")!=-1){F=false}}}if(W[P][S[B]]){if(W[P][S[A]]&&W[P][S[B]].toLowerCase()==W[P][S[A]].toLowerCase()){F=false}if(W[P][S[B]].toLowerCase()==W[P]["geoName"].toLowerCase()){F=false}}}while(!F&&B<S.length);if(F){R[P]=W[P][S[B]]}var U=W[P].geoName;if(R[P]!=""){U=U+", "+R[P]}if(V[P]!=""){U=U+" &mdash; "+V[P]}if(W[P][E]&&W[P][E]!="POI"&&(R[P]==""||V[P]=="")){U=U+" ["+W[P][E]+"]"}if(G.toLowerCase().indexOf(U.toLowerCase())!=-1){continue}else{D+=1}var O="<a href=\"#\" onclick=\"window.ShortcutsOverlay.makeOverlay('hover','"+K+"', '"+C+"', "+P+",false,true,true"+(YAHOO.Shortcuts.centerDialogs?",true":"")+', this);return false;">';G+="&#149; "+O+U+"</a><br>"}}if(D>1){M=G+"</div></div>"}}return M};YAHOO.Shortcuts.Hover.prototype.setContextMenuContents=function(F,A){var I=YAHOO.Shortcuts.Utils.getElementWindow(F);if(!F){return }var L=F.ownerDocument;var G=F.id;var O=I.YAHOO.ShortcutsData.annotationSet[G];var E=this.glob.getModules(G,O,"unknown",false,I);if(E.numMods==0){return }if(E.gotourlAction){var M=["videoModule","flickrAction"];for(var D=0;D<M.length;D++){if(E[M[D]]){delete E.gotourlAction;E.numMods--;break}}}if(E.numMods>0&&(E.modName=="gotoDomainAction"||E.modName=="gotositeAction")){delete E[E.modName];E.numMods--;for(field in E){if(typeof (E[field])=="object"){E.modName=field;break}}}var C='<div class="right">';C+='<div class="prev lwPrev" id="lw_prev_container">';this.setPreviewContent(G,O,E.modName);C+=this.currentPreviewContent.html;C+="</div>";C+='<div class="mods">';if(E.numMods>1){var K=0;for(var B in E){if(E.hasOwnProperty(B)&&B!=E.modName&&E[B].module_type){var N=this.glob.getModuleMenuText(B,O,false);var H=this.glob.getModuleMenuText(B,O,true);if(H.length==0){continue}var J=this.glob.getModuleMenuAction(B,G,O);if(K>0){C+=" | "}C+="<a "+J+' title="'+N+'">'+H+"</a>";K++;if(K>=this.maxMenuItemCount){break}}}}C+="</div>";C+="</div>";toprow="<div id='mmod_row_t'>";toprow+="<div id='mmod_row_tl'><div>"+this.glob.showShortcutsLogo(G,false,"hover");toprow+="</div></div>";toprow+='<div id="mmod_row_tr"><div class="lwIcns">';toprow+=this.util.getOptions(this.glob.showOptions);toprow+='<a href="#" class="lwHelp" onclick="window.ShortcutsOverlay.makeOverlay(\'hover\', \''+G+"', 'unknown', 0, true, true, true, this);return false;\" title=\""+this.glob.aboutTT+'"></a>';toprow+="<a href=\"#\" class='lwClose' onclick='window.ShortcutsHover.hideContextMenu();return false;' title='"+this.glob.closeTT+"'></a>";toprow+="</div></div>";toprow+="</div>";bottomrow="<div id='mmod_row_bl'>&#160;</div> ";bottomrow+="<div id='mmod_row_br'>&#160;</div>";this.menuHeader=toprow;this.menuFooter=bottomrow;this.menuBody=null;this.menuBody=L.createElement("DIV");this.menuBody.innerHTML=C;this.currentStatus="hidden"};YAHOO.Shortcuts.Hover.prototype._hideContextMenu=function(){if(this.menu){try{this.menu.cfg.setProperty("xy",[-5000,-5000]);this.menu.hide()}catch(A){}}this.currentId=null;this.currentStatus="none"};YAHOO.Shortcuts.Hover.prototype.previewHover=function(E,D){var C=E.target||E.srcElement;var B=C.ownerDocument;var A=B.getElementById("lw_prev_container");if(A){A.className="prev lwPrevHover"}};YAHOO.Shortcuts.Hover.prototype.previewMouseout=function(E,D){var C=E.target||E.srcElement;var B=C.ownerDocument;var A=B.getElementById("lw_prev_container");if(A){A.className="prev lwPrev"}};YAHOO.Shortcuts.Hover.prototype.displayContextMenu=function(U,E){var J=YAHOO.Shortcuts.Utils.getElementWindow(U);var e=U.ownerDocument;var Z=this.menu.element;var B=this.menu.getDocument();var D=B.body;var b=J.YAHOO.ShortcutsData.annotationSet;var a=b[U.id];if(this.currentStatus=="none"){this.setContextMenuContents(U)}this.menu.setHeader(this.menuHeader);this.menu.setBody(this.menuBody);this.menu.setFooter(this.menuFooter);this.menu.render();if(this.currentPreviewContent.type=="iframe"&&this.glob.isSafari&&!this.glob.isWindows){document.getElementById("lwPrevFrame").src=this.currentPreviewContent.src}var H=this.Dom.getRegion(Z);var X=H.bottom-H.top;var C=H.right-H.left;var A=this.Dom.getRegion(D);var T;var Q;var L;var K;if(J.pageXOffset>0){T=E[0];L=J.pageXOffset}else{if(e.documentElement.scrollLeft>0){T=E[0]+e.documentElement.scrollLeft;L=e.documentElement.scrollLeft}else{if(e.body.scrollLeft>0){T=E[0]+e.body.scrollLeft;L=e.body.scrollLeft}else{T=E[0];L=0}}}if(J.pageYOffset>0){Q=E[1];K=J.pageYOffset}else{if(e.documentElement.scrollTop>0){Q=E[1]+e.documentElement.scrollTop;K=e.documentElement.scrollTop}else{if(e.body.scrollTop>0){Q=E[1]+e.body.scrollTop;K=e.body.scrollTop}else{Q=E[1];K=0}}}var c=10;var P=30;var S=T-c;var O=Q-X-P;var R=(S+C<(L+YAHOO.Shortcuts.Utils.getViewportWidth(J,e)-2));var M=(O>K);var N=C;if(!R){S=(L+YAHOO.Shortcuts.Utils.getViewportWidth(J,e)-2)-C;N=C-50+"px"}else{N="10px"}var F='<div id="arrow" style="left:'+N+'; ">&#160;</div>';var G='<div id="arrow" style="left:'+N+';">&#160;</div>';var V=this.Dom.getElementsByClassName("ft","div",Z)[0];var W=this.Dom.getElementsByClassName("hd","div",Z)[0];if(!M){O=O+X+P+20;W.innerHTML=W.innerHTML+F}else{V.innerHTML=V.innerHTML+G}this.menu.cfg.setProperty("xy",[S,O]);this.Dom.setStyle("mmod_row_tr","height",this.Dom.getStyle("mmod_row_tl","height"));var d=e.getElementById("lw_prev_ov");if(d){this.Dom.setStyle(d,"height",d.parentNode.offsetHeight);this.Dom.setStyle(d,"width",d.parentNode.offsetWidth);this.yui.util.Event.addListener(d,"mouseover",YAHOO.Shortcuts.menuWindow.ShortcutsHover.previewHover,this,true);this.yui.util.Event.addListener(d,"mouseout",YAHOO.Shortcuts.menuWindow.ShortcutsHover.previewMouseout,this,true)}if(!this.glob.isSafari&&!this.glob.isIE&&!this.glob.isOpera){var Y=e.getElementById("lw_prev_container");if(Y.offsetWidth<C-30){Y.style.width=(C-30)+"px"}}this.menu.show();if(b[U.id].visible==0&&!b[U.id].ult_hover&&this.glob.frcode!="csc_ymailcl"&&this.glob.frcode!="csc_ymailm"){this.glob.ultHandler.sendOne(b,U.id,this.glob.frcode,this.glob.isQA)}var I={};this.glob.makeAdCall(a,"noop","YAHOO.Shortcuts.Utils.adNoOp",I,this.glob.hostSpaceId,"hover","none");this.currentStatus="display"};YAHOO.Shortcuts.Hover.prototype.prepareContextMenu=function(C){var D=C.id;this.currentId=D;var A=this.glob.entityManager;if(A.needsServerValidation(D)){if(this.glob.glueMode=="h"){var B=YAHOO.Shortcuts.Utils.getElementWindow(C);A.requestServerValidation(D,B,"hover");A.entityValidateEvent.subscribe(this.onEntityValidate,this)}}else{this.setContextMenuContents(C)}};YAHOO.Shortcuts.Hover.prototype.prepareContextMenuOnClick=function(C){if(this.glob.glueMode!="c"){return }var D=C.id;this.currentId=D;var A=this.glob.entityManager;if(A.needsServerValidation(D)){var B=YAHOO.Shortcuts.Utils.getElementWindow(C);A.requestServerValidation(D,B,"hover");A.entityValidateEvent.subscribe(this.onEntityValidate,this)}};YAHOO.Shortcuts.Hover.prototype.onEntityValidate=function(E,A,C){C.glob.entityManager.entityValidateEvent.unsubscribe(C.onEntityValidate,C);if(A[0]["source"]!="hover"){return }var D=YAHOO.Shortcuts.menuWindow||window;var B=D.ShortcutsHover;var F=A[0]["id"];if(F==B.currentId){if(B.currentStatus=="none"){B.setContextMenuContents(document.getElementById(F))}}};YAHOO.Shortcuts.Overlay=function(D,A,F,B,E,C){this.glob=D;this.util=A;this.ifrList=null;this.aboutOverlay=null;this.aboutShown=false;this.destMenuToggle=false;this.oDestMenu=null;this.ns="YAHOO.Shortcuts.globals.";this.floating=true;this.yui=F;this.Event=F.util.Event;this.Dom=F.util.Dom;this.hostWin=(B&&B.document)?B:window;this.configWin=(E&&E.document)?E:window;this.hideDestMenu=this.glob.makeClosure(this._hideDestMenu,this);this.hideOverlay=this.glob.makeClosure(this._hideOverlay,this);this.destroyOverlay=this.glob.makeClosure(this._destroyOverlay,this);this.hideLightbox=this.glob.makeClosure(this._hideLightbox,this);this.centerDialogs=C;this.resizeEvent=new F.util.CustomEvent("resizeOverlay",this);this.currentOverlayIframeSrc=null;this.currentHideOnFail=false;this.lastQuery=null;this.maxTabCount=-1;this.maxTabTitleLength=50;this.firstVisibleTabId=null;this.tabMoveMode=2};YAHOO.Shortcuts.Overlay.prototype.getDocument=function(){return this.hostWin.document};YAHOO.Shortcuts.Overlay.prototype.hostWin=function(){return this.hostWin};YAHOO.Shortcuts.Overlay.prototype.setConfigWin=function(A){this.configWin=A};YAHOO.Shortcuts.Overlay.prototype.getConfig=function(){return this.configWin.YAHOO.ShortcutsData};YAHOO.Shortcuts.Overlay.prototype.makeOverlayHeader=function(B){var A='<div class="hdl"><div class="hdr">';A+=this.glob.showShortcutsLogo(B,false,"overlay");A+='<div class="lwIcns">';A+=this.util.getOptions(this.glob.showOptions);if(this.glob.about&&this.glob.about!="false"){A+='<a href="#" class="lwHelp" onclick="window.ShortcutsOverlay.makeAboutPanel(\''+B+'\',true);return false;" title="'+this.glob.aboutTT+'"></a>'}if(!this.glob.hideClose){A+='<a href="#" class="lwClose" onclick="window.ShortcutsOverlay.hideOverlay();return false;" title="'+this.glob.closeTT+'"></a>'}A+="</div></div></div>";return A};YAHOO.Shortcuts.Overlay.prototype.makeRelatedEntities=function(H){var F=this.getConfig().annotationSet[H];var E=F.text?F.text.replace(/"/g,"&quot;"):F.text;var C=F.wikiId?F.wikiId.replace(/"/g,"&quot;"):F.wikiId;if(typeof (YAHOO.Shortcuts.Overlay.prototype.wikiId)!="undefined"&&YAHOO.Shortcuts.Overlay.prototype.wikiId!=""){C=YAHOO.Shortcuts.Overlay.prototype.wikiId}var G="relatedEntitiesCallback";var D=parseInt(Math.random()*1000000000);var B="http://"+YAHOO.Shortcuts.Utils.getShortcutServerUrl()+"/conceptapps/related_js/related_js.php?query="+escape(E)+"&uri="+escape("http://shortcuts.yahoo.com/uris/wiki/"+C)+"&callback="+escape("window.ShortcutsOverlay."+G)+"&version=1&random="+D;this.util.insertRef(B,true);var A="";A+='<div id="overlayRelated">';A+="</div>";return A};YAHOO.Shortcuts.Overlay.prototype.startMoveOneSlide=function(A){if(typeof (YAHOO.Shortcuts.Overlay.prototype.relatedAreRotating)=="undefined"||YAHOO.Shortcuts.Overlay.prototype.relatedAreRotating==false){if(A>0){document.getElementById("rightArrowDiv").style.visibility="visible";document.getElementById("rightArrowDivInactive").style.visibility="hidden"}else{if(A<0){document.getElementById("leftArrowDiv").style.visibility="visible";document.getElementById("leftArrowDivInactive").style.visibility="hidden"}}YAHOO.Shortcuts.Overlay.prototype.relatedAreRotating=true;YAHOO.Shortcuts.Overlay.prototype.moveOneSlide(A,20)}else{}};YAHOO.Shortcuts.Overlay.prototype.moveOneSlide=function(A,F){if(A==0){return }var D;if(A>0){D=Math.min(F,A)}else{D=Math.max(-F,A)}var B=30;var C=A-D;if(YAHOO.Shortcuts.Overlay.prototype.moveRelatedEntities(D)==0){C=0}var E;if(Math.abs(C)<=160){E=Math.max(5,F-1)}else{E=F}if(C!=0){setTimeout("YAHOO.Shortcuts.Overlay.prototype.moveOneSlide("+C+","+E+")",B)}else{YAHOO.Shortcuts.Overlay.prototype.relatedAreRotating=false}};YAHOO.Shortcuts.Overlay.prototype.getImageObjects=function(B,A,D){D=D%B.length;A=Math.min(A,B.length);var E=new Array();for(var C=0;C<A;C++){D=D%B.length;E[E.length++]=B[D];D++}return E};YAHOO.Shortcuts.Overlay.prototype.moveRelatedEntities=function(E){if(document.getElementById("imagesDiv")==null){return 0}var H=30;var A=parseInt(document.getElementById("imagesDiv").style.left);var D=parseInt(document.getElementById("imagesDiv").style.width);if(A+E>H){E=H-A;if(E==0){YAHOO.Shortcuts.Overlay.prototype.reachedLeftEnd();return 0}}else{if(A+E+D-H<284){E=284-A-D+H;if(E==0){YAHOO.Shortcuts.Overlay.prototype.reachedRightEnd();return 0}}}var F=document.getElementById("imagesDiv").style.clip;F=F.substring(F.indexOf("(")+1,F.indexOf(")"));F=F.replace(/[ ,]+/g,",");var K=F.split(",");var J=parseInt(K[0]);var B=parseInt(K[1]);var I=parseInt(K[2]);var C=parseInt(K[3]);C-=E;B-=E;var G="left = "+(parseInt(document.getElementById("imagesDiv").style.left)+E)+" (was "+parseInt(document.getElementById("imagesDiv").style.left)+")";G+="\nclip= rect("+J+"px,"+B+"px,"+I+"px,"+C+"px)    (was "+F+")";document.getElementById("imagesDiv").style.left=A+E;document.getElementById("imagesDiv").style.clip="rect("+J+"px,"+B+"px,"+I+"px,"+C+"px)";if(A+E==H){YAHOO.Shortcuts.Overlay.prototype.reachedLeftEnd()}if(A+E+D-H==284){YAHOO.Shortcuts.Overlay.prototype.reachedRightEnd()}return E};YAHOO.Shortcuts.Overlay.prototype.reachedLeftEnd=function(){document.getElementById("leftArrowDiv").style.visibility="hidden";document.getElementById("leftArrowDivInactive").style.visibility="visible"};YAHOO.Shortcuts.Overlay.prototype.reachedRightEnd=function(){document.getElementById("rightArrowDiv").style.visibility="hidden";document.getElementById("rightArrowDivInactive").style.visibility="visible"};YAHOO.Shortcuts.Overlay.prototype.displayImageObjects=function(D){imageObjects=YAHOO.Shortcuts.Overlay.prototype.relatedImageObjects;var Q=30;var H=3;var L=12;var S=imageObjects.length;var G=94;var M=90;var N=Math.max(S*G,284);var E=(N>284);var J="";J+='<DIV ID="imageHoleTop">';J+='<DIV ID="imageHole">';if(E){J+='<DIV ID="leftArrowDiv" STYLE="width:'+Q+"px; height:"+M+"px; left:0px; top:0px; position:absolute; text-align:center; vertical-align: middle; z-index: 11; background-image:url('http://l.yimg.com/us.yimg.com/i/us/shc/gr/arrow_left_active_3.png'); background-repeat:no-repeat;background-position:center; visibility:hidden;\" onClick=\"YAHOO.Shortcuts.Overlay.prototype.startMoveOneSlide("+284+');"></DIV>';J+='<DIV ID="leftArrowDivInactive" STYLE="width:'+Q+"px; height:"+M+"px; left:0px; top:0px; position:absolute; text-align:center; vertical-align: middle; z-index: 11; background-image:url('http://l.yimg.com/us.yimg.com/i/us/shc/gr/arrow_left_disabled_3.png'); background-repeat:no-repeat;background-position:center;\"></DIV>"}J+='<DIV ID="imagesDiv" STYLE="clip: rect(0,284,'+M+",0); width:"+(N)+"px; left:"+Q+"px; height:"+M+'px; top:2px; position:absolute; z-index: 5;">';J+='<TABLE WIDTH="'+N+'" HEIGHT="'+(M-3)+'" CELLPADDING=0 CELLSPACING=0><TR>';var K=imageObjects;var P="text-decoration:none; font-size:10px; font-family: verdana,arial;";for(var O=0;O<S;O++){var T=K[O].title;var F=K[O].thumbnailUrl;var A=K[O].wikiId;var B=T;if(T.length-2>L){B=B.substring(0,L).replace(/\s+$/,"").replace(/\s/,"&nbsp;")+"&hellip;"}var I='<A STYLE="'+P+'" HREF="javascript:void(0)" TITLE="'+T+'" onClick="YAHOO.Shortcuts.Overlay.prototype.wikiId=\''+A+"';document.getElementById('searchForm').ylwSearch.value = unescape('"+escape(T)+"');window.ShortcutsOverlay.simpleSearch(document.getElementById('searchForm'), document.getElementById('searchForm').ylwSearch.value); return false;\">";var C="";C+='<TR HEIGHT="99%"><TD ALIGN=center VALIGN=middle>';C+='<DIV ID="imgdiv_'+(D+O)+'" STYLE="visibility:hidden;">';C+=I;C+="<IMG onLoad=\"return YAHOO.Shortcuts.Utils.resizeImageToMaxSize(this,70,70,'imgdiv_"+(D+O)+'\');" SRC="'+F+'" BORDER=0 ALT="'+T+'">';C+="</A>";C+="</DIV>";C+="</TD>";C+="</TR>";var R="";R+="<TR>";R+="<TD VALIGN=middle ALIGN=center>";R+=I;R+=B;R+="</A>";R+="</TD>";R+="</TR>";J+='<TD ALIGN=center VALIGN=top ALIGN=center STYLE="width:'+G+'">';J+='<TABLE CELLPADDING=0 CELLSPACING=0 HEIGHT="100%">';J+=C;J+=R;J+="</TABLE>";J+="</TD>"}J+="</TR></TABLE>";J+="</DIV>";if(E){J+='<DIV ID="rightArrowDiv" STYLE="width:'+Q+"px; height:"+M+"px; left:314px; top:0px; position:absolute; text-align:center; middle; z-index: 11; background-image:url('http://l.yimg.com/us.yimg.com/i/us/shc/gr/arrow_right_active_3.png'); background-repeat:no-repeat;background-position:center;\" onClick=\"YAHOO.Shortcuts.Overlay.prototype.startMoveOneSlide(-"+284+');"></DIV>';J+='<DIV ID="rightArrowDivInactive" STYLE="width:'+Q+"px; height:"+M+"px; left:314px; top:0px; position:absolute; text-align:center; middle; z-index: 11; background-image:url('http://l.yimg.com/us.yimg.com/i/us/shc/gr/arrow_right_disabled_3.png'); background-repeat:no-repeat;background-position:center; visibility: hidden;\"></DIV>"}J+="</DIV>";J+="</DIV>";if(document.getElementById("overlayRelated")!=null){document.getElementById("overlayRelated").innerHTML=J}};YAHOO.Shortcuts.Overlay.prototype.relatedEntitiesCallback=function(C){var B=C.selfQuery;var A="";var D=C.allRelatedObjects;YAHOO.Shortcuts.Overlay.prototype.relatedImageObjects=D;if(D.length==0){document.getElementById("overlayRelated").innerHTML=""}else{YAHOO.Shortcuts.Overlay.prototype.displayImageObjects(0);document.getElementById("overlayRelated").style.display="block"}};YAHOO.Shortcuts.Overlay.prototype.makeOverlaySearchbox=function(D){var B=this.getConfig().annotationSet[D];var C='<div id="overlaySearch"><form id="searchForm" onsubmit="window.ShortcutsOverlay.simpleSearch(this, this.ylwSearch.value ); return false;">';var A=B.text?B.text.replace(/"/g,"&quot;"):B.text;if(/shortcuts:\/us\/instance\/identifier\/URL\/video/.test(B.type)){A=""}C+='<input type="text" id="ylwSearch" name="q" value="'+A+'"/>';C+='<img id="ylwSearchButton" src="http://us.i1.yimg.com/us.yimg.com/i/us/sch/sc/btn_searchyellow.gif" />';C+="</form></div>";this.lastQuery=B.text;return C};YAHOO.Shortcuts.Overlay.prototype.setTab=function(E,C,B,P){var O=this.getDocument();if(O.getElementById("overlayTabs")){var M=O.getElementById("overlayTabs").getElementsByTagName("span");for(y=0;y<M.length;y++){var Q=M[y].id;var I=Q.substr(8,Q.length);if(I==E&&B!==true){M[y].className="selected";this.glob.currentTabPosition=y+1}else{M[y].className="off"}}var G=O.getElementById("lw_overlayiframes");if(G){var K=G.getElementsByTagName("iframe");var F=null;if(this.aboutShown){var J=O.getElementById("lw_about_dummy");F=this.Dom.getXY(O.getElementById("lw_about_dummy"))}for(i=0;i<K.length;i++){if(!window.ActiveXObject&&!window.opera){if(F==null&&K[i].className=="moduleFrame"){F=this.Dom.getXY(K[i])}K[i].style.display="block";K[i].className="";this.Dom.setX(K[i],-5000);this.Dom.setY(K[i],-5000)}else{K[i].style.display="none";K[i].className=""}}var D=this.glob.modSet[E];if(!this.ifrList[E].html){var H=O.createElement("iframe");H.frameBorder=0;H.height=D.height;H.id=E+"_iframe";G.appendChild(H);this.ifrList[E].html=true;if(this.ifrList[E].hideOnFail){this.util.insertRef(this.ifrList[E].url,true)}else{H.src=this.ifrList[E].url}}var L=O.getElementById(E+"_iframe");if(L){if(!window.ActiveXObject&&!window.opera){this.Dom.setXY(L,F==null?P:F)}L.style.display="block";L.className="moduleFrame";L.style.height=D.height}G.style.height=D.height+"px"}}if(B!==true){this.updateOverlayFooter(this.getConfig().annotationSet[C],E);if(this.aboutOverlay){this.aboutOverlay.destroy()}this.aboutShown=false}this.resizeEvent.fire();var A={sec:"inline",slk:"tab",e_typ:"tab"};var N=!(this.glob.suppressAds||this.glob.modSet[E].suppress_ads);this.glob.makeAdCall(this.getConfig().annotationSet[C],N?"all":"no_op",this.glob.enableDitto?"YAHOO.Shortcuts.Utils.setDittoAdContents":"YAHOO.Shortcuts.Utils.setAdContents",A,this.glob.overlaySpaceId,"click",E)};YAHOO.Shortcuts.Overlay.prototype.moveTabLeft=function(){if(this.firstVisibleTabId==null){return }var D=this.getDocument();var C=D.getElementById(this.firstVisibleTabId);if(this.tabMoveMode==1){if(C&&C.nextSibling){C.style.display="none";this.firstVisibleTabId=C.nextSibling.id;D.getElementById("overlayTabLeftButton").style.display="block";D.getElementById("overlayTabLeftButtonDisabled").style.display="none";if(!C.nextSibling.nextSibling){D.getElementById("overlayTabRightButton").style.display="none";D.getElementById("overlayTabRightButtonDisabled").style.display="block"}}}else{if(this.tabMoveMode==2){var A=D.getElementById("overlayTabList");var B=D.getElementById("overlayTabs");if(!A||!B){return }var E=C;while(E&&E.nextSibling&&E.nextSibling.id!="sentinel"){if(E.offsetLeft+E.offsetWidth>A.offsetWidth){break}E=E.nextSibling}if(E){while(C!=E){C.style.display="none";C=C.nextSibling}E.style.marginLeft="0px";this.adjustPartialTab(A);this.firstVisibleTabId=E.id;D.getElementById("overlayTabLeftButton").style.display="block";D.getElementById("overlayTabLeftButtonDisabled").style.display="none";if(B.lastChild.previousSibling.offsetLeft+B.lastChild.previousSibling.offsetWidth<=A.offsetWidth){D.getElementById("overlayTabRightButton").style.display="none";D.getElementById("overlayTabRightButtonDisabled").style.display="block"}}}}};YAHOO.Shortcuts.Overlay.prototype.moveTabRight=function(){if(this.firstVisibleTabId==null){return }var D=this.getDocument();var C=D.getElementById(this.firstVisibleTabId);if(this.tabMoveMode==1){if(C&&C.previousSibling){C.previousSibling.style.display="inline";this.firstVisibleTabId=C.previousSibling.id;if(!C.previousSibling.previousSibling){D.getElementById("overlayTabLeftButton").style.display="none";D.getElementById("overlayTabLeftButtonDisabled").style.display="block"}D.getElementById("overlayTabRightButton").style.display="block";D.getElementById("overlayTabRightButtonDisabled").style.display="none"}}else{if(this.tabMoveMode==2){var A=D.getElementById("overlayTabList");var B=D.getElementById("overlayTabs");if(!A||!B){return }newFirstVisibleTab=C;while(C.offsetLeft+C.offsetWidth<=A.offsetWidth&&newFirstVisibleTab.previousSibling){newFirstVisibleTab.previousSibling.style.display="inline";newFirstVisibleTab=newFirstVisibleTab.previousSibling}newFirstVisibleTab.style.marginLeft="0px";this.adjustPartialTab(A);this.firstVisibleTabId=newFirstVisibleTab.id;if(!newFirstVisibleTab.previousSibling){D.getElementById("overlayTabLeftButton").style.display="none";D.getElementById("overlayTabLeftButtonDisabled").style.display="block"}if(B.lastChild.previousSibling.offsetLeft+B.lastChild.previousSibling.offsetWidth>A.offsetWidth){D.getElementById("overlayTabRightButton").style.display="block";D.getElementById("overlayTabRightButtonDisabled").style.display="none"}}}};YAHOO.Shortcuts.Overlay.prototype.resetOverlayTabButtons=function(){if(this.firstVisibleTabId==null){return }var C=this.getDocument();var A=C.getElementById("overlayTabList");var B=C.getElementById("overlayTabs");if(A&&B&&B.firstChild&&B.firstChild.offsetLeft<=0){C.getElementById("overlayTabLeftButton").style.display="block";C.getElementById("overlayTabLeftButtonDisabled").style.display="none"}else{C.getElementById("overlayTabLeftButton").style.display="none";C.getElementById("overlayTabLeftButtonDisabled").style.display="block"}if(A&&B&&B.lastChild.previousSibling&&B.lastChild.previousSibling.offsetLeft+B.lastChild.previousSibling.offsetWidth>A.offsetWidth){C.getElementById("overlayTabRightButton").style.display="block";C.getElementById("overlayTabRightButtonDisabled").style.display="none"}else{C.getElementById("overlayTabRightButton").style.display="none";C.getElementById("overlayTabRightButtonDisabled").style.display="block"}this.adjustPartialTab(A)};YAHOO.Shortcuts.Overlay.prototype.adjustPartialTab=function(A){if(A==null){return }var C=A.getElementsByTagName("li");for(i=0;i<C.length-1;i++){var B=C[i];if(B.offsetLeft<A.offsetWidth&&B.offsetLeft+B.offsetWidth>A.offsetWidth){B.style.marginLeft=A.offsetWidth+"px";break}}};YAHOO.Shortcuts.Overlay.prototype.makeOverlayTabs=function(B,H,J,A,M){if(this.ifrList){delete this.ifrList}this.ifrList={};var N='<div id="overlayTabBar"><div id="overlayTabButtons"><div id="overlayTabLeftButton" onClick="window.ShortcutsOverlay.moveTabRight();"><img src="http://l.yimg.com/us.yimg.com/i/us/shc/gr/arrow_l_act.png"></img></div><div id="overlayTabLeftButtonDisabled"><img src="http://l.yimg.com/us.yimg.com/i/us/shc/gr/arrow_l_dis.png"></img></div><div id="overlayTabRightButton" onClick="window.ShortcutsOverlay.moveTabLeft();"><img src="http://l.yimg.com/us.yimg.com/i/us/shc/gr/arrow_r_act.png"></img></div><div id="overlayTabRightButtonDisabled"><img src="http://l.yimg.com/us.yimg.com/i/us/shc/gr/arrow_r_dis.png"></img></div></div><div id="overlayTabList"><ul id="overlayTabs">';var D=this.getConfig().annotationSet[J];var L=0;var Q=[];for(var K in B){if(B.hasOwnProperty(K)){if(B[K].module_type=="overlay.iframe"&&!B[K].suppress_navigation){Q.push(K)}}}if(Q.length<2){return("")}for(var O=0;O<Q.length&&(this.maxmTabCount>0?O<this.maxTabCount:true);O++){var K=Q[O];var C=this.glob.getUrl(B[K]);var R=this.glob.parseUrl(D,C,B[K].module_url.args,M,false,true,B[K].parameters);var E=R.url;if(R.hideOnFail){E+="&tabId=ylwTab_"+K+"&iframeId="+K+"_iframe&callback="+escape("window.ShortcutsOverlay.displayGlueModule")}var I={slk:"mod",sec:"tabs",modid:K,pos:L,query:D.text,e_typ:D.type.toString(),n_mod:H};E=this.glob.instrumentURI(E,true,I,this.glob.overlaySpaceId);var F;if(K==A){F="selected";this.glob.currentTabPosition=O+1}else{F="off"}this.ifrList[K]={url:E,html:false,hideOnFail:R.hideOnFail};var P;if(B[K].tab_title.length>this.maxTabTitleLength){P=B[K].tab_title.substr(0,this.maxTabTitleLength)+"..."}else{P=B[K].tab_title}var G=B[K].tab_title;N+='<li id="ylwTab_'+K+'" ><span title="'+G+'" id="tabLink_'+K+'" class="'+F+'" onClick="window.ShortcutsOverlay.setTab(\''+K+"','"+J+'\');" name="'+J+'">'+P+"</span></li>";L++}N+='<li id="sentinel"><span>Sentinel</span></li>';N+="</ul></div></div>";this.ifrList[A].html=true;this.firstVisibleTabId="ylwTab_"+Q[0];return N};YAHOO.Shortcuts.Overlay.prototype.makeOverlayBody=function(C,D,A,L){var M=this.glob.modSet;var N=this.getConfig().annotationSet[C];var J=String(N.type);var E=this.glob.getModules(C,N,D,true,this.configWin);if(E.modName=="unknown"){E.searchModule=this.glob.modSet.searchModule;E.modName="searchModule";E.numNods++}D=E.modName;var H=M[D];var B=this.glob.getUrl(H);var G=this.glob.parseUrl(N,B,H.module_url.args,A,false,true,H.parameters);var K=G.url;if(G.hideOnFail){K+="&tabId=ylwTab_"+D+"&iframeId="+D+"_iframe&callback="+escape("window.ShortcutsOverlay.displayGlueModule")}var I={slk:"mod",sec:"tabs",modid:D,pos:0,query:N.text,e_typ:N.type.toString(),n_mod:E.numMods};K=this.glob.instrumentURI(K,true,I,this.glob.overlaySpaceId);this.currentOverlayIframeSrc=K;this.currentHideOnFail=G.hideOnFail;var F='<div class="bdl"><div class="bdr">';if(typeof H.suppress_navigation=="undefined"){H.suppress_navigation=false}if(!L||!H.suppress_navigation){F+=this.makeOverlaySearchbox(C)}else{F+='<div id="overlaySearch"></div>'}if(!H.suppress_navigation&&E.numMods>1){F+=this.makeOverlayTabs(E,E.numMods,C,D,A)}if(G.hideOnFail||this.glob.isSafari){F+='<div id="lw_overlayiframes"><iframe frameborder="0" height="'+H.height+'" id="'+D+'_iframe" class="moduleFrame"></iframe></div>'}else{F+='<div id="lw_overlayiframes"><iframe frameborder="0" height="'+H.height+'" src="'+K+'" id="'+D+'_iframe" class="moduleFrame"></iframe></div>'}if(this.glob.enableRelatedEntities){F+=this.makeRelatedEntities(C)}F+=this.util.makeAd(N.text,!H.suppress_ads);F+="</div></div>";return F};YAHOO.Shortcuts.Overlay.prototype.makeOverlayFooter=function(G,B,F){if(B==null||this.glob.hideDestinations){return('<div class="ftl" style="height: 7px;"></div><div class="ftr" style="height: 7px;"></div>')}var D=this.glob.modSet[B];var C='<div class="ftl" style="height: 25px;"></div><div class="ftr" style="height: 25px;"></div>';C+="<ul>";C+='<li class="dest"><span id="destMenTrig"></span>';if(!this.glob.hideDestinations&&D.destinations&&D.destinations.length>1){C+='<a id="destMenTrigArrow" href="#" onclick="return false;"></a>'}C+="</li>";if(D.branding&&D.branding.url&&D.branding.label){var A={sec:"footer",slk:"synd",modid:B,query:G.text,e_typ:G.type.toString()};var E=this.glob.instrumentURI(D.branding.url,true,A,this.glob.overlaySpaceId);C+='<li class="brand">More on <a style="cursor: pointer;" target="ylw_wn" id="brandTrig" href="'+E+'">'+this.glob.handlePartnerName(D.branding.label)+"</a></li>"}C+="</ul>";C+="</div>";return C};YAHOO.Shortcuts.Overlay.prototype.makeDestMenu=function(O,E,A){if(E==null){return }var M=this.getDocument();var D=this.glob.modSet[E];var L=D.destinations;this.destMenuToggle=false;var F=M.getElementById("destMenTrig");var N="";var H='style="cursor: pointer;"';var J={sec:"footer",slk:"dest",modid:E,query:O.text,e_typ:O.type.toString(),pos:0};var B="";if(L&&L.length==1){B=this.glob.getUrl(L[0]);fresh_url_obj=this.glob.parseUrl(O,B,L[0].args,A,true,false,L[0].parameters);N=fresh_url_obj.url;if(!(E=="mapsModule"&&window.ActiveXObject)){N=this.glob.instrumentURI(N,true,J,this.glob.overlaySpaceId)}F.parentNode.innerHTML+="<a "+H+' target="ylw_wn" href="'+N+'" id="destLink_'+L[0].label.replace(new RegExp(/ /g),"_")+'">'+this.glob.handlePartnerName(L[0].label)+"</a>"}else{if(L&&L.length>1){B=this.glob.getUrl(L[0]);fresh_url_obj=this.glob.parseUrl(O,B,L[0].args,A,true,false,L[0].parameters);N=fresh_url_obj.url;N=this.glob.instrumentURI(N,true,J,this.glob.overlaySpaceId);F.parentNode.innerHTML="<a "+H+'target="ylw_wn" href="'+N+'" id="destLink_'+L[0].label.replace(new RegExp(/ /g),"_")+'">'+this.glob.handlePartnerName(L[0].label)+"</a>"+F.parentNode.innerHTML;var C=M.createElement("DIV");C.id="lwDestMenu";C.style.position="absolute";if(!document.getElementById("lwDestMenu")){this.oDestMenu=new this.yui.widget.Overlay(C,{monitorresize:false,iframe:!(this.glob.isSafari||this.glob.isIE||this.glob.isOpera)})}else{this.oDestMenu.destroy();this.oDestMenu=new this.yui.widget.Overlay(C,{monitorresize:false,iframe:!(this.glob.isSafari||this.glob.isIE||this.glob.isOpera)})}var G="<ul>";for(y=1;y<L.length;y++){B=this.glob.getUrl(L[y]);fresh_url_obj=this.glob.parseUrl(O,B,L[y].args,A,true,false,L[y].parameters);N=fresh_url_obj.url;J.pos=y;N=this.glob.instrumentURI(N,true,J,this.glob.overlaySpaceId);G+='<li class="destMenuOption"><a '+H+' target="ylw_wn" href="'+N+'" id="destLink_'+L[y].label.replace(new RegExp(/ /g),"_")+'">'+this.glob.handlePartnerName(L[y].label)+"</a></li>"}G+="</ul>";this.oDestMenu.setBody(G);if(!M.getElementById("lwDestMenu")){this.oDestMenu.render("lwOverlay")}var I=this.Dom.getElementsByClassName("destMenuOption",null,M.body);var K=M.getElementById("destMenTrigArrow");this.Event.removeListener(K,"click",this.showDestMenu);this.Event.addListener(K,"mouseout",function(Q,P){P.glob.menuTimer=setTimeout(P.hideDestMenu,750)},this);this.Event.addListener(I,"mouseout",function(Q,P){P.glob.menuTimer=setTimeout(P.hideDestMenu,750)},this);this.Event.addListener(I,"mouseover",function(Q,P){clearTimeout(P.glob.menuTimer)},this);this.Event.addListener(K,"click",this.showDestMenu,this,true);this.hideDestMenu()}}};YAHOO.Shortcuts.Overlay.prototype.showDestMenu=function(){if(this.destMenuToggle){this.destMenuToggle=false;this.oDestMenu.hide()}else{this.destMenuToggle=true;this.oDestMenu=new this.yui.widget.Overlay("lwDestMenu",{monitorresize:false,iframe:!(this.glob.isSafari||this.glob.isIE||this.glob.isOpera)});this.oDestMenu.show()}};YAHOO.Shortcuts.Overlay.prototype._hideDestMenu=function(){this.oDestMenu.hide();this.destMenuToggle=false};YAHOO.Shortcuts.Overlay.prototype.simpleSearch=function(E,B,A){var I;var F=this.getDocument();if(typeof B=="object"){I=F.getElementById("ylwSearch").value}else{I=B}if(I!=""&&I!=this.lastQuery){var G=I.replace(/^\s*/,"").replace(/\s*$/,"");G=YAHOO.Shortcuts.Utils.ucWords(G);var J=encodeURIComponent(G);J=J.replace(/%23/g,"%2523");var H=(A=="clicksearch")?"clickSearchCallback":"searchCallback";var C="http://shortcuts.yahoo.com/annotate?text="+J+"&frcode=csc_sb&input_format=text&output=json&debugIO=true&callback="+escape("window.ShortcutsOverlay."+H);var D={slk:"button",sec:"search",query:G};this.cQuery=G;C=this.glob.instrumentURI(C,true,D,this.glob.overlaySpaceId);this.util.insertRef(C,true)}return false};YAHOO.Shortcuts.Overlay.prototype.clickSearchCallback=function(C){var B=this.clickQuery;if(B){this.cQuery=B.word;if(C&&C.annotationSet){for(var A in C.annotationSet){if(C.annotationSet.hasOwnProperty(A)){var D=C.annotationSet[A];if(D.startchar<=B.startchar&&D.endchar>B.startchar){this.cQuery=C.annotationSet[A].text;break}}}}}if(!this.cQuery){return }if(!D){if(this.cQuery.length<=3||this.glob.stopWords[this.cQuery]){return }}this.searchCallback(C,"clicksearch")};YAHOO.Shortcuts.Overlay.prototype.searchCallback=function(F,D){if(F==null){this.cQuery=document.getElementById("searchForm").ylwSearch.value}if(typeof (YAHOO.Shortcuts.Overlay.prototype.wikiId)=="undefined"||YAHOO.Shortcuts.Overlay.prototype.wikiId==""){D=D||"searchbox"}else{D="related"}var C=window.ShortcutsOverlay;var E=YAHOO.Shortcuts.Utils.makeAnnObject(C.cQuery);if(F&&F.annotationSet){for(var A in F.annotationSet){if(F.annotationSet.hasOwnProperty(A)){if(F.annotationSet[A].text==C.cQuery){E=F.annotationSet[A]}break}}}var G="currentSearchObj";C.getConfig().annotationSet[G]=E;var B=this.glob.entityManager;if(!this.glob.glue&&YAHOO.Shortcuts.Overlay.prototype.wikiId!=""&&typeof (YAHOO.Shortcuts.Overlay.prototype.wikiId)!="undefined"){C.makeOverlay(D,"currentSearchObj","searchModule",0,false,false,false,this.getDocument().body)}else{if(F==null){if(this.glob.frcode=="csc_news"){B.setModules("currentSearchObj",["newsModule","searchModule"])}else{B.setModules("currentSearchObj",["searchModule","newsModule"])}C.makeOverlay(D,"currentSearchObj","unknown",0,false,false,false,this.getDocument().body)}else{if(B.needsServerValidation(G,E.text,this.configWin)){B.requestServerValidation(G,this.configWin,D);B.entityValidateEvent.subscribe(this.onEntityValidate,this)}else{C.makeOverlay(D,"currentSearchObj","unknown",0,false,false,false,this.getDocument().body)}}}C.hideAbout(this.glob.firstChoice);YAHOO.Shortcuts.Overlay.prototype.wikiId=""};YAHOO.Shortcuts.Overlay.prototype.onEntityValidate=function(E,A,D){D.glob.entityManager.entityValidateEvent.unsubscribe(D.onEntityValidate,D);var C=A[0]["source"];if(C!="clicksearch"&&C!="searchbox"&&C!="related"){return }var B=window.ShortcutsOverlay;B.makeOverlay(C,"currentSearchObj","unknown",0,false,false,false,B.getDocument().body)};YAHOO.Shortcuts.Overlay.prototype.makeOverlay=function(Y,L,B,U,N,P,T,R){var J=R.ownerDocument;var F=this.util.getElementWindow(R);var C=YAHOO.Shortcuts.Utils.getViewportSize(F,J);var I=this.getDocument();if(F&&F.YAHOO&&F.YAHOO.ShortcutsData){this.setConfigWin(F)}var Q=null;if(typeof U=="string"){Q=U;U=0}this.currentAd=null;var S=null;if(P&&F.ShortcutsHover){var E=F.ShortcutsHover.menu.element;S=this.Dom.getXY(E);if(S[0]<=0||S[1]<=0){S=F.ShortcutsHover.upXY}}var X=this.getConfig().annotationSet[L];var V=this.makeOverlayHeader(L);var G=this.makeOverlayBody(L,B,U,T);this.currentObj=X;if(B=="unknown"){B=this.glob.firstChoice}var M=this.makeOverlayFooter(X,B,U);var D={width:"361px",constraintoviewport:(C[0]<361||C[1]<500?false:true),underlay:"none",close:false,visible:false,height:"500px",monitorresize:false,zIndex:9999,draggable:true};var A=I.getElementById("lwOverlay");if(A&&this.floating){if(!P){S=this.Dom.getXY(A)}this.destroyOverlay()}A=I.createElement("DIV");A.id="lwOverlay";A.style.overflow="visible";A.style.position="static";if(this.floating){this.ylwOverlay=new this.yui.widget.Panel(A,D)}else{this.ylwOverlay=new YAHOO.Shortcuts.Dialog(A)}this.ylwOverlay.setHeader(V);this.ylwOverlay.setBody(G);this.ylwOverlay.setFooter(M);this.ylwOverlay.render(I.body);if(this.currentHideOnFail){this.util.insertRef(this.currentOverlayIframeSrc,true)}else{if(this.glob.isSafari){document.getElementById("lw_overlayiframes").getElementsByTagName("iframe")[0].src=this.currentOverlayIframeSrc}}if(this.floating){if(this.centerDialogs||Y=="clicksearch"){this.ylwOverlay.center()}else{if(S){this.ylwOverlay.cfg.setProperty("xy",S)}}this.ylwOverlay.cfg.setProperty("height","auto");this.ylwOverlay.show()}this.resetOverlayTabButtons();if(F.ShortcutsHover){F.ShortcutsHover.hideContextMenu()}this.Event.addListener("ylwSearchButton","click",function(a,Z){Z.simpleSearch(a,Z)},this);if(!this.glob.hideDestinations){this.makeDestMenu(X,B,U)}if(N){this.makeAboutPanel(L,false)}var W=I.getElementById("ylwSearch");if(W&&this.glob.frcode!="csc_google_gadget"){setTimeout(function(){W.setAttribute("autocomplete","off");W.focus();W.value=W.value},150)}if(B!=null){if(!window.opera){var H={e_typ:Y};if(Q){H.user_cat=Q;H.context=X.context?X.context:""}var K=!(this.glob.suppressAds||this.glob.modSet[B].suppress_ads);this.glob.makeAdCall(X,K?"all":"no_op",this.glob.enableDitto?"YAHOO.Shortcuts.Utils.setDittoAdContents":"YAHOO.Shortcuts.Utils.setAdContents",H,this.glob.hostSpaceId,"click",B);if(F.ShortcutsHover){F.ShortcutsHover.hideContextMenuTimer=setTimeout(F.ShortcutsHover.hideContextMenu,700)}}}if(this.glob.enableDynamicHighlighting&&Y!="searchbox"){var O=this.glob.getRelatedEntities(F,L);this.glob.highlightEntities(O,F,false);this.glob.ultHandler.send(O,this.glob.frcode,false)}};YAHOO.Shortcuts.Overlay.prototype.makeLightboxHeader=function(B){var A='<b class="rnd"><b class="rnd2"></b><b class="rnd1"></b></b>';A+='<div class="mid">'+this.glob.showShortcutsLogo(null,false,"",true);A+='<div class="lwClose" onclick="window.ShortcutsOverlay.hideLightbox();" title="'+this.glob.closeTT+'"></div>';A+="</div>";return A};YAHOO.Shortcuts.Overlay.prototype.makeLightboxBody=function(C,D,A,I){var J=this.glob.modSet;var K=this.getConfig().annotationSet[C];var G=J[D];var B=this.glob.getUrl(G);var F=this.glob.parseUrl(K,B,G.module_url.args,A,false,true,G.parameters);var H=F.url;var E="";if(typeof G.suppress_navigation=="undefined"){G.suppress_navigation=false}if(!I||!G.suppress_navigation){E+=this.makeOverlaySearchbox(C)}E+='<div id="lw_overlayiframes"><iframe frameborder="0" height=" '+G.height+' " src="'+H+'" id="'+D+'_iframe" class="moduleFrame"></iframe></div>';E+=this.util.makeAd(K.text,!G.suppress_ads);return E};YAHOO.Shortcuts.Overlay.prototype.makeLightboxFooter=function(){var A='<b class="rnd"><b class="rnd2"></b><b class="rnd1"></b></b>';return A};YAHOO.Shortcuts.Overlay.prototype.makeLightbox=function(T,I,A,Q,K,L,P,N){var E=this.util.getElementWindow(N);var H=this.getDocument();if(E&&E.YAHOO&&E.YAHOO.ShortcutsData){this.setConfigWin(E)}if(E.ShortcutsHover){E.ShortcutsHover.hideContextMenu()}this.currentAd=null;var S=this.getConfig().annotationSet[I];this.currentObj=S;if(A=="unknown"){A=this.glob.firstChoice}var M=this.glob.modSet[A];var R=this.makeLightboxHeader(I);var F=this.makeLightboxBody(I,A,0,true);var J=this.makeLightboxFooter(S,A);var C={width:(M.width+40)+"px",fixedcenter:true,constraintoviewport:true,underlay:"none",modal:true,close:false,visible:true,draggable:true,monitorresize:false};var B=H.getElementById("lwOverlay");if(B){this.destroyOverlay()}B=H.createElement("DIV");B.id="lwOverlay";B.className="module overlay lightbox";this.ylwOverlay=new this.yui.widget.Panel(B,C);this.ylwOverlay.setHeader(R);this.ylwOverlay.setBody(F);this.ylwOverlay.setFooter(J);this.ylwOverlay.render(H.body);var D=(this.ylwOverlay.platform=="mac"&&this.ylwOverlay.browser=="gecko");var O=H.getElementById("lwOverlay_mask");if(D){this.yui.util.Dom.removeClass(O,"mask");O.style.position="absolute";O.style.top="0";O.style.left="0";O.style.display="block";O.style.backgroundImage="url(http://us.i1.yimg.com/us.yimg.com/i/us/shc/gr/lb_bg.png)";O.style.backgroundRepeat="repeat"}O.style.zIndex=5000;H.getElementById("lwOverlay_c").style.zIndex=5001;this.ylwOverlay.show();this.ylwOverlay.cfg.setProperty("height","auto");this.yui.util.Event.addListener("lwOverlay_mask","click",this.hideLightbox,this,true);this.Event.addListener("ylwSearchButton","click",function(V,U){U.simpleSearch(V,U)},this);if(!window.opera){var G={e_typ:T};this.glob.makeAdCall(S,"no_op","YAHOO.Shortcuts.Utils.adNoOp",G,this.glob.hostSpaceId,"click",A)}};YAHOO.Shortcuts.Overlay.prototype.updateOverlayFooter=function(B,A){var C=this.makeOverlayFooter(B,A);this.ylwOverlay.setFooter(C);if(!this.glob.hideDestinations){this.makeDestMenu(B,A)}};YAHOO.Shortcuts.Overlay.prototype.makeAboutPanel=function(A,H){var L=this.getDocument();if(this.aboutShown){return }this.aboutOverlay=new this.yui.widget.Overlay("aboutLivewords",{monitorresize:false,iframe:!(this.glob.isSafari||this.glob.isIE||this.glob.isOpera)});var C='<div id="lw_about_panel" allowTransparency="false"><div style="padding:14px;position:relative;">'+this.glob.handlePopUpOption(this.glob.handlePartnerName(this.glob.about))+'<div id="lwClose" title="'+this.glob.closeTT+'"></div></div></div>';var F=L.getElementById("lw_overlayiframes");if(F){var B=this.Dom.getElementsByClassName("moduleFrame","iframe",F)[0];if(B){var J=this.Dom.getXY(B);var K=parseInt(B.height);if(window.ActiveXObject){K=K+2}this.aboutOverlay.setBody(C);this.aboutOverlay.render("lwOverlay");var D=L.getElementById("lw_about_panel");D.style.height=window.ActiveXObject?K:K-10;D.style.overflow="auto";var I=(/Safari|Konqueror|KHTML/gi).test(navigator.userAgent);var N=[0,0];if(I){N[0]=J[0]-8;N[1]=J[1]-8;this.Dom.setXY("aboutLivewords",N)}else{this.Dom.setXY("aboutLivewords",J)}this.Dom.setXY("aboutLivewords",J);var M=L.getElementById("lwClose");this.Event.addListener(M,"click",function(P,O){O.hideAbout(B.id)},this,true);var E=L.getElementById("lw_about_dummy");if(!E){E=L.createElement("iframe");E.id="lw_about_dummy";E.setAttribute("frameborder","0");F.appendChild(E);if(I){E.style.position="absolute"}}E.setAttribute("height",K);if(!window.ActiveXObject&&!window.opera){this.Dom.setXY(E,J);this.Dom.setXY(B,[-5000,-5000]);F.style.height=(K+2)+"px"}else{E.style.display="block";B.style.display="none";F.style.height=(K+4)+"px"}var G={sec:"inline",slk:"about"};this.glob.makeAdCall(this.getConfig().annotationSet[A],"no_op","YAHOO.Shortcuts.Utils.adNoOp",G,H?this.glob.overlaySpaceId:this.glob.hostSpaceId,"none","none");this.aboutShown=true;this.aboutMade=true;abtfrm=document.getElementById("lw_about_panel");if(window.ActiveXObject){K=K+2;document.getElementById("aboutLivewords").style.borderRight="0px"}abtfrm.style.height=K+"px"}}};YAHOO.Shortcuts.Overlay.prototype.hideAbout=function(F){var C=this.getDocument();if(this.aboutShown){var D=C.getElementById("lw_about_dummy");if(F){var B=C.getElementById(F);if(!window.ActiveXObject&&!window.opera){var E=this.Dom.getXY(C.getElementById("lw_about_dummy"));var A=(/Safari|Konqueror|KHTML/gi).test(navigator.userAgent);if(A&&1==2){E[0]=E[0]+8;E[1]=E[1]+8}if(B){this.Dom.setXY(B,E)}if(D){this.Dom.setXY(D,[-5000,-5000])}}else{if(B){B.style.display="block"}if(D){D.style.display="none"}}}else{if(D){this.Dom.setXY(D,[-5000,-5000])}}this.aboutOverlay.destroy();this.aboutShown=false}};YAHOO.Shortcuts.Overlay.prototype._hideOverlay=function(){this.hideAbout();this.aboutShown=false;if(this.ylwOverlay){this.ylwOverlay.destroy()}};YAHOO.Shortcuts.Overlay.prototype._destroyOverlay=function(){this.hideAbout();this.aboutShown=false;if(this.ylwOverlay){this.ylwOverlay.destroy()}};YAHOO.Shortcuts.Overlay.prototype._hideLightbox=function(){var A=this.getDocument();var C=A.getElementById("lw_overlayiframes");if(C){var B=C.getElementsByTagName("iframe");if(B){for(i=0;i<B.length;i++){B[i].src=""}}}if(this.ylwOverlay){this.ylwOverlay.hide()}};YAHOO.Shortcuts.Overlay.prototype.displayGlueModule=function(B){var L=(B.tabId==this.firstVisibleTabId);var C=document.getElementById(B.tabId);var D=document.getElementById(B.iframeId);if(!D){return }if(B.content){var K=D.contentDocument||D.contentWindow.document;if(this.glob.isSafari||this.glob.isIE||this.glob.isOpera){var H='<html><head><meta http-equiv="content-type" content="text/html; charset=UTF-8">';if(B.content.css){for(i=0;i<B.content.css.length;i++){H+='<link rel="stylesheet" type="text/css" href="'+B.content.css[i]+'"/>'}}if(B.content.head_js){for(i=0;i<B.content.head_js.length;i++){if(B.content.head_js[i].indexOf("http")==0){H+='<script type="text/javascript" src="'+B.content.head_js[i]+'"><\/script>'}else{H+='<script type="text/javascript">'+B.content.head_js[i]+"<\/script>"}}}H+="</head>";H+='<body class="yui-skin-sam"><div>';H+=B.content.body;H+="</div></body>";H+="</html>";K.open();K.write(H);K.close()}else{if(B.content.css){for(i=0;i<B.content.css.length;i++){this.util.insertRef(B.content.css[i],false,K)}}if(B.content.head_js){for(i=0;i<B.content.head_js.length;i++){this.util.insertRef(B.content.head_js[i],true,K)}}K.body.setAttribute("class","yui-skin-sam");var G=K.createElement("div");G.innerHTML=B.content.body;K.body.appendChild(G)}}else{var F=this.Dom.getXY(D);if(C==null){this.searchCallback(null,"tab");return }var A=C.nextSibling;if(A.id=="sentinel"){A=C.previousSibling}if(!A){this.searchCallback(null,"tab");return }var J=A.id.substr(7);var E=A.firstChild.getAttribute("name");if(L){if(A==C.previousSibling){this.moveTabRight()}else{this.firstVisibleTabId="ylwTab_"+J}}C.parentNode.removeChild(C);D.parentNode.removeChild(D);var I=A;while(I.id!="sentinel"){I.style.marginLeft="0px";I=I.nextSibling}this.adjustPartialTab(document.getElementById("overlayTabList"));this.resetOverlayTabButtons();this.setTab(J,E,false,F)}};YAHOO.Shortcuts.Embed=function(B,A){this.glob=B||YAHOO.Shortcuts.globals;this.util=A||YAHOO.Shortcuts.utils};YAHOO.Shortcuts.Embed.prototype.getModules=function(C){var B={numMods:0};for(m in this.glob.modSet){if(this.glob.modSet.hasOwnProperty(m)){var A=this.glob.modSet[m];if(this.glob.checkType(A,C)){if(A.embed_content&&A.embed_content.url){B[m]=A;B.numMods++}}}}return B};YAHOO.Shortcuts.Embed.prototype.getModuleIcon=function(A){if(typeof A=="string"){A=this.glob.modSet[A]}if(A&&A.embed_content&&A.embed_content.icon){return A.embed_content.icon}return""};YAHOO.Shortcuts.Embed.prototype.displayModule=function(C,E,K){if(K.embed_content.type!="iframe"){return }if(typeof C=="string"){C=document.getElementById(C)}if(!C){return }var O=C.id;var B=K.embed_content.url;if(this.glob.isQA&&K.embed_content.url_q_a){B=K.embed_content.url_q_a}var M=this.glob.parseUrl(E,B,K.embed_content.args,0,false,true);var L=K.embed_content.width?K.embed_content.width:280;var I=K.embed_content.height?K.embed_content.height:280;var G=L+12;var J=C.ownerDocument.createElement("DIV");J.className="lwEmbed";J.style.width=G+"px";J.style.margin="0px";var F='<div class="hd" style="margin:0;">';F+='<div class="cnr_l" style="margin:0;"><div class="dot" style="margin:0;"></div></div>';F+='<div class="cnr_r" style="margin:0;"><div class="dot" style="margin:0;"></div></div>';F+='<div class="hdr" style="margin:4px 6px 5px;">';F+='<div class="logo" style="margin:0;">'+this.glob.showShortcutsLogo(null,false)+"</div>";F+='<div class="lnk" style="margin:0;"><a href="http://shortcuts.yahoo.com">Get this!</a></div>';F+='<div class="lnk" style="margin:0;"></div>';F+="</div></div>";var N=E.text.replace('"',"&quot;");F+='<div class="bd" style="margin:0 6px;">';F+='<div class="lwSearch" style="margin:-6px 0 0 0;">';F+='<input class="ylwSearch" id="'+O+'_p" type="text" value="'+N+'" style="width:209px;border:1px solid #C5C1C3;font-size:11px;height:15px;">';F+='<img class="ylwSearchButton" onclick="YAHOO.Shortcuts.Utils.openSearchPage(document.getElementById(\''+O+'_p\').value);" src="http://us.i1.yimg.com/us.yimg.com/i/us/sch/sc/button-search.gif" style="position:relative;top:7px;*top:5px;"/>';F+="</div>";F+='<div class="lwEmbedFrame" style="margin:0;"><iframe frameborder="0" scrolling="no" style="width:'+L+"px; height:"+I+'px;" src="'+M+'" class="moduleFrame"></iframe></div>';F+="</div>";F+='<div class="ft" style="margin:0;">';F+='<div class="cnr_l" style="margin:0;"><div class="dot" style="margin:0;"></div></div>';F+='<div class="cnr_r" style="margin:0;"><div class="dot" style="margin:0;"></div></div>';F+="</div>";J.innerHTML=F;if(C.hasChildNodes()){var D=C.childNodes;for(var H=0;H<D.length;H++){C.removeChild(D[H])}}C.appendChild(J);var A={};this.glob.makeAdCall(E,"no_op","YAHOO.Shortcuts.Utils.adNoOp",A,this.glob.hostSpaceId,"embed",K.name)};YAHOO.Shortcuts.ULTHandler=function(A){this.doIt(A)};YAHOO.Shortcuts.ULTHandler.prototype.doIt=function(A){var B=Math.random()*99;B=Math.round(B);this.isSampled=B<A};YAHOO.Shortcuts.ULTHandler.prototype.send=function(F,G,E){if(this.isSampled){var D=(YAHOO.ShortcutsData&&YAHOO.ShortcutsData.modelID)?YAHOO.ShortcutsData.modelID:"";var J=(YAHOO.ShortcutsData&&YAHOO.ShortcutsData.asid)?YAHOO.ShortcutsData.asid:"";var C=0;for(m in F){if(F.hasOwnProperty(m)){C++}}var B=0;for(m in F){if(F.hasOwnProperty(m)&&(!E||F[m].visible!=0)&&!F[m].ult&&!F[m].ult_pending){var I=F[m];F[m]["ult_pending"]=true;var H="http://fe.shortcuts.search.yahoo.com";var A=H+"/view_time_ult.php?id="+escape(m)+"&t="+escape(I.type)+"&w="+escape(I.weight)+"&fr="+escape(G)+"&category="+escape(I.category.join(","))+"&isext="+I.extended+"&extfrom="+escape(I.extendedFrom)+"&nt="+escape(I.type.length)+"&p="+escape(B)+"&e="+escape(I.text)+"&n="+C+"&visible="+I.visible+"&modelID="+D+"&asid="+J;YAHOO.Shortcuts.Utils.insertRef(A,true)}B=B+1}}};YAHOO.Shortcuts.ULTHandler.prototype.sendOne=function(H,G,D){if(!this.isSampled){return }var F=0;var E=0;var A=null;for(m in H){if(H.hasOwnProperty(m)){if(m==G){E=F;A=H[m]}F++}}A.ult_pending=true;var B="http://fe.shortcuts.search.yahoo.com";var C=B+"/view_time_ult.php?id="+escape(G)+"&t="+escape(A.type)+"&w="+escape(A.weight)+"&fr="+escape(D)+"&category="+escape(A.category.join(","))+"&isext="+A.extended+"&extfrom="+escape(A.extendedFrom)+"&nt="+escape(A.type.length)+"&p="+escape(E)+"&e="+escape(A.text)+"&n="+F+"&visible="+A.visible;YAHOO.Shortcuts.Utils.insertRef(C,true)};YAHOO.Shortcuts.EntityManager=function(B,C){this.annSet=B?B:YAHOO.Shortcuts.annotationSet;this.glob=C?C:YAHOO.Shortcuts.globals;this._clientCache={};for(var F in this.annSet){if(this.annSet.hasOwnProperty(F)){var E=this.annSet[F];if(E.embeds||E.disabled){E.clientMetaData=E.clientMetaData||{};if(E.embeds){var D="";for(var A in E.embeds){if(E.embeds.hasOwnProperty(A)){D+=A+":"+E.embeds[A]}}E.clientMetaData["embeds"]=D;delete E.embeds}if(E.disabled){E.clientMetaData["disabled"]=E.disabled;delete E.disabled}}}}this.entityValidateEvent=new this.glob.yui.util.CustomEvent("entityValidate",this);this.entityValidateSource=null};YAHOO.Shortcuts.EntityManager.prototype.attachEmbed=function(E,B,C){if(this.annSet[E]){var D=this.annSet[E];D.clientMetaData=D.clientMetaData||{};D.clientMetaData["embeds"]=D.clientMetaData["embeds"]||{};D.clientMetaData["embeds"]=C+":"+B;if(YAHOO.Shortcuts.globals){var A=new YAHOO.Shortcuts.Embed;A.displayModule(C,this.annSet[E],YAHOO.Shortcuts.globals.modSet[B])}}};YAHOO.Shortcuts.EntityManager.prototype.detachEmbed=function(C,B){if(this.annSet[C]&&this.annSet[C]["clientMetaData"]&&this.annSet[C]["clientMetaData"]["embeds"]){delete this.annSet[C]["clientMetaData"]["embeds"];var A=document.getElementById(B);if(A){A.innerHTML=""}}};YAHOO.Shortcuts.EntityManager.prototype.enableLink=function(C){if(this.annSet[C]){if(this.annSet[C]["clientMetaData"]&&typeof this.annSet[C]["clientMetaData"]["disabled"]!="undefined"){delete this.annSet[C]["clientMetaData"]["disabled"]}var B=document.getElementById(C);if(B){var A=YAHOO.Shortcuts.Utils.isParentATag(B);if(!A){B.style.borderBottom="dashed 1px #0066CC";B.style.cursor="pointer";B.style.cursor="hand"}if(YAHOO.Shortcuts.globals){YAHOO.Shortcuts.globals.setEventHandlers(C,A,this.annSet)}}}};YAHOO.Shortcuts.EntityManager.prototype.disableLink=function(C){if(this.annSet[C]){this.annSet[C]["clientMetaData"]=this.annSet[C]["clientMetaData"]||{};this.annSet[C]["clientMetaData"]["disabled"]=true;var B=document.getElementById(C);if(B){var A=YAHOO.Shortcuts.Utils.isParentATag(B);if(!A){B.style.borderBottom="0px";B.style.cursor="default"}if(YAHOO.Shortcuts.globals){YAHOO.Shortcuts.globals.unsetEventHandlers(C)}}}};YAHOO.Shortcuts.EntityManager.prototype.getJSONString=function(){var B="YAHOO.Shortcuts.annotationSet=YAHOO.Shortcuts.annotationSet||{};";for(var A in this.annSet){if(this.annSet.hasOwnProperty(A)){B+="YAHOO.Shortcuts.annotationSet['"+A+"']="+YAHOO.Shortcuts.Utils.serialize(this.annSet[A])+";"}}return B};YAHOO.Shortcuts.EntityManager.prototype.getClientMetaData=function(F){var B="";if(F){if(this.annSet[F]&&this.annSet[F]["clientMetaData"]){var E=this.annSet[F];var D=E.clientMetaData;var C="";for(var A in D){if(D.hasOwnProperty(A)){C+="^"+A+'="'+D[A]+'"'}}if(C.length>0){B+=F+'[text="'+E.text.replace(/"/g,"&quot;")+'"'+C+"]"}}return B}for(F in this.annSet){if(this.annSet.hasOwnProperty(F)){var E=this.annSet[F];if(E.clientMetaData){var C=this.getClientMetaData(F);if(C.length>0){if(B.length>0){B+=";"}B+=C}}}}return B};YAHOO.Shortcuts.EntityManager.prototype.getModules=function(A,H,F){if(typeof A!="string"){A=A.id}var J=this.getClientCache(A,H,"modules");if(J){return J}F=F||window;var D=this.annSet||F.YAHOO.ShortcutsData.annotationSet;var B=D[A];var I=[];for(var C in this.glob.modSet){if(this.glob.modSet.hasOwnProperty(C)){if(this.glob.checkType(this.glob.modSet[C],B)){I.push(C)}}}if(I.length==1&&(I[0]=="gotourlAction"||I[0]=="gotoDomainAction"||I[0]=="gotositeAction")){I=[]}if(I.length>1&&(I[0]=="gotourlAction")){var G=I[0];for(var E=1;E<I.length;E++){I[E-1]=I[E]}I[I.length-1]=G}if(A=="currentSearchObj"&&I.length==0){I[0]="searchModule"}this.setClientCache(A,B.text,"modules",I);return I};YAHOO.Shortcuts.EntityManager.prototype.setModules=function(B,A){this.setClientCache(B,null,"modules",A)};YAHOO.Shortcuts.EntityManager.prototype.needsServerValidation=function(G,F,D){var E=this.getClientCache(G,F,"validated");if(E){return false}var C=this.getModules(G,F,D);for(var B=0;B<C.length;B++){if(C[B]=="newsModule"||(C[B]=="financeModule"&&this.glob.glue)){return true}var A=this.glob.modSet[C[B]];if(A.server_validation){return true}}return false};YAHOO.Shortcuts.EntityManager.prototype.requestServerValidation=function(C,K,A){if(typeof C!="string"){C=C.id}this.entityValidateSource=A;var G=this.annSet||K.YAHOO.ShortcutsData.annotationSet;var D=G[C];var M=this.getModules(C,D.text,K);var E=[];if(!this.glob.glue){for(var H=0;H<M.length;H++){var F=this.glob.modSet[M[H]];var L=F.server_validation;if(L){if(L=="chkcont"){if(F.preview_content&&F.preview_content.type=="iframe"){var B=F.preview_content.url;if(this.glob.isQA&&F.preview_content.url_q_a){B=F.preview_content.url_q_a}urlObj=this.glob.parseUrl(D,B,F.preview_content.args,0,false,true,F.parameters);B=urlObj.url;E.push(L+":"+M[H]+":"+escape(B))}}else{E.push(L+":"+M[H])}}}}else{E.push("glue:unknown")}if(E.length>0){var J=E.join("|");var I=YAHOO.Shortcuts.Utils.getShortcutServerUrl();var B;if(!this.glob.glue){B="http://"+I+"/modules/validate"}else{B="http://"+I+"/modules/template"}B+="?id="+C+"&entity="+escape(D.text)+"&type="+escape(D.type.toString())+"&location="+escape(this.glob.location)+"&language="+escape(this.glob.language)+"&fr="+escape(this.glob.frcode)+"&modules="+M.join(",")+"&op="+escape(J)+"&callback=window.YAHOO.Shortcuts.globals.entityManager.validateCallback";YAHOO.Shortcuts.Utils.insertRef(B,true);if(!this.glob.glue){this.setClientCache(C,D.text,"validated",true)}}};YAHOO.Shortcuts.EntityManager.prototype.validateCallback=function(D,A){if(YAHOO.Shortcuts.menuWindow.ShortcutsHover&&YAHOO.Shortcuts.menuWindow.ShortcutsHover.currentStatus!="display"){this.setModules(D,A)}if(this.glob.glue){var C=this.annSet||window.YAHOO.ShortcutsData.annotationSet;var B=C[D];this.setClientCache(D,B.text,"validated",true)}this.entityValidateEvent.fire({id:D,source:this.entityValidateSource})};YAHOO.Shortcuts.EntityManager.prototype.getClientCache=function(C,B,A){if(!this._clientCache[C]){return null}if(B&&this._clientCache[C]["text"]!=B){return null}return this._clientCache[C][A]};YAHOO.Shortcuts.EntityManager.prototype.setClientCache=function(D,C,B,A){this._clientCache[D]=this._clientCache[D]||{};if(C){this._clientCache[D]["text"]=C}this._clientCache[D][B]=A};YAHOO.Shortcuts.EntityManager.prototype.needsHover=function(C){if(!this.glob.glue){return(false)}var B=this.getModules(C);for(var A=0;A<B.length;A++){if(B[A]=="newsModule"||B[A]=="financeModule"||typeof B[A]!="string"){return(false)}}return(true)};if(typeof YAHOO=="undefined"){YAHOO={}}YAHOO.Shortcuts.addDefaultModules=function(){var C=this.moduleHost;var A=null;this.globals.menuLength=15;if(YAHOO.ShortcutsExt){var B=YAHOO.ShortcutsExt.CustomConfiguration;if(B){A=B.Modules;this.globals.about=B.about;if(B.disablePopUpConfirm){this.globals.disablePopUpConfirm=B.disablePopUpConfirm}else{this.globals.disablePopUpConfirm="Are your sure you want to disable the pop-ups?"}this.globals.aboutTT=B.tooltip;this.globals.closeTT=B.closeTooltip;this.globals.hideClose=B.hideClose;this.globals.hideDestinations=B.hideDestinations;this.globals.pName=B.PartnerName;this.globals.showOptions=B.showOptions;this.globals.suppressAds=B.suppressAds;this.globals.disableHover=B.disableHover;if(B.frcode){this.globals.frcode=B.frcode}if(B.language){this.globals.language=B.language}else{this.globals.language="en"}if(B.location){this.globals.location=B.location}else{this.globals.location="us"}if(B.sampleSize){this.globals.sample=B.sampleSize}else{this.globals.sample=10}this.globals.ultHandler=new YAHOO.Shortcuts.ULTHandler(this.globals.sample);if(B.enableClickSearch){this.globals.enableClickSearch=B.enableClickSearch}if(B.enableRelatedEntities){this.globals.enableRelatedEntities=B.enableRelatedEntities}if(B.enableDynamicHighlighting){this.globals.enableDynamicHighlighting=B.enableDynamicHighlighting}if(B.enableDitto){this.globals.enableDitto=B.enableDitto}if(B.healthCheckUrl){this.globals.healthCheckUrl=B.healthCheckUrl}if(B.glue){this.globals.glue=B.glue}}if(B.menuLength){this.globals.menuLength=B.menuLength}}if(!this.globals.Title){this.globals.Title="Yahoo! Shortcuts"}if(!this.globals.pName){this.globals.pName="Yahoo!"}if(!this.globals.about){this.globals.about="About"+this.globals.Title+'<br>For help, refer <a href="http://help.yahoo.com">'+this.globals.Title+" help</a> pages."}if(!this.globals.aboutTT){this.globals.aboutTT="Get Help. Send feedback ..."}if(!this.globals.closeTT){this.globals.closeTT="Close"}if(this.overlaySpaceId){this.globals.overlaySpaceId=this.overlaySpaceId}if(this.hostSpaceId){this.globals.hostSpaceId=this.hostSpaceId}if(A==null){A={mapsModule:{entity_types:"shortcuts:/us/instance/place/",menu_text:"View Map",module_type:"overlay.iframe",suppress_ads:false,tab_title:"Maps",module_url:{url:"http://api.maps.yahoo.com/livewords/livewords.php",args:"?entity=<entity>&c=<context>&t=<type>"},destinations:[{label:"View larger map",url:"http://maps.yahoo.com/beta/#mvt=m",args:"&maxp=search&q1=<entity>&mag=5"}],branding:{label:"Yahoo! Local",image_url:"http://us.a2.yimg.com/us.yimg.com/i/us/map/gr/ma_maps-beta_1.gif",url:"http://maps.yahoo.com"},height:330},searchModule:{entity_types:"shortcuts:/",excl_types:/shortcuts:\/.*\/place\/.*\/street/,menu_text:"Search: <entity>",module_type:"overlay.iframe",tab_title:"Search",module_url:{url:"http://fe.shortcuts.search.yahoo.com/search",args:"?p=<entity>&c=<context>&t=<type>"},destinations:[{label:"More Web Results",url:"http://search.yahoo.com/search",args:"?ei=UTF-8&p=<entity>"},{label:"More Images",url:"http://images.search.yahoo.com/search/images",args:"?ei=UTF-8&p=<entity>&vm=r"},{label:"More News Articles",url:"http://news.search.yahoo.com/search/news",args:"?ei=UTF-8&p=<entity>"},{label:"More Answers",url:"http://answers.yahoo.com/search/search_result",args:"?p=<entity>"}],branding:{label:"Yahoo! Search",image_url:"http://us.i1.yimg.com/us.yimg.com/i/us/nt/ma/ma_search_1.gif",url:"http://search.yahoo.com"},suppress_ads:false,height:300}}}this.Modules=A};YAHOO.Shortcuts.getUserPreferences=function(){YAHOO.Shortcuts.Utils.handlePopUpOption("query")};YAHOO.Shortcuts.setWindowProxy=function(A){if(A&&A.document){if(!A.YAHOO){A.YAHOO={}}if(A.YAHOO.Shortcuts&&A.YAHOO.Shortcuts.annotationSet){A.YAHOO.ShortcutsData=A.YAHOO.Shortcuts}else{A.YAHOO.ShortcutsData={annotationSet:{}}}A.YAHOO.Shortcuts=this}};YAHOO.Shortcuts.setConfig=function(A){if(A&&A.annotationSet){for(var B in A){if(A.hasOwnProperty(B)){YAHOO.Shortcuts[B]=A[B]}}}};YAHOO.Shortcuts.backWardCompatibility=function(){if(YAHOO&&YAHOO.LiveWordsExt){YAHOO.ShortcutsExt=YAHOO.LiveWordsExt}if(YAHOO&&YAHOO.LiveWords&&YAHOO.LiveWords.annotationSet){YAHOO.Shortcuts.annotationSet=YAHOO.LiveWords.annotationSet;YAHOO.Shortcuts.hasSensitiveText=YAHOO.LiveWords.hasSensitiveText;YAHOO.Shortcuts.doUlt=YAHOO.LiveWords.doUlt;YAHOO.Shortcuts.location=YAHOO.LiveWords.location;YAHOO.Shortcuts.lang=YAHOO.LiveWords.lang}};YAHOO.Shortcuts.addDocument=function(B,E,D,C,A){B=B||window;E=E||window;this.menuWindow=B;this.setWindowProxy(B);this.globals.entityManager=new YAHOO.Shortcuts.EntityManager(null,this.globals);this.globals.eventTargets={};this.globals.registerAnnotationEventHandlers(B);B.ShortcutsHover=new YAHOO.Shortcuts.Hover(this.globals,this.Utils,this.YUI);B.ShortcutsHover.init(B,D);if(!E.ShortcutsOverlay){E.ShortcutsOverlay=new YAHOO.Shortcuts.Overlay(this.globals,this.Utils,this.YUI,E,D,A)}B.ShortcutsOverlay=E.ShortcutsOverlay};YAHOO.Shortcuts.getCSSRefs=function(){if(window.YAHOO_Shortcuts_isQA){return["http://fe01.livewords.search.sp1.yahoo.com/jq/js/cs_3.5.0.css"]}else{return["http://d.yimg.com/jq/css/cs_3.5.0.css"]}};YAHOO.Shortcuts.prepareDocument=function(){var C=YAHOO.ShortcutsExt.CustomConfiguration;var D=true;if(C&&C.loadCSS==false){D=C.loadCSS}if(D){var B=this.getCSSRefs();for(var A=0;A<B.length;A++){YAHOO.Shortcuts.Utils.insertRef(B[A],false)}}if(C&&typeof C.healthCheckUrl!="undefined"){YAHOO.Shortcuts.Utils.insertRef(C.healthCheckUrl,true)}else{if(YAHOO.ShortcutsExt&&YAHOO.ShortcutsExt.contentReady){YAHOO.Shortcuts.init()}else{YAHOO.Shortcuts.YUI.util.Event.addListener(window,"load",YAHOO.Shortcuts.init,YAHOO.Shortcuts,true)}}};YAHOO.Shortcuts.getEntityManager=function(){return new YAHOO.Shortcuts.EntityManager()};YAHOO.Shortcuts.init=function(A,C,G,F,D,B){var E=YAHOO.Shortcuts;if(E.health){if(E.health.enable==0){return }}if(E.globals){return }E.globals=new YAHOO.Shortcuts.Globals(E,E.annotationSet,E.metaData,E.Modules,"csc_general");E.backWardCompatibility();C=(C&&C.document)?C:window;G=(G&&G.document)?G:window;F=(F&&F.document)?F:window;this.menuWindow=C;this.setWindowProxy(C);E.addDefaultModules();E.getUserPreferences();E.globals.setModules(E.Modules);E.globals.registerAnnotationEventHandlers(C);if(typeof YAHOO.Shortcuts.Hover!="undefined"){C.ShortcutsHover=new YAHOO.Shortcuts.Hover(E.globals,YAHOO.Shortcuts.Utils,YAHOO.Shortcuts.YUI);C.ShortcutsHover.init(C,F)}G.ShortcutsOverlay=new YAHOO.Shortcuts.Overlay(E.globals,E.Utils,E.YUI,G,F,B);C.ShortcutsOverlay=G.ShortcutsOverlay;E.hideOverlay=C.ShortcutsOverlay.hideOverlay;if(E.globals.frcode!="csc_ymailcl"&&E.globals.frcode!="csc_ymailm"){E.globals.ultHandler.send(E.annotationSet,E.globals.frcode,true)}};YAHOO.Shortcuts.checkHealth=function(A){this.health=A;if(A&&A.enable==1){if(YAHOO.ShortcutsExt&&YAHOO.ShortcutsExt.contentReady){YAHOO.Shortcuts.init()}else{YAHOO.Shortcuts.YUI.util.Event.addListener(window,"load",YAHOO.Shortcuts.init,YAHOO.Shortcuts,true)}}};function Messenger(){this.startDetect();return null}Messenger.prototype.installed=0;Messenger.prototype.cobrand="";Messenger.prototype.intl="us";Messenger.prototype.version="4";Messenger.prototype.platform="w32";Messenger.prototype.avn=false;Messenger.prototype.post=[];Messenger.prototype.detect=function(){for(var A=0;A<this.post.length;A++){if(this[this.post[A]]()){break}}this.post=[];return this};Messenger.prototype.startDetect=function(){var A=this.detectCookie();if(!A){A=this.detectBing()}if(!A){A=this.detectRafi()}if(!A){A=this.detectCapabilities()}if(!A){A=this.detectMime()}};Messenger.prototype.getBrowserVersion=function(C,A){var B=C.toLowerCase().indexOf(A);if(B==-1){return }B+=A.length+1;return(C.substring(B))};Messenger.prototype.getPluginVersion=function(A){var B="version ";var C=A.indexOf(B);if(C==-1){return""}return A.substring(C+B.length)};Messenger.prototype.isValidVersion=function(A){if(A.length==0){return false}var B=A.split(".",4);if(B.length==0){return false}for(i=0;i<4;i++){if(isNaN(B[i])){return false}}return true};Messenger.prototype.compareVersion=function(C,B){var D=0;var A=C.split(".");var F=B.split(".");for(i=0;i<4;i++){var E=parseInt(A[i])-parseInt(F[i]);if(E!=0){D=E;break}}return D};Messenger.prototype.detectBrowser=function(A){var B=navigator.userAgent.toLowerCase();if(B.indexOf("opera")!=-1){return(A==0)?"opera":""}else{if(B.indexOf("msie")!=-1){return(A==0)?"ie":""}else{if(B.indexOf("safari")!=-1){return(A==0)?"safari":""}else{if(B.indexOf("flock")!=-1){return(A==0)?"flock":""}else{if(B.indexOf("firefox")!=-1){return(A==0)?"firefox":this.getBrowserVersion(B,"firefox")}else{if(B.indexOf("gecko")!=-1){return(A==0)?"gecko":""}else{return false}}}}}}};Messenger.prototype.addX=function(D){var A="_ymsgr_detector_obj_"+new Date().getTime();while(document.getElementById(A)){A="_ymsgr_detector_obj_"+new Date().getTime()}var C=document.createElement("div");C.id=A;document.body.appendChild(C);var B=document.getElementById(A);B.innerHTML=D};Messenger.prototype.detectMime=function(){if(navigator.mimeTypes&&navigator.mimeTypes.length){for(var A=0;A<navigator.mimeTypes.length;A++){if(navigator.mimeTypes[A].suffixes.indexOf("yps")>-1){this.installed=1;this.version="5.04";this.platform="w32";return true}}}return false};Messenger.prototype.detectCapabilities=function(){if(document.body&&document.body.style&&typeof document.body.style.behavior=="string"){document.body.style.behavior="url(#default#clientCaps)";var A=document.body.getComponentVersion("{E5D12C4E-7B4F-11D3-B5C9-0050045C3C96}","ComponentID");if(A){this.installed=1;this.version=A;this.platform="w32";return true}}return false};Messenger.prototype.detectBing=function(){if(this.detectBrowser(0)=="ie"){this.addX('<object id="Ymsgr02" classid="CLSID:DA4F543C-C8A9-4E88-9A79-548CBB46F18F" hidden="true" width="0" height="0" codebase="tkzwtyzwzi:qwerty"></object>');this.post[this.post.length]="postDetectBing"}};Messenger.prototype.postDetectBing=function(){var B;if(document.all){B=document.all.Ymsgr02}else{B=document.getElementById("Ymsgr02")}if(!B){return false}if(typeof B.installed=="undefined"){return false}if(typeof B.version=="undefined"){return false}this.installed=B.installed();var A=B.version(1);if(!A||typeof A=="undefined"){return false}this.version=A.split(".").join(",");this.cobrand=B.cobrand();this.intl=B.intl();return true};Messenger.prototype.detectRafi=function(){if(!document.getElementById){return false}var E=navigator.plugins["Yahoo Application State Plugin"];if(!E){return false}var C=this.getPluginVersion(E.description);if(this.detectBrowser(0)=="firefox"){var B=this.detectBrowser(1);var D=B.split(".",4);if(D.length==0||D[0].length==0){return false}var A=parseInt(D[0]);if(!isNaN(A)){if(!this.isValidVersion(C)||this.compareVersion(C,"1.0.0.7")<0){this.installed=1;this.version="8.1.0.421";this.platform="w32";this.avn=true;return false}}}this.addX("<object id='Ymsgr03' type='application/x-vnd.yahoo.applicationState' hidden='true'></object>");this.post[this.post.length]="postDetectRafi";return false};Messenger.prototype.postDetectRafi=function(){var C=document.getElementById("Ymsgr03");if(!C){return false}if(typeof C.applicationInfo!="function"){return false}var B=C.applicationInfo("msgr");if(!B){return false}this.installed=B.installed();var A=B.version();this.version=A.major+","+A.minor+","+A.hiBuild+","+A.loBuild;this.cobrand=B.cobrand();this.intl=B.internationalCode();return true};Messenger.prototype.detectCookie=function(){return false};var YAHOO=window.YAHOO||{};if(!YAHOO.ShortcutsExt){YAHOO.ShortcutsExt={}}if(!YAHOO.ShortcutsExt.CustomConfiguration){YAHOO.ShortcutsExt.CustomConfiguration={}}var yscext=YAHOO.ShortcutsExt.CustomConfiguration;yscext.Title="Yahoo! Shortcuts";yscext.seedSetMinSize=2;yscext.conceptMinWeight=3.3;yscext.language="en";yscext.seedSetMaxSize=15;yscext.disableHover=true;yscext.Modules={calltoAction:{name:"calltoAction",preview_content:{html:function(B){var A='<table border="0" cellpadding="0" cellspacing="0" style="margin:3px 6px;">';A+='<tr><td class="icon" style="width:60px;"><img src="http://us.i1.yimg.com/us.yimg.com/i/us/msg/8/beta/pstn_world_60x60_1.gif"></td>';A+='<td class="text"><strong>Call with Yahoo! Messenger:</strong><br><a href="#">'+YAHOO.Shortcuts.Utils.truncateString(B.text,30)+"</a></td></tr>";A+="</table>";return A},type:"inline"},navigational_link:true,entity_types:/shortcuts:\/us\/instance\/identifier\/phone_number\/us/,menu_text:function(C){if(navigator.appVersion.toLowerCase().indexOf("win")!=-1&&navigator.appVersion.toLowerCase().indexOf("safari")==-1&&navigator.userAgent.toLowerCase().indexOf("firefox/3")==-1){var A=new Messenger();var B=A.detect();if(B.installed){return"Call using Yahoo! Messenger"}else{return"Call using Yahoo! Messenger"}}else{return""}},module_js:function(A,D){phoneNr="";goodChars="0123456789+";for(i=0;i<A.length;i++){if(goodChars.indexOf(A.charAt(i))!=-1){phoneNr+=A.charAt(i)}}var B=new Messenger();var C=B.detect();if(C.installed){top.location.href="ymsgr:callphone?"+phoneNr}else{window.open("http://messenger.yahoo.com/")}},module_type:"action.js"},gotoYPropAction:{name:"gotoYPropAction",preview_content:{html:function(F){var D="text-decoration: none; color: #0E46B3; font:11px arial;";var C=(F.metaData&&F.metaData.yprop_name)?F.metaData.yprop_name:F.text;var E=(F.metaData&&F.metaData.yprop_description)?F.metaData.yprop_description:"";var B='<table border="0" cellpadding="0" cellspacing="0">';B+='<tr><td class="icon" style="width:39px;"><img src="http://us.i1.yimg.com/us.yimg.com/i/us/sch/sc/icon_gotoysite.gif"></td>';if(E!=""){var A=90;if(E.length>A){E=E.substring(0,A)+"..."}B+='<td class="text"><div STYLE="margin-bottom: 5px; font:11px arial;">'+E+'</div><a href="#" STYLE="'+D+'">Go to '+C+"</a></td></tr>"}else{B+='<td class="text"><strong>Go to Site:</strong><br><a href="#" STYLE="'+D+'">Go to '+C+"</a></td></tr>"}B+="</table>";return B},type:"inline"},navigational_link:true,entity_types:"shortcuts:/us/instance/organization/company/yahoo_property",menu_text:function(B){if(B&&B.metaData){var A=B.metaData;if(typeof A.length!="undefined"){A=A[0]}if(A.yprop_name!=""){return"Go to "+A.yprop_name}}return""},module_js:function(B,C){if(C&&C.metaData){var A=C.metaData;if(typeof A.length!="undefined"){A=A[0]}if(A.yprop_url!=""){window.open(A.yprop_url)}}},module_type:"action.js"},gotositeAction:{name:"gotositeAction",preview_content:{html:function(B){var A='<table border="0" cellpadding="0" cellspacing="0">';A+='<tr><td class="icon" style="width:39px;"><img src="http://us.i1.yimg.com/us.yimg.com/i/us/sch/sc/icon_gotourl.gif"></td>';A+='<td class="text"><strong>Go to Site:</strong><br><a href="#">'+YAHOO.Shortcuts.Utils.truncateString(B.text,30)+"</a></td></tr>";A+="</table>";return A},type:"inline"},navigational_link:true,entity_types:"shortcuts:/us/place/virtual/web_site",menu_text:"Go to this Site",module_js:function(A){window.open("http://"+A)},module_type:"action.js"},gotoDomainAction:{name:"gotoDomainAction",preview_content:{html:function(B){var A='<table border="0" cellpadding="0" cellspacing="0">';A+='<tr><td class="icon" style="width:39px;"><img src="http://us.i1.yimg.com/us.yimg.com/i/us/sch/sc/icon_gotourl.gif"></td>';A+='<td class="text"><strong>Go to Site:</strong><br><a href="#">'+YAHOO.Shortcuts.Utils.truncateString(B.text,30)+"</a></td></tr>";A+="</table>";return A},type:"inline"},navigational_link:true,entity_types:"shortcuts:/us/instance/organization/domain",menu_text:function(B){if(B&&B.metaData){if(/yahoo_property/.test(B.type.toString())){return""}var A=B.metaData;if(typeof A.length!="undefined"){A=A[0]}if(A.domain_url){return"Go to Site"}}return""},module_js:function(B,C){if(C&&C.metaData){var A=C.metaData;if(typeof A.length!="undefined"){A=A[0]}if(A.domain_url){window.open(A.domain_url)}}},module_type:"action.js"},financeModule:{name:"financeModule",branding:{url:"http://finance.yahoo.com",label:"Yahoo! Finance"},destinations:[{label:"View Company Info",url:"http://finance.yahoo.com/q",args:function(E){var C="?s=";if(/ticker/.test(E.type.toString())){var B=E.text;var D=B.indexOf(":");if(D>=0){B=B.substr(D+1)}C+=B}if(/company_name/.test(E.type.toString())&&E.metaData){var A=E.metaData;if(typeof A.length!="undefined"){A=A[0]}C+=A.symbol}return C}},{label:"View Company Profile",url:"http://finance.yahoo.com/q/pr",args:function(E){var C="?s=";if(/ticker/.test(E.type.toString())){var B=E.text;var D=B.indexOf(":");if(D>=0){B=B.substr(D+1)}C+=B}if(/company_name/.test(E.type.toString())&&E.metaData){var A=E.metaData;if(typeof A.length!="undefined"){A=A[0]}C+=A.symbol}return C}},{label:"View More Company News",url:"http://finance.yahoo.com/q/h",args:function(E){var C="?s=";if(/ticker/.test(E.type.toString())){var B=E.text;var D=B.indexOf(":");if(D>=0){B=B.substr(D+1)}C+=B}if(/company_name/.test(E.type.toString())&&E.metaData){var A=E.metaData;if(typeof A.length!="undefined"){A=A[0]}C+=A.symbol}return C}}],module_url:{url:"http://fe.shortcuts.search.yahoo.com/modules/finance",url_q_a:"http://fe01.livewords.search.sp1.yahoo.com/modules/finance",args:function(C){var B="?symbol=";if(/ticker/.test(C.type.toString())){B+=C.text}else{if(/company_name/.test(C.type.toString())&&C.metaData){var A=C.metaData;if(typeof A.length!="undefined"){A=A[0]}B+=A.symbol}}B+="&range=1d&module=overlay";return B}},menu_text:function(B){if(B&&B.metaData&&B.metaData.nocontent=="true"){return""}if(/ticker/.test(B.type.toString())){return"View Finance"}if(/company_name/.test(B.type.toString())&&B.metaData){var A=B.metaData;if(typeof A.length!="undefined"){A=A[0]}if(A.symbol){return"View Finance"}}return""},embed_content:{height:205,url:"http://fe.shortcuts.search.yahoo.com/modules/finance",width:292,icon:"http://us.i1.yimg.com/us.yimg.com/i/us/shc/gr/ph_finance.gif",url_q_a:"http://fe01.livewords.search.sp1.yahoo.com/modules/finance",type:"iframe",args:function(C){var B="?symbol=";if(/ticker/.test(C.type.toString())){B+=C.text}else{if(/company_name/.test(C.type.toString())&&C.metaData){var A=C.metaData;if(typeof A.length!="undefined"){A=A[0]}B+=A.symbol}}B+="&range=1d&module=embed";return B}},height:330,preview_content:{height:79,url:"http://fe.shortcuts.search.yahoo.com/modules/finance",title:function(E){var D=null;var B=null;if(/ticker/.test(E.type.toString())){D=E.text}if(E.metaData){var A=E.metaData;if(typeof A.length!="undefined"){A=A[0]}if(A.symbol){D=A.symbol}B=A.name||A.canonicalName||E.text}var C=D||E.text;if(B){C+=" - "+B}return C},url_q_a:"http://fe01.livewords.search.sp1.yahoo.com/modules/finance",type:"iframe",args:function(C){var B="?symbol=";if(/ticker/.test(C.type.toString())){B+=C.text}else{if(/company_name/.test(C.type.toString())&&C.metaData){var A=C.metaData;if(typeof A.length!="undefined"){A=A[0]}B+=A.symbol}}B+="&range=1d&module=preview";return B}},entity_types:/shortcuts:\/us\/instance\/organization\/company\/(ticker|company_name)|shortcuts:\/us\/tag\/news\/organization\/ticker/,suppress_ads:false,tab_title:"Finance",module_type:"overlay.iframe"},trackPackageAction:{name:"trackPackageAction",preview_content:{html:function(E){var D=E.type.toString();var B=/(\w+)_tracking/.exec(D);var A="http://us.i1.yimg.com/us.yimg.com/i/us/sch/sc/icon_";if(B&&B[1]){A+=B[1]+".gif"}else{A+="usps.gif"}var C='<table border="0" cellpadding="0" cellspacing="0">';C+='<tr><td class="icon" style="width:39px;"><img src="'+A+'"></td>';C+='<td class="text"><strong>Track Package:</strong><br><a href="#">'+YAHOO.Shortcuts.Utils.truncateString(E.text,30)+"</a></td></tr>";C+="</table>";return C},type:"inline"},navigational_link:true,entity_types:/shortcuts:\/us\/instance\/identifier\/(fedex|ups|usps|dhl)_tracking/,menu_text:function(A){if(A&&A.metaData&&A.metaData.verified=="false"){return""}return"Track Package"},module_js:function(C,D){if(C&&D){var B=D.type.toString();var A=null;if(B.indexOf("ups_tracking")>=0){A="http://wwwapps.ups.com/WebTracking/processInputRequest?sort_by=status&tracknums_displayed=1&TypeOfInquiryNumber=T&loc=en_US&InquiryNumber1="+escape(C)+"&track.x=0&track.y=0"}else{if(B.indexOf("fedex_tracking")>=0){A="http://www.fedex.com/Tracking?action=track&language=english&last_action=alttrack&ascend_header=1&cntry_code=us&initial=x&mps=y&tracknumbers="+escape(C)}else{if(B.indexOf("usps_tracking")>=0){A="http://trkcnfrm1.smi.usps.com/PTSInternetWeb/InterLabelInquiry.do?origTrackNum="+escape(C)}}}if(A){window.open(A)}}},module_type:"action.js"},vinLookupAction:{name:"vinLookupAction",preview_content:{html:function(B){var A='<table border="0" cellpadding="0" cellspacing="0">';A+='<tr><td class="icon" style="width:50px;"><img src="http://us.i1.yimg.com/us.yimg.com/i/us/sch/sc/icon_vin.gif"></td>';A+='<td class="text"><strong>Vehicle History Lookup:</strong><br><a href="#">'+B.text+"</a></td></tr>";A+="</table>";return A},type:"inline"},navigational_link:true,entity_types:/shortcuts:\/us\/instance\/identifier\/vin/,menu_text:function(A){return"Vehicle History Lookup"},module_js:function(B,C){if(B&&C){var A="http://www.autocheck.com/consumers/gatewayAction.do?siteID=1065&vin="+B;window.open(A)}},module_type:"action.js"},isbnSearchAction:{name:"isbnSearchAction",preview_content:{html:function(B){var A='<table border="0" cellpadding="0" cellspacing="0">';A+='<tr><td class="icon" style="width:50px;"><img src="http://us.i1.yimg.com/us.yimg.com/i/us/sch/sc/icon_isbn.gif"></td>';A+='<td class="text"><strong>View Book on Amazon:</strong><br><a href="#">'+B.text+"</a></td></tr>";A+="</table>";return A},type:"inline"},navigational_link:true,entity_types:/shortcuts:\/us\/instance\/identifier\/isbn/,menu_text:function(A){return"ISBN"},module_js:function(B,C){if(B&&C){B=B.replace(/-/g,"");var A="http://www.amazon.com/s/ref=nb_ss_b/102-0227776-3656111?url=search-alias%3Dstripbooks&field-keywords="+B+"&x=0&y=0";window.open(A)}},module_type:"action.js"},mapsModule:{name:"mapsModule",branding:{url:"http://maps.yahoo.com",label:"Yahoo! Maps",image_url:"http://us.a2.yimg.com/us.yimg.com/i/us/map/gr/ma_maps-beta_1.gif"},destinations:[{label:"View larger map",url:"http://maps.yahoo.com/beta/#mvt=m",args:"&maxp=search&q1=<entity>&mag=5"}],module_url:{url:"http://api.maps.yahoo.com/livewords/livewords.php",args:"?entity=<entity>&c=<context>&t=<type>"},menu_text:function(A){if(!A||!A.metaData){return""}if(YAHOO.Shortcuts.YUI.lang.isArray(A.metaData)){if(A.metaData[0]["nomap"]=="true"){return""}}else{if(A.metaData["nomap"]=="true"){return""}}return"View Map"},embed_content:{height:272,url:"http://api.maps.yahoo.com/livewords/livewords.php",width:292,icon:"http://us.i1.yimg.com/us.yimg.com/i/us/shc/gr/ph_maps.gif",type:"iframe",args:"?width=280&height=260&entity=<entity>&c=<context>&t=<type>&m=embed"},height:330,preview_content:{url:"http://fe.shortcuts.search.yahoo.com/modules/maps",title:function(C,B){var A='<table style="width:220px;margin:0;padding:0;"><tr><td nowrap="1" style="font:normal 11px verdana;margin:0;padding:0;">';A+=YAHOO.Shortcuts.Utils.truncateString(C.text,21,true);A+='</td><td style="text-align:right;padding:0;"><a href="#" style="font:normal 11px verdana;color:#00f;text-decoration:underline;">Larger Map</a></td></tr></table>';return A},url_q_a:"http://fe01.livewords.search.sp1.yahoo.com/modules/maps",type:"iframe",args:"?entity=<entity>&c=<context>&t=<type>&m=preview&width=220&height=70"},entity_types:"shortcuts:/us/instance/place/",suppress_ads:false,excl_types:/shortcuts:\/us\/instance\/place\/(hotel|ski_resort|(.*\/)?drainage)/,tab_title:"Maps",module_type:"overlay.iframe"},composeEmailModule:{name:"composeEmailModule",preview_content:{html:function(B){var A='<table border="0" cellpadding="0" cellspacing="0" style="margin:9px 5px 9px 9px;">';A+='<tr><td style="valign:middle;width:39px;"><img src="http://us.i1.yimg.com/us.yimg.com/i/us/shc/gr/icon_composeemail.gif"></td>';A+='<td style="valign:middle;padding-left:10px;"><strong>Compose Email:</strong><br><a href="#">'+YAHOO.Shortcuts.Utils.truncateString(B.text,20,true)+"</a></td></tr>";A+="</table>";return A},type:"inline"},entity_types:/shortcuts:\/us\/instance\/identifier\/(email_address|hyperlink\/mailto)/,module_url:{url:"Compose",args:function(A){if(A&&A.metaData&&typeof A.metaData.linkHref!="undefined"&&A.metaData.linkHref!=""){if(A.metaData.linkHref.indexOf("/ym/Compose?To=")!=-1){email_address=A.metaData.linkHref.slice(A.metaData.linkHref.indexOf("/ym/Compose?To=")+15)}else{if(A.metaData.linkHref.indexOf("mailto:")==0){email_address=A.metaData.linkHref.slice(7)}else{email_address=A.text}}return"?To="+email_address}else{return"?To=<entity>"}}},menu_text:"Compose email to <entity>",module_type:"action"},addressBookModule:{name:"addressBookModule",branding:{url:"http://mail.yahoo.com",label:"Yahoo! Mail",image_url:"http://mail.yahoo.com/logo.png"},suppress_navigation:true,module_url:{url:"http://address.yahoo.com/",url31898:"http://stage.address.yahoo.com/",url_q_a:"http://qa.address.yahoo.com/",args:"?VPC=add_kiosk&entity=<entity>&c=<context>&type=<type>"},menu_text:"Add to Address Book",height:410,preview_content:{html:function(B){var A='<table border="0" cellpadding="0" cellspacing="0" style="margin:9px 4px;">';A+='<tr><td style="valign:middle;width:54px;"><img src="http://us.i1.yimg.com/us.yimg.com/i/us/shc/gr/icon_addaddress.gif"></td>';A+='<td style="valign:middle;padding-left:10px;"><strong>Add to Address Book:</strong><br><a href="#">'+B.text+"</a></td></tr>";A+="</table>";return A},type:"inline"},entity_types:/shortcuts:\/us\/instance\/place\/us\/street|shortcuts:\/us\/instance\/identifier\/(email_address|phone_number\/us|hyperlink\/mailto)/,suppress_ads:true,tab_title:"Address Book",module_type:"overlay.iframe"},calendarAction:{name:"calendarAction",preview_content:{html:function(C){var B="";if(YAHOO.Shortcuts.document_title){B="<strong>"+YAHOO.Shortcuts.Utils.truncateString(YAHOO.Shortcuts.document_title,30)+'</strong><br><font style="font:normal 11px arial;color:#999;">'+C.text+"</font>"}else{B="<strong>"+C.text+"</strong>"}var A='<table border="0" cellpadding="0" cellspacing="0" style="margin:9px 6px;">';A+='<tr><td class="icon" style="width:44px;"><img src="http://us.i1.yimg.com/us.yimg.com/i/us/shc/gr/icon_addcalendar.gif"></td>';A+='<td class="text">'+B+'<br><a href="#">Add to Calendar</a></td></tr>';A+="</table>";return A},type:"inline"},navigational_link:false,entity_types:/shortcuts:\/us\/(instance\/identifier\/(date|time|date_only|date_time|day_of_week|day_of_week_time|month_only|month_year|time_only))/,menu_text:function(A){if(A.metaData&&typeof (A.metaData.past)!="undefined"&&A.metaData.past=="true"){return""}else{return"Add to Calendar"}},module_js:function(A,C,B){if(C&&C.metaData){_CD("shortcuts:addEvent",null,null,{eventInfo:C,shortcutsData:B},window)}},module_type:"action.js"},gotourlAction:{name:"gotourlAction",preview_content:{html:function(B){var A='<table border="0" cellpadding="0" cellspacing="0">';A+='<tr><td class="icon" style="width:39px;"><img src="http://us.i1.yimg.com/us.yimg.com/i/us/sch/sc/icon_gotourl.gif"></td>';A+='<td class="text"><strong>'+YAHOO.Shortcuts.Utils.truncateString(B.text,30)+'</strong><br><a href="#">Go to Site</a></td></tr>';A+="</table>";return A},type:"inline"},navigational_link:true,entity_types:/shortcuts:\/us\/instance\/identifier\/(URL|hyperlink)/,menu_text:function(A){if(A.type.toString().indexOf("shortcuts:/us/instance/identifier/hyperlink")!=-1){if(A.metaData.linkProtocol=="http"){return"Follow this link"}else{return""}}else{return"Follow this link"}},module_js:function(A,B){if(B.type.toString().indexOf("shortcuts:/us/instance/identifier/hyperlink")!=-1&&B.metaData.linkProtocol=="http"){window.open(B.metaData.linkHref)}else{if(A.match(/^https?:\/\//)){window.open(A)}else{window.open("http://"+A)}}},module_type:"action.js"},flickrAction:{name:"flickrAction",preview_content:{height:220,url:"http://fe.shortcuts.search.yahoo.com/modules/flickr",title:false,url_q_a:"http://fe01.livewords.search.sp1.yahoo.com/modules/flickr",type:"iframe",args:"?mode=preview&p=<entity>&c=<context>&t=<type>"},entity_types:"shortcuts:/us/instance/identifier/URL/image/flickr",tab_title:"Flickr",menu_text:function(A){return"View Image"},module_js:function(A,B){if(A){window.open(A)}},module_type:"action.js"},streetSearchModule:{name:"streetSearchModule",entity_types:/shortcuts:\/us\/instance\/place\/us\/street/,module_url:{url:"http://search.yahoo.com/search",open_in_same_window:false,args:function(A){return"?p="+escape(A.text)+"&fr="+YAHOO.Shortcuts.globals.frcode}},menu_text:"Search the Web",module_type:"action"},videoModule:{name:"videoModule",height:370,preview_content:{html:function(B){var A='<table border="0" cellpadding="0" cellspacing="0">';A+='<tr><td class="icon" style="width:34px;"><img src="http://us.i1.yimg.com/us.yimg.com/i/us/shc/gr/playvideo.gif"></td>';A+='<td class="text"><a href="#" style="font-size:12px;font-weight:bold;">Play Video</a><br><em style="color:#029A02;font-size:11px;">'+YAHOO.Shortcuts.Utils.truncateString(B.text,30)+"</em></td></tr>";A+="</table>";return A},type:"inline"},suppress_navigation:false,entity_types:/shortcuts:\/us\/instance\/identifier\/(URL|hyperlink\/http)\/video\/(youtube|google|yahoo|jumpcut)/,width:440,suppress_ads:true,module_url:{url:"http://fe.shortcuts.search.yahoo.com/modules/video",url_q_a:"http://fe01.livewords.search.sp1.yahoo.com/modules/video",args:"?entity=<entity>&c=<context>&t=<type>"},tab_title:"Play Video",menu_text:function(A){if(A.text.match(/video\.yahoo\.com/)&&!A.text.match(/video\.yahoo\.com\/watch/)){return("")}return("Play Video")},module_type:"overlay.iframe"},searchModule:{name:"searchModule",branding:{url:"http://search.yahoo.com",label:"Yahoo! Search",image_url:"http://us.i1.yimg.com/us.yimg.com/i/us/nt/ma/ma_search_1.gif"},destinations:[{label:"More Web Results",url:"http://search.yahoo.com/search",args:"?ei=UTF-8&p=<entity>"},{label:"More Images",url:"http://images.search.yahoo.com/search/images",args:"?ei=UTF-8&p=<entity>&vm=r"},{label:"More News Articles",url:"http://news.search.yahoo.com/search/news",args:"?ei=UTF-8&p=<entity>"},{label:"More Answers",url:"http://answers.yahoo.com/search/search_result",args:"?p=<entity>"}],module_url:{url:"http://fe.shortcuts.search.yahoo.com/search",url_q_a:"http://fe01.livewords.search.sp1.yahoo.com/search",args:"?p=<entity>&forceWikiId=<wiki>&c=<context>&t=<type>&ei=UTF-8"},menu_text:function(D){if(/shortcuts:\/us\/instance\/identifier\/hyperlink/.test(D.type)){var C={home:1,"click here":1,"click here.":1,link:1,previous:1,and:1,a:1,web:1,next:1,page:1,of:1,click:1,site:1,topic:1,to:1,an:1,here:1,website:1,domain:1,the:1,or:1,subscribe:1,unsubscribe:1,end:1,"-":1};var B=D.text.toLowerCase();if(C[B]||/^http:/.test(B)){return""}if(D.metaData&&YAHOO.Shortcuts.Utils.absoluteUrl(D.text)==D.metaData.linkHref){return""}if(D.metaData&&D.metaData.linkProtocol=="mailto"){return""}if(B.length>=80||B.length<=2){return""}var A=B.match(/\s+/g);if(A&&A.length>=9){return""}}return"Search the Web"},height:330,preview_content:{url:"http://fe.shortcuts.search.yahoo.com/conceptapps/searchpreview/searchpreview.php",title:function(A){return""},url_q_a:"http://fe01.livewords.search.sp1.yahoo.com/conceptapps/searchpreview/searchpreview.php",type:"iframe",args:"?p=<entity>&mode=preview"},entity_types:"shortcuts:/",suppress_ads:false,excl_types:/shortcuts:\/.*\/place\/.*\/street|shortcuts:\/.*\/place\/.*\/zip|shortcuts:\/us\/instance\/identifier\/(URL|phone_number|email_address|date_only|date_time|day_of_week|day_of_week_time|month_only|month_year|time_only|vin|.+_tracking|isbn|hyperlink)|shortcuts:\/us\/instance\/organization\/domain|shortcuts:\/.*\/web_site/,tab_title:"Web",module_type:"overlay.iframe"},newsModule:{name:"newsModule",branding:{url:"http://news.yahoo.com",label:"Yahoo! News"},server_validation:"qc",destinations:[{label:"More News Results",url:"http://news.search.yahoo.com/search/news",args:"?ei=UTF-8&p=<entity>"}],module_url:{url:"http://fe.shortcuts.search.yahoo.com/modules/news",url_q_a:"http://fe01.livewords.search.sp1.yahoo.com/modules/news",args:"?p=<entity>"},menu_text:"News",height:330,preview_content:{url:"http://fe.shortcuts.search.yahoo.com/modules/news",title:function(A){if(A.text.length<=20){return("<b>"+A.text+"</b>")}else{return("<b>"+A.text.substring(0,19)+"...</b>")}},url_q_a:"http://fe01.livewords.search.sp1.yahoo.com/modules/news",type:"iframe",args:"?p=<entity>&mode=preview"},entity_types:"shortcuts:/",suppress_ads:false,excl_types:"shortcuts:/us/instance/other/historic|shortcuts:/.*/place/.*/street|shortcuts:/.*/place/.*/zip|shortcuts:/.*/place/.*/web_site|shortcuts:/us/instance/identifier/(URL|phone_number|email_address|date_only|date_time|day_of_week|day_of_week_time|month_only|month_year|time_only|vin|.+_tracking|isbn)|shortcuts:/us/instance/identifier/hyperlink|shortcuts:/us/instance/organization/domain",tab_title:"News",module_type:"overlay.iframe"}};yscext.about='<h3>About Yahoo! Shortcuts</h3>The Yahoo! Shortcuts feature automatically finds and underlines helpful items in the article you are currently reading.  When you see a Shortcut, point and click to perform an action: view a map or travel guide for a particular destination, do a web search, and more &mdash; without leaving your current page.</br><br/><h3>What Gets Underlined</h3>Yahoo! Shortcuts currently exist for <b>travel destinations</b>, <b>places</b>, and other <b>things of interest</b>. More will be coming soon...<br/><br/>pop_up_option<br/><br/><h3>Send Feedback</h3>Comments? Suggestions? Help us improve Yahoo! Shortcuts by <a href="javascript:void(0);" onclick="YAHOO.Shortcuts.globals.openFeedbackWindow(\'http://fe.shortcuts.search.yahoo.com/modules/feedback\');">sending us your feedback.</a>';yscext.otherMinWeight=0.75;yscext.enableClickSearch=false;yscext.location="us";yscext.isEntityVisible=function(A){return(1)};yscext.enableDynamicHighlighting=true;yscext.healthCheckUrl="http://d.yimg.com/jq/hc/ysc_csc_health_check.js";yscext.frcode="csc_general";var lwHelpUrl=yscext.HelpUrl||"";yscext.tooltip="Why was this underlined? Get help. Send feedback ...";yscext.closeTooltip="Close";yscext.glue={moduleUrl:"http://fe.shortcuts.search.yahoo.com/modules/glue",moreUrl:"http://glue.yahoo.com/?query=<entity>&fr=csc_general",hideOnFail:true,label:"Yahoo! Glue",exclude:{}};yscext.enableRelatedEntities=false;yscext.enableDitto=true;yscext.sampleSize=0;YAHOO.Shortcuts.prepareDocument();