if(typeof YAHOO=="undefined"||!YAHOO){var YAHOO={};}
YAHOO.namespace=function(){var a=arguments,o=null,i,j,d;for(i=0;i<a.length;i=i+1){d=a[i].split(".");o=YAHOO;for(j=(d[0]=="YAHOO")?1:0;j<d.length;j=j+1){o[d[j]]=o[d[j]]||{};o=o[d[j]];}}
return o;};
    YAHOO.namespace( 'sea.fp' );
    YAHOO.sea.fp._mac = 0;
    YAHOO.sea.fp._opera = 0;
    
YAHOO.sea.fp.SearchHelper={labels:{'sf-web':['Web Search','Singapore'],'sf-images':['Images'],'sf-videos':['Video'],'sf-directory':['Directory','Singapore'],'sf-news':['News']},links:{'sf-web':['http://sg.search.yahoo.com/search'],'sf-images':['http://sg.search.yahoo.com/search/images'],'sf-videos':['http://sg.video.search.yahoo.com/search/video'],'sf-directory':['http://sg.search.yahoo.com/search/dir'],'sf-news':['http://sg.search.yahoo.com/search/news']},frcodes:{'sf-web':['yfp-t-101'],'sf-images':['yfp-t-101'],'sf-videos':['yfp-t-101'],'sf-directory':['yfp-t-101'],'sf-news':['yfp-t-101']}};YAHOO.sea.fp.PaModuleError={mail:{html:"Please go to <a href='r/sgma'>Yahoo! Mail</a> to get your mail.</li><li class='last'><a href='r/sgma'>&#187; Go To Yahoo! Mail",error:false,isProcessed:0},messenger:{html:"Please go to <a href='r/sgmg'>Yahoo! Messenger</a> to see your online contacts.</li><li class='last'><a href='ymsgr:sendIM'>&#187; Go To Yahoo! Messenger",error:false,isProcessed:0},answers:{html:"Please go to <a href='r/sga1'>Yahoo! Answers</a> to share questions and answers.</li><li class='last'><a href='r/sga1'>&#187; Go To Yahoo! Answers",error:false,isProcessed:0},weather:{html:"Please go to <a href='r/wf'>Yahoo! Weather</a> to get the local weather.</li><li class='last'><a href='r/wf'>&#187; Go To Yahoo! Weather",error:false,isProcessed:0},template:{templateHdr:"<div class='pa-alert error'><ul><li class='first'>",templateFtr:"</a></li></ul></div>"}};YAHOO.sea.fp.PaModuleHelper={LOADING_MSG:"<div class='loading'><h3>Loading</h3><img src='http://l.yimg.com/hb/i/sea/fp/img/loading.gif' alt=''></div>"};YAHOO.sea.fp.AnswersLabels={title:'Yahoo! Answers',ask:'Ask',answer:'Answer',discover:'Discover'};YAHOO.sea.fp.AnswersData=[];YAHOO.sea.fp.SearchHelper.falcon={oInfo:{'on':'<span id="ac_info">No suggestions. Please begin typing your search query.</span><span id="ac_options"><a href="r/sap">Search Assist:</a> On | <a href="r/sap" onclick="YAHOO.sea.fp.Search.Falcon.closeTray();return YAHOO.sea.fp.Search.Falcon.toggle(\'off\');">Off</a></span>','off':'<span id="ac_info">Suggestions are turned off. <a href="r/sap" onclick="YAHOO.sea.fp.Search.Falcon.closeTray();return YAHOO.sea.fp.Search.Falcon.toggle(\'on\');">Click here to activate.</a></span><span id="ac_options"><a href="r/sap">Search Assist:</a> <a href="r/sap" onclick="YAHOO.sea.fp.Search.Falcon.closeTray();return YAHOO.sea.fp.Search.Falcon.toggle(\'on\');">On</a> | Off</span>','other':function(tabName){return'<span id="ac_info">Suggestions for '+tabName+' search will be available soon.</span>';}}};YAHOO.sea.fp.PaModule={openMail:function(){}};
    
