/* Copyright (c) 2008 Yahoo! Inc. All rights reserved. */
if(typeof YAHOO=="undefined"||!YAHOO){var YAHOO={}}YAHOO.namespace=function(){var A=arguments,E=null,C,B,D;for(C=0;C<A.length;C=C+1){D=A[C].split(".");E=YAHOO;for(B=(D[0]=="YAHOO")?1:0;B<D.length;B=B+1){E[D[B]]=E[D[B]]||{};E=E[D[B]]}}return E};YAHOO.log=function(D,A,C){var B=YAHOO.widget.Logger;if(B&&B.log){return B.log(D,A,C)}else{return false}};YAHOO.register=function(A,E,D){var I=YAHOO.env.modules;if(!I[A]){I[A]={versions:[],builds:[]}}var B=I[A],H=D.version,G=D.build,F=YAHOO.env.listeners;B.name=A;B.version=H;B.build=G;B.versions.push(H);B.builds.push(G);B.mainClass=E;for(var C=0;C<F.length;C=C+1){F[C](B)}if(E){E.VERSION=H;E.BUILD=G}};YAHOO.env=YAHOO.env||{modules:[],listeners:[]};YAHOO.env.getVersion=function(A){return YAHOO.env.modules[A]||null};YAHOO.env.ua=function(){var C={ie:0,opera:0,gecko:0,webkit:0,mobile:null};var B=navigator.userAgent,A;if((/KHTML/).test(B)){C.webkit=1}A=B.match(/AppleWebKit\/([^\s]*)/);if(A&&A[1]){C.webkit=parseFloat(A[1]);if(/ Mobile\//.test(B)){C.mobile="Apple"}else{A=B.match(/NokiaN[^\/]*/);if(A){C.mobile=A[0]}}}if(!C.webkit){A=B.match(/Opera[\s\/]([^\s]*)/);if(A&&A[1]){C.opera=parseFloat(A[1]);A=B.match(/Opera Mini[^;]*/);if(A){C.mobile=A[0]}}else{A=B.match(/MSIE\s([^;]*)/);if(A&&A[1]){C.ie=parseFloat(A[1])}else{A=B.match(/Gecko\/([^\s]*)/);if(A){C.gecko=1;A=B.match(/rv:([^\s\)]*)/);if(A&&A[1]){C.gecko=parseFloat(A[1])}}}}}return C}();(function(){YAHOO.namespace("util","widget","example");if("undefined"!==typeof YAHOO_config){var B=YAHOO_config.listener,A=YAHOO.env.listeners,D=true,C;if(B){for(C=0;C<A.length;C=C+1){if(A[C]==B){D=false;break}}if(D){A.push(B)}}}})();YAHOO.lang=YAHOO.lang||{isArray:function(B){if(B){var A=YAHOO.lang;return A.isNumber(B.length)&&A.isFunction(B.splice)}return false},isBoolean:function(A){return typeof A==="boolean"},isFunction:function(A){return typeof A==="function"},isNull:function(A){return A===null},isNumber:function(A){return typeof A==="number"&&isFinite(A)},isObject:function(A){return(A&&(typeof A==="object"||YAHOO.lang.isFunction(A)))||false},isString:function(A){return typeof A==="string"},isUndefined:function(A){return typeof A==="undefined"},hasOwnProperty:function(A,B){if(Object.prototype.hasOwnProperty){return A.hasOwnProperty(B)}return !YAHOO.lang.isUndefined(A[B])&&A.constructor.prototype[B]!==A[B]},_IEEnumFix:function(C,B){if(YAHOO.env.ua.ie){var E=["toString","valueOf"],A;for(A=0;A<E.length;A=A+1){var F=E[A],D=B[F];if(YAHOO.lang.isFunction(D)&&D!=Object.prototype[F]){C[F]=D}}}},extend:function(D,E,C){if(!E||!D){throw new Error("YAHOO.lang.extend failed, please check that all dependencies are included.")}var B=function(){};B.prototype=E.prototype;D.prototype=new B();D.prototype.constructor=D;D.superclass=E.prototype;if(E.prototype.constructor==Object.prototype.constructor){E.prototype.constructor=E}if(C){for(var A in C){D.prototype[A]=C[A]}YAHOO.lang._IEEnumFix(D.prototype,C)}},augmentObject:function(E,D){if(!D||!E){throw new Error("Absorb failed, verify dependencies.")}var A=arguments,C,F,B=A[2];if(B&&B!==true){for(C=2;C<A.length;C=C+1){E[A[C]]=D[A[C]]}}else{for(F in D){if(B||!E[F]){E[F]=D[F]}}YAHOO.lang._IEEnumFix(E,D)}},augmentProto:function(D,C){if(!C||!D){throw new Error("Augment failed, verify dependencies.")}var A=[D.prototype,C.prototype];for(var B=2;B<arguments.length;B=B+1){A.push(arguments[B])}YAHOO.lang.augmentObject.apply(this,A)},trim:function(A){try{return A.replace(/^\s+|\s+$/g,"")}catch(B){return A}},merge:function(){var D={},B=arguments;for(var C=0,A=B.length;C<A;C=C+1){YAHOO.lang.augmentObject(D,B[C],true)}return D},later:function(H,B,I,D,E){H=H||0;B=B||{};var C=I,G=D,F,A;if(YAHOO.lang.isString(I)){C=B[I]}if(!C){throw new TypeError("method undefined")}if(!YAHOO.lang.isArray(G)){G=[D]}F=function(){C.apply(B,G)};A=(E)?setInterval(F,H):setTimeout(F,H);return{interval:E,cancel:function(){if(this.interval){clearInterval(A)}else{clearTimeout(A)}}}},isValue:function(B){var A=YAHOO.lang;return(A.isObject(B)||A.isString(B)||A.isNumber(B)||A.isBoolean(B))}};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.5.0",build:"895"});(function(){var B=YAHOO.util,K,I,J={},F={},M=window.document;YAHOO.env._id_counter=YAHOO.env._id_counter||0;var C=YAHOO.env.ua.opera,L=YAHOO.env.ua.webkit,A=YAHOO.env.ua.gecko,G=YAHOO.env.ua.ie;var E={HYPHEN:/(-[a-z])/i,ROOT_TAG:/^body|html$/i};var N=function(P){if(!E.HYPHEN.test(P)){return P}if(J[P]){return J[P]}var Q=P;while(E.HYPHEN.exec(Q)){Q=Q.replace(RegExp.$1,RegExp.$1.substr(1).toUpperCase())}J[P]=Q;return Q};var O=function(Q){var P=F[Q];if(!P){P=new RegExp("(?:^|\\s+)"+Q+"(?:\\s+|$)");F[Q]=P}return P};if(M.defaultView&&M.defaultView.getComputedStyle){K=function(P,S){var R=null;if(S=="float"){S="cssFloat"}var Q=M.defaultView.getComputedStyle(P,"");if(Q){R=Q[N(S)]}return P.style[S]||R}}else{if(M.documentElement.currentStyle&&G){K=function(P,R){switch(N(R)){case"opacity":var T=100;try{T=P.filters["DXImageTransform.Microsoft.Alpha"].opacity}catch(S){try{T=P.filters("alpha").opacity}catch(S){}}return T/100;case"float":R="styleFloat";default:var Q=P.currentStyle?P.currentStyle[R]:null;return(P.style[R]||Q)}}}else{K=function(P,Q){return P.style[Q]}}}if(G){I=function(P,Q,R){switch(Q){case"opacity":if(YAHOO.lang.isString(P.style.filter)){P.style.filter="alpha(opacity="+R*100+")";if(!P.currentStyle||!P.currentStyle.hasLayout){P.style.zoom=1}}break;case"float":Q="styleFloat";default:P.style[Q]=R}}}else{I=function(P,Q,R){if(Q=="float"){Q="cssFloat"}P.style[Q]=R}}var D=function(P,Q){return P&&P.nodeType==1&&(!Q||Q(P))};YAHOO.util.Dom={get:function(R){if(R&&(R.nodeType||R.item)){return R}if(YAHOO.lang.isString(R)||!R){return M.getElementById(R)}if(R.length!==undefined){var S=[];for(var Q=0,P=R.length;Q<P;++Q){S[S.length]=B.Dom.get(R[Q])}return S}return R},getStyle:function(P,R){R=N(R);var Q=function(S){return K(S,R)};return B.Dom.batch(P,Q,B.Dom,true)},setStyle:function(P,R,S){R=N(R);var Q=function(T){I(T,R,S)};B.Dom.batch(P,Q,B.Dom,true)},getXY:function(P){var Q=function(R){if((R.parentNode===null||R.offsetParent===null||this.getStyle(R,"display")=="none")&&R!=R.ownerDocument.body){return false}return H(R)};return B.Dom.batch(P,Q,B.Dom,true)},getX:function(P){var Q=function(R){return B.Dom.getXY(R)[0]};return B.Dom.batch(P,Q,B.Dom,true)},getY:function(P){var Q=function(R){return B.Dom.getXY(R)[1]};return B.Dom.batch(P,Q,B.Dom,true)},setXY:function(P,S,R){var Q=function(V){var U=this.getStyle(V,"position");if(U=="static"){this.setStyle(V,"position","relative");U="relative"}var X=this.getXY(V);if(X===false){return false}var W=[parseInt(this.getStyle(V,"left"),10),parseInt(this.getStyle(V,"top"),10)];if(isNaN(W[0])){W[0]=(U=="relative")?0:V.offsetLeft}if(isNaN(W[1])){W[1]=(U=="relative")?0:V.offsetTop}if(S[0]!==null){V.style.left=S[0]-X[0]+W[0]+"px"}if(S[1]!==null){V.style.top=S[1]-X[1]+W[1]+"px"}if(!R){var T=this.getXY(V);if((S[0]!==null&&T[0]!=S[0])||(S[1]!==null&&T[1]!=S[1])){this.setXY(V,S,true)}}};B.Dom.batch(P,Q,B.Dom,true)},setX:function(Q,P){B.Dom.setXY(Q,[P,null])},setY:function(P,Q){B.Dom.setXY(P,[null,Q])},getRegion:function(P){var Q=function(R){if((R.parentNode===null||R.offsetParent===null||this.getStyle(R,"display")=="none")&&R!=M.body){return false}var S=B.Region.getRegion(R);return S};return B.Dom.batch(P,Q,B.Dom,true)},getClientWidth:function(){return B.Dom.getViewportWidth()},getClientHeight:function(){return B.Dom.getViewportHeight()},getElementsByClassName:function(T,X,U,V){X=X||"*";U=(U)?B.Dom.get(U):null||M;if(!U){return[]}var Q=[],P=U.getElementsByTagName(X),W=O(T);for(var R=0,S=P.length;R<S;++R){if(W.test(P[R].className)){Q[Q.length]=P[R];if(V){V.call(P[R],P[R])}}}return Q},hasClass:function(R,Q){var P=O(Q);var S=function(T){return P.test(T.className)};return B.Dom.batch(R,S,B.Dom,true)},addClass:function(Q,P){var R=function(S){if(this.hasClass(S,P)){return false}S.className=YAHOO.lang.trim([S.className,P].join(" "));return true};return B.Dom.batch(Q,R,B.Dom,true)},removeClass:function(R,Q){var P=O(Q);var S=function(T){if(!Q||!this.hasClass(T,Q)){return false}var U=T.className;T.className=U.replace(P," ");if(this.hasClass(T,Q)){this.removeClass(T,Q)}T.className=YAHOO.lang.trim(T.className);return true};return B.Dom.batch(R,S,B.Dom,true)},replaceClass:function(S,Q,P){if(!P||Q===P){return false}var R=O(Q);var T=function(U){if(!this.hasClass(U,Q)){this.addClass(U,P);return true}U.className=U.className.replace(R," "+P+" ");if(this.hasClass(U,Q)){this.replaceClass(U,Q,P)}U.className=YAHOO.lang.trim(U.className);return true};return B.Dom.batch(S,T,B.Dom,true)},generateId:function(P,R){R=R||"yui-gen";var Q=function(S){if(S&&S.id){return S.id}var T=R+YAHOO.env._id_counter++;if(S){S.id=T}return T};return B.Dom.batch(P,Q,B.Dom,true)||Q.apply(B.Dom,arguments)},isAncestor:function(P,Q){P=B.Dom.get(P);Q=B.Dom.get(Q);if(!P||!Q){return false}if(P.contains&&Q.nodeType&&!L){return P.contains(Q)}else{if(P.compareDocumentPosition&&Q.nodeType){return !!(P.compareDocumentPosition(Q)&16)}else{if(Q.nodeType){return !!this.getAncestorBy(Q,function(R){return R==P})}}}return false},inDocument:function(P){return this.isAncestor(M.documentElement,P)},getElementsBy:function(W,Q,R,T){Q=Q||"*";R=(R)?B.Dom.get(R):null||M;if(!R){return[]}var S=[],V=R.getElementsByTagName(Q);for(var U=0,P=V.length;U<P;++U){if(W(V[U])){S[S.length]=V[U];if(T){T(V[U])}}}return S},batch:function(T,W,V,R){T=(T&&(T.tagName||T.item))?T:B.Dom.get(T);if(!T||!W){return false}var S=(R)?V:window;if(T.tagName||T.length===undefined){return W.call(S,T,V)}var U=[];for(var Q=0,P=T.length;Q<P;++Q){U[U.length]=W.call(S,T[Q],V)}return U},getDocumentHeight:function(){var Q=(M.compatMode!="CSS1Compat")?M.body.scrollHeight:M.documentElement.scrollHeight;var P=Math.max(Q,B.Dom.getViewportHeight());return P},getDocumentWidth:function(){var Q=(M.compatMode!="CSS1Compat")?M.body.scrollWidth:M.documentElement.scrollWidth;var P=Math.max(Q,B.Dom.getViewportWidth());return P},getViewportHeight:function(){var P=self.innerHeight;var Q=M.compatMode;if((Q||G)&&!C){P=(Q=="CSS1Compat")?M.documentElement.clientHeight:M.body.clientHeight}return P},getViewportWidth:function(){var P=self.innerWidth;var Q=M.compatMode;if(Q||G){P=(Q=="CSS1Compat")?M.documentElement.clientWidth:M.body.clientWidth}return P},getAncestorBy:function(P,Q){while(P=P.parentNode){if(D(P,Q)){return P}}return null},getAncestorByClassName:function(Q,P){Q=B.Dom.get(Q);if(!Q){return null}var R=function(S){return B.Dom.hasClass(S,P)};return B.Dom.getAncestorBy(Q,R)},getAncestorByTagName:function(Q,P){Q=B.Dom.get(Q);if(!Q){return null}var R=function(S){return S.tagName&&S.tagName.toUpperCase()==P.toUpperCase()};return B.Dom.getAncestorBy(Q,R)},getPreviousSiblingBy:function(P,Q){while(P){P=P.previousSibling;if(D(P,Q)){return P}}return null},getPreviousSibling:function(P){P=B.Dom.get(P);if(!P){return null}return B.Dom.getPreviousSiblingBy(P)},getNextSiblingBy:function(P,Q){while(P){P=P.nextSibling;if(D(P,Q)){return P}}return null},getNextSibling:function(P){P=B.Dom.get(P);if(!P){return null}return B.Dom.getNextSiblingBy(P)},getFirstChildBy:function(P,R){var Q=(D(P.firstChild,R))?P.firstChild:null;return Q||B.Dom.getNextSiblingBy(P.firstChild,R)},getFirstChild:function(P,Q){P=B.Dom.get(P);if(!P){return null}return B.Dom.getFirstChildBy(P)},getLastChildBy:function(P,R){if(!P){return null}var Q=(D(P.lastChild,R))?P.lastChild:null;return Q||B.Dom.getPreviousSiblingBy(P.lastChild,R)},getLastChild:function(P){P=B.Dom.get(P);return B.Dom.getLastChildBy(P)},getChildrenBy:function(Q,S){var R=B.Dom.getFirstChildBy(Q,S);var P=R?[R]:[];B.Dom.getNextSiblingBy(R,function(T){if(!S||S(T)){P[P.length]=T}return false});return P},getChildren:function(P){P=B.Dom.get(P);if(!P){}return B.Dom.getChildrenBy(P)},getDocumentScrollLeft:function(P){P=P||M;return Math.max(P.documentElement.scrollLeft,P.body.scrollLeft)},getDocumentScrollTop:function(P){P=P||M;return Math.max(P.documentElement.scrollTop,P.body.scrollTop)},insertBefore:function(Q,P){Q=B.Dom.get(Q);P=B.Dom.get(P);if(!Q||!P||!P.parentNode){return null}return P.parentNode.insertBefore(Q,P)},insertAfter:function(Q,P){Q=B.Dom.get(Q);P=B.Dom.get(P);if(!Q||!P||!P.parentNode){return null}if(P.nextSibling){return P.parentNode.insertBefore(Q,P.nextSibling)}else{return P.parentNode.appendChild(Q)}},getClientRegion:function(){var R=B.Dom.getDocumentScrollTop(),Q=B.Dom.getDocumentScrollLeft(),S=B.Dom.getViewportWidth()+Q,P=B.Dom.getViewportHeight()+R;return new B.Region(R,S,P,Q)}};var H=function(){if(M.documentElement.getBoundingClientRect){return function(Q){var R=Q.getBoundingClientRect();var P=Q.ownerDocument;return[R.left+B.Dom.getDocumentScrollLeft(P),R.top+B.Dom.getDocumentScrollTop(P)]}}else{return function(R){var S=[R.offsetLeft,R.offsetTop];var Q=R.offsetParent;var P=(L&&B.Dom.getStyle(R,"position")=="absolute"&&R.offsetParent==R.ownerDocument.body);if(Q!=R){while(Q){S[0]+=Q.offsetLeft;S[1]+=Q.offsetTop;if(!P&&L&&B.Dom.getStyle(Q,"position")=="absolute"){P=true}Q=Q.offsetParent}}if(P){S[0]-=R.ownerDocument.body.offsetLeft;S[1]-=R.ownerDocument.body.offsetTop}Q=R.parentNode;while(Q.tagName&&!E.ROOT_TAG.test(Q.tagName)){if(B.Dom.getStyle(Q,"display").search(/^inline|table-row.*$/i)){S[0]-=Q.scrollLeft;S[1]-=Q.scrollTop}Q=Q.parentNode}return S}}}()})();YAHOO.util.Region=function(C,D,A,B){this.top=C;this[1]=C;this.right=D;this.bottom=A;this.left=B;this[0]=B};YAHOO.util.Region.prototype.contains=function(A){return(A.left>=this.left&&A.right<=this.right&&A.top>=this.top&&A.bottom<=this.bottom)};YAHOO.util.Region.prototype.getArea=function(){return((this.bottom-this.top)*(this.right-this.left))};YAHOO.util.Region.prototype.intersect=function(E){var C=Math.max(this.top,E.top);var D=Math.min(this.right,E.right);var A=Math.min(this.bottom,E.bottom);var B=Math.max(this.left,E.left);if(A>=C&&D>=B){return new YAHOO.util.Region(C,D,A,B)}else{return null}};YAHOO.util.Region.prototype.union=function(E){var C=Math.min(this.top,E.top);var D=Math.max(this.right,E.right);var A=Math.max(this.bottom,E.bottom);var B=Math.min(this.left,E.left);return new YAHOO.util.Region(C,D,A,B)};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(D){var F=YAHOO.util.Dom.getXY(D);var C=F[1];var E=F[0]+D.offsetWidth;var A=F[1]+D.offsetHeight;var B=F[0];return new YAHOO.util.Region(C,E,A,B)};YAHOO.util.Point=function(A,B){if(YAHOO.lang.isArray(A)){B=A[1];A=A[0]}this.x=this.right=this.left=this[0]=A;this.y=this.top=this.bottom=this[1]=B};YAHOO.util.Point.prototype=new YAHOO.util.Region();YAHOO.register("dom",YAHOO.util.Dom,{version:"2.5.0",build:"895"});YAHOO.util.CustomEvent=function(D,B,C,A){this.type=D;this.scope=B||window;this.silent=C;this.signature=A||YAHOO.util.CustomEvent.LIST;this.subscribers=[];var E="_YUICEOnSubscribe";if(D!==E){this.subscribeEvent=new YAHOO.util.CustomEvent(E,this,true)}this.lastError=null};YAHOO.util.CustomEvent.LIST=0;YAHOO.util.CustomEvent.FLAT=1;YAHOO.util.CustomEvent.prototype={subscribe:function(B,C,A){if(!B){throw new Error("Invalid callback for subscriber to '"+this.type+"'")}if(this.subscribeEvent){this.subscribeEvent.fire(B,C,A)}this.subscribers.push(new YAHOO.util.Subscriber(B,C,A))},unsubscribe:function(D,F){if(!D){return this.unsubscribeAll()}var E=false;for(var B=0,A=this.subscribers.length;B<A;++B){var C=this.subscribers[B];if(C&&C.contains(D,F)){this._delete(B);E=true}}return E},fire:function(){var D=this.subscribers.length;if(!D&&this.silent){return true}var H=[],F=true,C,I=false;for(C=0;C<arguments.length;++C){H.push(arguments[C])}for(C=0;C<D;++C){var L=this.subscribers[C];if(!L){I=true}else{var K=L.getScope(this.scope);if(this.signature==YAHOO.util.CustomEvent.FLAT){var A=null;if(H.length>0){A=H[0]}try{F=L.fn.call(K,A,L.obj)}catch(E){this.lastError=E}}else{try{F=L.fn.call(K,this.type,H,L.obj)}catch(G){this.lastError=G}}if(false===F){return false}}}if(I){var J=[],B=this.subscribers;for(C=0,D=B.length;C<D;C=C+1){J.push(B[C])}this.subscribers=J}return true},unsubscribeAll:function(){for(var B=0,A=this.subscribers.length;B<A;++B){this._delete(A-1-B)}this.subscribers=[];return B},_delete:function(A){var B=this.subscribers[A];if(B){delete B.fn;delete B.obj}this.subscribers[A]=null}};YAHOO.util.Subscriber=function(B,C,A){this.fn=B;this.obj=YAHOO.lang.isUndefined(C)?null:C;this.override=A};YAHOO.util.Subscriber.prototype.getScope=function(A){if(this.override){if(this.override===true){return this.obj}else{return this.override}}return A};YAHOO.util.Subscriber.prototype.contains=function(A,B){if(B){return(this.fn==A&&this.obj==B)}else{return(this.fn==A)}};if(!YAHOO.util.Event){YAHOO.util.Event=function(){var H=false;var I=[];var J=[];var G=[];var E=[];var C=0;var F=[];var B=[];var A=0;var D={63232:38,63233:40,63234:37,63235:39,63276:33,63277:34,25:9};return{POLL_RETRYS:2000,POLL_INTERVAL:20,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 K=this;var L=function(){K._tryPreloadAttach()};this._interval=setInterval(L,this.POLL_INTERVAL)}},onAvailable:function(P,M,Q,O,N){var K=(YAHOO.lang.isString(P))?[P]:P;for(var L=0;L<K.length;L=L+1){F.push({id:K[L],fn:M,obj:Q,override:O,checkReady:N})}C=this.POLL_RETRYS;this.startInterval()},onContentReady:function(M,K,N,L){this.onAvailable(M,K,N,L,true)},onDOMReady:function(K,M,L){if(this.DOMReady){setTimeout(function(){var N=window;if(L){if(L===true){N=M}else{N=L}}K.call(N,"DOMReady",[],M)},0)}else{this.DOMReadyEvent.subscribe(K,M,L)}},addListener:function(M,K,V,Q,L){if(!V||!V.call){return false}if(this._isValidCollection(M)){var W=true;for(var R=0,T=M.length;R<T;++R){W=this.on(M[R],K,V,Q,L)&&W}return W}else{if(YAHOO.lang.isString(M)){var P=this.getEl(M);if(P){M=P}else{this.onAvailable(M,function(){YAHOO.util.Event.on(M,K,V,Q,L)});return true}}}if(!M){return false}if("unload"==K&&Q!==this){J[J.length]=[M,K,V,Q,L];return true}var Y=M;if(L){if(L===true){Y=Q}else{Y=L}}var N=function(Z){return V.call(Y,YAHOO.util.Event.getEvent(Z,M),Q)};var X=[M,K,V,N,Y,Q,L];var S=I.length;I[S]=X;if(this.useLegacyEvent(M,K)){var O=this.getLegacyIndex(M,K);if(O==-1||M!=G[O][0]){O=G.length;B[M.id+K]=O;G[O]=[M,K,M["on"+K]];E[O]=[];M["on"+K]=function(Z){YAHOO.util.Event.fireLegacyEvent(YAHOO.util.Event.getEvent(Z),O)}}E[O].push(X)}else{try{this._simpleAdd(M,K,N,false)}catch(U){this.lastError=U;this.removeListener(M,K,V);return false}}return true},fireLegacyEvent:function(O,M){var Q=true,K,S,R,T,P;S=E[M];for(var L=0,N=S.length;L<N;++L){R=S[L];if(R&&R[this.WFN]){T=R[this.ADJ_SCOPE];P=R[this.WFN].call(T,O);Q=(Q&&P)}}K=G[M];if(K&&K[2]){K[2](O)}return Q},getLegacyIndex:function(L,M){var K=this.generateId(L)+M;if(typeof B[K]=="undefined"){return -1}else{return B[K]}},useLegacyEvent:function(L,M){if(this.webkit&&("click"==M||"dblclick"==M)){var K=parseInt(this.webkit,10);if(!isNaN(K)&&K<418){return true}}return false},removeListener:function(L,K,T){var O,R,V;if(typeof L=="string"){L=this.getEl(L)}else{if(this._isValidCollection(L)){var U=true;for(O=0,R=L.length;O<R;++O){U=(this.removeListener(L[O],K,T)&&U)}return U}}if(!T||!T.call){return this.purgeElement(L,false,K)}if("unload"==K){for(O=0,R=J.length;O<R;O++){V=J[O];if(V&&V[0]==L&&V[1]==K&&V[2]==T){J[O]=null;return true}}return false}var P=null;var Q=arguments[3];if("undefined"===typeof Q){Q=this._getCacheIndex(L,K,T)}if(Q>=0){P=I[Q]}if(!L||!P){return false}if(this.useLegacyEvent(L,K)){var N=this.getLegacyIndex(L,K);var M=E[N];if(M){for(O=0,R=M.length;O<R;++O){V=M[O];if(V&&V[this.EL]==L&&V[this.TYPE]==K&&V[this.FN]==T){M[O]=null;break}}}}else{try{this._simpleRemove(L,K,P[this.WFN],false)}catch(S){this.lastError=S;return false}}delete I[Q][this.WFN];delete I[Q][this.FN];I[Q]=null;return true},getTarget:function(M,L){var K=M.target||M.srcElement;return this.resolveTextNode(K)},resolveTextNode:function(L){try{if(L&&3==L.nodeType){return L.parentNode}}catch(K){}return L},getPageX:function(L){var K=L.pageX;if(!K&&0!==K){K=L.clientX||0;if(this.isIE){K+=this._getScrollLeft()}}return K},getPageY:function(K){var L=K.pageY;if(!L&&0!==L){L=K.clientY||0;if(this.isIE){L+=this._getScrollTop()}}return L},getXY:function(K){return[this.getPageX(K),this.getPageY(K)]},getRelatedTarget:function(L){var K=L.relatedTarget;if(!K){if(L.type=="mouseout"){K=L.toElement}else{if(L.type=="mouseover"){K=L.fromElement}}}return this.resolveTextNode(K)},getTime:function(M){if(!M.time){var L=new Date().getTime();try{M.time=L}catch(K){this.lastError=K;return L}}return M.time},stopEvent:function(K){this.stopPropagation(K);this.preventDefault(K)},stopPropagation:function(K){if(K.stopPropagation){K.stopPropagation()}else{K.cancelBubble=true}},preventDefault:function(K){if(K.preventDefault){K.preventDefault()}else{K.returnValue=false}},getEvent:function(M,K){var L=M||window.event;if(!L){var N=this.getEvent.caller;while(N){L=N.arguments[0];if(L&&Event==L.constructor){break}N=N.caller}}return L},getCharCode:function(L){var K=L.keyCode||L.charCode||0;if(YAHOO.env.ua.webkit&&(K in D)){K=D[K]}return K},_getCacheIndex:function(O,P,N){for(var M=0,L=I.length;M<L;++M){var K=I[M];if(K&&K[this.FN]==N&&K[this.EL]==O&&K[this.TYPE]==P){return M}}return -1},generateId:function(K){var L=K.id;if(!L){L="yuievtautoid-"+A;++A;K.id=L}return L},_isValidCollection:function(L){try{return(L&&typeof L!=="string"&&L.length&&!L.tagName&&!L.alert&&typeof L[0]!=="undefined")}catch(K){return false}},elCache:{},getEl:function(K){return(typeof K==="string")?document.getElementById(K):K},clearCache:function(){},DOMReadyEvent:new YAHOO.util.CustomEvent("DOMReady",this),_load:function(L){if(!H){H=true;var K=YAHOO.util.Event;K._ready();K._tryPreloadAttach()}},_ready:function(L){var K=YAHOO.util.Event;if(!K.DOMReady){K.DOMReady=true;K.DOMReadyEvent.fire();K._simpleRemove(document,"DOMContentLoaded",K._ready)}},_tryPreloadAttach:function(){if(this.locked){return false}if(this.isIE){if(!this.DOMReady){this.startInterval();return false}}this.locked=true;var P=!H;if(!P){P=(C>0)}var O=[];var Q=function(S,T){var R=S;if(T.override){if(T.override===true){R=T.obj}else{R=T.override}}T.fn.call(R,T.obj)};var L,K,N,M;for(L=0,K=F.length;L<K;++L){N=F[L];if(N&&!N.checkReady){M=this.getEl(N.id);if(M){Q(M,N);F[L]=null}else{O.push(N)}}}for(L=0,K=F.length;L<K;++L){N=F[L];if(N&&N.checkReady){M=this.getEl(N.id);if(M){if(H||M.nextSibling){Q(M,N);F[L]=null}}else{O.push(N)}}}C=(O.length===0)?0:C-1;if(P){this.startInterval()}else{clearInterval(this._interval);this._interval=null}this.locked=false;return true},purgeElement:function(O,P,R){var M=(YAHOO.lang.isString(O))?this.getEl(O):O;var Q=this.getListeners(M,R),N,K;if(Q){for(N=0,K=Q.length;N<K;++N){var L=Q[N];this.removeListener(M,L.type,L.fn,L.index)}}if(P&&M&&M.childNodes){for(N=0,K=M.childNodes.length;N<K;++N){this.purgeElement(M.childNodes[N],P,R)}}},getListeners:function(M,K){var P=[],L;if(!K){L=[I,J]}else{if(K==="unload"){L=[J]}else{L=[I]}}var R=(YAHOO.lang.isString(M))?this.getEl(M):M;for(var O=0;O<L.length;O=O+1){var T=L[O];if(T&&T.length>0){for(var Q=0,S=T.length;Q<S;++Q){var N=T[Q];if(N&&N[this.EL]===R&&(!K||K===N[this.TYPE])){P.push({type:N[this.TYPE],fn:N[this.FN],obj:N[this.OBJ],adjust:N[this.OVERRIDE],scope:N[this.ADJ_SCOPE],index:Q})}}}}return(P.length)?P:null},_unload:function(R){var Q=YAHOO.util.Event,O,N,L,K,M;for(O=0,K=J.length;O<K;++O){L=J[O];if(L){var P=window;if(L[Q.ADJ_SCOPE]){if(L[Q.ADJ_SCOPE]===true){P=L[Q.UNLOAD_OBJ]}else{P=L[Q.ADJ_SCOPE]}}L[Q.FN].call(P,Q.getEvent(R,L[Q.EL]),L[Q.UNLOAD_OBJ]);J[O]=null;L=null;P=null}}J=null;if(I&&I.length>0){N=I.length;while(N){M=N-1;L=I[M];if(L){Q.removeListener(L[Q.EL],L[Q.TYPE],L[Q.FN],M)}N--}L=null}G=null;Q._simpleRemove(window,"unload",Q._unload)},_getScrollLeft:function(){return this._getScroll()[1]},_getScrollTop:function(){return this._getScroll()[0]},_getScroll:function(){var K=document.documentElement,L=document.body;if(K&&(K.scrollTop||K.scrollLeft)){return[K.scrollTop,K.scrollLeft]}else{if(L){return[L.scrollTop,L.scrollLeft]}else{return[0,0]}}},regCE:function(){},_simpleAdd:function(){if(window.addEventListener){return function(M,N,L,K){M.addEventListener(N,L,(K))}}else{if(window.attachEvent){return function(M,N,L,K){M.attachEvent("on"+N,L)}}else{return function(){}}}}(),_simpleRemove:function(){if(window.removeEventListener){return function(M,N,L,K){M.removeEventListener(N,L,(K))}}else{if(window.detachEvent){return function(L,M,K){L.detachEvent("on"+M,K)}}else{return function(){}}}}()}}();(function(){var EU=YAHOO.util.Event;EU.on=EU.addListener;
/* DOMReady: based on work by: Dean Edwards/John Resig/Matthias Miller */
if(EU.isIE){YAHOO.util.Event.onDOMReady(YAHOO.util.Event._tryPreloadAttach,YAHOO.util.Event,true);EU._dri=setInterval(function(){var n=document.createElement("p");try{n.doScroll("left");clearInterval(EU._dri);EU._dri=null;EU._ready();n=null}catch(ex){n=null}},EU.POLL_INTERVAL)}else{if(EU.webkit&&EU.webkit<525){EU._dri=setInterval(function(){var rs=document.readyState;if("loaded"==rs||"complete"==rs){clearInterval(EU._dri);EU._dri=null;EU._ready()}},EU.POLL_INTERVAL)}else{EU._simpleAdd(document,"DOMContentLoaded",EU._ready)}}EU._simpleAdd(window,"load",EU._load);EU._simpleAdd(window,"unload",EU._unload);EU._tryPreloadAttach()})()}YAHOO.util.EventProvider=function(){};YAHOO.util.EventProvider.prototype={__yui_events:null,__yui_subscribers:null,subscribe:function(A,C,F,E){this.__yui_events=this.__yui_events||{};var D=this.__yui_events[A];if(D){D.subscribe(C,F,E)}else{this.__yui_subscribers=this.__yui_subscribers||{};var B=this.__yui_subscribers;if(!B[A]){B[A]=[]}B[A].push({fn:C,obj:F,override:E})}},unsubscribe:function(C,E,G){this.__yui_events=this.__yui_events||{};var A=this.__yui_events;if(C){var F=A[C];if(F){return F.unsubscribe(E,G)}}else{var B=true;for(var D in A){if(YAHOO.lang.hasOwnProperty(A,D)){B=B&&A[D].unsubscribe(E,G)}}return B}return false},unsubscribeAll:function(A){return this.unsubscribe(A)},createEvent:function(G,D){this.__yui_events=this.__yui_events||{};var A=D||{};var I=this.__yui_events;if(I[G]){}else{var H=A.scope||this;var E=(A.silent);var B=new YAHOO.util.CustomEvent(G,H,E,YAHOO.util.CustomEvent.FLAT);I[G]=B;if(A.onSubscribeCallback){B.subscribeEvent.subscribe(A.onSubscribeCallback)}this.__yui_subscribers=this.__yui_subscribers||{};var F=this.__yui_subscribers[G];if(F){for(var C=0;C<F.length;++C){B.subscribe(F[C].fn,F[C].obj,F[C].override)}}}return I[G]},fireEvent:function(E,D,A,C){this.__yui_events=this.__yui_events||{};var G=this.__yui_events[E];if(!G){return null}var B=[];for(var F=1;F<arguments.length;++F){B.push(arguments[F])}return G.fire.apply(G,B)},hasEvent:function(A){if(this.__yui_events){if(this.__yui_events[A]){return true}}return false}};YAHOO.util.KeyListener=function(A,F,B,C){if(!C){C=YAHOO.util.KeyListener.KEYDOWN}var D=new YAHOO.util.CustomEvent("keyPressed");this.enabledEvent=new YAHOO.util.CustomEvent("enabled");this.disabledEvent=new YAHOO.util.CustomEvent("disabled");if(typeof A=="string"){A=document.getElementById(A)}if(typeof B=="function"){D.subscribe(B)}else{D.subscribe(B.fn,B.scope,B.correctScope)}function E(J,I){if(!F.shift){F.shift=false}if(!F.alt){F.alt=false}if(!F.ctrl){F.ctrl=false}if(J.shiftKey==F.shift&&J.altKey==F.alt&&J.ctrlKey==F.ctrl){var G;if(F.keys instanceof Array){for(var H=0;H<F.keys.length;H++){G=F.keys[H];if(G==J.charCode){D.fire(J.charCode,J);break}else{if(G==J.keyCode){D.fire(J.keyCode,J);break}}}}else{G=F.keys;if(G==J.charCode){D.fire(J.charCode,J)}else{if(G==J.keyCode){D.fire(J.keyCode,J)}}}}}this.enable=function(){if(!this.enabled){YAHOO.util.Event.addListener(A,C,E);this.enabledEvent.fire(F)}this.enabled=true};this.disable=function(){if(this.enabled){YAHOO.util.Event.removeListener(A,C,E);this.disabledEvent.fire(F)}this.enabled=false}};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.5.0",build:"895"});YAHOO.util.Get=function(){var I={},H=0,B=0,O=false,A=YAHOO.env.ua,D=YAHOO.lang;var Q=function(U,R,V){var S=V||window,W=S.document,X=W.createElement(U);for(var T in R){if(R[T]&&YAHOO.lang.hasOwnProperty(R,T)){X.setAttribute(T,R[T])}}return X};var N=function(R,S){return Q("link",{id:"yui__dyn_"+(B++),type:"text/css",rel:"stylesheet",href:R},S)};var M=function(R,S){return Q("script",{id:"yui__dyn_"+(B++),type:"text/javascript",src:R},S)};var K=function(R){return{tId:R.tId,win:R.win,data:R.data,nodes:R.nodes,purge:function(){J(this.tId)}}};var P=function(T){var R=I[T];if(R.onFailure){var S=R.scope||R.win;R.onFailure.call(S,K(R))}};var F=function(T){var R=I[T];R.finished=true;if(R.aborted){P(T);return }if(R.onSuccess){var S=R.scope||R.win;R.onSuccess.call(S,K(R))}};var E=function(T,W){var S=I[T];if(S.aborted){P(T);return }if(W){S.url.shift();if(S.varName){S.varName.shift()}}else{S.url=(D.isString(S.url))?[S.url]:S.url;if(S.varName){S.varName=(D.isString(S.varName))?[S.varName]:S.varName}}var Z=S.win,Y=Z.document,X=Y.getElementsByTagName("head")[0],U;if(S.url.length===0){if(S.type==="script"&&A.webkit&&A.webkit<420&&!S.finalpass&&!S.varName){var V=M(null,S.win);V.innerHTML='YAHOO.util.Get._finalize("'+T+'");';S.nodes.push(V);X.appendChild(V)}else{F(T)}return }var R=S.url[0];if(S.type==="script"){U=M(R,Z)}else{U=N(R,Z)}G(S.type,U,T,R,Z,S.url.length);S.nodes.push(U);X.appendChild(U);if((A.webkit||A.gecko)&&S.type==="css"){E(T,R)}};var C=function(){if(O){return }O=true;for(var R in I){var S=I[R];if(S.autopurge&&S.finished){J(S.tId);delete I[R]}}O=false};var J=function(X){var U=I[X];if(U){var W=U.nodes,R=W.length,V=U.win.document,T=V.getElementsByTagName("head")[0];for(var S=0;S<R;S=S+1){try{T.removeChild(W[S])}catch(axe){ }}}U.nodes=[]};var L=function(S,R,T){var V="q"+(H++);T=T||{};if(H%YAHOO.util.Get.PURGE_THRESH===0){C()}I[V]=D.merge(T,{tId:V,type:S,url:R,finished:false,nodes:[]});var U=I[V];U.win=U.win||window;U.scope=U.scope||U.win;U.autopurge=("autopurge" in U)?U.autopurge:(S==="script")?true:false;D.later(0,U,E,V);return{tId:V}};var G=function(a,V,U,S,W,X,Z){var Y=Z||E;if(A.ie){V.onreadystatechange=function(){var b=this.readyState;if("loaded"===b||"complete"===b){Y(U,S)}}}else{if(A.webkit){if(a==="script"){if(A.webkit>419){V.addEventListener("load",function(){Y(U,S)})}else{var R=I[U];if(R.varName){var T=YAHOO.util.Get.POLL_FREQ;R.maxattempts=YAHOO.util.Get.TIMEOUT/T;R.attempts=0;R._cache=R.varName[0].split(".");R.timer=D.later(T,R,function(g){var e=this._cache,c=e.length,b=this.win,f;for(f=0;f<c;f=f+1){b=b[e[f]];if(!b){this.attempts++;if(this.attempts++>this.maxattempts){R.timer.cancel();P(U)}else{}return }}R.timer.cancel();Y(U,S)},null,true)}else{D.later(YAHOO.util.Get.POLL_FREQ,null,Y,[U,S])}}}}else{V.onload=function(){Y(U,S)}}}};return{POLL_FREQ:10,PURGE_THRESH:20,TIMEOUT:2000,_finalize:function(R){D.later(0,null,F,R)},abort:function(S){var T=(D.isString(S))?S:S.tId;var R=I[T];if(R){R.aborted=true}},script:function(R,S){return L("script",R,S)},css:function(R,S){return L("css",R,S)}}}();YAHOO.register("get",YAHOO.util.Get,{version:"2.5.0",build:"895"});var d=document,w=window,yut=YAHOO.util,yud=yut.Dom,yue=yut.Event;function init(){setFocus();yue.on("tabs","click",passP);var B=d.getElementById("so-link"),A=d.getElementById("vm-link");if(B){B.appendChild(d.createElement("span"));yue.on(B,"click",handleOptsToggle)}if(A){A.appendChild(d.createElement("span"));yue.on(A,"click",handleMoreToggle)}}function handleMoreToggle(B){yue.preventDefault(B);var A=d.getElementById("vm-menu");if(yud.hasClass(A,"hidden")){yud.removeClass(A,"hidden");setTimeout(function(){yue.on(d,"click",handleMoreHide,this,true)},20)}else{yud.addClass(A,"hidden");yue.removeListener(d,"click",handleMoreHide)}}function handleMoreHide(A){yud.addClass("vm-menu","hidden");yue.removeListener(d,"click",handleMoreHide)}function handleOptsToggle(B){yue.preventDefault(B);var A=d.getElementById("so-menu");if(yud.hasClass(A,"hidden")){yud.removeClass(A,"hidden");setTimeout(function(){yue.on(d,"click",handleOptsHide,this,true)},20)}else{yud.addClass(A,"hidden");yue.removeListener(d,"click",handleOptsHide)}}function handleOptsHide(A){yud.addClass("so-menu","hidden");yue.removeListener(d,"click",handleOptsHide)}function passP(E){var B=yue.getTarget(E),D=null,C=encodeURIComponent(d.getElementById("yschsp").value),A=/^(.+?)(\?|&)(p=)(.*?)(&|$)(.*)$/i,G=/^(.+?)(%3f|%26)(p=)(.*?)(%26|$)(.*)$/i,F=false;B=B.tagName.toLowerCase()==="a"?B:yud.getAncestorByTagName(B,"a");if(!B||!B.href){return }F=B.href.indexOf("/**")!==-1;D=F?G.exec(B.href):A.exec(B.href);if(D){D[0]="";D[4]=F?escape(C):C;B.href=D.join("")}else{if(F){B.href+=(/%3f/i).test(B.href)?"%26p="+escape(C):"%3fp="+escape(C)}else{B.href+=(/\?/).test(B.href)?"&p="+C:"?="+C}}if(!C&&B.id==="yschtabjobs"){B.href=B.href.replace("jobseeker/jobsearch/search_results.html","")}}function setFocus(){d.getElementById("yschsp").focus()}(function(){YAHOO.namespace("Search.Srp");var G=document,F=YAHOO,D=F.Search,C=D.Srp,E=F.util,B=E.Dom,A=E.Event;D.MiniAssist=function(){var O,H={},J,P,I,M;function L(U){B.removeClass("atat","hidden");O.setConfigValue("smartSuggest",true)}function N(U){B.removeClass("atextra","hidden");O.setConfigValue("smartSuggest",false);P.show()}function Q(U){B.addClass("atextra","hidden");P.hide()}function S(U){B.addClass("atat","hidden")}function R(U){if(U.altKey||U.ctrlKey||U.metaKey||U.shiftKey){return }switch(U.keyCode){case 27:if(M.isOpen()){M.close()}break;case 40:case 63233:if(M.isOpen()){if(P.hasGossip()){P.focus();P.setSelectedIndex(0)}}else{M.open()}break;default:return }A.preventDefault(U)}function T(V,U){if(M.isClosed()){P.onResponse.subscribe(function(){if(P.hasGossip()){M.open()}P.onResponse.unsubscribe(arguments.callee)})}if(U[1].length>2){P.request(U[1])}else{if(U[1].length<=2&&M.isOpen()){P.clear();M.close()}}}function K(U){if(U.altKey||U.ctrlKey||U.metaKey||U.shiftKey){return }if(U.keyCode===27){P.setSelectedIndex(null);B.get("yschsp").focus()}}return{assist:null,gossip:null,tray:null,init:function(U,W){O=this.assist=new D.Assist("yschsp");M=this.tray=new D.Assist.Tray(O,"atg",false);P=this.gossip=new D.Assist.Gossip(M,"atg","atgl",{buttonDown:"atgl-d",buttonUp:"atgl-u",linkParams:["fr2=sg-gac","sado=1"],linkTitle:U.linkTitle,scrollX:true},false);if(W){P.setConfigValue("url",W)}M.onAfterOpen.subscribe(N,this,true);M.onAfterClose.subscribe(L,this,true);M.onBeforeClose.subscribe(Q,this,true);M.onBeforeOpen.subscribe(S,this,true);O.onTriggerSuggest.subscribe(T);A.on("yschsp",(F.env.ua.ie?"keydown":"keypress"),R,this,true);A.on("atg",(F.env.ua.ie?"keydown":"keypress"),K,this,true);var V=G.getElementById("yschsp");V.title=U.inputTitle}}}()})();(function(){var D=YAHOO,C=D.util,B=C.Dom,A=C.Event;D.namespace("Search");D.Search.Configurable=function(){};D.Search.Configurable.prototype={onConfigChange:new C.CustomEvent("configChange"),getConfigValue:function(E){return this._config.hasOwnProperty(E)?this._config[E]:undefined},setConfigValue:function(F,G){var E=this.getConfigValue(F);this._config[F]=G;this.onConfigChange.fire(F,E,G)}};D.Search.Assist=function(F,E){this.TRIGGER_DEL=1;this.TRIGGER_INS=0;this._config=E||{};D.lang.augmentObject(this._config,{autoSuggest:true,ksMaxDelay:3000,ksMinDelay:400,ksMinLength:null,ksMultiplier:4,ksSuggestDelay:200,smartSuggest:true,suppressBrowserComplete:true});this._inputEl=B.get(F);this._ksCount=0;this._ksFirstStroke=null;this._ksMode=null;this._ksTimeout=null;this._originalQuery=this._inputEl.value;this._init()};D.Search.Assist.prototype={onTriggerSuggest:new C.CustomEvent("triggerSuggest"),buildSearchUrl:function(J,L){var H=this._inputEl.form,E=[],L=L?[].concat(L):[],F=H.action,G,K,I;J=J||this.getQuery();E=B.getElementsBy(function(M){switch(M.tagName.toLowerCase()){case"input":case"select":case"textarea":return true}return false},null,H);for(G=0;G<E.length;++G){K=E[G];if(K.tagName.toLowerCase()==="input"){switch(K.type){case"button":case"image":case"reset":case"submit":continue;break;case"checkbox":case"radio":if(!K.checked){continue}break}}I=K.name===this._inputEl.name?J:K.value;if(I){L.push(encodeURIComponent(K.name)+"="+encodeURIComponent(I))}}return F+"?"+L.join("&")},encodeEntities:function(E){return document.createElement("div").appendChild(document.createTextNode(E)).parentNode.innerHTML},getOriginalQuery:function(){return this._originalQuery},getQuery:function(){return this._inputEl.value},highlight:function(E,H){H=this.encodeEntities(D.lang.trim(H||this.getQuery()));E=this.encodeEntities(D.lang.trim(E));if(!H){return E}var F,G=H.replace(/["<>]/g,"").split(/\s+/).sort(function(J,I){return I.length-J.length});for(F=0;F<G.length;++F){E=E.replace(new RegExp('(^|\\s+|\\.|")('+this._escapeRegexp(G[F])+")(?!</strong>)","gi"),"$1<strong>$2</strong>")}return E},setQuery:function(E){this._resetKeys();this._inputEl.value=E},truncate:function(G,E,F){var H,I;G=D.lang.trim(G);if(!D.lang.isString(G)||G.length<=E||(F&&!D.lang.isString(F))){return G}F=F?F.split(/\s+/):[];for(H=0;H<F.length;++H){I=F[H];if(I.length>3){G=G.replace(new RegExp("(?:^|\\s+)"+I+"(?:\\s+)?","gi"),"...");if(G.length<=E){return G}}}return D.lang.trim(G.substr(0,E-3)).replace(/\.+$/,"")+"..."},_analyzeKeys:function(K){var H=this._config,J=K.keyCode,I=D.lang.trim(this.getQuery()),G,F,E;if(!H.autoSuggest||(J<46&&J!==8&&J!==32)){return }if(this._ksTimeout){clearTimeout(this._ksTimeout);this._ksTimeout=null}if(H.ksMinLength&&I.length<H.ksMinLength){return }this._ksMode=J===8||J===46?this.TRIGGER_DEL:this.TRIGGER_INS;if(H.smartSuggest){F=(new Date()).getTime();this._ksCount+=1;if(this._ksCount===1){this._ksFirstStroke=F;G=H.ksMaxDelay}else{G=Math.round((F-this._ksFirstStroke)/this._ksCount)*H.ksMultiplier}if(G>H.ksMaxDelay){G=H.ksMaxDelay}else{if(G<H.ksMinDelay){G=H.ksMinDelay}}}else{G=H.ksSuggestDelay}if(G){E=this;this._ksTimeout=setTimeout(function(){E._triggerSuggest.call(E)},G)}},_configChange:function(F,E){switch(E[0]){case"autoSuggest":case"suppressBrowserComplete":this._initConfig();break}},_detachEvents:function(){A.removeListener(this._inputEl,"keyup",this._analyzeKeys);A.removeListener(this._inputEl,"focus",this._resetKeys)},_escapeRegexp:function(E){return E.replace(/([\\\^\$*+[\]?{}.=!:(|)])/g,"\\$1")},_init:function(){this._initConfig();this.onConfigChange.subscribe(this._configChange,this,true)},_initConfig:function(){var E=this._inputEl;this._detachEvents();if(this._config.autoSuggest){A.on(E,"keyup",this._analyzeKeys,this,true);A.on(E,"focus",this._resetKeys,this,true)}if(this._config.suppressBrowserComplete){E.setAttribute("autocomplete","off")}else{E.removeAttribute("autocomplete")}},_resetKeys:function(){this._ksCount=0;this._ksFirstStroke=null;this._ksMode=null;if(this._ksTimeout){clearTimeout(this._ksTimeout);this._ksTimeout=null}},_triggerSuggest:function(){this.onTriggerSuggest.fire(this._inputEl,this.getQuery(),this._ksMode)}};D.lang.augment(D.Search.Assist,D.Search.Configurable)})();YAHOO.register("searchassist",YAHOO.Search.Assist,{version:"2.1.0",build:"0"});(function(){var D=document,C=YAHOO,B=C.util,A=B.Dom;C.Search.Assist.Tray=function(G,F,E){this.STATE_CLOSED=0;this.STATE_OPEN=1;this._config=E||{};C.lang.augmentObject(this._config,{animEnabled:false,animDuration:0.1,classOpen:"open",heightClosed:"0",heightOpen:"7.7em"});this._animClose=null;this._animOpen=null;this._assist=G;this._fontCheck=null;this._panels={};this._pixelEl=null;this._trayEl=A.get(F);this.onAfterClose=new B.CustomEvent("afterClose");this.onAfterOpen=new B.CustomEvent("afterOpen");this.onBeforeClose=new B.CustomEvent("beforeClose");this.onBeforeOpen=new B.CustomEvent("beforeOpen");this._init()};C.Search.Assist.Tray.prototype={close:function(){if(this.getState()===this.STATE_CLOSED){return }this.onBeforeClose.fire();if(this._config.animEnabled){this.stopAnim();this._animClose.animate()}else{this._close()}},getState:function(){return A.hasClass(this._trayEl,this._config.classOpen)?this.STATE_OPEN:this.STATE_CLOSED},isAnimated:function(){return this._config.animEnabled&&(this._animOpen.isAnimated()||this._animClose.isAnimated())},isClosed:function(){return this.getState()===this.STATE_CLOSED},isOpen:function(){return this.getState()===this.STATE_OPEN},open:function(){if(this.getState()===this.STATE_OPEN){return }this.onBeforeOpen.fire();if(this._config.animEnabled){this.stopAnim();this._animOpen.animate()}else{this._open()}},setState:function(E){if(E===this.STATE_CLOSED){this.close()}else{if(E===this.STATE_OPEN){this.open()}}},stopAnim:function(){if(!this._config.animEnabled){return false}if(this._animClose.isAnimated()){this._animClose.stop(true);return true}else{if(this._animOpen.isAnimated()){this._animOpen.stop(true);return true}}return false},toggle:function(){if(this.getState()===this.STATE_CLOSED){this.open();return this.STATE_OPEN}else{this.close();return this.STATE_CLOSED}},_close:function(){A.removeClass(this._trayEl,this._config.classOpen);this.onAfterClose.fire()},_configChange:function(F,E){switch(E[0]){case"animDuration":case"animEnabled":case"heightClosed":case"heightOpen":this._initAnim();break}},_getPixelHeight:function(F){if(F==0){return 0}var E,G,H;if(this._pixelEl){E=this._pixelEl;G=E.style}else{E=this._pixelEl=D.createElement("div");G=E.style;G.display="none";G.position="absolute";G.left="-9999px";this._trayEl.parentNode.appendChild(E)}G.height=F;G.display="block";H=E.offsetHeight;G.display="none";return H},_init:function(){this._initAnim();this.onConfigChange.subscribe(this._configChange,this,true)},_initAnim:function(){var H=this._config,F=this,G,E;if(!H.animEnabled){return }if(!C.env.modules.animation){H.animEnabled=false;if(B.YUILoader){E=new B.YUILoader();E.require("animation");E.insert(function(){H.animEnabled=true;F._initAnim()})}}if(H.animEnabled){G=this._getPixelHeight(H.heightOpen);this._animClose=new B.Anim(this._trayEl,{height:{to:this._getPixelHeight(H.heightClosed)}},H.animDuration);this._animClose.onComplete.subscribe(this._close,this,true);this._animOpen=new B.Anim(this._trayEl,{height:{to:G}},H.animDuration);this._animOpen.onComplete.subscribe(this._open,this,true);this._fontCheck=setInterval(function(){var I=F._getPixelHeight(H.heightOpen);if(G!=I){F._animOpen.attributes.height.to=I;if(F.isOpen()){F._animOpen.animate()}G=I}},1000)}},_open:function(){A.addClass(this._trayEl,this._config.classOpen);this.onAfterOpen.fire()}};C.lang.augment(C.Search.Assist.Tray,C.Search.Configurable)})();YAHOO.register("searchassist_tray",YAHOO.Search.Assist.Tray,{version:"2.1.0",build:"0"});(function(){var E=document,D=YAHOO,C=D.util,B=C.Dom,A=C.Event;D.Search.Assist.TrayPanel=function(H,G,F){this.SCROLL_ARROW=0;this.SCROLL_BUTTON=2;this.SCROLL_WHEEL=1;this._config=F||{};D.lang.augmentObject(this._config,{animEnabled:false,animDuration:0.2,buttonDown:null,buttonLeft:null,buttonRight:null,buttonUp:null,classButtonDisabled:"disabled",classHidden:"hidden",panelBottom:null,panelLeft:null,panelRight:null,panelTop:null,scrollX:false,scrollY:false});this._animHide=null;this._animShow=null;this._assist=H._assist;this._panelEl=B.get(G);this._tray=H;this.onAfterHide=new C.CustomEvent("afterHide");this.onAfterShow=new C.CustomEvent("afterShow");this.onBeforeHide=new C.CustomEvent("beforeHide");this.onBeforeShow=new C.CustomEvent("beforeShow");this.onScrollDown=new C.CustomEvent("scrollDown");this.onScrollLeft=new C.CustomEvent("scrollLeft");this.onScrollRight=new C.CustomEvent("scrollRight");this.onScrollUp=new C.CustomEvent("scrollUp");this._init()};D.Search.Assist.TrayPanel.prototype={focus:function(){function F(I){switch(I.tagName.toLowerCase()){case"a":case"area":case"button":case"input":case"label":case"select":case"textarea":return true}return false}function H(J){var L=B.getChildren(J),M,K,I;for(K=0;K<L.length;++K){M=L[K];I=F(M)?M:H(M);if(I){return I}}return null}var G=H(this._panelEl);if(G&&G.focus){G.focus();return G}return null},hide:function(){if(!this.isVisible()){return }this.onBeforeHide.fire();if(this._config.animEnabled){this.stopAnim();this._animHide.animate()}else{this._hide()}},isVisible:function(){return this._tray.isOpen()&&!B.hasClass(this._panelEl,this._config.classHidden)},show:function(){if(this.isVisible()){return }this.onBeforeShow.fire();if(this._config.animEnabled){this.stopAnim();this._animShow.animate()}else{this._show()}},stopAnim:function(){if(!this._config.animEnabled){return false}if(this._animHide.isAnimated()){this._animHide.stop(true);return true}else{if(this._animShow.isAnimated()){this._animShow.stop(true);return true}}return false},_configChange:function(G,F){switch(F[0]){case"animEnabled":case"animDuration":case"buttonDown":case"buttonLeft":case"buttonRight":case"buttonUp":case"scrollX":case"scrollY":this._initConfig();break}},_detachEvents:function(){var G=this._config,I=["Down","Left","Right","Up"],H,F;this._tray.onBeforeClose.unsubscribe(this.hide,this);A.removeListener(this._panelEl,D.env.ua.gecko||D.env.ua.opera?"keypress":"keydown",this._keyDown);A.removeListener(this._panelEl,D.env.ua.gecko?"DOMMouseScroll":"mousewheel",this._mouseWheel);for(H=0;H<I.length;++H){F=I[H];if(G["button"+F]){A.removeListener(G["button"+F],"click",this._scrollButton)}}},_hide:function(){B.addClass(this._panelEl,this._config.classHidden);this.onAfterHide.fire()},_init:function(){this._initConfig();this.onConfigChange.subscribe(this._configChange,this,true)},_initAnim:function(){var H=this._config;if(!H.animEnabled){return }if(!D.env.modules.animation){H.animEnabled=false;if(C.YUILoader){var F=new C.YUILoader(),G=this;F.require("animation");F.insert(function(){H.animEnabled=true;G._initAnim()})}}if(H.animEnabled){this._animHide=new C.Anim(this._panelEl,{opacity:{to:0}},H.animDuration,C.Easing.easeBoth);this._animHide.onComplete.subscribe(this._hide,this,true);this._animShow=new C.Anim(this._panelEl,{opacity:{to:1}},H.animDuration,C.Easing.easeBoth);this._animShow.onComplete.subscribe(this._show,this,true);this._animShow.onStart.subscribe(function(){B.setStyle(this._panelEl,"opacity",0);B.removeClass(this._panelEl,H.classHidden)},this,true)}},_initConfig:function(){var I=["Down","Left","Right","Up"],G=this._config,H,F;this._detachEvents();this._initAnim();this._tray.onBeforeClose.subscribe(this.hide,this,true);if(G.scrollX||G.scrollY){A.on(this._panelEl,D.env.ua.gecko||D.env.ua.opera?"keypress":"keydown",this._keyNav,this,true);for(H=0;H<I.length;++H){F=I[H];if(G["button"+F]){A.on(G["button"+F],"click",this._scrollButton,[this,F])}}if(G.scrollY){A.on(this._panelEl,D.env.ua.gecko?"DOMMouseScroll":"mousewheel",this._mouseWheel,this,true)}}},_keyNav:function(H){if(H.altKey||H.ctrlKey||H.metaKey||H.shiftKey){return }var G=this.SCROLL_ARROW,F=A.preventDefault;if(this._config.scrollX){switch(H.keyCode){case 37:case 63234:F(H);this.onScrollLeft.fire(G);return ;case 39:case 63235:F(H);this.onScrollRight.fire(G);return }}if(this._config.scrollY){switch(H.keyCode){case 38:case 63232:F(H);this.onScrollUp.fire(G);return ;case 40:case 63233:F(H);this.onScrollDown.fire(G);return }}},_mouseWheel:function(F){var G;if(F.wheelDelta){G=F.wheelDelta/120}else{if(F.detail){G=-F.detail/3}else{return }}A.preventDefault(F);if(G>0){this.onScrollUp.fire(this.SCROLL_WHEEL)}else{this.onScrollDown.fire(this.SCROLL_WHEEL)}},_scrollButton:function(H,G){var F=G[0];if(H.button===0){A.preventDefault(H);F["onScroll"+G[1]].fire(F.SCROLL_BUTTON)}},_show:function(){if(!this._config.animEnabled){B.removeClass(this._panelEl,this._config.classHidden)}this.onAfterShow.fire()}};D.lang.augment(D.Search.Assist.TrayPanel,D.Search.Configurable)})();YAHOO.register("searchassist_traypanel",YAHOO.Search.Assist.TrayPanel,{version:"2.1.0",build:"0"});(function(){var G=document,F=YAHOO,B=F.Search.Assist,D=F.util,C=D.Dom,A=D.Event;B.Gossip=function(J,I,L,H,K){H=H||{};F.lang.augmentObject(H,{classItemHidden:"hidden",classItemSelected:"sel",linkParams:[],linkTitle:"Search for #{q}",maxLength:38,scrollSize:5,scrollY:true,timeout:5000,url:"http://sugg.search.yahoo.net/sg/?output=fxjsonp&command=#{q}"});this._cache={};this._data={};this._gTimeout=null;this._lastQuery=null;this._list=C.get(L);this._scrollIndex=0;this._scrollTotal=0;this._selIndex=null;this._tId=null;B.Gossip.superclass.constructor.call(this,J,I,H);this.onGossipClick=new D.CustomEvent("gossipClick");this.onRefresh=new D.CustomEvent("refresh");this.onRequest=new D.CustomEvent("request");this.onResponse=new D.CustomEvent("response");this._initGossip(K)};F.lang.extend(B.Gossip,B.TrayPanel);var E=B.Gossip.prototype;E.cancel=function(){if(this._gTimeout){clearTimeout(this._gTimeout);this._gTimeout=null}window.fxsearch=function(){}};E.clear=function(){this._list.innerHTML="";this.scrollReset()};E.focus=function(){if(this.isVisible()&&this.hasGossip()){this.setSelectedIndex(this._selIndex||0)}};E.getSelectedIndex=function(){return this._selIndex};E.hasGossip=function(){return this.length()>0};E.length=function(){return this._data.g?this._data.g.length:0};E.refresh=function(M){if(M){this._data=this._parseResponse(M)}var N=this._assist,I=this._config,H=this._data.g,J,K,L,O;this.clear();if(!H||!H.length){L=N.getQuery();O="<strong>"+N.truncate(N.encodeEntities(L),I.maxLength)+"</strong>";this._addItem(L,O,N.buildSearchUrl(L,I.linkParams));return }for(J=0;J<H.length;++J){K=H[J];this._addItem(K[0],K[1],K[2],J>=I.scrollSize?I.classItemHidden:null)}this.scrollReset();this.onRefresh.fire()};E.request=function(K){var I=this._cache,K=K||this._assist.getQuery(),H=this,J=this._config.url.replace("#{q}",encodeURIComponent(K));if(!K||K.length>255){this.clear();return false}if(I[J]){this._data=I[J];this.onResponse.fire(K,J,I[J]);return true}window.fxsearch=function(L){try{if(H._gTimeout){clearTimeout(H._gTimeout);H._gTimeout=null}}catch(N){}var M=H._parseResponse(L);H._cache[J]=M;if(M.q===H._lastQuery){H._data=M;H.onResponse.fire(K,J,M)}};this._gTimeout=setTimeout(function(){if(H._tId){D.Get.abort(H._tId)}},this._config.timeout);D.Get.script(J,{scope:this,onSuccess:function(L){L.purge();this._tId=null},onFailure:function(){this._tId=null}});this._lastQuery=K;this.onRequest.fire(K,J);return true};E.scrollDown=function(){var J=this._config,I=C.getChildren(this._list),H=this._scrollIndex+J.scrollSize;if(H>this._scrollTotal-1){return }if(J.buttonDown&&H>=this._scrollTotal-1){C.addClass(J.buttonDown,J.classButtonDisabled)}if(J.buttonUp){C.removeClass(J.buttonUp,J.classButtonDisabled)}C.addClass(I[this._scrollIndex],J.classItemHidden);C.removeClass(I[H],J.classItemHidden);this._scrollIndex+=1};E.scrollReset=function(){var I=this._config,H=C.getChildren(this._list),J;this._scrollIndex=0;this._scrollTotal=H.length||0;for(J=0;J<this._scrollTotal;++J){if(J<I.scrollSize){C.removeClass(H[J],I.classItemHidden)}else{C.addClass(H[J],I.classItemHidden)}}if(I.buttonUp){C.addClass(I.buttonUp,I.classButtonDisabled)}if(I.buttonDown){if(this._scrollTotal>I.scrollSize){C.removeClass(I.buttonDown,I.classButtonDisabled)}else{C.addClass(I.buttonDown,I.classButtonDisabled)}}};E.scrollUp=function(){var I=this._config,J=this._scrollIndex-1,H=C.getChildren(this._list);if(J<0){return }if(J===0&&I.buttonUp){C.addClass(I.buttonUp,I.classButtonDisabled)}if(I.buttonDown&&J+I.scrollSize<this._scrollTotal){C.removeClass(I.buttonDown,I.classButtonDisabled)}C.addClass(H[J+I.scrollSize],I.classItemHidden);C.removeClass(H[J],I.classItemHidden);this._scrollIndex-=1};E.setSelectedIndex=function(J){if(J&&(J<0||J>=this._scrollTotal)){return false}var I=this._config,H=C.getChildren(this._list);if(this._selIndex!==null){C.removeClass(H[this._selIndex],I.classItemSelected)}this._selIndex=J;if(this._selIndex===null){return false}C.addClass(H[this._selIndex],I.classItemSelected);if(this._selIndex<this._scrollIndex){while(this._selIndex<this._scrollIndex){this.scrollUp()}}else{while(this._selIndex>=this._scrollIndex+I.scrollSize){this.scrollDown()}}try{H[this._selIndex].firstChild.focus()}catch(K){}return true};E._addItem=function(M,K,J,L){var I=G.createElement("a"),H=G.createElement("li");I.href=J;I.innerHTML=K;if(this._config.linkTitle){I.title=this._config.linkTitle.replace("#{q}",M)}I.setAttribute("gossipText",M);H.className=L?L:"";H.appendChild(I);return this._list.appendChild(H)};E._initGossip=function(H){if(H){this.refresh(H)}this.onResponse.subscribe(function(){this.refresh()},this,true);A.on(this._list,"click",this._listClick,this,true);this.onScrollDown.subscribe(this._scrollDown,this,true);this.onScrollUp.subscribe(this._scrollUp,this,true)};E._listClick=function(I){if(I.ctrlKey||I.metaKey||I.shiftKey){return }var H=A.getTarget(I);if(!H||this.onGossipClick.subscribers.length===0){return }if(H.tagName.toLowerCase()!=="a"){if(!(H=C.getAncestorByTagName(H,"a"))){return }}A.preventDefault(I);this.onGossipClick.fire(H,H.getAttribute("gossipText"),H.href)};E._parseResponse=function(J){var M=this._assist,I=this._config,O=J[0],K={g:[],q:O},N=J[1].length,L,P,H;for(L=0;L<N;++L){P=J[1][L];H=M.highlight(M.truncate(P,I.maxLength,O),O);K.g.push([P,H,M.buildSearchUrl(P,I.linkParams)])}return K};E._scrollDown=function(I,H){switch(H[0]){case this.SCROLL_ARROW:this.setSelectedIndex(this._selIndex!==null?this._selIndex+1:1);break;case this.SCROLL_BUTTON:case this.SCROLL_WHEEL:this.scrollDown();break}};E._scrollUp=function(I,H){switch(H[0]){case this.SCROLL_ARROW:this.setSelectedIndex(this._selIndex!==null?this._selIndex-1:0);break;case this.SCROLL_BUTTON:case this.SCROLL_WHEEL:this.scrollUp();break}}})();YAHOO.register("searchassist_gossip",YAHOO.Search.Assist.Gossip,{version:"2.1.0",build:"0"});function changeTab(F,B){var H=document;var C=H.forms.sf;var G=H.getElementById("tabs");var K=G.getElementsByTagName("A");for(i=0;i<K.length;i++){if(K[i].id!="vm-link"){if(K[i]==F){K[i].className="on"}else{K[i].className="off"}}else{break}}var I=B.split("?");if(I.length==1){I=B.split("%3F")}C.action=I[0];if(I.length==2){var J=I[1].split("&");if(J.length==1){J=I[1].split("%26")}for(i=0;i<J.length;i++){var E=J[i].split("=");if(E.length==1){E=J[i].split("%3D")}if(E.length==2){var L=E[0];var A=E[1];if(A!=""){if(typeof (C.elements[L])!="undefined"){C.elements[L].value=A}else{var D=document.createElement("input");D.type="hidden";D.name=E[0];D.value=E[1];C.appendChild(D)}}}}}if(B.indexOf("buscape")>0){H.getElementById("yschsp").name="produto"}else{H.getElementById("yschsp").name="p"}H.getElementById("yschsp").focus()}if(typeof YAHOO=="undefined"){YAHOO={}}if(typeof YAHOO.RT=="undefined"){YAHOO.RT={}}YAHOO.RT.qsvars={};rt_RtCk="RT";var rti_version="$Revision: 1.1 $";rti_version=rti_version.substring(11,rti_version.length-2);var rti_source;var rti_spaceid;var rti_comment;var rti_bComputeDelta=true;var rti_beaconUrl=("https:"==document.location.protocol?"https:":"http:")+"//rtb.pclick.yahoo.com/images/rt.gif";var rti_userAgent=navigator.userAgent;var rti_isNav=(navigator.appName.indexOf("Netscape")!=-1&&parseInt(navigator.appVersion)>=4&&rti_userAgent.indexOf("Opera")==-1);var rti_beaconSrc;function rt_Start(A){if(undefined==A||!A.length||"string"!=typeof (A)){A=""}var B=Number(new Date());rt_setCk(rt_RtCk,"s="+B+"&u="+escape(A)+"&r="+escape(document.location),0,"/",rti_GetHostname(2));if(20<(Number(new Date()))-B){rt_rmCk(rt_RtCk)}}function rt_Done(B,E,N){var F=Number(new Date());if("object"==typeof (B)){B=0}if("object"==typeof (E)||"undefined"==typeof (E)){E=""}var C=0;var L=false;var P="";var J=0;var A=escape(document.location);var D=escape(document.referrer);if(""!=rt_getCk(rt_RtCk)){C=Number(rt_getSCk(rt_RtCk,"s"));A=rt_getSCk(rt_RtCk,"u");D=rt_getSCk(rt_RtCk,"r");rt_rmCk(rt_RtCk);J=F-C;L=true}for(var G in document.rt_times){if(!document.rt_times.hasOwnProperty(G)){continue}if("t_rtpage"==G){rt_LogTime(G,F-document.rt_times[G],true)}else{rt_LogTime(G,document.rt_times[G]-(rti_bComputeDelta?C:0),true)}}if("undefined"!=typeof (document.rt_timesdelta)&&document.rt_timesdelta.t_rtpage&&!document.rt_timesdelta.t_resp&&J>document.rt_timesdelta.t_rtpage){rt_LogTime("t_resp",J-document.rt_timesdelta.t_rtpage,true)}if("undefined"!=typeof (document.rt_timesdelta)){var K="";for(var G in document.rt_timesdelta){if(!document.rt_timesdelta.hasOwnProperty(G)){continue}K+=","+escape(G)+"|"+document.rt_timesdelta[G]}if(0<K.length){L=true;E+="&t_other="+K.substring(1)}}document.rt_times={};document.rt_timesdelta={};var O="";if(L){var H;if("undefined"!=typeof (rt_page)&&0<rt_page.length&&(H=rt_page.indexOf(":"))){var I=(rti_spaceid?rti_spaceid:rt_page.substring(0,H));var M=rt_page.substring(H+1);E+="&src="+M+"&spaceid="+I}O=rt_Beacon(A,D,J,B,E,true);if(!N){rti_beaconSrc=O}}rt_SetBandwidth();return O}function rt_LogTime(A,B,C){if(C){if("undefined"!=typeof (B)){if(undefined==document.rt_timesdelta){document.rt_timesdelta={}}document.rt_timesdelta[A]=B}}else{if(undefined==document.rt_times){document.rt_times={}}document.rt_times[A]=(undefined==B||0==B?Number(new Date()):B)}}function rt_SetSource(A){rti_source=A}function rt_SetSpaceid(A){rti_spaceid=A}function rt_SetUrl(A){rti_beaconUrl=A}function rt_SetComment(A){rti_comment=A}function rt_AddVar(A,B){YAHOO.RT.qsvars[A]=B}function rt_SetComputeDelta(A){rti_bComputeDelta=A}function rt_Beacon(C,G,L,D,I,M){if(undefined==C||0==C.length){C=escape(document.location)}if("string"==typeof (I)){var J=I.split("&");for(var K=0;K<J.length;K++){var H=J[K].split("=");if(2==H.length){rt_AddVar(H[0],H[1])}}}if(rti_source){rt_AddVar("src",escape(rti_source))}if(rti_comment){rt_AddVar("comment",escape(rti_comment))}if(rti_version){rt_AddVar("v",rti_version)}var E="";if(!D&&C!=escape(document.location)){E="&u2="+escape(document.location)}var F="";if(!D&&G!=escape(document.referrer)){F="&r2="+escape(document.referrer)}var A=rti_beaconUrl+"?u="+C+E+"&r="+G+F+(0<L?"&t_done="+L:"");for(var B in YAHOO.RT.qsvars){if(!YAHOO.RT.qsvars.hasOwnProperty(B)){continue}A+="&"+B+"="+YAHOO.RT.qsvars[B]}if(!M){rti_SendBeacon()}return A}function rti_SendBeacon(A){if(!A){A=rti_beaconSrc}if(A&&("https:"!=document.location.protocol||"https:"==A.substring(0,6))){tmpimg=new Image();tmpimg.src=A+"&ba="+rt_getSCk(rt_BaCk,"ba")}}function rt_RemoveHandler(A){if("load"==A){rti_removeHandler(window,"load",rt_Done)}else{if("beforeunload"==A){rti_removeHandler(window,"beforeunload",rt_Start)}}}rti_addHandler(window,"load",rt_Done);rti_addHandler(window,"beforeunload",rt_Start);if(typeof YAHOO.RT.ADS==="undefined"){YAHOO.RT.ADS={}}function rt_AdBeacon(){var P=("https:"===document.location.protocol?"https:":"http:");var O=P+"//rtb.pclick.yahoo.com/images/rt_ad.gif";var N,K,E="";if(typeof rt_page!=="undefined"&&0<rt_page.length&&(iColon=rt_page.indexOf(":"))){K=(rti_spaceid?rti_spaceid:rt_page.substring(0,iColon));N=rt_page.substring(iColon+1);E+="src="+escape(N)+"&spaceid="+escape(K)}var M=false;var C=0;var F,I,D,J;var H=document.getElementsByTagName("iframe");for(var G=0;G<H.length;G++){F=H[G];I=YAHOO.RT.ADS[F.id+"_startTime"];D=YAHOO.RT.ADS[F.id+"_endTime"];if(typeof I!=="undefined"&&typeof D!=="undefined"){M=true;J=D-I;param1_nm="ad_u"+C;param2_nm="ad_done"+C;E+="&"+param1_nm+"="+escape(F.src)+"&"+param2_nm+"="+J;C++}}var A,B,L;if(M){A=escape(document.location.href);B=escape(document.referrer);rt_SetUrl(O);L=rt_Beacon(A,B,0,true,E,true);rti_SendBeacon(L);rt_SetUrl(rti_beaconUrl)}}rti_addHandler(window,"beforeunload",rt_AdBeacon);rt_BaCk="BA";var rti_startTime=0;var rti_imageSizes=[1.1,1.1,1.1,1.1,1.1,1.1];var rti_imageNames=["y20_1.jpg","y50_1.jpg","y100_1.jpg","y300_1.jpg","y600_1.jpg","y1200_1.jpg"];var rti_imageNum=0;var rti_totalTime=0;var rti_totalSize=0;function rt_SetBandwidth(){var A=rt_getSCk(rt_BaCk,"ba");var C=0;if("https:"==document.location.protocol){C=0}else{if(""==A){C=1}else{var B=rt_getSCk(rt_BaCk,"ip");var D=rt_getSCk(rt_BaCk,"t");if(""==B||("undefined"!=typeof (rt_ip)&&B!=rt_ip)){if(""==D||parseInt(D)+3600<Number(new Date())/1000){C=1}}}}if(C){if(rt_setCk(rt_BaCk,"t="+Math.round(Number(new Date())/1000),0,"/",rti_GetHostname(2))){setTimeout("rt_TestBandwidth(true)",50)}}else{rti_SendBeacon()}}function rt_TestBandwidth(A){if(A){rti_imageNum=rti_totalTime=rti_totalSize=0}tmpImg=new Image();tmpImg.onload=rti_ImageOnload;var B="http://us.i1.yimg.com/us.yimg.com/i/rt/"+rti_imageNames[rti_imageNum];rti_startTime=Number(new Date());tmpImg.src=B}function rti_ImageOnload(){var B=Number(new Date());rti_totalTime+=(B-rti_startTime);rti_totalSize+=rti_imageSizes[rti_imageNum];if(3500>rti_totalTime&&rti_imageNum<rti_imageNames.length-1){rti_imageNum++;rt_TestBandwidth()}else{var A=Math.round(8*rti_totalSize*1000/rti_totalTime);rti_SetBandwidthCookie(A);rti_SendBeacon()}}function rti_SetBandwidthCookie(A){var B="ba="+A+("undefined"==typeof (rt_ip)?"":("&ip="+rt_ip))+"&t="+Math.round(Number(new Date())/1000);var C=0;if("undefined"!=typeof (rt_ip)){var C=new Date();C.setTime(C.getTime()+7*1000*60*60*24);C=C.toGMTString()}rt_setCk(rt_BaCk,B,C,"/",rti_GetHostname(2))}function rti_addHandler(C,D,B,A){A=(A)?true:false;if(C.addEventListener){C.addEventListener(D,B,A)}else{if(C.attachEvent){C.attachEvent("on"+D,B)}else{if(C["on"+D]){}else{C["on"+D]=B}}}}function rti_removeHandler(C,D,B,A){A=(A)?true:false;if(window.removeEventListener){C.removeEventListener(D,B,(A))}else{if(window.detachEvent){C.detachEvent("on"+D,B)}}}function rt_getCk(A){A=" "+A+"=";var B,C;C=" "+document.cookie+";";if((B=C.indexOf(A))>=0){B+=A.length;C=C.substring(B,C.indexOf(";",B));return C}return""}function rt_getSCk(A,D){D="&"+D+"=";var B,C;C=rt_getCk(A);C="&"+C+"&";if((B=C.indexOf(D))>=0){C=C.substring(B+D.length,C.indexOf("&",B+D.length));return C}return""}function rt_setCk(B,E,H,F,D,C){var A=B+"="+E;var G=A+((H)?"; expires="+H:"")+((F)?"; path="+F:"")+((D)?"; domain="+D:"")+((C)?"; secure":"");if((B.length>0)&&(A.length<4000)){document.cookie=G;return(E==rt_getCk(B))}return 0}function rt_rmCk(A){var B=new Date(90,1,1);return rt_setCk(A,"",B.toGMTString(),"/",rti_GetHostname(2))}function rti_GetHostname(D){var A=document.location.hostname;if("number"==typeof (D)&&0<D){var C=A.split(".");C.reverse();A="";for(var B=0;B<D&&B<C.length;B++){A="."+C[B]+A}A=A.substring(1)}return A};
YAHOO.util.FlashDetect=new function(){var self=this;self.installed=false;self.raw="";self.major=-1;self.minor=-1;self.revision=-1;self.revisionStr="";var activeXDetectRules=[{"name":"ShockwaveFlash.ShockwaveFlash.7","version":function(obj){return getActiveXVersion(obj)}},{"name":"ShockwaveFlash.ShockwaveFlash.6","version":function(obj){var version="6,0,21";try{obj.AllowScriptAccess="always";version=getActiveXVersion(obj)}catch(err){}return version}},{"name":"ShockwaveFlash.ShockwaveFlash","version":function(obj){return getActiveXVersion(obj)}}];var getActiveXVersion=function(activeXObj){var version=-1;try{version=activeXObj.GetVariable("$version")}catch(err){}return version};var getActiveXObject=function(name){var obj=-1;try{obj=new ActiveXObject(name)}catch(err){}return obj};var parseActiveXVersion=function(str){var versionArray=str.split(",");return{"raw":str,"major":parseInt(versionArray[0].split(" ")[1],10),"minor":parseInt(versionArray[1],10),"revision":parseInt(versionArray[2],10),"revisionStr":versionArray[2]}};var parseStandardVersion=function(str){var descParts=str.split(/ +/);var majorMinor=descParts[2].split(/\./);var revisionStr=descParts[3];return{"raw":str,"major":parseInt(majorMinor[0],10),"minor":parseInt(majorMinor[1],10),"revisionStr":revisionStr,"revision":parseRevisionStrToInt(revisionStr)}};var parseRevisionStrToInt=function(str){return parseInt(str.replace(/[a-zA-Z]/g,""),10)||self.revision};self.majorAtLeast=function(version){return self.major>=version};self.FlashDetect=function(){if(navigator.plugins&&navigator.plugins.length>0){var type='application/x-shockwave-flash';var mimeTypes=navigator.mimeTypes;if(mimeTypes&&mimeTypes[type]&&mimeTypes[type].enabledPlugin&&mimeTypes[type].enabledPlugin.description){var version=mimeTypes[type].enabledPlugin.description;var versionObj=parseStandardVersion(version);self.raw=versionObj.raw;self.major=versionObj.major;self.minor=versionObj.minor;self.revisionStr=versionObj.revisionStr;self.revision=versionObj.revision;self.installed=true}}else if(navigator.appVersion.indexOf("Mac")==-1&&window.execScript){var version=-1;for(var i=0;i<activeXDetectRules.length&&version==-1;i++){var obj=getActiveXObject(activeXDetectRules[i].name);if(typeof obj=="object"){self.installed=true;version=activeXDetectRules[i].version(obj);if(version!=-1){var versionObj=parseActiveXVersion(version);self.raw=versionObj.raw;self.major=versionObj.major;self.minor=versionObj.minor;self.revision=versionObj.revision;self.revisionStr=versionObj.revisionStr}}}}}()};YAHOO.util.FlashDetect.release="1.0.3";
if(typeof YAHOO=="undefined"){var YAHOO={};}YAHOO.Ajax=function(){this.uid=YAHOO.Ajax.prototype.obj_list.length;YAHOO.Ajax.prototype.obj_list[YAHOO.Ajax.prototype.obj_list.length]=this;};YAHOO.Ajax.prototype={obj_list: new Array(),replace: function(a_url,callback){this.connection=this.setConnection();this.a_url=a_url;this.callback=callback;this.connection.onreadystatechange=this.callback;},setConnection: function(){try{this.connection=new XMLHttpRequest();}catch(e){try{this.connection=new ActiveXObject("Msxml2.XMLHTTP");}catch (e){try{this.connection=new ActiveXObject("Microsoft.XMLHTTP");}catch (e){}}}return this.connection;},replace_div: function(url,tab,cb){var conn=this.setConnection();eval("this.callback=function (){YAHOO.Ajax.prototype.obj_list["+this.uid+"].replaceDiv('"+tab+"',conn,cb)};");conn.onreadystatechange=this.callback;conn.open("GET",url,true);conn.send(null);},replaceDiv: function (tab,conn,cb){if(conn.readyState == 4){var rtext=conn.responseText;if(rtext && conn.status == '200' && rtext.search('unable to resolve') != 0){document.getElementById(tab).innerHTML=rtext;}if(cb){cb.call();}delete conn;}}}
if(typeof YAHOO=="undefined"){var YAHOO={};}
YAHOO.Tabs = function(tabs,etabs,a_type,b_type,t_default,devent){
this.switchType = (!a_type)?this.switchType: a_type;
this.selfType = (!b_type)?this.selfType: b_type;
this.tabs = tabs;
this.etabs = etabs;
this.default_tab = t_default;
this.def_event = (!devent)?'onclick':devent;
this.ajax = false;
this.uid = YAHOO.Tabs.prototype.obj_list.length;
YAHOO.Tabs.prototype.obj_list[YAHOO.Tabs.prototype.obj_list.length] = this;
var obj = '';
this.tmap = {};
for(var tab in this.etabs){
this.tmap[etabs[tab]] = tabs[tab];
this.tempobj = document.getElementById(etabs[tab]);
if(this.tempobj){
this.setEventTabReady();
this.tempobj[this.def_event] = this.switchIt;
this.tempobj.eventobj = this;
}
}
if(this.default_tab){
this.setDefault();
}
}
YAHOO.Tabs.prototype = {
obj_list: new Array(),
rotateTabs: function(cval){ 
this.ctabs = this.etabs; 
this.con_obj = this.getDefaultObj(); 
if(!this.con_obj){ 
var ptab = YAHOO.cookie.get(cval); 
if(parseInt(ptab) >= 0){ 
ptab++; 
ptab = (ptab)%(this.tabs.length); 
if(ptab) this.setTab(this.tabs[ptab]); 
}else{ 
ptab = 0; 
} 
YAHOO.cookie.set(cval,ptab,400*3600000); 
} 
}, 
setAjax: function(tajax,t_default){
this.ajax = true;
this.tajax = tajax;
this.aclient = new YAHOO.Ajax();
for(var tab in this.etabs){
this.tempobj = document.getElementById(this.etabs[tab]);
var ctab = this.tmap[this.etabs[tab]];
if(this.tempobj && this.tajax[ctab]){	
this.tajax[ctab]['loaded'] = false;
eval("this.loadAjax = function (){YAHOO.Tabs.prototype.obj_list["+this.uid+"].ajaxReplace('"+ctab+"')};");
this.tempobj.onmouseover = this.loadAjax;
}
}
this.default_tab = t_default;
if(this.default_tab){
this.setDefault();
}
},
ajaxReplace: function(ctab){
if(this.tajax && this.tajax[ctab] && !this.tajax[ctab]['loaded']){
this.tajax[ctab]['loaded'] = true;
var url = this.tajax[ctab]['url'];
var div = this.tajax[ctab]['tab'];
var cb = this.tajax[ctab]['cb'];
if(typeof url == 'object'){
for(var i in url){
this.aclient.replace_div(url[i],div[i],cb?cb[i]:null);		
}	
}else{
this.aclient.replace_div(url,div,cb?cb:null);		
}
}
},
setEventTabReady: function(){
var elems = this.tempobj.getElementsByTagName('a');
for(var i=0;i<elems.length;i++){
elems[i][this.def_event] = this.switchParent;
elems[i].parentobj = this.tempobj;
}
},
setFalse: function(){
return false;
},
switchType: 'display',
selfType: '',
tabs: new Array(),
etabs: new Array(),
setDefault: function(did){
var id = did?did:'';
this.ctabs = this.tabs;
if(id==''){
this.ctabs = this.etabs;
this.con_obj = this.getDefaultObj();
this.ctabs = this.tabs;
}else{
this.con_obj = this.getGivenObj(id);
}
if(this.con_obj != null){
this.evn_obj = this.getEventObj(this.con_obj.id);
if(this.evn_obj.onmouseover){
this.evn_obj.onmouseover.call(this.con_obj.id);
}
this.action(this.con_obj,this.switchType);
this.ctabs = this.etabs;
this.act_obj = this.getEventObj(this.con_obj.id);
this.target = '';
if(this.act_obj != null){
this.action(this.act_obj,this.selfType);
}
}
},
setTab: function(id){
this.setDefault(id);
},
switchIt: function (e){
var me = this.eventobj;
me.act_obj = this;
me.setEvent(e);
me.ctabs = me.etabs;
me.con_obj = me.getObj();
me.ctabs = me.tabs;
me.action(me.con_obj,me.switchType);
me.ctabs = me.etabs;
me.action(me.act_obj,me.selfType);
return false;
},
switchParent: function (e){
if(!this.parentobj || !this.parentobj.eventobj){
return false;
}
var me = this.parentobj.eventobj;
me.act_obj = this.parentobj;
me.setEvent(e);
me.ctabs = me.etabs;
me.con_obj = me.getObj();
me.ctabs = me.tabs;
me.action(me.con_obj,me.switchType);
me.ctabs = me.etabs;
me.action(me.act_obj,me.selfType);
return false;
},
setEvent: function(e){
var e = (!e)?event:e;
this.target = (!e.target)?e.srcElement:e.target;
},
action: function(r_obj,act_type){
this.ajaxReplace(r_obj.id);
if(act_type == 'display'){
this.switchBlocks(r_obj);
}else if(act_type == 'css'){
this.switchCSS(r_obj);
}else if(act_type == 'display_n_css'){
this.switchBlocks(r_obj);
this.switchCSS(r_obj);
}else{
act_type(this);
}
},
switchBlocks: function(obj){
var tobj = '';
for(var tab in this.ctabs){
tobj = document.getElementById(this.ctabs[tab]);
tobj.style.display = 'none';
}
obj.style.display = 'block';
},
switchCSS: function(obj){
var tobj = '';
for(var tab in this.ctabs){
tobj = document.getElementById(this.ctabs[tab]);
tobj.className = tobj.className.replace(/\s+on/g,"");
tobj.className = tobj.className.replace(/^on$/,"");
}
obj.className += ' on';
},
getObj: function (){
var tid = this.getId(this.target);
return (tid=='')?null:document.getElementById(this.tmap[tid]);
},
getDefaultObj: function (){
var tobj = '';
var vobj = document.getElementById(this.default_tab);
if(vobj){
var rid = this.getId(vobj);
if(rid != '') var vid = this.tmap[rid];
return (rid=='')?null:document.getElementById(vid);
}
return null;
},
getGivenObj: function (id){
var tobj = '';
var vobj = document.getElementById(id);
if(vobj){
return vobj;
}
return null;
},
isObj: function (o_obj){
for(var tab in this.ctabs){
if(this.etabs[tab] == o_obj.id){
return true;
}
}
return false;
},
// When event is not available
getEventObj: function(aval){
for(var ar in this.tmap){
if(this.tmap[ar] == aval){
return document.getElementById(ar);
}
}
return null;
},
getId: function (o_obj){
while(!o_obj.id || !this.isObj(o_obj)){
if(o_obj.parentNode){
o_obj = o_obj.parentNode;
}else{
return '';
}
}
return o_obj.id;
}
}
if(typeof YAHOO=="undefined"){var YAHOO={};}YAHOO.AnimManager=function(etags,atags,container,height,scrolltime){this.etags=etags;this.atags=atags;this.container=container;this.cont_obj=document.getElementById(this.container);this.height=height?height:50;this.scrolltime=scrolltime?scrolltime:5;this.uid=YAHOO.AnimManager.prototype.obj_list.length;YAHOO.AnimManager.prototype.obj_list[YAHOO.AnimManager.prototype.obj_list.length]=this;this.aniflag=false;this.paclose_flag=false;this.startCallback='';this.closeCallback='';this.pa=false;eval("this.callbackStart=function (){YAHOO.AnimManager.prototype.obj_list["+this.uid+"].startAni()};");eval("this.callbackCS=function (){YAHOO.AnimManager.prototype.obj_list["+this.uid+"].startOpener()};");eval("this.callbackClose=function (){YAHOO.AnimManager.prototype.obj_list["+this.uid+"].disposePA()};");eval("this.callbackSTCL=function (){YAHOO.AnimManager.prototype.obj_list["+this.uid+"].startClose()};");eval("this.callbackSC=function (){YAHOO.AnimManager.prototype.obj_list["+this.uid+"].startCloser()};");eval("this.callbackEnd=function (){YAHOO.AnimManager.prototype.obj_list["+this.uid+"].closeAni()};");eval("this.callbackUnset=function (){YAHOO.AnimManager.prototype.obj_list["+this.uid+"].unsetClose()};");for(var i in this.etags){eval("this.callbackInit=function (){YAHOO.AnimManager.prototype.obj_list["+this.uid+"].startPA('"+this.etags[i]+"')};");document.getElementById(this.etags[i]).onmouseover=this.callbackInit;document.getElementById(this.etags[i]).onmouseout=this.callbackClose;}for(var i in this.atags){document.getElementById(this.atags[i]).onmouseout=this.callbackClose;document.getElementById(this.atags[i]).onmouseover=this.callbackUnset;}};YAHOO.AnimManager.prototype={obj_list: new Array(),disposePA: function(){this.anistart=true;this.paclose_flag=false;setTimeout(this.callbackSC,1200);},startCloser: function() {if(!this.paclose_flag){this.cont_obj.style.overflow='scroll';this.cont_height=parseInt(this.cont_obj.style.height);if(!this.cont_height){this.cont_height=this.height;}this.aniflag=false;this.close_started=true;this.closeAni();}},startPA: function(tab){this.paclose_flag=true;this.anistart=false;this.target=tab;this.sc_req=false;for(var i in YAHOO.AnimManager.prototype.obj_list){var i_obj=YAHOO.AnimManager.prototype.obj_list[i];if(i != this.uid && i_obj.pa){i_obj.close_started=false;i_obj.paclose_flag=true;this.sc_req=true;this.otherPA=i_obj;break;}}setTimeout(this.callbackCS,400);},startOpener: function(tab){if(!this.anistart){if(this.startCallback != ''){this.startCallback(this);}if(!this.aniflag && !this.pa){this.cont_obj.style.overflow='hidden';this.cont_obj.style.height='0px';this.cont_obj.style.display='block';this.cont_height=0;this.aniflag=true;if(this.sc_req){this.otherPA.cont_obj.style.display='block';this.otherPA.cont_obj.style.overflow='hidden';this.otherPA.cont_height=parseInt(this.otherPA.cont_obj.style.height);if(!this.otherPA.cont_height){this.otherPA.cont_height=this.otherPA.height;}this.otherPA.aniflag=false;this.otherPA.close_started=true;this.startClose();}else{this.startAni();}}}else{}},unsetClose: function(){this.paclose_flag=true;},closeAni: function(){if(this.close_started){this.cont_height -= 50;if(this.cont_height >= 0){this.cont_obj.style.height=this.cont_height+ 'px';this.pa=false;setTimeout(this.callbackEnd,this.scrolltime);}else{this.close_started=false;this.cont_obj.style.display='none';if(this.closeCallback != ''){this.closeCallback(this);}this.paclose_flag=true;}}},startClose: function(){if(this.aniflag){this.cont_height += 50;if(this.cont_height <= this.height){this.cont_obj.style.height=this.cont_height + 'px';}else{this.pa=true;this.aniflag=false;this.cont_obj.style.height='';this.cont_obj.style.overflow='visible';}}if(this.otherPA.close_started){this.otherPA.cont_height -= 50;if(this.otherPA.cont_height>= 0){this.otherPA.cont_obj.style.height=this.otherPA.cont_height+ 'px';this.otherPA.pa=false;}else{this.otherPA.close_started=false;this.otherPA.paclose_flag=true;this.otherPA.cont_obj.style.display='none';if(this.otherPA.closeCallback != ''){this.otherPA.closeCallback(this);}}}if(this.aniflag || this.otherPA.closeStarted){setTimeout(this.callbackSTCL,this.scrolltime);}},startAni: function(){if(this.aniflag){this.cont_height += 50;if(this.cont_height <= this.height){this.cont_obj.style.height=this.cont_height + 'px';setTimeout(this.callbackStart,this.scrolltime);}else{this.pa=true;this.aniflag=false;this.cont_obj.style.height='';this.cont_obj.style.overflow='visible';}}}}


function trim(sobj){if(!sobj) return '';return sobj.replace(/^\s+/,'').replace(/\s+$/,'').replace(/\s{2,}/,' ');}var groupcu = 0;function nextG(){        document.getElementById('glist'+groupcu).style.display = 'none';        var gobj = document.getElementById('glist'+(++groupcu));        if(gobj){                document.getElementById('glist'+groupcu).style.display = 'block';        }else{                groupcu = 0;                document.getElementById('glist0').style.display = 'block';        }}function prevG(total){        document.getElementById('glist'+groupcu).style.display = 'none';        var gobj = document.getElementById('glist'+(--groupcu));        if(gobj){                document.getElementById('glist'+groupcu).style.display = 'block';        }else{                groupcu = total?total-1:0;                document.getElementById('glist'+groupcu).style.display = 'block';        }}var astrocu = 0;function nextA(){document.getElementById('alist'+astrocu).style.display = 'none';var gobj = document.getElementById('alist'+(++astrocu));if(gobj){document.getElementById('alist'+astrocu).style.display = 'block';}else{astrocu=0;document.getElementById('alist0').style.display = 'block';}}function prevA(total){document.getElementById('alist'+astrocu).style.display = 'none';var gobj = document.getElementById('alist'+(--astrocu));if(gobj){document.getElementById('alist'+astrocu).style.display = 'block';}else{astrocu = total?total-1:0;document.getElementById('alist'+astrocu).style.display = 'block';}}function activateAstro(aid){        for(var i=0;i<12;i++){                document.getElementById('alist'+i).style.display='none';        }        document.getElementById('alist'+aid).style.display='block';        astrocu = aid;        document.getElementById('astro_select').style.display = 'none';        document.getElementById('astro_predict').style.display = 'block';}function show_signs(){        document.getElementById('astro_predict').style.display = 'none';        document.getElementById('astro_select').style.display = 'block';}function createCookie(name,value,days) {	if (days) {		var date = new Date();		date.setTime(date.getTime()+(days*24*60*60*1000));		var expires = "; expires="+date.toGMTString();	}	else var expires = "";	document.cookie = name+"="+value+expires+";domain=yahoo.com; path=/";}function readCookie(name) {	var nameEQ = name + "=";	var ca = document.cookie.split(';');	for(var i=0;i < ca.length;i++) {		var c = ca[i];		while (c.charAt(0)==' ') c = c.substring(1,c.length);		if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length,c.length);	}	return null;}function eraseCookie(name) {	createCookie(name,"",-1);}function writeStatus(x){	if(x==1){			eraseCookie('PH');                eraseCookie('yfn');					}}

function switchGroups(tot){
var bobj = document.getElementById('buds1');
var i = 2;
if(document.getElementById('mess_mess').innerHTML == '» Collapse Groups') {
document.getElementById('mess_mess').innerHTML = '&#187; Expand Groups';
while(bobj){
bobj.style.display = 'none';
bobj.parentNode.getElementsByTagName('div')[0].getElementsByTagName('div')[0].className += ' off';
bobj = document.getElementById('buds'+i++);
}
}else{
document.getElementById('mess_mess').innerHTML = '&#187; Collapse Groups';
while(bobj){
bobj.style.display = 'block';
var obj = bobj.parentNode.getElementsByTagName('div')[0].getElementsByTagName('div')[0];
obj.className = obj.className.replace(' off','');
bobj = document.getElementById('buds'+i++);
}
}
}
function switchMBlock(id){
var bobj = document.getElementById('buds'+id);
if(bobj.style.display == '' || bobj.style.display == 'block'){
bobj.style.display = 'none';
bobj.parentNode.getElementsByTagName('div')[0].getElementsByTagName('div')[0].className += ' off';
}else{
bobj.style.display = 'block';
var obj = bobj.parentNode.getElementsByTagName('div')[0].getElementsByTagName('div')[0];
obj.className = obj.className.replace(' off','');
}
}