YAHOO.sea.fp._hostname=location.hostname;YAHOO.sea.fp._homepage=0;YAHOO.sea.fp._ff=1;YAHOO.sea.fp._ffv="3.0.5";YAHOO.sea.fp._region=(function(){var whitelist=['sg','ph','id','vn','th'];var isWhite=false;if(location.hostname.indexOf('malaysia')==0){region='malaysia';}else{region=location.hostname.substr(0,2).toLowerCase();for(var i=0,n=whitelist.length;i<n;++i){if(whitelist[i]==region){isWhite=true;break;}}
if(!isWhite){region='sg';}}
return region;})();YAHOO.sea.fp.Cookie={get:function(n){var v='',c=' '+document.cookie+';',s=c.indexOf((' '+n+'='));if(s>=0){s+=n.length+2;v=unescape(c.substring(s,c.indexOf(';',s)));}
return v;},set:function(n,v){var a=arguments,al=a.length;document.cookie=n+'='+v+
((al>2&&a[2]!=='')?';expires='+(typeof a[2]=='object'?a[2]:(new Date(a[2]*1000)).toGMTString()):'')+';path='+((al>3&&a[3]!=='')?a[3]:'/')+';domain='+((al>4&&a[4]!=='')?a[4]:YAHOO.sea.fp._hostname);},checksub:function(sCookie,s){var aParts=sCookie.split('&'),nParts=aParts.length,aKeyVal;if(nParts==1){return sCookie.indexOf(s);}else{for(var i=0;i<nParts;i++){aKeyVal=aParts[i].split('=');if(aKeyVal[0]==s){return i;}}}
return-1;},getsub:function(n,s){var sCookie=this.get(n);var nExists=this.checksub(sCookie,s);if(nExists>-1){return sCookie.split('&')[nExists].split('=')[1];}else if(sCookie.indexOf(s)>0){return sCookie.split('=')[1];}
return'';},setsub:function(n,s,v){var sCookie=this.get(n),a=arguments,al=a.length;var aParts=sCookie.split('&');var nExists=this.checksub(sCookie,s);if(sCookie===''){sNewVal=(s+'='+v).toString();}else{if(nExists==-1){nExists=aParts.length;}
aParts[nExists]=s+'='+v;sNewVal=aParts.join('&');}
return this.set(n,sNewVal,(a[3]||''),(a[4]||'/'),(a[5]||YAHOO.sea.fp._hostname));}};YAHOO.sea.fp.Beacon=function(rdPath){var tracker=new Image();tracker.src="http://aa.rd.yahoo.com/spirit/vn/"+rdPath+"/*http://d.yimg.com/hb/i/sea/fp/img/trk.gif?r="+new Date().getTime();setTimeout(function(){tracker=null;},10000);};




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;}else{YAHOO.log("mainClass is undefined for module "+A,"warn");}};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,air:0};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];}}A=B.match(/AdobeAIR\/([^\s]*)/);if(A){C.air=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||{};(function(){var A=YAHOO.lang,C=["toString","valueOf"],B={isArray:function(D){if(D){return A.isNumber(D.length)&&A.isFunction(D.splice);}return false;},isBoolean:function(D){return typeof D==="boolean";},isFunction:function(D){return typeof D==="function";},isNull:function(D){return D===null;},isNumber:function(D){return typeof D==="number"&&isFinite(D);},isObject:function(D){return(D&&(typeof D==="object"||A.isFunction(D)))||false;},isString:function(D){return typeof D==="string";},isUndefined:function(D){return typeof D==="undefined";},_IEEnumFix:(YAHOO.env.ua.ie)?function(F,E){for(var D=0;D<C.length;D=D+1){var H=C[D],G=E[H];if(A.isFunction(G)&&G!=Object.prototype[H]){F[H]=G;}}}:function(){},extend:function(H,I,G){if(!I||!H){throw new Error("extend failed, please check that "+"all dependencies are included.");}var E=function(){};E.prototype=I.prototype;H.prototype=new E();H.prototype.constructor=H;H.superclass=I.prototype;if(I.prototype.constructor==Object.prototype.constructor){I.prototype.constructor=I;}if(G){for(var D in G){if(A.hasOwnProperty(G,D)){H.prototype[D]=G[D];}}A._IEEnumFix(H.prototype,G);}},augmentObject:function(H,G){if(!G||!H){throw new Error("Absorb failed, verify dependencies.");}var D=arguments,F,I,E=D[2];if(E&&E!==true){for(F=2;F<D.length;F=F+1){H[D[F]]=G[D[F]];}}else{for(I in G){if(E||!(I in H)){H[I]=G[I];}}A._IEEnumFix(H,G);}},augmentProto:function(G,F){if(!F||!G){throw new Error("Augment failed, verify dependencies.");}var D=[G.prototype,F.prototype];for(var E=2;E<arguments.length;E=E+1){D.push(arguments[E]);}A.augmentObject.apply(this,D);},dump:function(D,I){var F,H,K=[],L="{...}",E="f(){...}",J=", ",G=" => ";if(!A.isObject(D)){return D+"";}else{if(D instanceof Date||("nodeType" in D&&"tagName" in D)){return D;}else{if(A.isFunction(D)){return E;}}}I=(A.isNumber(I))?I:3;if(A.isArray(D)){K.push("[");for(F=0,H=D.length;F<H;F=F+1){if(A.isObject(D[F])){K.push((I>0)?A.dump(D[F],I-1):L);}else{K.push(D[F]);}K.push(J);}if(K.length>1){K.pop();}K.push("]");}else{K.push("{");for(F in D){if(A.hasOwnProperty(D,F)){K.push(F+G);if(A.isObject(D[F])){K.push((I>0)?A.dump(D[F],I-1):L);}else{K.push(D[F]);}K.push(J);}}if(K.length>1){K.pop();}K.push("}");}return K.join("");},substitute:function(S,E,L){var I,H,G,O,P,R,N=[],F,J="dump",M=" ",D="{",Q="}";for(;;){I=S.lastIndexOf(D);if(I<0){break;}H=S.indexOf(Q,I);if(I+1>=H){break;}F=S.substring(I+1,H);O=F;R=null;G=O.indexOf(M);if(G>-1){R=O.substring(G+1);O=O.substring(0,G);}P=E[O];if(L){P=L(O,P,R);}if(A.isObject(P)){if(A.isArray(P)){P=A.dump(P,parseInt(R,10));}else{R=R||"";var K=R.indexOf(J);if(K>-1){R=R.substring(4);}if(P.toString===Object.prototype.toString||K>-1){P=A.dump(P,parseInt(R,10));}else{P=P.toString();}}}else{if(!A.isString(P)&&!A.isNumber(P)){P="~-"+N.length+"-~";N[N.length]=F;}}S=S.substring(0,I)+P+S.substring(H+1);}for(I=N.length-1;I>=0;I=I-1){S=S.replace(new RegExp("~-"+I+"-~"),"{"+N[I]+"}","g");}return S;},trim:function(D){try{return D.replace(/^\s+|\s+$/g,"");}catch(E){return D;}},merge:function(){var G={},E=arguments;for(var F=0,D=E.length;F<D;F=F+1){A.augmentObject(G,E[F],true);}return G;},later:function(K,E,L,G,H){K=K||0;E=E||{};var F=L,J=G,I,D;if(A.isString(L)){F=E[L];}if(!F){throw new TypeError("method undefined");}if(!A.isArray(J)){J=[G];}I=function(){F.apply(E,J);};D=(H)?setInterval(I,K):setTimeout(I,K);return{interval:H,cancel:function(){if(this.interval){clearInterval(D);}else{clearTimeout(D);}}};},isValue:function(D){return(A.isObject(D)||A.isString(D)||A.isNumber(D)||A.isBoolean(D));}};A.hasOwnProperty=(Object.prototype.hasOwnProperty)?function(D,E){return D&&D.hasOwnProperty(E);}:function(D,E){return !A.isUndefined(D[E])&&D.constructor.prototype[E]!==D[E];};B.augmentObject(A,B,true);YAHOO.util.Lang=A;A.augment=A.augmentProto;YAHOO.augment=A.augmentProto;YAHOO.extend=A.extend;})();YAHOO.register("yahoo",YAHOO,{version:"2.6.0",build:"1321"});
(function(){var B=YAHOO.util,F=YAHOO.lang,L,J,K={},G={},N=window.document;YAHOO.env._id_counter=YAHOO.env._id_counter||0;var C=YAHOO.env.ua.opera,M=YAHOO.env.ua.webkit,A=YAHOO.env.ua.gecko,H=YAHOO.env.ua.ie;var E={HYPHEN:/(-[a-z])/i,ROOT_TAG:/^body|html$/i,OP_SCROLL:/^(?:inline|table-row)$/i};var O=function(Q){if(!E.HYPHEN.test(Q)){return Q;}if(K[Q]){return K[Q];}var R=Q;while(E.HYPHEN.exec(R)){R=R.replace(RegExp.$1,RegExp.$1.substr(1).toUpperCase());}K[Q]=R;return R;};var P=function(R){var Q=G[R];if(!Q){Q=new RegExp("(?:^|\\s+)"+R+"(?:\\s+|$)");G[R]=Q;}return Q;};if(N.defaultView&&N.defaultView.getComputedStyle){L=function(Q,T){var S=null;if(T=="float"){T="cssFloat";}var R=Q.ownerDocument.defaultView.getComputedStyle(Q,"");if(R){S=R[O(T)];}return Q.style[T]||S;};}else{if(N.documentElement.currentStyle&&H){L=function(Q,S){switch(O(S)){case"opacity":var U=100;try{U=Q.filters["DXImageTransform.Microsoft.Alpha"].opacity;}catch(T){try{U=Q.filters("alpha").opacity;}catch(T){}}return U/100;case"float":S="styleFloat";default:var R=Q.currentStyle?Q.currentStyle[S]:null;return(Q.style[S]||R);}};}else{L=function(Q,R){return Q.style[R];};}}if(H){J=function(Q,R,S){switch(R){case"opacity":if(F.isString(Q.style.filter)){Q.style.filter="alpha(opacity="+S*100+")";if(!Q.currentStyle||!Q.currentStyle.hasLayout){Q.style.zoom=1;}}break;case"float":R="styleFloat";default:Q.style[R]=S;}};}else{J=function(Q,R,S){if(R=="float"){R="cssFloat";}Q.style[R]=S;};}var D=function(Q,R){return Q&&Q.nodeType==1&&(!R||R(Q));};YAHOO.util.Dom={get:function(S){if(S){if(S.nodeType||S.item){return S;}if(typeof S==="string"){return N.getElementById(S);}if("length" in S){var T=[];for(var R=0,Q=S.length;R<Q;++R){T[T.length]=B.Dom.get(S[R]);}return T;}return S;}return null;},getStyle:function(Q,S){S=O(S);var R=function(T){return L(T,S);};return B.Dom.batch(Q,R,B.Dom,true);},setStyle:function(Q,S,T){S=O(S);var R=function(U){J(U,S,T);};B.Dom.batch(Q,R,B.Dom,true);},getXY:function(Q){var R=function(S){if((S.parentNode===null||S.offsetParent===null||this.getStyle(S,"display")=="none")&&S!=S.ownerDocument.body){return false;}return I(S);};return B.Dom.batch(Q,R,B.Dom,true);},getX:function(Q){var R=function(S){return B.Dom.getXY(S)[0];};return B.Dom.batch(Q,R,B.Dom,true);},getY:function(Q){var R=function(S){return B.Dom.getXY(S)[1];};return B.Dom.batch(Q,R,B.Dom,true);},setXY:function(Q,T,S){var R=function(W){var V=this.getStyle(W,"position");if(V=="static"){this.setStyle(W,"position","relative");V="relative";}var Y=this.getXY(W);if(Y===false){return false;}var X=[parseInt(this.getStyle(W,"left"),10),parseInt(this.getStyle(W,"top"),10)];if(isNaN(X[0])){X[0]=(V=="relative")?0:W.offsetLeft;}if(isNaN(X[1])){X[1]=(V=="relative")?0:W.offsetTop;}if(T[0]!==null){W.style.left=T[0]-Y[0]+X[0]+"px";}if(T[1]!==null){W.style.top=T[1]-Y[1]+X[1]+"px";}if(!S){var U=this.getXY(W);if((T[0]!==null&&U[0]!=T[0])||(T[1]!==null&&U[1]!=T[1])){this.setXY(W,T,true);}}};B.Dom.batch(Q,R,B.Dom,true);},setX:function(R,Q){B.Dom.setXY(R,[Q,null]);},setY:function(Q,R){B.Dom.setXY(Q,[null,R]);},getRegion:function(Q){var R=function(S){if((S.parentNode===null||S.offsetParent===null||this.getStyle(S,"display")=="none")&&S!=S.ownerDocument.body){return false;}var T=B.Region.getRegion(S);return T;};return B.Dom.batch(Q,R,B.Dom,true);},getClientWidth:function(){return B.Dom.getViewportWidth();},getClientHeight:function(){return B.Dom.getViewportHeight();},getElementsByClassName:function(U,Y,V,W){U=F.trim(U);Y=Y||"*";V=(V)?B.Dom.get(V):null||N;if(!V){return[];}var R=[],Q=V.getElementsByTagName(Y),X=P(U);for(var S=0,T=Q.length;S<T;++S){if(X.test(Q[S].className)){R[R.length]=Q[S];if(W){W.call(Q[S],Q[S]);}}}return R;},hasClass:function(S,R){var Q=P(R);var T=function(U){return Q.test(U.className);};return B.Dom.batch(S,T,B.Dom,true);},addClass:function(R,Q){var S=function(T){if(this.hasClass(T,Q)){return false;}T.className=F.trim([T.className,Q].join(" "));return true;};return B.Dom.batch(R,S,B.Dom,true);},removeClass:function(S,R){var Q=P(R);var T=function(W){var V=false,X=W.className;if(R&&X&&this.hasClass(W,R)){W.className=X.replace(Q," ");if(this.hasClass(W,R)){this.removeClass(W,R);}W.className=F.trim(W.className);if(W.className===""){var U=(W.hasAttribute)?"class":"className";W.removeAttribute(U);}V=true;}return V;};return B.Dom.batch(S,T,B.Dom,true);},replaceClass:function(T,R,Q){if(!Q||R===Q){return false;}var S=P(R);var U=function(V){if(!this.hasClass(V,R)){this.addClass(V,Q);return true;}V.className=V.className.replace(S," "+Q+" ");if(this.hasClass(V,R)){this.removeClass(V,R);}V.className=F.trim(V.className);return true;};return B.Dom.batch(T,U,B.Dom,true);},generateId:function(Q,S){S=S||"yui-gen";var R=function(T){if(T&&T.id){return T.id;}var U=S+YAHOO.env._id_counter++;if(T){T.id=U;}return U;};return B.Dom.batch(Q,R,B.Dom,true)||R.apply(B.Dom,arguments);},isAncestor:function(R,S){R=B.Dom.get(R);S=B.Dom.get(S);var Q=false;if((R&&S)&&(R.nodeType&&S.nodeType)){if(R.contains&&R!==S){Q=R.contains(S);}else{if(R.compareDocumentPosition){Q=!!(R.compareDocumentPosition(S)&16);}}}else{}return Q;},inDocument:function(Q){return this.isAncestor(N.documentElement,Q);},getElementsBy:function(X,R,S,U){R=R||"*";S=(S)?B.Dom.get(S):null||N;if(!S){return[];}var T=[],W=S.getElementsByTagName(R);for(var V=0,Q=W.length;V<Q;++V){if(X(W[V])){T[T.length]=W[V];if(U){U(W[V]);}}}return T;},batch:function(U,X,W,S){U=(U&&(U.tagName||U.item))?U:B.Dom.get(U);if(!U||!X){return false;}var T=(S)?W:window;if(U.tagName||U.length===undefined){return X.call(T,U,W);}var V=[];for(var R=0,Q=U.length;R<Q;++R){V[V.length]=X.call(T,U[R],W);}return V;},getDocumentHeight:function(){var R=(N.compatMode!="CSS1Compat")?N.body.scrollHeight:N.documentElement.scrollHeight;var Q=Math.max(R,B.Dom.getViewportHeight());return Q;},getDocumentWidth:function(){var R=(N.compatMode!="CSS1Compat")?N.body.scrollWidth:N.documentElement.scrollWidth;var Q=Math.max(R,B.Dom.getViewportWidth());return Q;},getViewportHeight:function(){var Q=self.innerHeight;
var R=N.compatMode;if((R||H)&&!C){Q=(R=="CSS1Compat")?N.documentElement.clientHeight:N.body.clientHeight;}return Q;},getViewportWidth:function(){var Q=self.innerWidth;var R=N.compatMode;if(R||H){Q=(R=="CSS1Compat")?N.documentElement.clientWidth:N.body.clientWidth;}return Q;},getAncestorBy:function(Q,R){while((Q=Q.parentNode)){if(D(Q,R)){return Q;}}return null;},getAncestorByClassName:function(R,Q){R=B.Dom.get(R);if(!R){return null;}var S=function(T){return B.Dom.hasClass(T,Q);};return B.Dom.getAncestorBy(R,S);},getAncestorByTagName:function(R,Q){R=B.Dom.get(R);if(!R){return null;}var S=function(T){return T.tagName&&T.tagName.toUpperCase()==Q.toUpperCase();};return B.Dom.getAncestorBy(R,S);},getPreviousSiblingBy:function(Q,R){while(Q){Q=Q.previousSibling;if(D(Q,R)){return Q;}}return null;},getPreviousSibling:function(Q){Q=B.Dom.get(Q);if(!Q){return null;}return B.Dom.getPreviousSiblingBy(Q);},getNextSiblingBy:function(Q,R){while(Q){Q=Q.nextSibling;if(D(Q,R)){return Q;}}return null;},getNextSibling:function(Q){Q=B.Dom.get(Q);if(!Q){return null;}return B.Dom.getNextSiblingBy(Q);},getFirstChildBy:function(Q,S){var R=(D(Q.firstChild,S))?Q.firstChild:null;return R||B.Dom.getNextSiblingBy(Q.firstChild,S);},getFirstChild:function(Q,R){Q=B.Dom.get(Q);if(!Q){return null;}return B.Dom.getFirstChildBy(Q);},getLastChildBy:function(Q,S){if(!Q){return null;}var R=(D(Q.lastChild,S))?Q.lastChild:null;return R||B.Dom.getPreviousSiblingBy(Q.lastChild,S);},getLastChild:function(Q){Q=B.Dom.get(Q);return B.Dom.getLastChildBy(Q);},getChildrenBy:function(R,T){var S=B.Dom.getFirstChildBy(R,T);var Q=S?[S]:[];B.Dom.getNextSiblingBy(S,function(U){if(!T||T(U)){Q[Q.length]=U;}return false;});return Q;},getChildren:function(Q){Q=B.Dom.get(Q);if(!Q){}return B.Dom.getChildrenBy(Q);},getDocumentScrollLeft:function(Q){Q=Q||N;return Math.max(Q.documentElement.scrollLeft,Q.body.scrollLeft);},getDocumentScrollTop:function(Q){Q=Q||N;return Math.max(Q.documentElement.scrollTop,Q.body.scrollTop);},insertBefore:function(R,Q){R=B.Dom.get(R);Q=B.Dom.get(Q);if(!R||!Q||!Q.parentNode){return null;}return Q.parentNode.insertBefore(R,Q);},insertAfter:function(R,Q){R=B.Dom.get(R);Q=B.Dom.get(Q);if(!R||!Q||!Q.parentNode){return null;}if(Q.nextSibling){return Q.parentNode.insertBefore(R,Q.nextSibling);}else{return Q.parentNode.appendChild(R);}},getClientRegion:function(){var S=B.Dom.getDocumentScrollTop(),R=B.Dom.getDocumentScrollLeft(),T=B.Dom.getViewportWidth()+R,Q=B.Dom.getViewportHeight()+S;return new B.Region(S,T,Q,R);}};var I=function(){if(N.documentElement.getBoundingClientRect){return function(S){var T=S.getBoundingClientRect(),R=Math.round;var Q=S.ownerDocument;return[R(T.left+B.Dom.getDocumentScrollLeft(Q)),R(T.top+B.Dom.getDocumentScrollTop(Q))];};}else{return function(S){var T=[S.offsetLeft,S.offsetTop];var R=S.offsetParent;var Q=(M&&B.Dom.getStyle(S,"position")=="absolute"&&S.offsetParent==S.ownerDocument.body);if(R!=S){while(R){T[0]+=R.offsetLeft;T[1]+=R.offsetTop;if(!Q&&M&&B.Dom.getStyle(R,"position")=="absolute"){Q=true;}R=R.offsetParent;}}if(Q){T[0]-=S.ownerDocument.body.offsetLeft;T[1]-=S.ownerDocument.body.offsetTop;}R=S.parentNode;while(R.tagName&&!E.ROOT_TAG.test(R.tagName)){if(R.scrollTop||R.scrollLeft){T[0]-=R.scrollLeft;T[1]-=R.scrollTop;}R=R.parentNode;}return T;};}}();})();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.6.0",build:"1321"});
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=[];if(!this.silent){}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(){this.lastError=null;var K=[],E=this.subscribers.length;if(!E&&this.silent){return true;}var I=[].slice.call(arguments,0),G=true,D,J=false;if(!this.silent){}var C=this.subscribers.slice(),A=YAHOO.util.Event.throwErrors;for(D=0;D<E;++D){var M=C[D];if(!M){J=true;}else{if(!this.silent){}var L=M.getScope(this.scope);if(this.signature==YAHOO.util.CustomEvent.FLAT){var B=null;if(I.length>0){B=I[0];}try{G=M.fn.call(L,B,M.obj);}catch(F){this.lastError=F;if(A){throw F;}}}else{try{G=M.fn.call(L,this.type,I,M.obj);}catch(H){this.lastError=H;if(A){throw H;}}}if(false===G){if(!this.silent){}break;}}}return(G!==false);},unsubscribeAll:function(){for(var A=this.subscribers.length-1;A>-1;A--){this._delete(A);}this.subscribers=[];return A;},_delete:function(A){var B=this.subscribers[A];if(B){delete B.fn;delete B.obj;}this.subscribers.splice(A,1);},toString:function(){return"CustomEvent: "+"'"+this.type+"', "+"scope: "+this.scope;}};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);}};YAHOO.util.Subscriber.prototype.toString=function(){return"Subscriber { obj: "+this.obj+", override: "+(this.override||"no")+" }";};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};var K=YAHOO.env.ua.ie?"focusin":"focus";var L=YAHOO.env.ua.ie?"focusout":"blur";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,CAPTURE:7,lastError:null,isSafari:YAHOO.env.ua.webkit,webkit:YAHOO.env.ua.webkit,isIE:YAHOO.env.ua.ie,_interval:null,_dri:null,DOMReady:false,throwErrors:false,startInterval:function(){if(!this._interval){var M=this;var N=function(){M._tryPreloadAttach();};this._interval=setInterval(N,this.POLL_INTERVAL);}},onAvailable:function(R,O,S,Q,P){var M=(YAHOO.lang.isString(R))?[R]:R;for(var N=0;N<M.length;N=N+1){F.push({id:M[N],fn:O,obj:S,override:Q,checkReady:P});}C=this.POLL_RETRYS;this.startInterval();},onContentReady:function(O,M,P,N){this.onAvailable(O,M,P,N,true);},onDOMReady:function(M,O,N){if(this.DOMReady){setTimeout(function(){var P=window;if(N){if(N===true){P=O;}else{P=N;}}M.call(P,"DOMReady",[],O);},0);}else{this.DOMReadyEvent.subscribe(M,O,N);}},_addListener:function(O,M,X,S,N,a){if(!X||!X.call){return false;}if(this._isValidCollection(O)){var Y=true;for(var T=0,V=O.length;T<V;++T){Y=this._addListener(O[T],M,X,S,N,a)&&Y;}return Y;}else{if(YAHOO.lang.isString(O)){var R=this.getEl(O);if(R){O=R;}else{this.onAvailable(O,function(){YAHOO.util.Event._addListener(O,M,X,S,N,a);});return true;}}}if(!O){return false;}if("unload"==M&&S!==this){J[J.length]=[O,M,X,S,N,a];return true;}var b=O;if(N){if(N===true){b=S;}else{b=N;}}var P=function(c){return X.call(b,YAHOO.util.Event.getEvent(c,O),S);};var Z=[O,M,X,P,b,S,N,a];var U=I.length;I[U]=Z;if(this.useLegacyEvent(O,M)){var Q=this.getLegacyIndex(O,M);if(Q==-1||O!=G[Q][0]){Q=G.length;B[O.id+M]=Q;G[Q]=[O,M,O["on"+M]];E[Q]=[];O["on"+M]=function(c){YAHOO.util.Event.fireLegacyEvent(YAHOO.util.Event.getEvent(c),Q);};}E[Q].push(Z);}else{try{this._simpleAdd(O,M,P,a);}catch(W){this.lastError=W;this._removeListener(O,M,X,a);return false;}}return true;},addListener:function(O,Q,N,P,M){return this._addListener(O,Q,N,P,M,false);},addFocusListener:function(O,N,P,M){return this._addListener(O,K,N,P,M,true);},removeFocusListener:function(N,M){return this._removeListener(N,K,M,true);},addBlurListener:function(O,N,P,M){return this._addListener(O,L,N,P,M,true);},removeBlurListener:function(N,M){return this._removeListener(N,L,M,true);},fireLegacyEvent:function(Q,O){var S=true,M,U,T,V,R;U=E[O].slice();for(var N=0,P=U.length;N<P;++N){T=U[N];if(T&&T[this.WFN]){V=T[this.ADJ_SCOPE];R=T[this.WFN].call(V,Q);S=(S&&R);}}M=G[O];if(M&&M[2]){M[2](Q);}return S;},getLegacyIndex:function(N,O){var M=this.generateId(N)+O;if(typeof B[M]=="undefined"){return -1;}else{return B[M];}},useLegacyEvent:function(M,N){return(this.webkit&&this.webkit<419&&("click"==N||"dblclick"==N));},_removeListener:function(N,M,V,Y){var Q,T,X;if(typeof N=="string"){N=this.getEl(N);}else{if(this._isValidCollection(N)){var W=true;for(Q=N.length-1;Q>-1;Q--){W=(this._removeListener(N[Q],M,V,Y)&&W);}return W;}}if(!V||!V.call){return this.purgeElement(N,false,M);}if("unload"==M){for(Q=J.length-1;Q>-1;Q--){X=J[Q];if(X&&X[0]==N&&X[1]==M&&X[2]==V){J.splice(Q,1);return true;}}return false;}var R=null;var S=arguments[4];if("undefined"===typeof S){S=this._getCacheIndex(N,M,V);}if(S>=0){R=I[S];}if(!N||!R){return false;}if(this.useLegacyEvent(N,M)){var P=this.getLegacyIndex(N,M);var O=E[P];if(O){for(Q=0,T=O.length;Q<T;++Q){X=O[Q];if(X&&X[this.EL]==N&&X[this.TYPE]==M&&X[this.FN]==V){O.splice(Q,1);break;}}}}else{try{this._simpleRemove(N,M,R[this.WFN],Y);}catch(U){this.lastError=U;return false;}}delete I[S][this.WFN];delete I[S][this.FN];
I.splice(S,1);return true;},removeListener:function(N,O,M){return this._removeListener(N,O,M,false);},getTarget:function(O,N){var M=O.target||O.srcElement;return this.resolveTextNode(M);},resolveTextNode:function(N){try{if(N&&3==N.nodeType){return N.parentNode;}}catch(M){}return N;},getPageX:function(N){var M=N.pageX;if(!M&&0!==M){M=N.clientX||0;if(this.isIE){M+=this._getScrollLeft();}}return M;},getPageY:function(M){var N=M.pageY;if(!N&&0!==N){N=M.clientY||0;if(this.isIE){N+=this._getScrollTop();}}return N;},getXY:function(M){return[this.getPageX(M),this.getPageY(M)];},getRelatedTarget:function(N){var M=N.relatedTarget;if(!M){if(N.type=="mouseout"){M=N.toElement;}else{if(N.type=="mouseover"){M=N.fromElement;}}}return this.resolveTextNode(M);},getTime:function(O){if(!O.time){var N=new Date().getTime();try{O.time=N;}catch(M){this.lastError=M;return N;}}return O.time;},stopEvent:function(M){this.stopPropagation(M);this.preventDefault(M);},stopPropagation:function(M){if(M.stopPropagation){M.stopPropagation();}else{M.cancelBubble=true;}},preventDefault:function(M){if(M.preventDefault){M.preventDefault();}else{M.returnValue=false;}},getEvent:function(O,M){var N=O||window.event;if(!N){var P=this.getEvent.caller;while(P){N=P.arguments[0];if(N&&Event==N.constructor){break;}P=P.caller;}}return N;},getCharCode:function(N){var M=N.keyCode||N.charCode||0;if(YAHOO.env.ua.webkit&&(M in D)){M=D[M];}return M;},_getCacheIndex:function(Q,R,P){for(var O=0,N=I.length;O<N;O=O+1){var M=I[O];if(M&&M[this.FN]==P&&M[this.EL]==Q&&M[this.TYPE]==R){return O;}}return -1;},generateId:function(M){var N=M.id;if(!N){N="yuievtautoid-"+A;++A;M.id=N;}return N;},_isValidCollection:function(N){try{return(N&&typeof N!=="string"&&N.length&&!N.tagName&&!N.alert&&typeof N[0]!=="undefined");}catch(M){return false;}},elCache:{},getEl:function(M){return(typeof M==="string")?document.getElementById(M):M;},clearCache:function(){},DOMReadyEvent:new YAHOO.util.CustomEvent("DOMReady",this),_load:function(N){if(!H){H=true;var M=YAHOO.util.Event;M._ready();M._tryPreloadAttach();}},_ready:function(N){var M=YAHOO.util.Event;if(!M.DOMReady){M.DOMReady=true;M.DOMReadyEvent.fire();M._simpleRemove(document,"DOMContentLoaded",M._ready);}},_tryPreloadAttach:function(){if(F.length===0){C=0;clearInterval(this._interval);this._interval=null;return ;}if(this.locked){return ;}if(this.isIE){if(!this.DOMReady){this.startInterval();return ;}}this.locked=true;var S=!H;if(!S){S=(C>0&&F.length>0);}var R=[];var T=function(V,W){var U=V;if(W.override){if(W.override===true){U=W.obj;}else{U=W.override;}}W.fn.call(U,W.obj);};var N,M,Q,P,O=[];for(N=0,M=F.length;N<M;N=N+1){Q=F[N];if(Q){P=this.getEl(Q.id);if(P){if(Q.checkReady){if(H||P.nextSibling||!S){O.push(Q);F[N]=null;}}else{T(P,Q);F[N]=null;}}else{R.push(Q);}}}for(N=0,M=O.length;N<M;N=N+1){Q=O[N];T(this.getEl(Q.id),Q);}C--;if(S){for(N=F.length-1;N>-1;N--){Q=F[N];if(!Q||!Q.id){F.splice(N,1);}}this.startInterval();}else{clearInterval(this._interval);this._interval=null;}this.locked=false;},purgeElement:function(Q,R,T){var O=(YAHOO.lang.isString(Q))?this.getEl(Q):Q;var S=this.getListeners(O,T),P,M;if(S){for(P=S.length-1;P>-1;P--){var N=S[P];this._removeListener(O,N.type,N.fn,N.capture);}}if(R&&O&&O.childNodes){for(P=0,M=O.childNodes.length;P<M;++P){this.purgeElement(O.childNodes[P],R,T);}}},getListeners:function(O,M){var R=[],N;if(!M){N=[I,J];}else{if(M==="unload"){N=[J];}else{N=[I];}}var T=(YAHOO.lang.isString(O))?this.getEl(O):O;for(var Q=0;Q<N.length;Q=Q+1){var V=N[Q];if(V){for(var S=0,U=V.length;S<U;++S){var P=V[S];if(P&&P[this.EL]===T&&(!M||M===P[this.TYPE])){R.push({type:P[this.TYPE],fn:P[this.FN],obj:P[this.OBJ],adjust:P[this.OVERRIDE],scope:P[this.ADJ_SCOPE],capture:P[this.CAPTURE],index:S});}}}}return(R.length)?R:null;},_unload:function(S){var M=YAHOO.util.Event,P,O,N,R,Q,T=J.slice();for(P=0,R=J.length;P<R;++P){N=T[P];if(N){var U=window;if(N[M.ADJ_SCOPE]){if(N[M.ADJ_SCOPE]===true){U=N[M.UNLOAD_OBJ];}else{U=N[M.ADJ_SCOPE];}}N[M.FN].call(U,M.getEvent(S,N[M.EL]),N[M.UNLOAD_OBJ]);T[P]=null;N=null;U=null;}}J=null;if(I){for(O=I.length-1;O>-1;O--){N=I[O];if(N){M._removeListener(N[M.EL],N[M.TYPE],N[M.FN],N[M.CAPTURE],O);}}N=null;}G=null;M._simpleRemove(window,"unload",M._unload);},_getScrollLeft:function(){return this._getScroll()[1];},_getScrollTop:function(){return this._getScroll()[0];},_getScroll:function(){var M=document.documentElement,N=document.body;if(M&&(M.scrollTop||M.scrollLeft)){return[M.scrollTop,M.scrollLeft];}else{if(N){return[N.scrollTop,N.scrollLeft];}else{return[0,0];}}},regCE:function(){},_simpleAdd:function(){if(window.addEventListener){return function(O,P,N,M){O.addEventListener(P,N,(M));};}else{if(window.attachEvent){return function(O,P,N,M){O.attachEvent("on"+P,N);};}else{return function(){};}}}(),_simpleRemove:function(){if(window.removeEventListener){return function(O,P,N,M){O.removeEventListener(P,N,(M));};}else{if(window.detachEvent){return function(N,O,M){N.detachEvent("on"+O,M);};}else{return function(){};}}}()};}();(function(){var EU=YAHOO.util.Event;EU.on=EU.addListener;EU.onFocus=EU.addFocusListener;EU.onBlur=EU.addBlurListener;
/* 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);var n=document.createElement("p");EU._dri=setInterval(function(){try{n.doScroll("left");clearInterval(EU._dri);EU._dri=null;EU._ready();n=null;}catch(ex){}},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(!A){}else{if(!F){}else{if(!B){}}}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;};this.toString=function(){return"KeyListener ["+F.keys+"] "+A.tagName+(A.id?"["+A.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.6.0",build:"1321"});
(function(){var B=YAHOO.util;var A=function(D,C,E,F){if(!D){}this.init(D,C,E,F);};A.NAME="Anim";A.prototype={toString:function(){var C=this.getEl()||{};var D=C.id||C.tagName;return(this.constructor.NAME+": "+D);},patterns:{noNegatives:/width|height|opacity|padding/i,offsetAttribute:/^((width|height)|(top|left))$/,defaultUnit:/width|height|top$|bottom$|left$|right$/i,offsetUnit:/\d+(em|%|en|ex|pt|in|cm|mm|pc)$/i},doMethod:function(C,E,D){return this.method(this.currentFrame,E,D-E,this.totalFrames);},setAttribute:function(C,E,D){if(this.patterns.noNegatives.test(C)){E=(E>0)?E:0;}B.Dom.setStyle(this.getEl(),C,E+D);},getAttribute:function(C){var E=this.getEl();var G=B.Dom.getStyle(E,C);if(G!=="auto"&&!this.patterns.offsetUnit.test(G)){return parseFloat(G);}var D=this.patterns.offsetAttribute.exec(C)||[];var H=!!(D[3]);var F=!!(D[2]);if(F||(B.Dom.getStyle(E,"position")=="absolute"&&H)){G=E["offset"+D[0].charAt(0).toUpperCase()+D[0].substr(1)];}else{G=0;}return G;},getDefaultUnit:function(C){if(this.patterns.defaultUnit.test(C)){return"px";}return"";},setRuntimeAttribute:function(D){var I;var E;var F=this.attributes;this.runtimeAttributes[D]={};var H=function(J){return(typeof J!=="undefined");};if(!H(F[D]["to"])&&!H(F[D]["by"])){return false;}I=(H(F[D]["from"]))?F[D]["from"]:this.getAttribute(D);if(H(F[D]["to"])){E=F[D]["to"];}else{if(H(F[D]["by"])){if(I.constructor==Array){E=[];for(var G=0,C=I.length;G<C;++G){E[G]=I[G]+F[D]["by"][G]*1;}}else{E=I+F[D]["by"]*1;}}}this.runtimeAttributes[D].start=I;this.runtimeAttributes[D].end=E;this.runtimeAttributes[D].unit=(H(F[D].unit))?F[D]["unit"]:this.getDefaultUnit(D);return true;},init:function(E,J,I,C){var D=false;var F=null;var H=0;E=B.Dom.get(E);this.attributes=J||{};this.duration=!YAHOO.lang.isUndefined(I)?I:1;this.method=C||B.Easing.easeNone;this.useSeconds=true;this.currentFrame=0;this.totalFrames=B.AnimMgr.fps;this.setEl=function(M){E=B.Dom.get(M);};this.getEl=function(){return E;};this.isAnimated=function(){return D;};this.getStartTime=function(){return F;};this.runtimeAttributes={};this.animate=function(){if(this.isAnimated()){return false;}this.currentFrame=0;this.totalFrames=(this.useSeconds)?Math.ceil(B.AnimMgr.fps*this.duration):this.duration;if(this.duration===0&&this.useSeconds){this.totalFrames=1;}B.AnimMgr.registerElement(this);return true;};this.stop=function(M){if(!this.isAnimated()){return false;}if(M){this.currentFrame=this.totalFrames;this._onTween.fire();}B.AnimMgr.stop(this);};var L=function(){this.onStart.fire();this.runtimeAttributes={};for(var M in this.attributes){this.setRuntimeAttribute(M);}D=true;H=0;F=new Date();};var K=function(){var O={duration:new Date()-this.getStartTime(),currentFrame:this.currentFrame};O.toString=function(){return("duration: "+O.duration+", currentFrame: "+O.currentFrame);};this.onTween.fire(O);var N=this.runtimeAttributes;for(var M in N){this.setAttribute(M,this.doMethod(M,N[M].start,N[M].end),N[M].unit);}H+=1;};var G=function(){var M=(new Date()-F)/1000;var N={duration:M,frames:H,fps:H/M};N.toString=function(){return("duration: "+N.duration+", frames: "+N.frames+", fps: "+N.fps);};D=false;H=0;this.onComplete.fire(N);};this._onStart=new B.CustomEvent("_start",this,true);this.onStart=new B.CustomEvent("start",this);this.onTween=new B.CustomEvent("tween",this);this._onTween=new B.CustomEvent("_tween",this,true);this.onComplete=new B.CustomEvent("complete",this);this._onComplete=new B.CustomEvent("_complete",this,true);this._onStart.subscribe(L);this._onTween.subscribe(K);this._onComplete.subscribe(G);}};B.Anim=A;})();YAHOO.util.AnimMgr=new function(){var C=null;var B=[];var A=0;this.fps=1000;this.delay=1;this.registerElement=function(F){B[B.length]=F;A+=1;F._onStart.fire();this.start();};this.unRegister=function(G,F){F=F||E(G);if(!G.isAnimated()||F==-1){return false;}G._onComplete.fire();B.splice(F,1);A-=1;if(A<=0){this.stop();}return true;};this.start=function(){if(C===null){C=setInterval(this.run,this.delay);}};this.stop=function(H){if(!H){clearInterval(C);for(var G=0,F=B.length;G<F;++G){this.unRegister(B[0],0);}B=[];C=null;A=0;}else{this.unRegister(H);}};this.run=function(){for(var H=0,F=B.length;H<F;++H){var G=B[H];if(!G||!G.isAnimated()){continue;}if(G.currentFrame<G.totalFrames||G.totalFrames===null){G.currentFrame+=1;if(G.useSeconds){D(G);}G._onTween.fire();}else{YAHOO.util.AnimMgr.stop(G,H);}}};var E=function(H){for(var G=0,F=B.length;G<F;++G){if(B[G]==H){return G;}}return -1;};var D=function(G){var J=G.totalFrames;var I=G.currentFrame;var H=(G.currentFrame*G.duration*1000/G.totalFrames);var F=(new Date()-G.getStartTime());var K=0;if(F<G.duration*1000){K=Math.round((F/H-1)*G.currentFrame);}else{K=J-(I+1);}if(K>0&&isFinite(K)){if(G.currentFrame+K>=J){K=J-(I+1);}G.currentFrame+=K;}};};YAHOO.util.Bezier=new function(){this.getPosition=function(E,D){var F=E.length;var C=[];for(var B=0;B<F;++B){C[B]=[E[B][0],E[B][1]];}for(var A=1;A<F;++A){for(B=0;B<F-A;++B){C[B][0]=(1-D)*C[B][0]+D*C[parseInt(B+1,10)][0];C[B][1]=(1-D)*C[B][1]+D*C[parseInt(B+1,10)][1];}}return[C[0][0],C[0][1]];};};(function(){var A=function(F,E,G,H){A.superclass.constructor.call(this,F,E,G,H);};A.NAME="ColorAnim";A.DEFAULT_BGCOLOR="#fff";var C=YAHOO.util;YAHOO.extend(A,C.Anim);var D=A.superclass;var B=A.prototype;B.patterns.color=/color$/i;B.patterns.rgb=/^rgb\(([0-9]+)\s*,\s*([0-9]+)\s*,\s*([0-9]+)\)$/i;B.patterns.hex=/^#?([0-9A-F]{2})([0-9A-F]{2})([0-9A-F]{2})$/i;B.patterns.hex3=/^#?([0-9A-F]{1})([0-9A-F]{1})([0-9A-F]{1})$/i;B.patterns.transparent=/^transparent|rgba\(0, 0, 0, 0\)$/;B.parseColor=function(E){if(E.length==3){return E;}var F=this.patterns.hex.exec(E);if(F&&F.length==4){return[parseInt(F[1],16),parseInt(F[2],16),parseInt(F[3],16)];}F=this.patterns.rgb.exec(E);if(F&&F.length==4){return[parseInt(F[1],10),parseInt(F[2],10),parseInt(F[3],10)];}F=this.patterns.hex3.exec(E);if(F&&F.length==4){return[parseInt(F[1]+F[1],16),parseInt(F[2]+F[2],16),parseInt(F[3]+F[3],16)];}return null;};B.getAttribute=function(E){var G=this.getEl();
if(this.patterns.color.test(E)){var I=YAHOO.util.Dom.getStyle(G,E);var H=this;if(this.patterns.transparent.test(I)){var F=YAHOO.util.Dom.getAncestorBy(G,function(J){return !H.patterns.transparent.test(I);});if(F){I=C.Dom.getStyle(F,E);}else{I=A.DEFAULT_BGCOLOR;}}}else{I=D.getAttribute.call(this,E);}return I;};B.doMethod=function(F,J,G){var I;if(this.patterns.color.test(F)){I=[];for(var H=0,E=J.length;H<E;++H){I[H]=D.doMethod.call(this,F,J[H],G[H]);}I="rgb("+Math.floor(I[0])+","+Math.floor(I[1])+","+Math.floor(I[2])+")";}else{I=D.doMethod.call(this,F,J,G);}return I;};B.setRuntimeAttribute=function(F){D.setRuntimeAttribute.call(this,F);if(this.patterns.color.test(F)){var H=this.attributes;var J=this.parseColor(this.runtimeAttributes[F].start);var G=this.parseColor(this.runtimeAttributes[F].end);if(typeof H[F]["to"]==="undefined"&&typeof H[F]["by"]!=="undefined"){G=this.parseColor(H[F].by);for(var I=0,E=J.length;I<E;++I){G[I]=J[I]+G[I];}}this.runtimeAttributes[F].start=J;this.runtimeAttributes[F].end=G;}};C.ColorAnim=A;})();
/*
TERMS OF USE - EASING EQUATIONS
Open source under the BSD License.
Copyright 2001 Robert Penner All rights reserved.

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

 * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
 * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
 * Neither the name of the author nor the names of contributors may be used to endorse or promote products derived from this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
YAHOO.util.Easing={easeNone:function(B,A,D,C){return D*B/C+A;},easeIn:function(B,A,D,C){return D*(B/=C)*B+A;},easeOut:function(B,A,D,C){return -D*(B/=C)*(B-2)+A;},easeBoth:function(B,A,D,C){if((B/=C/2)<1){return D/2*B*B+A;}return -D/2*((--B)*(B-2)-1)+A;},easeInStrong:function(B,A,D,C){return D*(B/=C)*B*B*B+A;},easeOutStrong:function(B,A,D,C){return -D*((B=B/C-1)*B*B*B-1)+A;},easeBothStrong:function(B,A,D,C){if((B/=C/2)<1){return D/2*B*B*B*B+A;}return -D/2*((B-=2)*B*B*B-2)+A;},elasticIn:function(C,A,G,F,B,E){if(C==0){return A;}if((C/=F)==1){return A+G;}if(!E){E=F*0.3;}if(!B||B<Math.abs(G)){B=G;var D=E/4;}else{var D=E/(2*Math.PI)*Math.asin(G/B);}return -(B*Math.pow(2,10*(C-=1))*Math.sin((C*F-D)*(2*Math.PI)/E))+A;},elasticOut:function(C,A,G,F,B,E){if(C==0){return A;}if((C/=F)==1){return A+G;}if(!E){E=F*0.3;}if(!B||B<Math.abs(G)){B=G;var D=E/4;}else{var D=E/(2*Math.PI)*Math.asin(G/B);}return B*Math.pow(2,-10*C)*Math.sin((C*F-D)*(2*Math.PI)/E)+G+A;},elasticBoth:function(C,A,G,F,B,E){if(C==0){return A;}if((C/=F/2)==2){return A+G;}if(!E){E=F*(0.3*1.5);}if(!B||B<Math.abs(G)){B=G;var D=E/4;}else{var D=E/(2*Math.PI)*Math.asin(G/B);}if(C<1){return -0.5*(B*Math.pow(2,10*(C-=1))*Math.sin((C*F-D)*(2*Math.PI)/E))+A;}return B*Math.pow(2,-10*(C-=1))*Math.sin((C*F-D)*(2*Math.PI)/E)*0.5+G+A;},backIn:function(B,A,E,D,C){if(typeof C=="undefined"){C=1.70158;}return E*(B/=D)*B*((C+1)*B-C)+A;},backOut:function(B,A,E,D,C){if(typeof C=="undefined"){C=1.70158;}return E*((B=B/D-1)*B*((C+1)*B+C)+1)+A;},backBoth:function(B,A,E,D,C){if(typeof C=="undefined"){C=1.70158;}if((B/=D/2)<1){return E/2*(B*B*(((C*=(1.525))+1)*B-C))+A;}return E/2*((B-=2)*B*(((C*=(1.525))+1)*B+C)+2)+A;},bounceIn:function(B,A,D,C){return D-YAHOO.util.Easing.bounceOut(C-B,0,D,C)+A;},bounceOut:function(B,A,D,C){if((B/=C)<(1/2.75)){return D*(7.5625*B*B)+A;}else{if(B<(2/2.75)){return D*(7.5625*(B-=(1.5/2.75))*B+0.75)+A;}else{if(B<(2.5/2.75)){return D*(7.5625*(B-=(2.25/2.75))*B+0.9375)+A;}}}return D*(7.5625*(B-=(2.625/2.75))*B+0.984375)+A;},bounceBoth:function(B,A,D,C){if(B<C/2){return YAHOO.util.Easing.bounceIn(B*2,0,D,C)*0.5+A;}return YAHOO.util.Easing.bounceOut(B*2-C,0,D,C)*0.5+D*0.5+A;}};(function(){var A=function(H,G,I,J){if(H){A.superclass.constructor.call(this,H,G,I,J);}};A.NAME="Motion";var E=YAHOO.util;YAHOO.extend(A,E.ColorAnim);var F=A.superclass;var C=A.prototype;C.patterns.points=/^points$/i;C.setAttribute=function(G,I,H){if(this.patterns.points.test(G)){H=H||"px";F.setAttribute.call(this,"left",I[0],H);F.setAttribute.call(this,"top",I[1],H);}else{F.setAttribute.call(this,G,I,H);}};C.getAttribute=function(G){if(this.patterns.points.test(G)){var H=[F.getAttribute.call(this,"left"),F.getAttribute.call(this,"top")];}else{H=F.getAttribute.call(this,G);}return H;};C.doMethod=function(G,K,H){var J=null;if(this.patterns.points.test(G)){var I=this.method(this.currentFrame,0,100,this.totalFrames)/100;J=E.Bezier.getPosition(this.runtimeAttributes[G],I);}else{J=F.doMethod.call(this,G,K,H);}return J;};C.setRuntimeAttribute=function(P){if(this.patterns.points.test(P)){var H=this.getEl();var J=this.attributes;var G;var L=J["points"]["control"]||[];var I;var M,O;if(L.length>0&&!(L[0] instanceof Array)){L=[L];}else{var K=[];for(M=0,O=L.length;M<O;++M){K[M]=L[M];}L=K;}if(E.Dom.getStyle(H,"position")=="static"){E.Dom.setStyle(H,"position","relative");}if(D(J["points"]["from"])){E.Dom.setXY(H,J["points"]["from"]);}else{E.Dom.setXY(H,E.Dom.getXY(H));
}G=this.getAttribute("points");if(D(J["points"]["to"])){I=B.call(this,J["points"]["to"],G);var N=E.Dom.getXY(this.getEl());for(M=0,O=L.length;M<O;++M){L[M]=B.call(this,L[M],G);}}else{if(D(J["points"]["by"])){I=[G[0]+J["points"]["by"][0],G[1]+J["points"]["by"][1]];for(M=0,O=L.length;M<O;++M){L[M]=[G[0]+L[M][0],G[1]+L[M][1]];}}}this.runtimeAttributes[P]=[G];if(L.length>0){this.runtimeAttributes[P]=this.runtimeAttributes[P].concat(L);}this.runtimeAttributes[P][this.runtimeAttributes[P].length]=I;}else{F.setRuntimeAttribute.call(this,P);}};var B=function(G,I){var H=E.Dom.getXY(this.getEl());G=[G[0]-H[0]+I[0],G[1]-H[1]+I[1]];return G;};var D=function(G){return(typeof G!=="undefined");};E.Motion=A;})();(function(){var D=function(F,E,G,H){if(F){D.superclass.constructor.call(this,F,E,G,H);}};D.NAME="Scroll";var B=YAHOO.util;YAHOO.extend(D,B.ColorAnim);var C=D.superclass;var A=D.prototype;A.doMethod=function(E,H,F){var G=null;if(E=="scroll"){G=[this.method(this.currentFrame,H[0],F[0]-H[0],this.totalFrames),this.method(this.currentFrame,H[1],F[1]-H[1],this.totalFrames)];}else{G=C.doMethod.call(this,E,H,F);}return G;};A.getAttribute=function(E){var G=null;var F=this.getEl();if(E=="scroll"){G=[F.scrollLeft,F.scrollTop];}else{G=C.getAttribute.call(this,E);}return G;};A.setAttribute=function(E,H,G){var F=this.getEl();if(E=="scroll"){F.scrollLeft=H[0];F.scrollTop=H[1];}else{C.setAttribute.call(this,E,H,G);}};B.Scroll=D;})();YAHOO.register("animation",YAHOO.util.Anim,{version:"2.6.0",build:"1321"});
YAHOO.util.Connect={_msxml_progid:["Microsoft.XMLHTTP","MSXML2.XMLHTTP.3.0","MSXML2.XMLHTTP"],_http_headers:{},_has_http_headers:false,_use_default_post_header:true,_default_post_header:"application/x-www-form-urlencoded; charset=UTF-8",_default_form_header:"application/x-www-form-urlencoded",_use_default_xhr_header:true,_default_xhr_header:"XMLHttpRequest",_has_default_headers:true,_default_headers:{},_isFormSubmit:false,_isFileUpload:false,_formNode:null,_sFormData:null,_poll:{},_timeOut:{},_polling_interval:50,_transaction_id:0,_submitElementValue:null,_hasSubmitListener:(function(){if(YAHOO.util.Event){YAHOO.util.Event.addListener(document,"click",function(B){var A=YAHOO.util.Event.getTarget(B);if(A.nodeName.toLowerCase()=="input"&&(A.type&&A.type.toLowerCase()=="submit")){YAHOO.util.Connect._submitElementValue=encodeURIComponent(A.name)+"="+encodeURIComponent(A.value);}});return true;}return false;})(),startEvent:new YAHOO.util.CustomEvent("start"),completeEvent:new YAHOO.util.CustomEvent("complete"),successEvent:new YAHOO.util.CustomEvent("success"),failureEvent:new YAHOO.util.CustomEvent("failure"),uploadEvent:new YAHOO.util.CustomEvent("upload"),abortEvent:new YAHOO.util.CustomEvent("abort"),_customEvents:{onStart:["startEvent","start"],onComplete:["completeEvent","complete"],onSuccess:["successEvent","success"],onFailure:["failureEvent","failure"],onUpload:["uploadEvent","upload"],onAbort:["abortEvent","abort"]},setProgId:function(A){this._msxml_progid.unshift(A);},setDefaultPostHeader:function(A){if(typeof A=="string"){this._default_post_header=A;}else{if(typeof A=="boolean"){this._use_default_post_header=A;}}},setDefaultXhrHeader:function(A){if(typeof A=="string"){this._default_xhr_header=A;}else{this._use_default_xhr_header=A;}},setPollingInterval:function(A){if(typeof A=="number"&&isFinite(A)){this._polling_interval=A;}},createXhrObject:function(F){var E,A;try{A=new XMLHttpRequest();E={conn:A,tId:F};}catch(D){for(var B=0;B<this._msxml_progid.length;++B){try{A=new ActiveXObject(this._msxml_progid[B]);E={conn:A,tId:F};break;}catch(C){}}}finally{return E;}},getConnectionObject:function(A){var C;var D=this._transaction_id;try{if(!A){C=this.createXhrObject(D);}else{C={};C.tId=D;C.isUpload=true;}if(C){this._transaction_id++;}}catch(B){}finally{return C;}},asyncRequest:function(F,C,E,A){var D=(this._isFileUpload)?this.getConnectionObject(true):this.getConnectionObject();var B=(E&&E.argument)?E.argument:null;if(!D){return null;}else{if(E&&E.customevents){this.initCustomEvents(D,E);}if(this._isFormSubmit){if(this._isFileUpload){this.uploadFile(D,E,C,A);return D;}if(F.toUpperCase()=="GET"){if(this._sFormData.length!==0){C+=((C.indexOf("?")==-1)?"?":"&")+this._sFormData;}}else{if(F.toUpperCase()=="POST"){A=A?this._sFormData+"&"+A:this._sFormData;}}}if(F.toUpperCase()=="GET"&&(E&&E.cache===false)){C+=((C.indexOf("?")==-1)?"?":"&")+"rnd="+new Date().valueOf().toString();}D.conn.open(F,C,true);if(this._use_default_xhr_header){if(!this._default_headers["X-Requested-With"]){this.initHeader("X-Requested-With",this._default_xhr_header,true);}}if((F.toUpperCase()==="POST"&&this._use_default_post_header)&&this._isFormSubmit===false){this.initHeader("Content-Type",this._default_post_header);}if(this._has_default_headers||this._has_http_headers){this.setHeader(D);}this.handleReadyState(D,E);D.conn.send(A||"");if(this._isFormSubmit===true){this.resetFormState();}this.startEvent.fire(D,B);if(D.startEvent){D.startEvent.fire(D,B);}return D;}},initCustomEvents:function(A,C){var B;for(B in C.customevents){if(this._customEvents[B][0]){A[this._customEvents[B][0]]=new YAHOO.util.CustomEvent(this._customEvents[B][1],(C.scope)?C.scope:null);A[this._customEvents[B][0]].subscribe(C.customevents[B]);}}},handleReadyState:function(C,D){var B=this;var A=(D&&D.argument)?D.argument:null;if(D&&D.timeout){this._timeOut[C.tId]=window.setTimeout(function(){B.abort(C,D,true);},D.timeout);}this._poll[C.tId]=window.setInterval(function(){if(C.conn&&C.conn.readyState===4){window.clearInterval(B._poll[C.tId]);delete B._poll[C.tId];if(D&&D.timeout){window.clearTimeout(B._timeOut[C.tId]);delete B._timeOut[C.tId];}B.completeEvent.fire(C,A);if(C.completeEvent){C.completeEvent.fire(C,A);}B.handleTransactionResponse(C,D);}},this._polling_interval);},handleTransactionResponse:function(F,G,A){var D,C;var B=(G&&G.argument)?G.argument:null;try{if(F.conn.status!==undefined&&F.conn.status!==0){D=F.conn.status;}else{D=13030;}}catch(E){D=13030;}if(D>=200&&D<300||D===1223){C=this.createResponseObject(F,B);if(G&&G.success){if(!G.scope){G.success(C);}else{G.success.apply(G.scope,[C]);}}this.successEvent.fire(C);if(F.successEvent){F.successEvent.fire(C);}}else{switch(D){case 12002:case 12029:case 12030:case 12031:case 12152:case 13030:C=this.createExceptionObject(F.tId,B,(A?A:false));if(G&&G.failure){if(!G.scope){G.failure(C);}else{G.failure.apply(G.scope,[C]);}}break;default:C=this.createResponseObject(F,B);if(G&&G.failure){if(!G.scope){G.failure(C);}else{G.failure.apply(G.scope,[C]);}}}this.failureEvent.fire(C);if(F.failureEvent){F.failureEvent.fire(C);}}this.releaseObject(F);C=null;},createResponseObject:function(A,G){var D={};var I={};try{var C=A.conn.getAllResponseHeaders();var F=C.split("\n");for(var E=0;E<F.length;E++){var B=F[E].indexOf(":");if(B!=-1){I[F[E].substring(0,B)]=F[E].substring(B+2);}}}catch(H){}D.tId=A.tId;D.status=(A.conn.status==1223)?204:A.conn.status;D.statusText=(A.conn.status==1223)?"No Content":A.conn.statusText;D.getResponseHeader=I;D.getAllResponseHeaders=C;D.responseText=A.conn.responseText;D.responseXML=A.conn.responseXML;if(G){D.argument=G;}return D;},createExceptionObject:function(H,D,A){var F=0;var G="communication failure";var C=-1;var B="transaction aborted";var E={};E.tId=H;if(A){E.status=C;E.statusText=B;}else{E.status=F;E.statusText=G;}if(D){E.argument=D;}return E;},initHeader:function(A,D,C){var B=(C)?this._default_headers:this._http_headers;B[A]=D;if(C){this._has_default_headers=true;}else{this._has_http_headers=true;
}},setHeader:function(A){var B;if(this._has_default_headers){for(B in this._default_headers){if(YAHOO.lang.hasOwnProperty(this._default_headers,B)){A.conn.setRequestHeader(B,this._default_headers[B]);}}}if(this._has_http_headers){for(B in this._http_headers){if(YAHOO.lang.hasOwnProperty(this._http_headers,B)){A.conn.setRequestHeader(B,this._http_headers[B]);}}delete this._http_headers;this._http_headers={};this._has_http_headers=false;}},resetDefaultHeaders:function(){delete this._default_headers;this._default_headers={};this._has_default_headers=false;},setForm:function(M,H,C){var L,B,K,I,P,J=false,F=[],O=0,E,G,D,N,A;this.resetFormState();if(typeof M=="string"){L=(document.getElementById(M)||document.forms[M]);}else{if(typeof M=="object"){L=M;}else{return ;}}if(H){this.createFrame(C?C:null);this._isFormSubmit=true;this._isFileUpload=true;this._formNode=L;return ;}for(E=0,G=L.elements.length;E<G;++E){B=L.elements[E];P=B.disabled;K=B.name;if(!P&&K){K=encodeURIComponent(K)+"=";I=encodeURIComponent(B.value);switch(B.type){case"select-one":if(B.selectedIndex>-1){A=B.options[B.selectedIndex];F[O++]=K+encodeURIComponent((A.attributes.value&&A.attributes.value.specified)?A.value:A.text);}break;case"select-multiple":if(B.selectedIndex>-1){for(D=B.selectedIndex,N=B.options.length;D<N;++D){A=B.options[D];if(A.selected){F[O++]=K+encodeURIComponent((A.attributes.value&&A.attributes.value.specified)?A.value:A.text);}}}break;case"radio":case"checkbox":if(B.checked){F[O++]=K+I;}break;case"file":case undefined:case"reset":case"button":break;case"submit":if(J===false){if(this._hasSubmitListener&&this._submitElementValue){F[O++]=this._submitElementValue;}else{F[O++]=K+I;}J=true;}break;default:F[O++]=K+I;}}}this._isFormSubmit=true;this._sFormData=F.join("&");this.initHeader("Content-Type",this._default_form_header);return this._sFormData;},resetFormState:function(){this._isFormSubmit=false;this._isFileUpload=false;this._formNode=null;this._sFormData="";},createFrame:function(A){var B="yuiIO"+this._transaction_id;var C;if(YAHOO.env.ua.ie){C=document.createElement('<iframe id="'+B+'" name="'+B+'" />');if(typeof A=="boolean"){C.src="javascript:false";}}else{C=document.createElement("iframe");C.id=B;C.name=B;}C.style.position="absolute";C.style.top="-1000px";C.style.left="-1000px";document.body.appendChild(C);},appendPostData:function(A){var D=[],B=A.split("&"),C,E;for(C=0;C<B.length;C++){E=B[C].indexOf("=");if(E!=-1){D[C]=document.createElement("input");D[C].type="hidden";D[C].name=decodeURIComponent(B[C].substring(0,E));D[C].value=decodeURIComponent(B[C].substring(E+1));this._formNode.appendChild(D[C]);}}return D;},uploadFile:function(D,N,E,C){var I="yuiIO"+D.tId,J="multipart/form-data",L=document.getElementById(I),O=this,K=(N&&N.argument)?N.argument:null,M,H,B,G;var A={action:this._formNode.getAttribute("action"),method:this._formNode.getAttribute("method"),target:this._formNode.getAttribute("target")};this._formNode.setAttribute("action",E);this._formNode.setAttribute("method","POST");this._formNode.setAttribute("target",I);if(YAHOO.env.ua.ie){this._formNode.setAttribute("encoding",J);}else{this._formNode.setAttribute("enctype",J);}if(C){M=this.appendPostData(C);}this._formNode.submit();this.startEvent.fire(D,K);if(D.startEvent){D.startEvent.fire(D,K);}if(N&&N.timeout){this._timeOut[D.tId]=window.setTimeout(function(){O.abort(D,N,true);},N.timeout);}if(M&&M.length>0){for(H=0;H<M.length;H++){this._formNode.removeChild(M[H]);}}for(B in A){if(YAHOO.lang.hasOwnProperty(A,B)){if(A[B]){this._formNode.setAttribute(B,A[B]);}else{this._formNode.removeAttribute(B);}}}this.resetFormState();var F=function(){if(N&&N.timeout){window.clearTimeout(O._timeOut[D.tId]);delete O._timeOut[D.tId];}O.completeEvent.fire(D,K);if(D.completeEvent){D.completeEvent.fire(D,K);}G={tId:D.tId,argument:N.argument};try{G.responseText=L.contentWindow.document.body?L.contentWindow.document.body.innerHTML:L.contentWindow.document.documentElement.textContent;G.responseXML=L.contentWindow.document.XMLDocument?L.contentWindow.document.XMLDocument:L.contentWindow.document;}catch(P){}if(N&&N.upload){if(!N.scope){N.upload(G);}else{N.upload.apply(N.scope,[G]);}}O.uploadEvent.fire(G);if(D.uploadEvent){D.uploadEvent.fire(G);}YAHOO.util.Event.removeListener(L,"load",F);setTimeout(function(){document.body.removeChild(L);O.releaseObject(D);},100);};YAHOO.util.Event.addListener(L,"load",F);},abort:function(E,G,A){var D;var B=(G&&G.argument)?G.argument:null;if(E&&E.conn){if(this.isCallInProgress(E)){E.conn.abort();window.clearInterval(this._poll[E.tId]);delete this._poll[E.tId];if(A){window.clearTimeout(this._timeOut[E.tId]);delete this._timeOut[E.tId];}D=true;}}else{if(E&&E.isUpload===true){var C="yuiIO"+E.tId;var F=document.getElementById(C);if(F){YAHOO.util.Event.removeListener(F,"load");document.body.removeChild(F);if(A){window.clearTimeout(this._timeOut[E.tId]);delete this._timeOut[E.tId];}D=true;}}else{D=false;}}if(D===true){this.abortEvent.fire(E,B);if(E.abortEvent){E.abortEvent.fire(E,B);}this.handleTransactionResponse(E,G,true);}return D;},isCallInProgress:function(B){if(B&&B.conn){return B.conn.readyState!==4&&B.conn.readyState!==0;}else{if(B&&B.isUpload===true){var A="yuiIO"+B.tId;return document.getElementById(A)?true:false;}else{return false;}}},releaseObject:function(A){if(A&&A.conn){A.conn=null;A=null;}}};YAHOO.register("connection",YAHOO.util.Connect,{version:"2.6.0",build:"1321"});

YAHOO.namespace('sea.fp');YAHOO.sea.fp.Flash=(function(){var o={installed:0,version:[]},description,oActiveX,nMajor,nMinor;if(navigator.plugins&&typeof navigator.plugins["Shockwave Flash"]=="object"){o.pluginType="npapi";description=navigator.plugins["Shockwave Flash"].description;if(typeof description!="undefined"){description=description.replace(/^.*\s+(\S+\s+\S+$)/,"$1");nMajor=parseInt(description.replace(/^(.*)\..*$/,"$1"),10);nMinor=/r/.test(description)?parseInt(description.replace(/^.*r(.*)$/,"$1"),10):0;o.version=[nMajor,nMinor];o.installed=1;}}
else if(window.ActiveXObject){o.pluginType="ax";try{oActiveX=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7");}
catch(e){try{oActiveX=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");o.version=[6,0];o.installed=1;oActiveX.AllowScriptAccess="always";}
catch(e){if(o.version[0]==6){o.installed=1;return;}}
try{oActiveX=new ActiveXObject("ShockwaveFlash.ShockwaveFlash");}
catch(e){}}
if(typeof oActiveX=="object"){description=oActiveX.GetVariable("$version");if(typeof description!="undefined"){description=description.replace(/^\S+\s+(.*)$/,"$1").split(",");o.version=[parseInt(description[0],10),parseInt(description[2],10)];o.installed=1;}}}
return o;}());YAHOO.sea.fp.VideoConfig={pid:'player-area',tid:'video-player',fid:'swfvideocontent',cls:'i_videos'};YAHOO.sea.fp.Video=(function(){var YE=YAHOO.util.Event,YD=YAHOO.util.Dom,VC=YAHOO.sea.fp.VideoConfig;var _isInit=false;function _initVideoPlayer(){var player_el=YD.get(VC.pid);if(player_el){player_el.innerHTML='<div id="post-roll">'+'<a id="vid-play-again" href="http://video.yahoo.com/">'+'<img id="vid-thumb" src="http://l.yimg.com/hb/i/sea/fp/img/trk.gif" width="140" height="105" alt="">'+'<strong id="vid-title">Video Title Goes Here</strong>'+'<em>[Watch Again]</em><a/>'+'<div class="vid-links"><strong>Share this Video</strong>'+'<ul><li><a href="http://videos.yahoo.com/" id="vid-share-email">Email this video</a></li>'+'<li><a href="http://videos.yahoo.com/" id="vid-share-im">IM this video</a></li></ul>'+'</div><div class="vid-links vid-links-last"><strong>Add your own</strong>'+'<ul id="vid-upload"><li><a href="http://video.yahoo.com/video/upload" id="vid-share-upload">Upload your own video</a></li></ul>'+'</div><a id="vid-close" href="http://video.yahoo.com/">[close]</a></div>'+'<div id="video-player"></div>';YE.on('vid-close','click',function(e){YAHOO.sea.fp.Video.hidePlayer();YE.stopEvent(e);});}
_isInit=true;};return{embed:function(vid,width,height,auto){var tobj=document.getElementById(VC.tid);if(!tobj){return;}
var flashVars='id='+vid+'&autoStart='+auto+'&eh=YAHOO.sea.fp.Video.handleEvent'+'&closeEnable=1'+'&shareEnable=0'+'&prepanelEnable=0'+'&nowplayingEnable=0'+'&postpanelEnable=0'+'&infoEnable=0';if(YAHOO.sea.fp._ie){width-=1;tobj.innerHTML='<obj'+'ect id="'+VC.fid+'" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="'+width+'" height="'+height+'">'+'<param name="movie" value="http://d.yimg.com/cosmos.bcst.yahoo.com/up/fop/embedflv/swf/fop.swf"/>'+'<param name="loop" value="false"/>'+'<param name="quality" value="high">'+'<param name="menu" value="false"/>'+'<param name="wmode" value="opaque"/>'+'<param name="allowScriptAccess" value="always"/>'+'<param name="pluginurl" value="http://www.macromedia.com/go/getflashplayer">'+'<param name="FlashVars" value="'+flashVars+'"/>'+'</object>';}else{var em=document.createElement('embed');tobj.innerHTML='<em'+'bed width="'+width+'" height="'+height+'" flashvars="'+flashVars+'" allowscriptaccess="always" '+'wmode="opaque" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" '+'type="application/x-shockwave-flash" quality="autohigh" menu="false" loop="false" '+'src="http://d.yimg.com/cosmos.bcst.yahoo.com/up/fop/embedflv/swf/fop.swf" name="'+VC.fid+'"></embed>';}},showPlayer:function(vid){YD.setStyle('gallery-content','display','none');YD.setStyle('post-roll','display','none');YD.setStyle(VC.pid,'display','block');YD.setStyle(VC.tid,'display','block');YAHOO.sea.fp.Video.embed(vid,389,292,1);},hidePlayer:function(){var swf=document[VC.fid];if(swf&&swf.vidStop){swf.vidStop();}
YD.setStyle('post-roll','display','none');YD.setStyle(VC.pid,'display','none');YD.setStyle(VC.tid,'display','none');YD.setStyle('gallery-content','display','block');},triggerVideo:function(vid,img,title){if(YAHOO.sea.fp._opera){return true;}
if(!_isInit){_initVideoPlayer();}
YAHOO.sea.fp.Video.showPlayer(vid);YD.get('vid-thumb').src=img;YD.get('vid-title').innerHTML=title;YD.get('vid-share-email').href='http://cosmos.bcst.yahoo.com/scp_v3/viewer/share_upv2.php?url='+escape('http://cosmos.bcst.yahoo.com/ver/223/popup/index.php?cl='+vid+'&title='+title);YE.on('vid-share-email','click',function(e){var t=YE.getTarget(e);window.open(t.href,'mailer','menubar=no,location=no,resizable=no,scrollbars=no,status=no,width=436,height=589');YE.stopEvent(e);});YD.get('vid-share-im').href='ymsgr:im?msg='+title+' http://cosmos.bcst.yahoo.com/up/player/popup/?cl='+vid;YE.on('vid-play-again','click',function(e){YAHOO.sea.fp.Video.triggerVideo(vid,img,title);YE.stopEvent(e);});return false;},handleEvent:function(type,item){switch(type){case'itemBegin':YD.setStyle('pre-roll','display','none');break;case'close':YAHOO.sea.fp.Video.hidePlayer();break;case'itemEnd':var swf=document[VC.fid];if(swf&&swf.vidStop){swf.vidStop();}
YD.setStyle('post-roll','display','block');break;}}};})();YAHOO.sea.fp.Logo=(function(){var ctn="";return{write:function(logoswf,logolink,logoimg){if(YAHOO.sea.fp.Flash&&YAHOO.sea.fp.Flash.version[0]>=7){ctn="<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' "+"codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0' "+"width='250' height='90'>"+"<param name='wmode' value='transparent'/>"+"<param name='allowScriptAccess' value='always'/>"+"<param name='quality' value='high'/>"+"<param name='movie' value='"+logoswf+"'>"+"<embed src='"+logoswf+"' "+"width='250' height='90' "+"wmode='transparent' "+"allowScriptAccess='always' type='application/x-shockwave-flash' "+"quality='high' "+"pluginspage='http://www.adobe.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash'>"+"</embed>"+"</object>";}else{ctn="<a href='"+logolink+"'><img src='"+logoimg+"' width='250' height='90' style='margin-top:0;margin-left:2px;margin-left:0;' border='0'></a>";}
document.write(ctn);}};})();

YAHOO.sea.fp.Polls=(function(){var YUD=YAHOO.util.Dom,YUE=YAHOO.util.Event;return{init:function(){var docheight=YAHOO.sea.fp.Cookie.get('sea_polls');if(docheight&&docheight!=='-1'){YAHOO.sea.fp.Cookie.set('sea_polls','-1','','','yahoo.com');}
var doc=YUD.get('pulse_iframe');YUE.on(doc,'load',function(){var docheight=YAHOO.sea.fp.Cookie.get('sea_polls');if(docheight&&docheight!=='-1'){YUD.get('pulse_iframe').height=docheight;YAHOO.sea.fp.Cookie.set('sea_polls','-1','','','yahoo.com');}});}}})();if(YAHOO.util.Dom.get('pulse_iframe')){YAHOO.sea.fp.Polls.init();}
YAHOO.sea.fp._ie=YAHOO.env.ua.ie;YAHOO.sea.fp._ie7=(YAHOO.env.ua.ie&&(YAHOO.env.ua.ie===7||YAHOO.env.ua.ie===8))?1:0;YAHOO.sea.fp._webkit=YAHOO.env.ua.webkit;YAHOO.sea.fp.Layout=(function(){return{switchPageLayout:function(layout,useRdPath){var rdPath="http://aa.rd.yahoo.com/spirit/vn/layout/";YAHOO.sea.fp.Cookie.set('FPS',layout,400*3600000,'/',YAHOO.sea.fp._region+'.yahoo.com');if(useRdPath){location.replace(rdPath+((layout=='ts')?'narrow':'wide')+'/*http://'+location.hostname+'/index'+((layout=='ts')?'_1':'')+'.php');}else{location.replace('http://'+location.hostname+'/index'+((layout=='ts')?'_1':'')+'.php');}},autoSwitchPageLayout:function(layout){this.switchPageLayout(layout,false);},togglePageLayout:function(e){var YE=YAHOO.util.Event;var t=YE.getTarget(e);if(t.id==='dims-n'){this.switchPageLayout('ts',true);}else if(t.id==='dims-w'){this.switchPageLayout('dl',true);}}};})();YAHOO.util.Event.on(window,'load',function(){var YD=YAHOO.util.Dom,YE=YAHOO.util.Event;var ohp=YD.get('iehp');var hpurl='http://'+location.hostname+location.pathname;var shp=YD.get('sethomepage');var grp=YD.get('sethpgrp');if(ohp!=null&&shp!=null){YD.setStyle(ohp,'behavior','url(#default#homepage)');if(YAHOO.sea.fp._ie){var ishp=false;ishp|=ohp.isHomePage('http://'+location.hostname);ishp|=ohp.isHomePage('http://'+location.hostname+'/');ishp|=ohp.isHomePage('http://'+location.hostname+'/index.php');ishp|=ohp.isHomePage('http://'+location.hostname+'/index_1.php');YD.setStyle(grp,'display',(ishp?'none':'inline'));}else if(YAHOO.sea.fp._ff||YAHOO.sea.fp._webkit){YD.setStyle(grp,'display',((window.history.length<=1)?'none':'inline'));}
YE.on(shp,'click',function(e){if(YAHOO.sea.fp._ie){ohp.setHomePage(hpurl);}else if(YAHOO.sea.fp._ff||YAHOO.sea.fp._webkit){var shpd=YD.get('shpd');if(!shpd){shpd=document.createElement('div');shpd.setAttribute('id','shpd');shpd.className='shdw';shpd.innerHTML=YAHOO.sea.fp.eyebrow.sethp_overlay;shp.parentNode.appendChild(shpd);YE.on(document,'click',function(){shpd.style.display='none';});}
shpd.style.display='block';}
YE.stopEvent(e);});}});(function(){var c=YAHOO.sea.fp.Cookie.get('FPS');if(c=='ts'){YAHOO.sea.fp.Layout.autoSwitchPageLayout('ts');}})();(function(){var YD=YAHOO.util.Dom,YE=YAHOO.util.Event;var ohp=YD.get('iehp');var hpurl='http://'+location.hostname+location.pathname;if(YAHOO.sea.fp._ie){if(!ohp){ohp=YD.get('shp-ie');}
YE.on(window,'beforeunload',function(e){var ishp=false;ishp|=ohp.isHomePage('http://'+location.hostname);ishp|=ohp.isHomePage('http://'+location.hostname+location.pathname);ishp|=ohp.isHomePage('http://'+location.hostname+'/');ishp|=ohp.isHomePage('http://'+location.hostname+'/index.php');ishp|=ohp.isHomePage('http://'+location.hostname+'/index_1.php');var bhp=new Image();bhp.src=(ylp?ylp:hpurl+'p.gif?t=0')+'&hp='+(ishp?'1':'0');});}
var o=YD.get('dims-w')||YD.get('dims-n');if(o){YE.on(o,'click',function(e){YAHOO.sea.fp.Layout.togglePageLayout(e);YE.stopEvent(e);});}
var searchInput=YD.get('p');if(searchInput){searchInput.focus();}})();YAHOO.sea.fp.Themes=(function(){var YUD=YAHOO.util.Dom,YUE=YAHOO.util.Event;return{setupSwitcher:function(id){var that=this;YUE.on(id,'click',function(e){var t=YUE.getTarget(e);if((t.id!='dims-n')&&(t.id!='dims-w')){that.loadScheme(t);YUE.stopEvent(e);}});},loadSearchBG:function(c){YUD.get('sf-noniebox').setAttribute('src','http://l.yimg.com/hb/i/sea/fp/img/'+c+'/whood2.png');YUD.get('falcon_toggleimg').setAttribute('src','http://l.yimg.com/hb/i/sea/fp/img/'+c+'/wlip_closed2.png');},updateControl:function(o){var themeId=0,u,l,s;if(o.tagName.toLowerCase()==='a'){themeId=o.id;u=YUD.getAncestorByTagName(o,'ul').getElementsByTagName('li');for(var j=0,n=u.length;j<n;++j){YUD.removeClass(u[j],'on');}
l=YUD.getAncestorByTagName(o,'li');YUD.addClass(l,'on');}
return themeId;},loadScheme:function(o){var themeId=this.updateControl(o);if(themeId!=0){YAHOO.sea.fp.Beacon('color/'+themeId);this.loadStyle(themeId);}},loadStyle:function(c){s=document.getElementById('theme-css');if(s){s.parentNode.removeChild(s);}
s=document.createElement('link');s.setAttribute('id','theme-css');s.setAttribute('rel','stylesheet');s.setAttribute('type','text/css');s.setAttribute('href','http://l.yimg.com/hb/i/sea/fp/css/'+c+'_2.4_ctr-min.css');document.getElementsByTagName('head')[0].appendChild(s);this.loadSearchBG(c);YAHOO.sea.fp.Cookie.set('FPT',c,400*3600000,'/',YAHOO.sea.fp._region+'.yahoo.com');}};})();YAHOO.sea.fp.TabSet=function(id,fn,loop,mouseover,todaysetArr,sticky){this.init(id,fn,loop,mouseover,todaysetArr,sticky);};YAHOO.sea.fp.TabSet.prototype={init:function(id,fn,loop,mouseover,todaysetArr,sticky){this.id=id;this.fn=fn;this.md=YAHOO.util.Dom.get(id);this.lidx=0;this.loop=loop;this.timeout=0;this.mouseover=mouseover;this.mousedelay=250;this.mouseovertimeout=0;this.tsArr=todaysetArr;this.tsRotated=false;this.sticky=sticky;var that=this;if(this.tsArr){for(var i=0;i<this.tsArr.length;i++){this.tsArr[i].registerFunction(this.stopAutoLoop,that);}}
if(this.md){this.tl=YAHOO.util.Dom.getElementsByClassName('tab-list','ul',this.md);if(this.tl&&this.tl.length){this.tl=this.tl[0];this.li=this.tl.getElementsByTagName('li');YAHOO.util.Event.on(this.tl,'click',this.handleClick,this,true);if(mouseover==true){YAHOO.util.Event.on(this.tl,'mouseover',this.handleMouseOver,this,true);YAHOO.util.Event.on(this.tl,'mouseout',this.handleMouseOut,this,true);}
if(loop==true){var that=this;this.timeout=setTimeout(function(){that.autoLoop();},10000);}}}},stopAutoLoop:function(obj){clearTimeout(obj.timeout);obj.loop=false;},autoLoop:function(){var that=this;if(this.tsArr){if(this.loop){this.tsRotated=this.tsArr[this.lidx].rotate();if(this.tsRotated==true){++this.lidx;if(this.lidx>=this.li.length){this.lidx=0;}
this.switchTab(this.li[this.lidx].id);}
this.timeout=setTimeout(function(){that.autoLoop();},10000);}}else{++this.lidx;if(this.lidx>=this.li.length){this.loop=false;this.lidx=0;}
this.switchTab(this.li[this.lidx].id);if(this.loop){this.timeout=setTimeout(function(){that.autoLoop();},7000);}}},handleMouseOut:function(e){clearTimeout(this.mouseovertimeout);},handleMouseOver:function(e){clearTimeout(this.mouseovertimeout);var t=YAHOO.util.Event.getTarget(e);if(t.tagName.toLowerCase()=='a'){var that=this;this.mouseovertimeout=setTimeout(function(){that.processMouseOver(t.parentNode.id);},this.mousedelay);}},processMouseOver:function(tabId){if(this.timeout!=0){clearTimeout(this.timeout);}
this.switchTab(tabId);if(this.fn!=null){this.fn();}},handleClick:function(e){if(this.timeout!=0){clearTimeout(this.timeout);}
var t=YAHOO.util.Event.getTarget(e);if(t.tagName.toLowerCase()=='a'){this.switchTab(t.parentNode.id);if(this.fn!=null){this.fn();}
YAHOO.util.Event.preventDefault(e);}},switchTab:function(on,forceNoSticky){var Dom=YAHOO.util.Dom;for(var i=0,n=this.li.length;i<n;++i){Dom.removeClass(this.li[i],'on');Dom.removeClass(this.li[i].id+'ct','on');}
Dom.addClass(on,'on');Dom.addClass(on+'ct','on');if(this.sticky&&!forceNoSticky){var i=on.charAt(on.length-1);YAHOO.sea.fp.Cookie.set('sea_hdln',i);}}};YAHOO.sea.fp.Preview=(function(){var YUD=YAHOO.util.Dom,YUE=YAHOO.util.Event;return{init:function(idList){var createSwitcher=function(node){return function(e){var t=YUE.getTarget(e),n=t.tagName.toLowerCase(),p,b,c;if(n=='p'||n=='img'||n=='a'||n=='li'){p=(n=='li')?t:YUD.getAncestorByTagName(t,'li');c=YUD.getElementsByClassName('on','',node)[0];YUD.removeClass(c,'on');YUD.removeClass(c.id+'ct','on');YUD.addClass(p,'on');YUD.addClass(p.id+'ct','on');}
YUE.preventDefault(e);};};var i,m,id,obj,pft;for(i=0,m=idList.length;i<m;++i){id=idList[i];obj=YUD.get(id);if(!obj){continue;}
pft=YUD.getElementsByClassName('pv-ft','',obj)[0];YUE.on(pft,'click',createSwitcher(pft));}}};})();YAHOO.sea.fp.Search=(function(){var YUD=YAHOO.util.Dom,YUE=YAHOO.util.Event;var labels=YAHOO.sea.fp.SearchHelper.labels;var links=YAHOO.sea.fp.SearchHelper.links;var frcodes=YAHOO.sea.fp.SearchHelper.frcodes;var btns=['sbmt','sbmt2'];var currentTab="sf-web";return{init:function(id){var that=this;YUE.on(id,'click',function(e){var t=YUE.getTarget(e);that.switchTab(t);YUE.stopEvent(e);});YUE.on('sbmt2','click',function(){var YDS=YAHOO.sea.fp.Search;if(!YUD.get('sado')){YDS.modParam('fr','yfp-t-101');}YDS.addParam('vc','countryVN');});YUE.on('sbmt','click',function(){var YDS=YAHOO.sea.fp.Search;var rlocal_rbutton=YUD.get('rlocal');if(rlocal_rbutton&&rlocal_rbutton.checked===true){YDS.addParam('vc','countryVN');}});if(YUD.get('sbmt')){YAHOO.sea.fp.Search.toggleButtons('sf-web');}},addParam:function(name,val){if(YUD.get(name)){YAHOO.sea.fp.Search.modParam(name,val);}else{var inp=document.createElement('input');inp.setAttribute('name',name);inp.setAttribute('value',val);inp.setAttribute('type','hidden');inp.setAttribute('id',name);var form_el=YUD.get('sf-bd');form_el.appendChild(inp);}},modParam:function(name,newval){if(name=='fr'&&YAHOO.sea.fp.usePartnerFR){return;}
var inp=YUD.get(name);if(inp!=null){inp.setAttribute('value',newval);}},delParam:function(name){var inp=YUD.get(name);var form_el=YUD.get('sf-bd');form_el.removeChild(inp);},switchTab:function(o){if(o.tagName.toLowerCase()==='a'){var a=YUD.getAncestorByTagName(o,'ul').getElementsByTagName('a');for(var i=0,n=a.length;i<n;++i){YUD.removeClass(a[i],'on');}
YUD.addClass(o,'on');this.toggleButtons(o.id);this.currentTab=o.id;}},toggleButtons:function(id){this.modifyForm(id);var str=labels[id];var b1=document.getElementById(btns[0]),b2=document.getElementById(btns[1]);b1.value=str[0];},modifyForm:function(id){var str=labels[id];var sm=YUD.get("sbmt"),sfForm=YUD.get("sf-bd");sm.value=str[0];sfForm.action=links[id][0];if(!YAHOO.sea.fp.usePartnerFR){YUD.get('fr').value=frcodes[id][0];}setTimeout("document.getElementById('p').focus()",1);},currentTab:currentTab};})();YAHOO.sea.fp.Drawer=(function(){var YE=YAHOO.util.Event,YD=YAHOO.util.Dom;var drawer='',openAnim=null,closeAnim=null,isOpen=false;return{init:function(drawerId,triggerId,closeId){var that=this;drawer=YD.get(drawerId);if(drawer!==null){openAnim=new YAHOO.util.Anim(drawer,{width:{to:590}},0.3,YAHOO.util.Easing.easeOutStrong);closeAnim=new YAHOO.util.Anim(drawer,{width:{to:0}},0.3,YAHOO.util.Easing.easeOutStrong);YE.on(triggerId,'click',function(e){if(isOpen===true){that.close();}else{that.open();}
isOpen=!isOpen;YE.stopEvent(e);});YE.on(closeId,'click',function(e){that.close();isOpen=false;YE.stopEvent(e);});}},open:function(){openAnim.animate();},close:function(){closeAnim.animate();}};})();YAHOO.sea.fp._fpt='t1';(function(){var switcher=YAHOO.util.Dom.get('t1');if(switcher){YAHOO.sea.fp.Themes.updateControl(YAHOO.util.Dom.get('t1'));}})();
     
YAHOO.sea.fp.Search.init( 'sf-tabs' );YAHOO.sea.fp.Themes.setupSwitcher( 'theme' );
YAHOO.sea.fp.TodayVSet=function(id,autoRotate){this.init(id,autoRotate);};YAHOO.sea.fp.TodayVSet.prototype={init:function(id,autoRotate){this.obj=YAHOO.util.Dom.get(id);this.animComplete=true;this.mouseovertimeout=0;this.autoRotatePaused=true;this.mouseOverred=false;this.autoRotateConf=autoRotate;var pft=YAHOO.util.Dom.getElementsByClassName('vpv-ft','',this.obj)[0];var pvtabs=YAHOO.util.Dom.getElementsBy(function(el){if(el.parentNode.className=='vpv-ft'){return true;}else{return false;}},'li',pft);this.pvimgs=new Array();this.pvtabs=pvtabs;this.stopAnim=null;this.controller=null;var that=this,i;for(i=0;i<pvtabs.length;i++){var pvid='gl2-ct1-'+(i+1)+'vpv';this.pvimgs[i]=YAHOO.util.Dom.getElementsBy(function(el){return true;},'img',pvid)[0];YAHOO.util.Event.on(pvtabs[i],'click',this.switchClick,that,false);YAHOO.util.Event.on(pvtabs[i],'mouseover',this.handleMouseOver,that,false);YAHOO.util.Event.on(pvtabs[i],'mouseout',this.handleMouseOut,that,false);}
this.curTab=0;var that=this;if(autoRotate===true){this.timeout=setTimeout(function(){that.autoRotate();},10000);}},registerFunction:function(fn,obj){this.stopAnim=fn;this.controller=obj;},switchClick:function(e,obj){var that=this;(function(){obj.autoRotatePaused=true;obj.mouseOverred=true;if(obj.timeout!=0){clearTimeout(obj.timeout);}
obj.switchTab(that);YAHOO.util.Event.preventDefault(e);})();},handleMouseOut:function(e,obj){clearTimeout(obj.mouseovertimeout);if(obj.mouseOverred==true&&obj.autoRotatePaused==true){obj.mouseOverred=false;obj.timeout=setTimeout(function(){obj.autoRotate();},12000);}},handleMouseOver:function(e,obj){clearTimeout(obj.mouseovertimeout);var that=this;obj.mouseovertimeout=setTimeout(function(){obj.processMouseOver(obj,that);},500);},processMouseOver:function(obj,tab){obj.autoRotatePaused=true;obj.mouseOverred=true;if(obj.timeout!=0){clearTimeout(obj.timeout);}
if(obj.stopAnim){obj.stopAnim(this.controller);}
obj.switchTab(tab);},switchTab:function(node){clearTimeout(this.timeout);var YUD=YAHOO.util.Dom,YUE=YAHOO.util.Event,c,c_ctn,n,n_ctn;if(this.animComplete==false){return;}
c=YUD.getElementsByClassName('on','',node.parentNode)[0];c_ctn=c.id+'vpv';n_ctn=node.id+'vpv';if(c.id===node.id){return;}
var node_id=node.id;var node_idx=node_id.charAt(node_id.length-1)-1;this.curTab=node_idx;if(!this.pvimgs[node_idx].src){this.pvimgs[node_idx].src=YAHOO.sea.fp.TodayImages[node_idx];}
if(YAHOO.sea.fp._ff===1&&YAHOO.sea.fp._ffv==="2.0.0"){YUD.removeClass(c,'on');YUD.removeClass(c.id+'vpv','on');YUD.addClass(n_ctn,'on');YUD.addClass(node,'on');}else{this.animComplete=false;var an1=new YAHOO.util.Anim(c_ctn,{opacity:{from:1,to:0}},0.4,YAHOO.util.Easing.easeOut);var an2=new YAHOO.util.Anim(n_ctn,{opacity:{from:0,to:1}},0.5,YAHOO.util.Easing.easeOut);an2.onStart.subscribe(function(){YUD.setStyle(n_ctn,'opacity',0);YUD.addClass(n_ctn,'on');});var that=this;an1.onStart.subscribe(function(){YUD.removeClass(c,'on');YUD.addClass(node,'on');});an2.onComplete.subscribe(function(){YUD.removeClass(c.id+'vpv','on');that.animComplete=true;});an1.animate();an2.animate();}},rotate:function(){var that=this;var hasOneRotation=false;++this.curTab;if(this.curTab>=this.pvtabs.length){this.curTab=0;hasOneRotation=true;}
this.switchTab(this.pvtabs[this.curTab]);return hasOneRotation;},autoRotate:function(){if(this.autoRotateConf==false){return;}
var that=this;that.autoRotatePaused=false;++this.curTab;if(this.curTab>=this.pvtabs.length){this.curTab=0;}
this.switchTab(this.pvtabs[this.curTab]);this.timeout=setTimeout(function(){that.autoRotate();},10000);}};
     
YAHOO.sea.fp.PaModule=(function(){var YUD=YAHOO.util.Dom,YUE=YAHOO.util.Event;var ANIM_TIME=0.3;var ANIM_DELAY=80;var DIV_HEIGHT=118;var DIV_INV_HEIGHT=0;var PA_PASS_THROUGH_DELAY=200;var MOUSEOUT_DELAY=1000;var REFRESH_TIME=300000;var REQUEST_TIMEOUT=5000;var LOADING_MSG=YAHOO.sea.fp.PaModuleHelper.LOADING_MSG;var _isPaInUse=false;var _dPaContainer=null;var _sCurrentPreviewSpanId=null;var _sCurrentModuleName=null;var _sOpenRowId=null;var _prvmouseoutTimeout=null;var _movertimeout=null;var _requestTimeout=null;var _oErrorManager=YAHOO.sea.fp.PaModuleError;function _getErrorMessage(sModuleName){var oModuleHandler=_oErrorManager[sModuleName];var oErrorTemplateHandler=_oErrorManager['template'];return oErrorTemplateHandler.templateHdr+oModuleHandler.html+oErrorTemplateHandler.templateFtr;};function _timer(sModuleName){_oErrorManager[sModuleName].isProcessed=0;setTimeout(function(){_timer(sModuleName);},REFRESH_TIME);};function _processTabMouseover(sTabsRowId,sModuleName){if(_sCurrentModuleName===sModuleName){return;}
var dTab=YUD.get(sModuleName);var sModuleContainerId=sModuleName+"preview";var dModuleContainer=YUD.get(sModuleContainerId);var dPreviewDiv=YUD.get(sTabsRowId+'preview');if(_sCurrentModuleName){YUD.removeClass(_sCurrentModuleName,'tab-on');YUD.removeClass(_sCurrentPreviewSpanId,'current');}
_sCurrentModuleName=sModuleName;_sCurrentPreviewSpanId=sModuleContainerId;if(!dModuleContainer){dModuleContainer=_createModuleDataContainer(sModuleContainerId);dPreviewDiv.appendChild(dModuleContainer);}
if((dModuleContainer.innerHTML==="")||(_oErrorManager[sModuleName].error)||(_oErrorManager[sModuleName].isProcessed===0)){_prepareRequest(dModuleContainer,sModuleName);}
if(_sCurrentModuleName==='answers'){YAHOO.sea.fp.PaModule.Answers.resumeCurrentSlide();}else{YAHOO.sea.fp.PaModule.Answers.pauseCurrentSlide();}
if(_sOpenRowId===sTabsRowId){_showModule();return;}
if(_sOpenRowId){_doAnimation(YUD.get(_sOpenRowId+'preview'),DIV_INV_HEIGHT,false,true);}
_doAnimation(dPreviewDiv,DIV_HEIGHT,false);_sOpenRowId=sTabsRowId;};function _createModuleDataContainer(sModuleContainerId){var dModuleContainer=document.createElement('span');dModuleContainer.setAttribute('id',sModuleContainerId);return dModuleContainer;};function _prepareRequest(dModuleDataContainer,sModuleName){dModuleDataContainer.innerHTML=LOADING_MSG;var oRequestArgs='';_getModuleData(sModuleName,oRequestArgs);_oErrorManager[sModuleName].isProcessed=1;};function _changeStyles(){var oTmp=arguments[2];if(oTmp){var oSelf=oTmp.target;var dCurrentTab=YUD.get(_sCurrentModuleName);var dPreviewDiv=oTmp.dPreviewDiv;if(oTmp.bDivClose){YUD.removeClass(dPreviewDiv,"preview-on");YUD.removeClass(dCurrentTab,"tab-on");YUD.removeClass(_sCurrentPreviewSpanId,"current");}else{dPreviewDiv.style.minHeight=0;YUD.addClass(dPreviewDiv,"preview-on");YUD.addClass(dCurrentTab,"tab-on");}}};function _doAnimation(dPreviewDiv,nHeight,bPaClose,bDivClose){var attributes=(YAHOO.sea.fp._ie&&!YAHOO.sea.fp._ie7)?{height:{to:nHeight}}:{minHeight:{to:nHeight}};var oRowAnim=dPreviewDiv['animationObject'];if(oRowAnim){oRowAnim.onComplete.unsubscribe(_showModule);oRowAnim.onStart.unsubscribe(_changeStyles);oRowAnim.stop();oRowAnim=null;}
oRowAnim=new YAHOO.util.Anim(dPreviewDiv,attributes,ANIM_TIME,YAHOO.util.Easing.easeBoth);oRowAnim.onStart.subscribe(_changeStyles,{dPreviewDiv:dPreviewDiv,bDivClose:bDivClose});oRowAnim.onComplete.subscribe(_showModule,{row:dPreviewDiv,height:nHeight,bPaClose:bPaClose});oRowAnim.animate();dPreviewDiv['animationObject']=oRowAnim;};function _showModule(){if(arguments.length>2){var oTmp=arguments[2];if(!oTmp.height){if(oTmp.bPaClose){_sCurrentPreviewSpanId=null;_sCurrentModuleName=null;_sOpenRowId=null;}
return;}}
else{YUD.addClass(_sCurrentModuleName,"tab-on");}
_showCurrentPanel(_sCurrentPreviewSpanId);};function _showCurrentPanel(sCurrentNodeId){var a=arguments;var sTagName=(a.length>1&&a[1]!=='')?a[1]:'span';var sClassName=(a.length>2&&a[2]!=='')?a[2]:'current';var aNodes=YUD.get(sCurrentNodeId).parentNode.getElementsByTagName(sTagName);var nNodesLength=aNodes.length,i;for(i=0;i<nNodesLength;i++){if(YUD.hasClass(aNodes[i],sClassName)){YUD.removeClass(aNodes[i],sClassName);}}
YUD.addClass(sCurrentNodeId,sClassName);};function _getModuleData(moduleName,oModuleParamsObj){var aUrlChunks=[];aUrlChunks.push(_generateUrl(moduleName));if(oModuleParamsObj){for(var params in oModuleParamsObj){aUrlChunks.push('&');aUrlChunks.push(params);aUrlChunks.push('=');aUrlChunks.push(oModuleParamsObj[params]);}}
if(moduleName=='answers'){YAHOO.sea.fp.PaModule.Answers.createDataScripts();}
_sendRequest(moduleName,YUD.get(_sCurrentPreviewSpanId),aUrlChunks.join(""));return false;};function _generateUrl(moduleName){var aUrlChunks=[];aUrlChunks.push('http://');aUrlChunks.push(YAHOO.sea.fp._hostname);aUrlChunks.push('/module/spirit/pa_module.php?module=');aUrlChunks.push(moduleName);aUrlChunks.push('&section=pa_');aUrlChunks.push(moduleName);aUrlChunks.push('&fpsrc=');aUrlChunks.push(moduleName);if(moduleName=='messenger'){aUrlChunks.push('&newmsgr=1');}
return _prepareUrl(aUrlChunks.join(""),1,1);};function _prepareUrl(sUrl){var a=arguments,al=a.length;return sUrl+
(typeof(ver)!='undefined'?'&ver='+ver:'')+
(al>1&&a[1]==1?'&rnd='+Math.random():'')+
(al>2&&a[2]==1?typeof(PID)!='undefined'?'&pid='+PID:'':'');};function _sendRequest(sModuleName,dPreviewSpan,sUrl){var oSelf=this;var oArgObject={responseContainer:dPreviewSpan,referenceModuleName:sModuleName,referenceObject:this};var oCallbackHelper={success:_processResponse,failure:function(){_handleRequestTimeout(dPreviewSpan,sModuleName);},argument:oArgObject};try{var oXhr=YAHOO.util.Connect.asyncRequest('GET',sUrl,oCallbackHelper,null);}catch(exception){}
_requestTimeout=setTimeout(function(){_handleRequestTimeout(dPreviewSpan,sModuleName,oXhr);},REQUEST_TIMEOUT);};function _handleRequestTimeout(dPreviewSpan,sModuleName,oXhr){_oErrorManager[sModuleName].error=true;var sErrorMsg=_getErrorMessage(sModuleName);dPreviewSpan.innerHTML=sErrorMsg;if(oXhr){YAHOO.util.Connect.abort(oXhr);}};function _stripChunk(sRaw){var comment=sRaw.lastIndexOf("!--");if(comment<0){return sRaw;}
return sRaw.substring(0,(comment-1));};function _processResponse(oCallback){var oArgObject=oCallback.argument;var dPrvContainer=oArgObject.responseContainer;var oSelf=oArgObject.referenceObject;var sModuleName=oArgObject.referenceModuleName;var jsonData;try{clearTimeout(_requestTimeout);jsonData=eval('('+_stripChunk(oCallback.responseText)+')').data;var sHtmlText=jsonData.html;if(sHtmlText){if(sHtmlText!=-1){dPrvContainer.innerHTML=sHtmlText;_oErrorManager[sModuleName].error=false;}
else if(sHtmlText==-1||(jsonData.retcode&&jsonData.retCode==-1)){_handleRequestTimeout(dPrvContainer,sModuleName);return;}}
if(sModuleName=='messenger'&&YAHOO.sea.fp.PaModule.Messenger){YAHOO.sea.fp.PaModule.Messenger.init();}else if(sModuleName=='answers'){YAHOO.sea.fp.PaModule.Answers.init();}}catch(exception){_handleRequestTimeout(dPrvContainer,sModuleName);}};function _addListeners(aRows){var self=this;var iRowsLength=aRows.length;var dRows=[];for(var nRow=0;nRow<iRowsLength;nRow++){dRows[nRow]=YUD.get(aRows[nRow]);var aTabs=dRows[nRow].getElementsByTagName('a');var iLength=aTabs.length;for(var i=0;i<iLength;i++){YUE.addListener(aTabs[i],"mouseover",function(oSelf,sRowId,sModuleName,node){return function(e){_handleTabMouseover(e,sRowId,sModuleName,node);};}(self,dRows[nRow].id,aTabs[i].parentNode.parentNode.parentNode.id,aTabs[i]));}}};function _handleTabMouseover(e,sRowId,sModuleName,node){var oSelf=this;clearTimeout(_prvmouseoutTimeout);var mouseoverDelay=(_isPaInUse)?ANIM_DELAY:PA_PASS_THROUGH_DELAY;_movertimeout=setTimeout(function(){if(!_isPaInUse){_isPaInUse=true;}
_processTabMouseover(sRowId,sModuleName);},mouseoverDelay);};function _handlePaMouseover(e){clearTimeout(_prvmouseoutTimeout);}
function _handlePaMouseout(e){clearTimeout(_movertimeout);_prvmouseoutTimeout=setTimeout(function(){_processPaMouseout();},MOUSEOUT_DELAY);};function _processPaMouseout(){_isPaInUse=false;if(_sOpenRowId){if(_sCurrentModuleName==='answers'){YAHOO.sea.fp.PaModule.Answers.pauseCurrentSlide();}
_doAnimation(YUD.get(_sOpenRowId+"preview"),DIV_INV_HEIGHT,true,true);}};function _init(cfg){_dPaContainer=YUD.get(cfg.container);if(_dPaContainer){_addListeners(cfg.rowsId);if(cfg.refreshModules){for(i=0;i<cfg.refreshModules.length;i++){_timer(cfg.refreshModules[i]);}}
YUE.addListener(_dPaContainer,"mouseout",function(){_handlePaMouseout();});YUE.addListener(_dPaContainer,"mouseover",function(){_handlePaMouseover();});}};function _open(moduleName){if(moduleName=='mail'){clearTimeout(_movertimeout);_prvmouseoutTimeout=setTimeout(function(){_processPaMouseout();},10000);return _processTabMouseover('tab-row1','mail');}};return{init:_init,openMail:function(){_open('mail');var tracker=new Image;var rdate=new Date().getTime();tracker.src="http://aa.rd.yahoo.com/spirit/vn/ad/mail/*http://l.yimg.com/hb/i/sea/fp/img/trk.gif?r="+rdate;}}})();YAHOO.sea.fp.PaModule.Messenger=(function(){var YUD=YAHOO.util.Dom,YUE=YAHOO.util.Event;var buddylist,aGroupTitle,eCollapse;return{toggleGroup:function(e){YUE.stopEvent(e);var eTarget=YUE.getTarget(e);var eParentNode=eTarget.parentNode.parentNode;var eGroupName=eTarget;var eGroup=eParentNode.getElementsByTagName('ol')[0];eGroup.className=(eGroup.className!='hidden')?'hidden':'visible';eGroupName.className=(eGroupName.className!='up')?'up':'down';},toggleAllGroups:function(e){YUE.stopEvent(e);var eTarget=YUE.getTarget(e);eTarget=eTarget.parentNode;var sClassName=(eTarget.className!='hidden')?'hidden':'visible';var sTitleClassName=(sClassName=='hidden')?'up':'down';eTarget.className=sClassName;if(sClassName==='hidden'){YUD.get('messenger_emsg').style.display='inline';YUD.get('messenger_cmsg').style.display='none';}else{YUD.get('messenger_emsg').style.display='none';YUD.get('messenger_cmsg').style.display='inline';}
for(var i=aGroups.length-1;i>=0;i=i-1){aGroups[i].className=sClassName;}
for(var i=aGroupTitle.length-1;i>=0;i=i-1){aGroupTitle[i].className=sTitleClassName;}},launchMessenger:function(e){YUE.stopEvent(e);document.location='ymsgr:SendIM';},init:function(){var myself=this;buddyList=YUD.get('buddylist');if(buddyList){aGroupTitle=YUD.getElementsByClassName('down','a',buddyList);eCollapse=YUD.get('collapse');aGroups=YUD.getElementsBy(function(){return true;},'ol',buddyList);YUE.addListener(aGroupTitle,'click',myself.toggleGroup);YUE.addListener(eCollapse,'click',myself.toggleAllGroups);YUE.addListener('launchmessenger','click',myself.launchMessenger);}},sendIM:function(sUserId){document.location='ymsgr:sendim?'+sUserId;}}})();YAHOO.sea.fp.PaModule.AnswersSlides=function(oSlidesParams){var YUD=YAHOO.util.Dom,YUE=YAHOO.util.Event;var obj=YUD.get(oSlidesParams.bd),lstbox=oSlidesParams.bd,adelay=oSlidesParams.delay;var type=oSlidesParams.type,toggle=oSlidesParams.toggle,header=oSlidesParams.header;var control=oSlidesParams.control,tracker=oSlidesParams.tracker,counter=oSlidesParams.counter;var ofWord=oSlidesParams.ofWord;var slides=oSlidesParams.slides,sindex=0,timeoutId=-1;var sliceDelay=1000,sliceCount=0,sliceTransitions=4;var nextCtrl,middleCtrl,prevCtrl;var animComplete=true,hasMultipleQ=true,isManualPause=false;function init(){if(slides){YUD.setStyle(slides[0],'display','block');YUD.setStyle(slides[0],'opacity',1);if(slides.length>1){nextCtrl=YUD.getElementsByClassName('p-ans-c-next','b',control)[0];middleCtrl=YUD.getElementsByClassName('p-ans-c-pause','b',control)[0];prevCtrl=YUD.getElementsByClassName('p-ans-c-prev','b',control)[0];sliceDelay=adelay/sliceTransitions;YUE.on(nextCtrl,'click',function(e){pause(true);nextItem();});YUE.on(middleCtrl,'click',function(e){if(timeoutId>0){pause(true);}else{resume();}});YUE.on(prevCtrl,'click',function(e){pause(true);prevItem();});}else{hasMultipleQ=false;YUD.addClass(tracker,'oneQ');}
if(oSlidesParams.initShow){if(hasMultipleQ){show();}}else{hide();}}};function animate(){if(sliceCount<sliceTransitions){YUD.replaceClass(counter,'track-counter-'+sliceCount,'track-counter-'+(sliceCount+1));sliceCount++;}else{nextItem();YUD.replaceClass(counter,'track-counter-'+sliceCount,'track-counter-0');sliceCount=0;}
timeoutId=window.setTimeout(function(){animate();},sliceDelay);};function pause(isManual){if(isManual){isManualPause=true;}
YUD.replaceClass(middleCtrl,'p-ans-c-pause','p-ans-c-play');window.clearTimeout(timeoutId);timeoutId=-1;};function resume(){isManualPause=false;timeoutId=window.setTimeout(function(){animate();},sliceDelay);YUD.replaceClass(middleCtrl,'p-ans-c-play','p-ans-c-pause');};function nextItem(){if(animComplete==false){return;}
var cIndex=sindex,nIndex=(sindex+1)%slides.length;YUD.setStyle(slides[cIndex],'z-index',-1);var an1=new YAHOO.util.Anim(slides[cIndex],{opacity:{from:1,to:0}},0.5,YAHOO.util.Easing.easeOut);YUD.setStyle(slides[nIndex],'display','block');YUD.setStyle(slides[nIndex],'visibility','visible');YUD.setStyle(slides[nIndex],'left',0);YUD.setStyle(slides[nIndex],'zIndex',200);var an2=new YAHOO.util.Anim(slides[nIndex],{opacity:{from:0,to:1}},0.3,YAHOO.util.Easing.easeOut);sindex=nIndex;animComplete=false;an2.onStart.subscribe(function(){YUD.get(tracker).innerHTML=sindex+1+' '+ofWord+' '+slides.length;});an2.onComplete.subscribe(function(){animComplete=true;});an1.animate();an2.animate();};function prevItem(){if(animComplete==false){return;}
var cIndex=sindex,nIndex=(sindex-1)<0?slides.length-1:sindex-1;YUD.setStyle(slides[cIndex],'z-index',-1);var an1=new YAHOO.util.Anim(slides[cIndex],{opacity:{from:1,to:0}},0.5,YAHOO.util.Easing.easeOut);YUD.setStyle(slides[nIndex],'display','block');YUD.setStyle(slides[nIndex],'visibility','visible');YUD.setStyle(slides[nIndex],'left',0);YUD.setStyle(slides[nIndex],'zIndex',200);var an2=new YAHOO.util.Anim(slides[nIndex],{opacity:{from:0,to:1}},0.3,YAHOO.util.Easing.easeOut);sindex=nIndex;animComplete=false;an2.onStart.subscribe(function(){YUD.get(tracker).innerHTML=sindex+1+' '+ofWord+' '+slides.length;});an2.onComplete.subscribe(function(){animComplete=true;});an1.animate();an2.animate();return;};function show(){if(isManualPause===false&&hasMultipleQ){resume();}
toggleDisplay(true);};function hide(){pause();toggleDisplay(false);};function toggleDisplay(toShow){if(toShow){YUD.setStyle(toggle,'display','block');YUD.setStyle(lstbox,'display','block');YUD.setStyle(header,'display','block');YUD.get(tracker).innerHTML=sindex+1+' '+ofWord+' '+slides.length;YUD.setStyle(tracker,'display','block');if(hasMultipleQ){YUD.setStyle(control,'display','block');YUD.setStyle(counter,'display','block');}}else{YUD.setStyle(toggle,'display','none');YUD.setStyle(lstbox,'display','none');YUD.setStyle(header,'display','none');YUD.setStyle(tracker,'display','none');if(hasMultipleQ){YUD.setStyle(control,'display','none');YUD.setStyle(counter,'display','none');}}};return{init:init,animComplete:animComplete,nextItem:nextItem,prevItem:prevItem,pause:pause,resume:resume,hide:hide,show:show,toggleDisplay:toggleDisplay};};YAHOO.sea.fp.PaModule.Answers=(function(){var YUE=YAHOO.util.Event,YUD=YAHOO.util.Dom;var data,slides=[];var slidesType={'RECENT_Q':0,'USER_Q':1};var currentSlide=slidesType.RECENT_Q;var recentRlinks={'sg':'http://sg.rd.yahoo.com/spirit/pa/answers/body/starred/*','malaysia':'http://mys.rd.yahoo.com/spirit/pa/answers/body/starred/*','ph':'http://aa.rd.yahoo.com/spirit/ph/pa/answers/body/starred/*','id':'http://aa.rd.yahoo.com/spirit/id/pa/answers/body/starred/*','th':'http://aa.rd.yahoo.com/spirit/th/pa/answers/body/starred/*','vn':'http://aa.rd.yahoo.com/spirit/vn/pa/answers/body/starred/*'};var _isInit=false;var dt=new Date();var random=''+dt.getFullYear()+dt.getMonth()+dt.getDate()+dt.getHours();var dataUrls=['http://l.yimg.com/hb/i/sea/fp/data/pa-ans-str-'+YAHOO.sea.fp._region+'.js?r='+random,'http://l.yimg.com/hb/sg.yahoo.com/data/pa-ans-man-'+YAHOO.sea.fp._region+'.js?r='+random];function createDataScripts(){var eHead=document.getElementsByTagName('head')[0];var scripts=new Array();for(i=0;i<dataUrls.length;i++){scripts[i]=document.createElement('script');scripts[i].type="text/javascript";scripts[i].src=dataUrls[i];eHead.appendChild(scripts[i]);}};function _afterScriptLoaded(){if(YAHOO.sea.fp.AnswersData.length===0){window.setTimeout(_afterScriptLoaded,500);}else{var recentData=YAHOO.sea.fp.AnswersData;var recentCtn=YUD.get('p-ans-q-recent');var recentSlides=[];if(recentCtn&&recentData&&recentData.length){for(var i=0,n=recentData.length;i<n;i++){var q=createItem(recentData[i]);recentCtn.appendChild(q);recentSlides.push(q);}}
if(YUD.get('p-ans-f-of')){var ofWord=YUD.get('p-ans-f-of').innerHTML;}
var userCtn=YUD.get('p-ans-q-user');var userSlides=userCtn?userCtn.getElementsByTagName('A'):null;var recentSlidesParams={'header':'p-ans-q-hd-recent','bd':'p-ans-q-recent','toggle':'p-ans-toggle-recent','control':'p-ans-c-recent','tracker':'p-ans-f-tracker-recent','counter':'p-ans-f-counter-recent','delay':4500,'type':slidesType.RECENT_Q,'slides':recentSlides,'ofWord':ofWord,'initShow':true};var userSlidesParams={'header':'p-ans-q-hd-user','bd':'p-ans-q-user','toggle':'p-ans-toggle-user','control':'p-ans-c-user','tracker':'p-ans-f-tracker-user','counter':'p-ans-f-counter-user','delay':4500,'type':slidesType.USER_Q,'slides':userSlides,'ofWord':ofWord,'initShow':false};slides[slidesType.RECENT_Q]=new YAHOO.sea.fp.PaModule.AnswersSlides(recentSlidesParams);slides[slidesType.RECENT_Q].init();slides[slidesType.USER_Q]=new YAHOO.sea.fp.PaModule.AnswersSlides(userSlidesParams);slides[slidesType.USER_Q].init();currentSlide=slidesType.RECENT_Q;}};function init(){if(!_isInit){_afterScriptLoaded();_isInit=true;}};function pauseCurrentSlide(){if(slides[currentSlide]){slides[currentSlide].pause();}};function resumeCurrentSlide(){if(slides[currentSlide]){slides[currentSlide].show();}};function switchQuestionType(){if(currentSlide===slidesType.RECENT_Q){slides[slidesType.RECENT_Q].hide();slides[slidesType.USER_Q].show();currentSlide=slidesType.USER_Q;}else{slides[slidesType.RECENT_Q].show();slides[slidesType.USER_Q].hide();currentSlide=slidesType.RECENT_Q;}};function createItem(item){var q=document.createElement('a');q.href=recentRlinks[YAHOO.sea.fp._region]+'http://'+YAHOO.sea.fp._region+'.answers.yahoo.com/question?qid='+item[0];q.innerHTML=item[1];q.className='p-ans-i';return q;};return{createDataScripts:createDataScripts,init:init,switchQuestionType:switchQuestionType,createItem:createItem,pauseCurrentSlide:pauseCurrentSlide,resumeCurrentSlide:resumeCurrentSlide};})();
YAHOO.sea.fp.PaModule.init( { container: 'pa', rowsId: ['tab-row1'], refreshModules: ['mail', 'messenger'] } );
    
YAHOO.sea.fp.Drawer.init( 'trough-drawer-box', 'drawer-trigger', 'trough-close' );
      
YAHOO.sea.fp.encodeURIComponent=encodeURIComponent||escape;YAHOO.sea.fp.Search.DynamicScriptNode=(function(oConf){var nIndex=0;var oActiveNodes={};var nActiveNodes=0;var oNodeIds={};var eHead=document.getElementsByTagName('HEAD')[0];function removeNode(key){var eScript=null;if(oActiveNodes[key]){eScript=oActiveNodes[key].eScript;eScript.onload=eScript.onreadystatechange=null;eScript.parentNode.removeChild(eScript);nActiveNodes--;delete oActiveNodes[key];}};function removeActiveNodes(){for(var i in oActiveNodes){removeNode(i);}};function onLoad(eScript,oCallBack){return function(e){var arg=null;if(eScript.readyState&&eScript.readyState!='complete'&&eScript.readyState!='loaded'){return;}
if(oCallBack&&oCallBack.fn){arg=[oActiveNodes[eScript.id]];if(oCallBack.arg){arg.push(oCallBack.arg);}
oCallBack.fn.apply(this,arg);}
removeNode(eScript.id);eScript=null;};};function load(sUrl,oCallBack){nIndex=nIndex+1;var eScript=document.createElement('SCRIPT');eScript.type='text/javascript';eScript.id='y_dod-'+nIndex;eScript.onload=eScript.onreadystatechange=onLoad(eScript,oCallBack);eScript.defer=true;eScript.src=sUrl;oActiveNodes[eScript.id]={"eScript":eScript,"nRequestTime":new Date().getTime()};nActiveNodes++;eHead.appendChild(eScript);};return{load:load,removeNode:removeNode,removeActiveNodes:removeActiveNodes};})();YAHOO.sea.fp.Search.AutoComplete=function(oConf){var YUE=YAHOO.util.Event,YUCE=YAHOO.util.CustomEvent,YUD=YAHOO.util.Dom;var _isIE=YAHOO.sea.fp._ie||0;var _isMac=(navigator.userAgent.toLowerCase().indexOf("mac")!=-1);var sUrl=oConf.sUrl+'?'+oConf.sQueryString+'&'+oConf.sQueryParam+'=';var sSearchUrl=oConf.sSearchUrl;var sInputId=oConf.sInputId;var eInput=YUD.get(sInputId);var sSubmitId=oConf.sSubmitId;var eSubmitButton=YUD.get(sSubmitId);var sContainerId=oConf.sContainer;var eContainer=YUD.get(sContainerId);var isMouseOverContainer=0;var oCachedData={};var oIgnoredQueries={};var bLastQueryEmpty=0;var nMaxDynamicNodes=2;var nTotalDynamicNodes=0;var bDropDynamicNodes=oConf.bDropDynamicNodes||1;var oQueuedDynamicNodes=null;var oActiveDynamicNodes={};var nActiveDynamicNodes=0;var nTimeOutForDynamicNodes=oConf.nTimeOutForDynamicNodes||500;var nMaxItems=oConf.nMaxItems;var nDisplayMaxItems=oConf.nDisplayMaxItems;var nHighLightIndex=0;var sHighLightClassName=oConf.sHighLightClassName||'yac_highlight';var nCurrentQueryLength=0;var nPreviousQueryLength=0;var sCurrentQuery=null;var nMinQueryLength=oConf.nMinQueryLength||3;var sCachedQuery=null;var nQueryDelay=oConf.nQueryDelay||1000;var tTimeOutId=null;var bLeaveContainerClose=false;var bItemSelected=0;var iCurrentItem=0;var userMethods={};userMethods.onTurnOff=oConf.onTurnOff||function(){};userMethods.formatResult=oConf.formatResult||null;userMethods.onBeforeSubmit=oConf.onBeforeSubmit||function(){};userMethods.doBeforeExpandContainer=oConf.doBeforeExpandContainer||function(){};var customEvent={};customEvent.onShowContainer=new YUCE('onShowContainer');customEvent.onHideContainer=new YUCE('onHideContainer');var nTempScrollId=nDisplayMaxItems;var nInViewScrollId=0;function trim(str){return str;};function showContainer(){userMethods.doBeforeExpandContainer(eInput,eContainer);if(bLeaveContainerClose===false){customEvent.onShowContainer.fire();}};function hideContainer(){customEvent.onHideContainer.fire();};function formatResult(sResult,sQuery,n){return userMethods.formatResult(sResult,sQuery,n)||sResult;};function populateHtml(aResult){var aHtml=[];aHtml[aHtml.length]='<ul class="'+sHighLightClassName+'">';for(var i=0,sQueryResult;sQueryResult=aResult[i];i++){aHtml[aHtml.length]=['<li class="',sHighLightClassName,(i+1),((i<nDisplayMaxItems)?'':' hidden'),'">',formatResult(sQueryResult,sCurrentQuery,i+1),'</li>'].join('');}
aHtml[aHtml.length]='</ul>';return aHtml.join('');};function populateResult(aResult){nHighLightIndex=0;eContainer.eBody.innerHTML=populateHtml(aResult);if(aResult.length>nDisplayMaxItems){YUD.get('e2escroll').style.display="block";}else{YUD.get('e2escroll').style.display="none";}
showContainer();};function onLoadCallBack(arg){var sQuery=arg[0];var aResult=arg[1].splice(0,nMaxItems);if(aResult.length===0){bLastQueryEmpty=1;delete oCachedData[sQuery];oIgnoredQueries[sQuery]=1;eContainer.eBody.innerHTML='<span id="noresult"> </span>';hideContainer();}
else{oCachedData[sQuery]=aResult;populateResult(oCachedData[sQuery]);}};function dynamicNodeCallBack(scrObject,arg){var sQuery=arg;nActiveDynamicNodes--;delete oActiveDynamicNodes[sQuery];if(sCachedQuery!=null){sendQuery(sCachedQuery);sCachedQuery=null;}};function sendQuery(sQuery){sCurrentQuery=sQuery;if(oIgnoredQueries[sQuery]){hideContainer();return;}
else if(oCachedData[sQuery]){populateResult(oCachedData[sQuery]);bLastQueryEmpty=0;}
else if(oActiveDynamicNodes[sQuery]){}
else if(bLastQueryEmpty===1){oIgnoredQueries[sQuery]=1;}
else if(_isMac||(!_isMac&&nActiveDynamicNodes<2)){oActiveDynamicNodes[sQuery]=1;nActiveDynamicNodes++;YAHOO.sea.fp.Search.DynamicScriptNode.load(sUrl+YAHOO.sea.fp.encodeURIComponent(sQuery),{fn:dynamicNodeCallBack,arg:sQuery},sQuery);}
else{sCachedQuery=sQuery;}};function onScrollClick(e){var eTarget=YUE.getTarget(e);if(YUD.hasClass(eTarget,'disabled')){return false;}
var eUl,aLis,nLength;eUl=eContainer.eBody.getElementsByTagName('UL')[0];aLis=eUl.getElementsByTagName('LI');if(YUD.hasClass(eTarget,'up')){nTempScrollId--;YUD.addClass(aLis[nTempScrollId],'hidden');YUD.removeClass(aLis[nTempScrollId-nDisplayMaxItems],'hidden');updateScroll(nTempScrollId);}else{YUD.addClass(aLis[nTempScrollId-nDisplayMaxItems],'hidden');YUD.removeClass(aLis[nTempScrollId],'hidden');nTempScrollId++;updateScroll(nTempScrollId);}
return false;};function updateScroll(nId){nId=nId||0;if(nId<=nDisplayMaxItems){YUD.addClass('e2eup','disabled');}else if(nId>nDisplayMaxItems){YUD.removeClass('e2eup','disabled');if(nId>=nMaxItems){YUD.addClass('e2edown','disabled');}else{YUD.removeClass('e2edown','disabled');}}};function onShowUpdateScroll(nId){var eUl,aLis,nLength;nTempScrollId=nDisplayMaxItems;nInViewScrollId=0;eUl=eContainer.eBody.getElementsByTagName('UL')[0];aLis=eUl.getElementsByTagName('LI');nLength=aLis.length;if(nLength<=nDisplayMaxItems){YUD.addClass('e2eup','disabled');YUD.addClass('e2edown','disabled');}else{YUD.addClass('e2eup','disabled');YUD.removeClass('e2edown','disabled');}};customEvent.onShowContainer.subscribe(onShowUpdateScroll);function scrollList(keyCode,nId){var eUl,aLis,nId,nLength;eUl=eContainer.eBody.getElementsByTagName('UL')[0];aLis=eUl.getElementsByTagName('LI');nLength=aLis.length;if(keyCode===40){if(nId>=nDisplayMaxItems&&nId<nLength){YUD.addClass(aLis[nId-nDisplayMaxItems],'hidden');YUD.removeClass(aLis[nId],'hidden');if(nId+1>=nDisplayMaxItems){nTempScrollId=nId+1;}}
if(nInViewScrollId<nDisplayMaxItems){nInViewScrollId++;}else{nInViewScrollId=nDisplayMaxItems;}}else{if(nId<=nDisplayMaxItems+1&&nId>1){YUD.addClass(aLis[nId+nDisplayMaxItems-2],'hidden');YUD.removeClass(aLis[nId-2],'hidden');}
if(keyCode===38){if(nInViewScrollId>0){nInViewScrollId--;}else{nInViewScrollId=0;}
if(nInViewScrollId===0){nTempScrollId--;}}}};function highLightSelection(keyCode){var eUl,sValue,nId,nLength,aLis;if(eContainer.style.display!='none'&&oCachedData[sCurrentQuery]){eUl=eContainer.eBody.getElementsByTagName('UL')[0];if(eUl){nId=nHighLightIndex;aLis=eUl.getElementsByTagName('LI');nLength=aLis.length;scrollList(keyCode,nId);if(keyCode==40){nId=(nId===nLength)?nId:nId+1;}else{nId=(nId===0)?0:nId-1;}
updateScroll(nTempScrollId);sValue=(nId>0&&nId<=nLength)?oCachedData[sCurrentQuery][nId-1]:sCurrentQuery;bItemSelected=(nId===0)?0:1;eInput.value=sValue;setCaretTo(eInput,sValue.length);nHighLightIndex=nId;eUl.className=sHighLightClassName+nHighLightIndex;}}};function setCaretTo(eNode,nPosition){var range;if(eNode.createTextRange){range=eNode.createTextRange();range.move("character",nPosition);range.select();}else if(eNode.selectionStart){eNode.setSelectionRange(nPosition,nPosition);}};function isIgnoreKey(nKeyCode){if((nKeyCode===9)||(nKeyCode===13)||(nKeyCode==16)||(nKeyCode==17)||(nKeyCode>=18&&nKeyCode<=20)||(nKeyCode==27)||(nKeyCode>=33&&nKeyCode<=35)||(nKeyCode>=36&&nKeyCode<=38)||(nKeyCode==40)||(nKeyCode>=44&&nKeyCode<=45)){return true;}
return false;};function onInputKeyUp(e){if('sf-web'!==YAHOO.sea.fp.Search.currentTab){return;}var sTempQuery=this.value;var nKeyCode=e.keyCode;sTempQuery=trim(sTempQuery);bLeaveContainerClose=false;if(nMinQueryLength<0||sTempQuery.length<nMinQueryLength){hideContainer();sTempQuery=null;bLeaveContainerClose=true;bLastQueryEmpty=0;if(tTimeOutId!=null){clearTimeout(tTimeOutId);tTimeOutId=null;}
return;}else if(isIgnoreKey(nKeyCode)){return;}
if(sTempQuery!=null){bLastQueryEmpty=0;}
if(tTimeOutId!=null){clearTimeout(tTimeOutId);tTimeOutId=null;}
tTimeOutId=window.setTimeout(function(){sendQuery(sTempQuery);},nQueryDelay);};function focusButton(){eSubmitButton=YUD.get(sSubmitId);if(eSubmitButton){eSubmitButton.focus();}};function onInputKeyDown(e){var nKeyCode=e.keyCode;switch(nKeyCode){case 9:hideContainer();YUE.stopEvent(e);focusButton();break;case 13:if(nHighLightIndex!=0){YAHOO.sea.fp.Search.modParam('fr','yfp-t-101-s');YAHOO.sea.fp.Search.addParam('fr2','fpsg');YAHOO.sea.fp.Search.addParam('sado','1');YUE.preventDefault(e);customEvent.itemSelect.fire();}
break;case 27:hideContainer();break;case 37:break;case 39:break;case 38:YUE.stopEvent(e);highLightSelection(nKeyCode);break;case 40:YUE.stopEvent(e);highLightSelection(nKeyCode);break;}};function onInputKeyPress(e){var nKeyCode=e.keyCode;if(_isMac){switch(nKeyCode){case 38:YUE.stopEvent(e);break;case 40:YUE.stopEvent(e);break;default:break;}}};function onInputFocus(e){eInput.setAttribute("autocomplete","off");};function onInputBlur(e){}
function onContainerClick(e){var eTarget=YUE.getTarget(e);var eParent=eTarget;while(eParent.nodeName!='LI'&&eParent.nodeName!='BODY'){eParent=eParent.parentNode;}
if(eParent.nodeName=='LI'){var sValue=eParent.innerText||eParent.textContent;eInput.value=sValue;eInput.focus();setCaretTo(eInput,sValue.length);YUE.preventDefault(e);YAHOO.sea.fp.Search.modParam('fr','yfp-t-101-s');YAHOO.sea.fp.Search.addParam('fr2','fpsg');YAHOO.sea.fp.Search.addParam('sado','1');customEvent.itemSelect.fire();}};function onContainerMouseOver(e){var eTarget=YUE.getTarget(e);isMouseOverContainer=1;var eParent=eTarget;while(eParent.nodeName!='LI'&&eParent.nodeName!='BODY'){eParent=eParent.parentNode;}
if(eParent.nodeName==='LI'){var sClassName=eParent.className;var nId=parseInt(sClassName.substring(sClassName.length-1,sClassName.length),10);eParent.parentNode.className=sClassName;nHighLightIndex=nId;YUE.preventDefault(e);}};function onContainerMouseOut(e){isMouseOverContainer=0;};function onDocumentMouseDown(e){var eTarget=YUE.getTarget(e);while(eTarget.id!='e2econtent'&&eTarget.id!='e2etoggle'&&eTarget.id!='sboxfooter'&&eTarget.id!=sInputId&&eTarget.nodeName!='BODY'&&eTarget.nodeName!='HTML'){eTarget=eTarget.parentNode;}
if(eTarget.nodeName==='BODY'){hideContainer();}};function onFormSubmit(){hideContainer();eInput.setAttribute('autocomplete','on');YAHOO.sea.fp.Search.DynamicScriptNode.removeActiveNodes();if(eInput.form){userMethods.onBeforeSubmit(bItemSelected);}};function submitForm(){bItemSelected=1;if(eInput.form){eSubmitButton=YUD.get(sSubmitId);eSubmitButton.click();}};function onChangeSubmitType(e){var eTarget=YUE.getTarget(e);var typeId=eTarget.id;if(typeId==='rweb'){sSubmitId='sbmt';}else if(typeId==='rlocal'){sSubmitId='sbmt2';}}
function detachEvents(){YUE.removeListener(eInput,'keyup',onInputKeyUp);YUE.removeListener(eInput,'keydown',onInputKeyDown);YUE.removeListener(eInput,'keypress',onInputKeyPress);YUE.removeListener(eInput,'focus',onInputFocus);YUE.removeListener(eInput,'blur',onInputBlur);if(eInput.form){YUE.removeListener(eInput.form,'submit',onFormSubmit);}
YUE.removeListener(eContainer,'mouseover',onContainerMouseOver);YUE.removeListener(eContainer,'click',onContainerClick);YUE.removeListener(eContainer,'mouseout',onContainerMouseOut);YUE.removeListener('e2edown','click',onScrollClick);YUE.removeListener('e2eup','click',onScrollClick);YUE.removeListener('rweb','click',onChangeSubmitType);YUE.removeListener('rlocal','click',onChangeSubmitType);customEvent.itemSelect.unsubscribe(submitForm);};function attachEvents(){YUE.addListener(eInput,'keyup',onInputKeyUp);YUE.addListener(eInput,'keydown',onInputKeyDown);YUE.addListener(eInput,'keypress',onInputKeyPress);YUE.addListener(eInput,'focus',onInputFocus);YUE.addListener(eInput,'blur',onInputBlur);if(eInput.form){YUE.addListener(eInput.form,'submit',onFormSubmit);}
YUE.addListener(eContainer,'mouseover',onContainerMouseOver);YUE.addListener(eContainer,'mouseout',onContainerMouseOut);YUE.addListener(eContainer,'click',onContainerClick);YUE.addListener('e2edown','click',onScrollClick);YUE.addListener('e2eup','click',onScrollClick);YUE.addListener('rweb','click',onChangeSubmitType);YUE.addListener('rlocal','click',onChangeSubmitType);customEvent.itemSelect=new YUCE('itemSelect');customEvent.itemSelect.subscribe(submitForm);};function turnOffBrowserAutoComplete(){eInput.setAttribute("autocomplete","off");};function turnOnBrowserAutoComplete(){eInput.setAttribute("autocomplete","on");};function initContainer(){var createElement=function(sTag,oAttr,sHtml){var el=document.createElement(sTag);for(var i in oAttr){el[i]=oAttr[i];}
if(sHtml){el.innerHTML=sHtml;}
return el;};if(oConf.sHeaderHtml){eContainer.eHeader=createElement('DIV',{'className':'ac_hd'},oConf.sHeaderHtml);eContainer.appendChild(sContainer.eHeader);}
eContainer.eBody=createElement('DIV',{'className':'ac_bd','id':'ac_bd'});eContainer.appendChild(eContainer.eBody);if(oConf.sFooterHtml){eContainer.eFooter=createElement('DIV',{'className':'ac_ft'},oConf.sFooterHtml);eContainer.appendChild(eContainer.eFooter);}};function init(){if(eContainer){initContainer();attachEvents();turnOffBrowserAutoComplete();}};function off(){userMethods.onTurnOff();eContainer.innerHTML='';hideContainer();turnOnBrowserAutoComplete();detachEvents();};function setMinQueryLength(n){nMinQueryLength=+n;};function forceSearch(){sendQuery(eInput.value);};return{"init":init,"callBack":onLoadCallBack,"off":off,"setMinQueryLength":setMinQueryLength,"customEvent":customEvent,"forceSearch":forceSearch,"EOF":null};};YAHOO.sea.fp.Search.Falcon=(function(){var YUD=YAHOO.util.Dom,YUE=YAHOO.util.Event;var sCookieName='SP';var nMinQueryLength=3;var bStatus=1;var oAC=null;var eFalcon=YUD.get('falcon');var eTrayContent=YUD.get('falcon_result');var eTrayHandle=YUD.get('falcon_toggle');var eFalconInfo=YUD.get('falcon_info');var eFalconHd2=YUD.get('falcon_hd2');var eE2EScroll=YUD.get('e2escroll');var eACContainer=YUD.get('ac_container');var eInput=YUD.get('p');var eFalconHd=YUD.get('falcon_hd');var eBar=YUD.get('falcon_toggle');var eToggleBar=YUD.get('falcon_toggleimg');if(eToggleBar){eToggleBar.sOpenImage='http://l.yimg.com/hb/i/sea/fp/img/t1/wlip_open2.png';}
var bTrayStatus=0;var sCurrentACStatus='on';var oConf={sUrl:'http://sg-sayt.ff.search.yahoo.com/gossip-sg',sTargetUrl:'http://sg.search.yahoo.com/search?toggle=1&cop=mss&ei=UTF-8',sQueryString:'output=fxjsonp&nresults=10',sQueryParam:'command',sInputId:'p',sSubmitId:'sbmt',sContainer:'ac_container',nMinQueryLength:nMinQueryLength,nQueryDelay:200,nMaxItems:10,nDisplayMaxItems:5,nTimeOutForDynamicNodes:500,sHighLightClassName:'highlight',formatResult:function(sResult,sQuery,n){sQuery=sQuery.toLowerCase();var sClonedResult=sResult.replace(sQuery,'<em>'+sQuery+'</em>');return['<a href="',oConf.sTargetUrl,'&p=',sResult,'" onclick="return false;">',sClonedResult,'</a>'].join('');},onBeforeSubmit:function(bItemSelected){if(YUD.get('rweb').checked===true){sSubmitId='sbmt';}else if(YUD.get('rlocal').checked===true){sSubmitId='sbmt2';}},onTurnOff:function(){},EOF:null};var oInfo=YAHOO.sea.fp.SearchHelper.falcon.oInfo;function updateACOptions(){sCurrentACStatus=(bStatus==1)?'on':'off';if(YAHOO.sea.fp.Search.currentTab==='sf-web'){eFalconInfo.innerHTML=oInfo[sCurrentACStatus];}else{eFalconInfo.innerHTML=oInfo['other'](YAHOO.sea.fp.SearchHelper.labels[YAHOO.sea.fp.Search.currentTab][0]);}
if(YAHOO.sea.fp.Search.currentTab==='sf-web'){YUD.removeClass(eTrayContent,'hidefalconhd');if(bStatus===0||eInput.value.length<nMinQueryLength){YUD.addClass(eTrayContent,'empty');}else{YUD.removeClass(eTrayContent,'empty');}}else{YUD.addClass(eTrayContent,'hidefalconhd');YUD.addClass(eTrayContent,'empty');}};function afterTrayClose(){eBar.className='';if(eToggleBar){eToggleBar.src=eToggleBar.sCloseImage;}
if(YAHOO.sea.fp._ie){YUD.get('pa').style.zIndex=0;if(YUD.get('dims-w')){YUD.get('trough').style.zIndex=0;}}};function beforeTrayClose(){eFalconHd.className='other';if(YAHOO.sea.fp._ie){eFalconHd.style.display="none";}};function beforeTrayOpen(){updateACOptions();eBar.className='open';if(eToggleBar){eToggleBar.sCloseImage=eToggleBar.src;eToggleBar.src=eToggleBar.sOpenImage;}
if(YAHOO.sea.fp._ie){YUD.get('pa').style.zIndex=-1;if(YUD.get('dims-w')){YUD.get('trough').style.zIndex=-1;}}};function afterTrayOpen(){if(YAHOO.sea.fp.Search.currentTab==='sf-web'&&bStatus===1){eFalconHd.className='web';if(YAHOO.sea.fp._ie){eFalconHd.style.display="block";}}else{eFalconHd.className='other';}};function closeTray(){beforeTrayClose();bTrayStatus=0;var anim=new YAHOO.util.Anim(eTrayContent,{height:{to:1}},0.2,YAHOO.util.Easing.easeOut);anim.onComplete.subscribe(function(){if(bTrayStatus==0){eTrayContent.style.display='none';afterTrayClose();}});anim.animate();};function openTray(){bTrayStatus=1;beforeTrayOpen();var getHeight=function(){var nHeight=0,i=0,eNode;var oChildNodes=eTrayContent.childNodes;while(oChildNodes[i]){eNode=oChildNodes[i];if(eNode.nodeType==1){if(eNode.offsetHeight){nHeight+=eNode.offsetHeight;}
i++;}else{eNode.parentNode.removeChild(eNode);}};return nHeight+5;};eTrayContent.style.height='1px';eTrayContent.style.display='block';var nHeight=getHeight(eTrayContent);eTrayContent.lastChild.style.visibility='hidden';var anim=new YAHOO.util.Anim(eTrayContent,{height:{to:nHeight}},0.2,YAHOO.util.Easing.easeOut);anim.onComplete.subscribe(function(){if(bTrayStatus==1){eTrayContent.lastChild.style.visibility='visible';afterTrayOpen();}});anim.animate();};function showResult(){if(bTrayStatus!=1){openTray();}};function hideResult(){if(bTrayStatus!=0){closeTray();}};function toggleTray(){if(bTrayStatus==1){closeTray();}else{if(bStatus==1&&oAC&&eInput.value.length>=nMinQueryLength){oAC.forceSearch();}else{openTray();}}};function onDocumentMouseDown(e){var eTarget=YAHOO.util.Event.getTarget(e);while(eTarget.id!='falcon_result'&&eTarget.id!='falcon_toggle'&&eTarget.id!='falcon_hd2'&&eTarget.id!='p'&&eTarget.nodeName!='BODY'&&eTarget.nodeName!='HTML'){eTarget=eTarget.parentNode;}
if(eTarget.nodeName=='BODY'){if(bTrayStatus==1){closeTray();}}};function onTrayClick(e){var eTarget=YUE.getTarget(e);YUE.stopEvent(e);toggleTray();return false;};function setCookie(n){if(n==1){YAHOO.sea.fp.Cookie.set(sCookieName,'v=1&a='+n,1,'/','.yahoo.com');}
else{YAHOO.sea.fp.Cookie.set(sCookieName,'v=1&a='+n,400*3600000,'/','.yahoo.com');}};function getStatus(){var iStatus=YAHOO.sea.fp.Cookie.getsub(sCookieName,'a');return(iStatus==='')?1:+(iStatus);};function hideTrayOnDisable(){if(bTrayStatus==1){closeTray();}};function turnOff(){if(oAC){oAC.off();for(var i in oAC){delete oAC[i];}
oAC=null;}
YUD.removeClass(eTrayContent,'on');YUD.addClass(eTrayContent,'off');YUE.addListener('p','keypress',hideTrayOnDisable);};function turnOn(){if(bStatus==1){YUE.removeListener('p','keypress',hideTrayOnDisable);if(!oAC){oAC=YAHOO.sea.fp.Search.AutoComplete(oConf);fxsearch=oAC.callBack;oAC.customEvent.onShowContainer.subscribe(showResult);oAC.customEvent.onHideContainer.subscribe(hideResult);}
oAC.init();eInput=document.getElementById('p');YUD.removeClass(eTrayContent,'off');YUD.addClass(eTrayContent,'on');}};function toggleBool(isStatus){if(isStatus===true){return toggle('on');}else{return toggle('off');}}
function toggle(status){var oToggle={off:function(){bStatus=0;setCookie(bStatus);turnOff();},on:function(){bStatus=1;setCookie(bStatus);turnOn();}};status=status||((bStatus==1)?'off':'on');oToggle[status]();return false;};function attachEvents(){YUE.addListener(eTrayHandle,'click',onTrayClick);YUE.addListener(document,'mousedown',onDocumentMouseDown);};function _init(){attachEvents();YUE.addListener('p','keypress',hideTrayOnDisable);turnOn();eFalconInfo.innerHTML=oInfo[sCurrentACStatus];eFalconInfo.style.display='block';};function init(regionCode){if(eFalcon){if(regionCode==='sg'){oConf.sUrl="http://sg-sayt.ff.search.yahoo.com/gossip-sg-sayt";oConf.sTargetUrl="http://sg.search.yahoo.com/search?toggle=1&cop=mss&ei=UTF-8";}else if(regionCode==='ph'){oConf.sUrl="http://ph-sayt.ff.search.yahoo.com/gossip-ph-sayt";oConf.sTargetUrl="http://ph.search.yahoo.com/search?toggle=1&cop=&ei=UTF-8";}else if(regionCode==='vn'){oConf.sUrl="http://vn-sayt.ff.search.yahoo.com/gossip-vn-sayt";oConf.sTargetUrl="http://vn.search.yahoo.com/search?toggle=1&cop=&ei=UTF-8";}else if(regionCode==='my'){oConf.sUrl="http://my-sayt.ff.search.yahoo.com/gossip-my-sayt";oConf.sTargetUrl="http://malaysia.search.yahoo.com/search?toggle=1&cop=&ei=UTF-8";}else if(regionCode==='th'){oConf.sUrl="http://th-sayt.ff.search.yahoo.com/gossip-th-sayt";oConf.sTargetUrl="http://th.search.yahoo.com/search?toggle=1&cop=&ei=UTF-8";}else if(regionCode==='id'){oConf.sUrl="http://id-sayt.ff.search.yahoo.com/gossip-id-sayt";oConf.sTargetUrl="http://id.search.yahoo.com/search?toggle=1&cop=&ei=UTF-8";}else{oConf.sUrl="http://sg-sayt.ff.search.yahoo.com/gossip-sg-sayt";oConf.sTargetUrl="http://sg.search.yahoo.com/search?toggle=1&cop=mss&ei=UTF-8";}
bStatus=getStatus();YUD.addClass(eTrayContent,'off');_init()}};return{"init":init,"closeTray":closeTray,"toggle":toggle,"toggleBool":toggleBool,"off":turnOff,"on":turnOn,EOF:null};})();
      
YAHOO.sea.fp.Search.Falcon.init('vn');
       
YAHOO.sea.fp.FalconFeatureCue=(function(){var YD=YAHOO.util.Dom;return{init:function(){if(YD.get('falcon_fcue')){var fcueid='falcon_fcue';}else{var fcueid='falcon_ctr_fcue';}
YD.setStyle(fcueid,'display','block');setTimeout(function(){var anim=new YAHOO.util.Anim(fcueid,{opacity:{to:0}},0.7,YAHOO.util.Easing.easeOut);anim.onComplete.subscribe(function(){YAHOO.util.Dom.setStyle(fcueid,'display','none')});anim.animate();},7000);}};})();(function(){var toInit=false;var YD=YAHOO.util.Dom;var ff=YD.get('falcon_fcue');var ffctr=YD.get('falcon_ctr_fcue');if(ff&&ff.innerHTML!=""){toInit=true;}else if(ffctr&&ffctr.innerHTML!=""){toInit=true;}
if(toInit){YAHOO.sea.fp.FalconFeatureCue.init();}})();
       
YAHOO.sea.fp.IPageLoader=function(){var IPAGE_LOADED=false,YD=YAHOO.util.Dom,YE=YAHOO.util.Event;return{loadIPage:function(pc){if(IPAGE_LOADED==false){var h=document.getElementsByTagName('head')[0],s=document.createElement('script'),c='vn',d='vn';s.src='http://'+c+'.yahoo.com/'+d+'_ipagejs.php?pdt='+pc;h.appendChild(s);IPAGE_LOADED=true;}else{YAHOO.sea.fp.IPage.showMask('vn',pc);}}};}();
    
YAHOO.sea.fp.DNRHandler=(function(){var tenYears=Math.round(new Date().getTime()/1000)+3600*24*3650;var dnrCookie='DNR';if(YAHOO.sea.fp._p_param=='asia'){dnrCookie='DNR_asia';}
return{setDNR:function(flag){YAHOO.sea.fp.Cookie.set(dnrCookie,flag,tenYears,"","yahoo.com");}};})();YAHOO.util.Event.on('nbdnr','click',function(e){YAHOO.sea.fp.DNRHandler.setDNR('1');});
    
YAHOO.sea.fp.WindowShade=(function(){var YE=YAHOO.util.Event,YD=YAHOO.util.Dom;var wdshadeId='shd-win',closeId='shd-win-close',gobackId='shd-win-backln';return{init:function(){var that=this;YE.on(closeId,'click',function(e){that.close();YE.stopEvent(e);});YE.on(gobackId,'click',function(e){that.goback();});},close:function(){var rdate=new Date().getTime();var brd=new Image;brd.src="http://aa.rd.yahoo.com/spirit/vn/windowshade/stay/*http://l.yimg.com/hb/i/sea/fp/img/stayrd.gif?r="+rdate;var wd_shd_cookie='WD_SHD_'+YAHOO.sea.fp._p_param;YAHOO.sea.fp.Cookie.setsub(wd_shd_cookie,'s',1,Math.round(new Date().getTime()/1000)+3600*24*3650,"/",YAHOO.sea.fp._region+'.yahoo.com');var anim=new YAHOO.util.Anim(wdshadeId,{opacity:{to:0}},0.3,YAHOO.util.Easing.easeOut);anim.onComplete.subscribe(function(){YD.setStyle(wdshadeId,'display','none');});anim.animate();},goback:function(){YAHOO.sea.fp.DNRHandler.setDNR('1');return;}};})();YAHOO.sea.fp.WindowShade.init();
    
YAHOO.sea.fp.WeatherNavBar=(function(){var YUE=YAHOO.util.Event,YUD=YAHOO.util.Dom;var version=1;function _prepareUrl(woeid){var aUrlChunks=[];aUrlChunks.push('http://');aUrlChunks.push(YAHOO.sea.fp._hostname);aUrlChunks.push('/module/spirit/pa_module.php?module=weather_nb');aUrlChunks.push('&section=nb_weather');aUrlChunks.push('&fpsrc=nb_weather');aUrlChunks.push('&csz='+woeid);aUrlChunks.push('&ver='+version);aUrlChunks.push('&rnd='+Math.random());return aUrlChunks.join("");}
function init(){YUE.on('wtr_city','click',function(e){if(YUD.hasClass('weather','wtr_off')){YUD.replaceClass('weather','wtr_off','wtr_on');}else{YUD.replaceClass('weather','wtr_on','wtr_off');}
YUE.preventDefault(e);});};function _stripChunk(sRaw){var comment=sRaw.lastIndexOf("!--");if(comment<0){return sRaw;}
return sRaw.substring(0,(comment-1));}
function update(woeid){var that=this;var rsuccess=function(o){jsonData=eval('('+_stripChunk(o.responseText)+')').data;var html=jsonData.html;var retcode=jsonData.retcode;if(html&&retcode!=-1){if(html!=-1&&html!=""){that.render(html);}}};var rfailure=function(o){YUD.replaceClass('weather','wtr_on','wtr_off');};var callback={success:rsuccess,failure:rfailure}
var sUrl=_prepareUrl(woeid);var transaction=YAHOO.util.Connect.asyncRequest('GET',sUrl,callback,null);return false;};function render(html){var eWeather=YUD.get('weather');if(eWeather){eWeather.innerHTML=html;}
YUD.replaceClass('weather','wtr_on','wtr_off');YAHOO.sea.fp.WeatherNavBar.init();};return{init:init,update:update,render:render}})();YAHOO.sea.fp.WeatherNavBar.init();
     
(function() { new YAHOO.sea.fp.TodayVSet('gl2-ct1', true); })();
