YAHOO.util.Attribute=function(D,C){if(C){this.owner=C;this.configure(D,true);}};YAHOO.util.Attribute.prototype={name:undefined,value:null,owner:null,readOnly:false,writeOnce:false,_initialConfig:null,_written:false,method:null,validator:null,getValue:function(){return this.value;},setValue:function(H,L){var I;var G=this.owner;var K=this.name;var J={type:K,prevValue:this.getValue(),newValue:H};if(this.readOnly||(this.writeOnce&&this._written)){return false;}if(this.validator&&!this.validator.call(G,H)){return false;}if(!L){I=G.fireBeforeChangeEvent(J);if(I===false){return false;}}if(this.method){this.method.call(G,H);}this.value=H;this._written=true;J.type=K;if(!L){this.owner.fireChangeEvent(J);}return true;},configure:function(F,E){F=F||{};this._written=false;this._initialConfig=this._initialConfig||{};for(var D in F){if(D&&YAHOO.lang.hasOwnProperty(F,D)){this[D]=F[D];if(E){this._initialConfig[D]=F[D];}}}},resetValue:function(){return this.setValue(this._initialConfig.value);},resetConfig:function(){this.configure(this._initialConfig);},refresh:function(B){this.setValue(this.value,B);}};(function(){var B=YAHOO.util.Lang;YAHOO.util.AttributeProvider=function(){};YAHOO.util.AttributeProvider.prototype={_configs:null,get:function(A){this._configs=this._configs||{};var D=this._configs[A];if(!D){return undefined;}return D.value;},set:function(F,A,H){this._configs=this._configs||{};var G=this._configs[F];if(!G){return false;}return G.setValue(A,H);},getAttributeKeys:function(){this._configs=this._configs;var A=[];var F;for(var E in this._configs){F=this._configs[E];if(B.hasOwnProperty(this._configs,E)&&!B.isUndefined(F)){A[A.length]=E;}}return A;},setAttributes:function(A,F){for(var E in A){if(B.hasOwnProperty(A,E)){this.set(E,A[E],F);}}},resetValue:function(A,D){this._configs=this._configs||{};if(this._configs[A]){this.set(A,this._configs[A]._initialConfig.value,D);return true;}return false;},refresh:function(A,G){this._configs=this._configs;A=((B.isString(A))?[A]:A)||this.getAttributeKeys();for(var F=0,H=A.length;F<H;++F){if(this._configs[A[F]]&&!B.isUndefined(this._configs[A[F]].value)&&!B.isNull(this._configs[A[F]].value)){this._configs[A[F]].refresh(G);}}},register:function(D,A){this.setAttributeConfig(D,A);},getAttributeConfig:function(E){this._configs=this._configs||{};var F=this._configs[E]||{};var A={};for(E in F){if(B.hasOwnProperty(F,E)){A[E]=F[E];}}return A;},setAttributeConfig:function(F,E,A){this._configs=this._configs||{};E=E||{};if(!this._configs[F]){E.name=F;this._configs[F]=this.createAttribute(E);}else{this._configs[F].configure(E,A);}},configureAttribute:function(F,E,A){this.setAttributeConfig(F,E,A);},resetAttributeConfig:function(A){this._configs=this._configs||{};this._configs[A].resetConfig();},subscribe:function(D,A){this._events=this._events||{};if(!(D in this._events)){this._events[D]=this.createEvent(D);}YAHOO.util.EventProvider.prototype.subscribe.apply(this,arguments);},on:function(){this.subscribe.apply(this,arguments);},addListener:function(){this.subscribe.apply(this,arguments);},fireBeforeChangeEvent:function(A){var D="before";D+=A.type.charAt(0).toUpperCase()+A.type.substr(1)+"Change";A.type=D;return this.fireEvent(A.type,A);},fireChangeEvent:function(A){A.type+="Change";return this.fireEvent(A.type,A);},createAttribute:function(A){return new YAHOO.util.Attribute(A,this);}};YAHOO.augment(YAHOO.util.AttributeProvider,YAHOO.util.EventProvider);})();(function(){var J=YAHOO.util.Dom,H=YAHOO.util.AttributeProvider;YAHOO.util.Element=function(B,A){if(arguments.length){this.init(B,A);}};YAHOO.util.Element.prototype={DOM_EVENTS:null,appendChild:function(A){A=A.get?A.get("element"):A;this.get("element").appendChild(A);},getElementsByTagName:function(A){return this.get("element").getElementsByTagName(A);},hasChildNodes:function(){return this.get("element").hasChildNodes();},insertBefore:function(B,A){B=B.get?B.get("element"):B;A=(A&&A.get)?A.get("element"):A;this.get("element").insertBefore(B,A);},removeChild:function(A){A=A.get?A.get("element"):A;this.get("element").removeChild(A);return true;},replaceChild:function(B,A){B=B.get?B.get("element"):B;A=A.get?A.get("element"):A;return this.get("element").replaceChild(B,A);},initAttributes:function(A){},addListener:function(B,C,A,D){var E=this.get("element");D=D||this;E=this.get("id")||E;var F=this;if(!this._events[B]){if(this.DOM_EVENTS[B]){YAHOO.util.Event.addListener(E,B,function(N){if(N.srcElement&&!N.target){N.target=N.srcElement;}F.fireEvent(B,N);},A,D);}this.createEvent(B,this);}YAHOO.util.EventProvider.prototype.subscribe.apply(this,arguments);},on:function(){this.addListener.apply(this,arguments);},subscribe:function(){this.addListener.apply(this,arguments);},removeListener:function(A,B){this.unsubscribe.apply(this,arguments);},addClass:function(A){J.addClass(this.get("element"),A);},getElementsByClassName:function(A,B){return J.getElementsByClassName(A,B,this.get("element"));},hasClass:function(A){return J.hasClass(this.get("element"),A);},removeClass:function(A){return J.removeClass(this.get("element"),A);},replaceClass:function(A,B){return J.replaceClass(this.get("element"),A,B);},setStyle:function(A,B){var C=this.get("element");if(!C){return this._queue[this._queue.length]=["setStyle",arguments];}return J.setStyle(C,A,B);},getStyle:function(A){return J.getStyle(this.get("element"),A);},fireQueue:function(){var B=this._queue;for(var A=0,C=B.length;A<C;++A){this[B[A][0]].apply(this,B[A][1]);}},appendTo:function(B,A){B=(B.get)?B.get("element"):J.get(B);this.fireEvent("beforeAppendTo",{type:"beforeAppendTo",target:B});A=(A&&A.get)?A.get("element"):J.get(A);var C=this.get("element");if(!C){return false;}if(!B){return false;}if(C.parent!=B){if(A){B.insertBefore(C,A);}else{B.appendChild(C);}}this.fireEvent("appendTo",{type:"appendTo",target:B});},get:function(C){var A=this._configs||{};var B=A.element;if(B&&!A[C]&&!YAHOO.lang.isUndefined(B.value[C])){return B.value[C];}return H.prototype.get.call(this,C);},setAttributes:function(A,E){var B=this.get("element");for(var C in A){if(!this._configs[C]&&!YAHOO.lang.isUndefined(B[C])){this.setAttributeConfig(C);}}for(var D=0,F=this._configOrder.length;D<F;++D){if(A[this._configOrder[D]]!==undefined){this.set(this._configOrder[D],A[this._configOrder[D]],E);}}},set:function(C,A,D){var B=this.get("element");if(!B){this._queue[this._queue.length]=["set",arguments];if(this._configs[C]){this._configs[C].value=A;}return;}if(!this._configs[C]&&!YAHOO.lang.isUndefined(B[C])){K.call(this,C);}return H.prototype.set.apply(this,arguments);},setAttributeConfig:function(D,B,A){var C=this.get("element");if(C&&!this._configs[D]&&!YAHOO.lang.isUndefined(C[D])){K.call(this,D,B);}else{H.prototype.setAttributeConfig.apply(this,arguments);}this._configOrder.push(D);},getAttributeKeys:function(){var B=this.get("element");var A=H.prototype.getAttributeKeys.call(this);for(var C in B){if(!this._configs[C]){A[C]=A[C]||B[C];}}return A;},createEvent:function(A,B){this._events[A]=true;H.prototype.createEvent.apply(this,arguments);},init:function(A,B){G.apply(this,arguments);}};var G=function(B,C){this._queue=this._queue||[];this._events=this._events||{};this._configs=this._configs||{};this._configOrder=[];C=C||{};C.element=C.element||B||null;this.DOM_EVENTS={"click":true,"dblclick":true,"keydown":true,"keypress":true,"keyup":true,"mousedown":true,"mousemove":true,"mouseout":true,"mouseover":true,"mouseup":true,"focus":true,"blur":true,"submit":true};var A=false;if(YAHOO.lang.isString(B)){K.call(this,"id",{value:C.element});}if(J.get(B)){A=true;I.call(this,C);L.call(this,C);}YAHOO.util.Event.onAvailable(C.element,function(){if(!A){I.call(this,C);}this.fireEvent("available",{type:"available",target:C.element});},this,true);YAHOO.util.Event.onContentReady(C.element,function(){if(!A){L.call(this,C);}this.fireEvent("contentReady",{type:"contentReady",target:C.element});},this,true);};var I=function(A){this.setAttributeConfig("element",{value:J.get(A.element),readOnly:true});};var L=function(A){this.initAttributes(A);this.setAttributes(A,true);this.fireQueue();};var K=function(C,A){var B=this.get("element");A=A||{};A.name=C;A.method=A.method||function(D){B[C]=D;};A.value=A.value||B[C];this._configs[C]=new YAHOO.util.Attribute(A,this);};YAHOO.augment(YAHOO.util.Element,H);})();YAHOO.register("element",YAHOO.util.Element,{version:"2.5.2",build:"1076"});(function(){var X=YAHOO.util.Dom,R=YAHOO.util.Event,V=YAHOO.lang,S=YAHOO.env.ua,P=YAHOO.widget.Overlay,U=YAHOO.widget.Menu,N={},T=null,Z=null,O=null;function Y(E,F,B,D){var A,C;if(V.isString(E)&&V.isString(F)){if(S.ie){C='<input type="'+E+'" name="'+F+'"';if(D){C+=" checked";}C+=">";A=document.createElement(C);}else{A=document.createElement("input");A.name=F;A.type=E;if(D){A.checked=true;}}A.value=B;return A;}}function W(H,B){var I=H.nodeName.toUpperCase(),D=this,C,G,F;function A(J){if(!(J in B)){C=H.getAttributeNode(J);if(C&&("value" in C)){B[J]=C.value;}}}function E(){A("type");if(B.type=="button"){B.type="push";}if(!("disabled" in B)){B.disabled=H.disabled;}A("name");A("value");A("title");}switch(I){case"A":B.type="link";A("href");A("target");break;case"INPUT":E();if(!("checked" in B)){B.checked=H.checked;}break;case"BUTTON":E();G=H.parentNode.parentNode;if(X.hasClass(G,this.CSS_CLASS_NAME+"-checked")){B.checked=true;}if(X.hasClass(G,this.CSS_CLASS_NAME+"-disabled")){B.disabled=true;}H.removeAttribute("value");H.setAttribute("type","button");break;}H.removeAttribute("id");H.removeAttribute("name");if(!("tabindex" in B)){B.tabindex=H.tabIndex;}if(!("label" in B)){F=I=="INPUT"?H.value:H.innerHTML;if(F&&F.length>0){B.label=F;}}}function Q(C){var D=C.attributes,E=D.srcelement,A=E.nodeName.toUpperCase(),B=this;if(A==this.NODE_NAME){C.element=E;C.id=E.id;X.getElementsBy(function(F){switch(F.nodeName.toUpperCase()){case"BUTTON":case"A":case"INPUT":W.call(B,F,D);break;}},"*",E);}else{switch(A){case"BUTTON":case"A":case"INPUT":W.call(this,E,D);break;}}}YAHOO.widget.Button=function(A,D){if(!P&&YAHOO.widget.Overlay){P=YAHOO.widget.Overlay;}if(!U&&YAHOO.widget.Menu){U=YAHOO.widget.Menu;}var B=YAHOO.widget.Button.superclass.constructor,C,E;if(arguments.length==1&&!V.isString(A)&&!A.nodeName){if(!A.id){A.id=X.generateId();}B.call(this,(this.createButtonElement(A.type)),A);}else{C={element:null,attributes:(D||{})};if(V.isString(A)){E=X.get(A);if(E){if(!C.attributes.id){C.attributes.id=A;}C.attributes.srcelement=E;Q.call(this,C);if(!C.element){C.element=this.createButtonElement(C.attributes.type);}B.call(this,C.element,C.attributes);}}else{if(A.nodeName){if(!C.attributes.id){if(A.id){C.attributes.id=A.id;}else{C.attributes.id=X.generateId();}}C.attributes.srcelement=A;Q.call(this,C);if(!C.element){C.element=this.createButtonElement(C.attributes.type);}B.call(this,C.element,C.attributes);}}}};YAHOO.extend(YAHOO.widget.Button,YAHOO.util.Element,{_button:null,_menu:null,_hiddenFields:null,_onclickAttributeValue:null,_activationKeyPressed:false,_activationButtonPressed:false,_hasKeyEventHandlers:false,_hasMouseEventHandlers:false,NODE_NAME:"SPAN",CHECK_ACTIVATION_KEYS:[32],ACTIVATION_KEYS:[13,32],OPTION_AREA_WIDTH:20,CSS_CLASS_NAME:"yui-button",RADIO_DEFAULT_TITLE:"Unchecked.  Click to check.",RADIO_CHECKED_TITLE:"Checked.  Click another button to uncheck",CHECKBOX_DEFAULT_TITLE:"Unchecked.  Click to check.",CHECKBOX_CHECKED_TITLE:"Checked.  Click to uncheck.",MENUBUTTON_DEFAULT_TITLE:"Menu collapsed.  Click to expand.",MENUBUTTON_MENU_VISIBLE_TITLE:"Menu expanded.  Click or press Esc to collapse.",SPLITBUTTON_DEFAULT_TITLE:("Menu collapsed.  Click inside option region or press Ctrl + Shift + M to show the menu."),SPLITBUTTON_OPTION_VISIBLE_TITLE:"Menu expanded.  Press Esc or Ctrl + Shift + M to hide the menu.",SUBMIT_TITLE:"Click to submit form.",_setType:function(A){if(A=="split"){this.on("option",this._onOption);}},_setLabel:function(B){this._button.innerHTML=B;var A,C=S.gecko;if(C&&C<1.9&&X.inDocument(this.get("element"))){A=this.CSS_CLASS_NAME;this.removeClass(A);V.later(0,this,this.addClass,A);}},_setTabIndex:function(A){this._button.tabIndex=A;},_setTitle:function(A){var B=A;if(this.get("type")!="link"){if(!B){switch(this.get("type")){case"radio":B=this.RADIO_DEFAULT_TITLE;break;case"checkbox":B=this.CHECKBOX_DEFAULT_TITLE;break;case"menu":B=this.MENUBUTTON_DEFAULT_TITLE;break;case"split":B=this.SPLITBUTTON_DEFAULT_TITLE;break;case"submit":B=this.SUBMIT_TITLE;break;}}this._button.title=B;}},_setDisabled:function(A){if(this.get("type")!="link"){if(A){if(this._menu){this._menu.hide();}if(this.hasFocus()){this.blur();}this._button.setAttribute("disabled","disabled");this.addStateCSSClasses("disabled");this.removeStateCSSClasses("hover");this.removeStateCSSClasses("active");this.removeStateCSSClasses("focus");}else{this._button.removeAttribute("disabled");this.removeStateCSSClasses("disabled");}}},_setHref:function(A){if(this.get("type")=="link"){this._button.href=A;}},_setTarget:function(A){if(this.get("type")=="link"){this._button.setAttribute("target",A);}},_setChecked:function(B){var A=this.get("type"),C;if(A=="checkbox"||A=="radio"){if(B){this.addStateCSSClasses("checked");C=(A=="radio")?this.RADIO_CHECKED_TITLE:this.CHECKBOX_CHECKED_TITLE;}else{this.removeStateCSSClasses("checked");C=(A=="radio")?this.RADIO_DEFAULT_TITLE:this.CHECKBOX_DEFAULT_TITLE;}this.set("title",C);}},_setMenu:function(C){var I=this.get("lazyloadmenu"),F=this.get("element"),M,A=false,b,J,G,K,L,D,H;if(!P){return false;}if(U){M=U.prototype.CSS_CLASS_NAME;}function B(){b.render(F.parentNode);this.removeListener("appendTo",B);}function E(){if(b){X.addClass(b.element,this.get("menuclassname"));X.addClass(b.element,"yui-"+this.get("type")+"-button-menu");b.showEvent.subscribe(this._onMenuShow,null,this);b.hideEvent.subscribe(this._onMenuHide,null,this);b.renderEvent.subscribe(this._onMenuRender,null,this);if(U&&b instanceof U){b.keyDownEvent.subscribe(this._onMenuKeyDown,this,true);b.subscribe("click",this._onMenuClick,this,true);b.itemAddedEvent.subscribe(this._onMenuItemAdded,this,true);G=b.srcElement;if(G&&G.nodeName.toUpperCase()=="SELECT"){G.style.display="none";G.parentNode.removeChild(G);}}else{if(P&&b instanceof P){if(!T){T=new YAHOO.widget.OverlayManager();}T.register(b);}}this._menu=b;if(!A){if(I&&U&&!(b instanceof U)){b.beforeShowEvent.subscribe(this._onOverlayBeforeShow,null,this);}else{if(!I){if(X.inDocument(F)){b.render(F.parentNode);}else{this.on("appendTo",B);}}}}}}if(C&&U&&(C instanceof U)){b=C;K=b.getItems();L=K.length;A=true;if(L>0){H=L-1;do{D=K[H];if(D){D.cfg.subscribeToConfigEvent("selected",this._onMenuItemSelected,D,this);}}while(H--);}E.call(this);}else{if(P&&C&&(C instanceof P)){b=C;A=true;b.cfg.setProperty("visible",false);b.cfg.setProperty("context",[F,"tl","bl"]);E.call(this);}else{if(U&&V.isArray(C)){this.on("appendTo",function(){b=new U(X.generateId(),{lazyload:I,itemdata:C});E.call(this);});}else{if(V.isString(C)){J=X.get(C);if(J){if(U&&X.hasClass(J,M)||J.nodeName.toUpperCase()=="SELECT"){b=new U(C,{lazyload:I});E.call(this);}else{if(P){b=new P(C,{visible:false,context:[F,"tl","bl"]});E.call(this);}}}}else{if(C&&C.nodeName){if(U&&X.hasClass(C,M)||C.nodeName.toUpperCase()=="SELECT"){b=new U(C,{lazyload:I});E.call(this);}else{if(P){if(!C.id){X.generateId(C);}b=new P(C,{visible:false,context:[F,"tl","bl"]});E.call(this);}}}}}}}},_setOnClick:function(A){if(this._onclickAttributeValue&&(this._onclickAttributeValue!=A)){this.removeListener("click",this._onclickAttributeValue.fn);this._onclickAttributeValue=null;}if(!this._onclickAttributeValue&&V.isObject(A)&&V.isFunction(A.fn)){this.on("click",A.fn,A.obj,A.scope);this._onclickAttributeValue=A;}},_setSelectedMenuItem:function(B){var C=this._menu,A;if(U&&C&&C instanceof U){A=C.getItem(B);if(A&&!A.cfg.getProperty("selected")){A.cfg.setProperty("selected",true);}}},_isActivationKey:function(E){var A=this.get("type"),D=(A=="checkbox"||A=="radio")?this.CHECK_ACTIVATION_KEYS:this.ACTIVATION_KEYS,B=D.length,C;if(B>0){C=B-1;do{if(E==D[C]){return true;}}while(C--);}},_isSplitButtonOptionKey:function(A){var B=(A.ctrlKey&&A.shiftKey&&R.getCharCode(A)==77);function C(D){R.preventDefault(D);this.removeListener("keypress",C);}if(B&&S.opera){this.on("keypress",C);}return B;},_addListenersToForm:function(){var A=this.getForm(),B=YAHOO.widget.Button.onFormKeyPress,C,G,D,E,F;if(A){R.on(A,"reset",this._onFormReset,null,this);R.on(A,"submit",this.createHiddenFields,null,this);G=this.get("srcelement");if(this.get("type")=="submit"||(G&&G.type=="submit")){D=R.getListeners(A,"keypress");C=false;if(D){E=D.length;if(E>0){F=E-1;do{if(D[F].fn==B){C=true;break;}}while(F--);}}if(!C){R.on(A,"keypress",B);}}}},_showMenu:function(H){if(YAHOO.widget.MenuManager){YAHOO.widget.MenuManager.hideVisible();}if(T){T.hideAll();}var J=P.VIEWPORT_OFFSET,A=this._menu,C=this,f=C.get("element"),F=false,D=X.getY(f),E=X.getDocumentScrollTop(),M,I,d;if(E){D=D-E;}var K=D,L=(X.getViewportHeight()-(D+f.offsetHeight));function G(){if(F){return(K-J);}else{return(L-J);}}function e(){var a=G();if(I>a){M=A.cfg.getProperty("minscrollheight");if(a>M){A.cfg.setProperty("maxheight",a);if(F){A.align("bl","tl");}else{A.align("tl","bl");}}if(a<M){if(F){A.cfg.setProperty("context",[f,"tl","bl"],true);A.align("tl","bl");}else{A.cfg.setProperty("context",[f,"bl","tl"],true);A.align("bl","tl");F=true;return e();}}}}if(U&&A&&(A instanceof U)){A.cfg.applyConfig({context:[f,"tl","bl"],clicktohide:false});A.cfg.fireQueue();A.show();A.cfg.setProperty("maxheight",0);A.align("tl","bl");if(H.type=="mousedown"){R.stopPropagation(H);}I=A.element.offsetHeight;d=A.element.lastChild;e();if(this.get("focusmenu")){this._menu.focus();}}else{if(P&&A&&(A instanceof P)){A.show();A.align("tl","bl");var B=G();I=A.element.offsetHeight;if(B<I){A.align("bl","tl");F=true;B=G();if(B<I){A.align("tl","bl");}}}}},_hideMenu:function(){var A=this._menu;if(A){A.hide();}},_onMouseOver:function(A){if(!this._hasMouseEventHandlers){this.on("mouseout",this._onMouseOut);this.on("mousedown",this._onMouseDown);this.on("mouseup",this._onMouseUp);this._hasMouseEventHandlers=true;}this.addStateCSSClasses("hover");if(this._activationButtonPressed){this.addStateCSSClasses("active");}if(this._bOptionPressed){this.addStateCSSClasses("activeoption");}if(this._activationButtonPressed||this._bOptionPressed){R.removeListener(document,"mouseup",this._onDocumentMouseUp);}},_onMouseOut:function(A){this.removeStateCSSClasses("hover");if(this.get("type")!="menu"){this.removeStateCSSClasses("active");}if(this._activationButtonPressed||this._bOptionPressed){R.on(document,"mouseup",this._onDocumentMouseUp,null,this);}},_onDocumentMouseUp:function(B){this._activationButtonPressed=false;this._bOptionPressed=false;var A=this.get("type"),D,C;if(A=="menu"||A=="split"){D=R.getTarget(B);C=this._menu.element;if(D!=C&&!X.isAncestor(C,D)){this.removeStateCSSClasses((A=="menu"?"active":"activeoption"));this._hideMenu();}}R.removeListener(document,"mouseup",this._onDocumentMouseUp);},_onMouseDown:function(C){var A,E,B,D;function F(){this._hideMenu();this.removeListener("mouseup",F);}if((C.which||C.button)==1){if(!this.hasFocus()){this.focus();}A=this.get("type");if(A=="split"){E=this.get("element");B=R.getPageX(C)-X.getX(E);if((E.offsetWidth-this.OPTION_AREA_WIDTH)<B){this.fireEvent("option",C);}else{this.addStateCSSClasses("active");this._activationButtonPressed=true;}}else{if(A=="menu"){if(this.isActive()){this._hideMenu();this._activationButtonPressed=false;}else{this._showMenu(C);this._activationButtonPressed=true;}}else{this.addStateCSSClasses("active");this._activationButtonPressed=true;}}if(A=="split"||A=="menu"){D=this;this._hideMenuTimerId=window.setTimeout(function(){D.on("mouseup",F);},250);}}},_onMouseUp:function(B){var A=this.get("type");if(this._hideMenuTimerId){window.clearTimeout(this._hideMenuTimerId);}if(A=="checkbox"||A=="radio"){this.set("checked",!(this.get("checked")));}this._activationButtonPressed=false;if(this.get("type")!="menu"){this.removeStateCSSClasses("active");}},_onFocus:function(A){var B;this.addStateCSSClasses("focus");if(this._activationKeyPressed){this.addStateCSSClasses("active");}O=this;if(!this._hasKeyEventHandlers){B=this._button;R.on(B,"blur",this._onBlur,null,this);R.on(B,"keydown",this._onKeyDown,null,this);R.on(B,"keyup",this._onKeyUp,null,this);this._hasKeyEventHandlers=true;}this.fireEvent("focus",A);},_onBlur:function(A){this.removeStateCSSClasses("focus");if(this.get("type")!="menu"){this.removeStateCSSClasses("active");}if(this._activationKeyPressed){R.on(document,"keyup",this._onDocumentKeyUp,null,this);}O=null;this.fireEvent("blur",A);},_onDocumentKeyUp:function(A){if(this._isActivationKey(R.getCharCode(A))){this._activationKeyPressed=false;R.removeListener(document,"keyup",this._onDocumentKeyUp);}},_onKeyDown:function(A){var B=this._menu;if(this.get("type")=="split"&&this._isSplitButtonOptionKey(A)){this.fireEvent("option",A);}else{if(this._isActivationKey(R.getCharCode(A))){if(this.get("type")=="menu"){this._showMenu(A);}else{this._activationKeyPressed=true;this.addStateCSSClasses("active");}}}if(B&&B.cfg.getProperty("visible")&&R.getCharCode(A)==27){B.hide();this.focus();}},_onKeyUp:function(B){var A;if(this._isActivationKey(R.getCharCode(B))){A=this.get("type");if(A=="checkbox"||A=="radio"){this.set("checked",!(this.get("checked")));}this._activationKeyPressed=false;if(this.get("type")!="menu"){this.removeStateCSSClasses("active");}}},_onClick:function(D){var A=this.get("type"),G,C,F,E,B;switch(A){case"radio":case"checkbox":if(this.get("checked")){G=(A=="radio")?this.RADIO_CHECKED_TITLE:this.CHECKBOX_CHECKED_TITLE;}else{G=(A=="radio")?this.RADIO_DEFAULT_TITLE:this.CHECKBOX_DEFAULT_TITLE;}this.set("title",G);break;case"submit":this.submitForm();break;case"reset":C=this.getForm();if(C){C.reset();}break;case"menu":G=this._menu.cfg.getProperty("visible")?this.MENUBUTTON_MENU_VISIBLE_TITLE:this.MENUBUTTON_DEFAULT_TITLE;this.set("title",G);break;case"split":E=this.get("element");B=R.getPageX(D)-X.getX(E);if((E.offsetWidth-this.OPTION_AREA_WIDTH)<B){return false;}else{this._hideMenu();F=this.get("srcelement");if(F&&F.type=="submit"){this.submitForm();}}G=this._menu.cfg.getProperty("visible")?this.SPLITBUTTON_OPTION_VISIBLE_TITLE:this.SPLITBUTTON_DEFAULT_TITLE;this.set("title",G);break;}},_onAppendTo:function(A){var B=this;window.setTimeout(function(){B._addListenersToForm();},0);},_onFormReset:function(B){var A=this.get("type"),C=this._menu;if(A=="checkbox"||A=="radio"){this.resetValue("checked");}if(U&&C&&(C instanceof U)){this.resetValue("selectedMenuItem");}},_onDocumentMouseDown:function(A){var D=R.getTarget(A),B=this.get("element"),C=this._menu.element;if(D!=B&&!X.isAncestor(B,D)&&D!=C&&!X.isAncestor(C,D)){this._hideMenu();R.removeListener(document,"mousedown",this._onDocumentMouseDown);}},_onOption:function(A){if(this.hasClass("yui-split-button-activeoption")){this._hideMenu();this._bOptionPressed=false;}else{this._showMenu(A);this._bOptionPressed=true;}},_onOverlayBeforeShow:function(A){var B=this._menu;B.render(this.get("element").parentNode);B.beforeShowEvent.unsubscribe(this._onOverlayBeforeShow);},_onMenuShow:function(B){R.on(document,"mousedown",this._onDocumentMouseDown,null,this);var C,A;if(this.get("type")=="split"){C=this.SPLITBUTTON_OPTION_VISIBLE_TITLE;A="activeoption";}else{C=this.MENUBUTTON_MENU_VISIBLE_TITLE;A="active";}this.addStateCSSClasses(A);this.set("title",C);},_onMenuHide:function(B){var C=this._menu,D,A;if(this.get("type")=="split"){D=this.SPLITBUTTON_DEFAULT_TITLE;A="activeoption";}else{D=this.MENUBUTTON_DEFAULT_TITLE;A="active";}this.removeStateCSSClasses(A);this.set("title",D);if(this.get("type")=="split"){this._bOptionPressed=false;}},_onMenuKeyDown:function(A,B){var C=B[0];if(R.getCharCode(C)==27){this.focus();if(this.get("type")=="split"){this._bOptionPressed=false;}}},_onMenuRender:function(C){var A=this.get("element"),D=A.parentNode,B=this._menu.element;if(D!=B.parentNode){D.appendChild(B);}this.set("selectedMenuItem",this.get("selectedMenuItem"));},_onMenuItemSelected:function(B,C,D){var A=C[0];if(A){this.set("selectedMenuItem",D);}},_onMenuItemAdded:function(B,C,D){var A=C[0];A.cfg.subscribeToConfigEvent("selected",this._onMenuItemSelected,A,this);},_onMenuClick:function(C,D){var A=D[1],B;if(A){B=this.get("srcelement");if(B&&B.type=="submit"){this.submitForm();}this._hideMenu();}},createButtonElement:function(C){var A=this.NODE_NAME,B=document.createElement(A);B.innerHTML="<"+A+' class="first-child">'+(C=="link"?"<a></a>":'<button type="button"></button>')+"</"+A+">";return B;},addStateCSSClasses:function(B){var A=this.get("type");if(V.isString(B)){if(B!="activeoption"){this.addClass(this.CSS_CLASS_NAME+("-"+B));}this.addClass("yui-"+A+("-button-"+B));}},removeStateCSSClasses:function(B){var A=this.get("type");if(V.isString(B)){this.removeClass(this.CSS_CLASS_NAME+("-"+B));this.removeClass("yui-"+A+("-button-"+B));}},createHiddenFields:function(){this.removeHiddenFields();var D=this.getForm(),A,H,F,C,B,G,E,I;if(D&&!this.get("disabled")){H=this.get("type");F=(H=="checkbox"||H=="radio");if(F||(Z==this)){A=Y((F?H:"hidden"),this.get("name"),this.get("value"),this.get("checked"));if(A){if(F){A.style.display="none";}D.appendChild(A);}}C=this._menu;if(U&&C&&(C instanceof U)){I=C.srcElement;B=this.get("selectedMenuItem");if(B){if(I&&I.nodeName.toUpperCase()=="SELECT"){D.appendChild(I);I.selectedIndex=B.index;}else{E=(B.value===null||B.value==="")?B.cfg.getProperty("text"):B.value;G=this.get("name");if(E&&G){I=Y("hidden",(G+"_options"),E);D.appendChild(I);}}}}if(A&&I){this._hiddenFields=[A,I];}else{if(!A&&I){this._hiddenFields=I;}else{if(A&&!I){this._hiddenFields=A;}}}return this._hiddenFields;}},removeHiddenFields:function(){var A=this._hiddenFields,C,B;function D(E){if(X.inDocument(E)){E.parentNode.removeChild(E);}}if(A){if(V.isArray(A)){C=A.length;if(C>0){B=C-1;do{D(A[B]);}while(B--);}}else{D(A);}this._hiddenFields=null;}},submitForm:function(){var A=this.getForm(),B=this.get("srcelement"),C=false,D;if(A){if(this.get("type")=="submit"||(B&&B.type=="submit")){Z=this;}if(S.ie){C=A.fireEvent("onsubmit");}else{D=document.createEvent("HTMLEvents");D.initEvent("submit",true,true);C=A.dispatchEvent(D);}if((S.ie||S.webkit)&&C){A.submit();}}return C;},init:function(J,C){var H=C.type=="link"?"a":"button",F=C.srcelement,D=J.getElementsByTagName(H)[0],E;if(!D){E=J.getElementsByTagName("input")[0];if(E){D=document.createElement("button");D.setAttribute("type","button");E.parentNode.replaceChild(D,E);}}this._button=D;YAHOO.widget.Button.superclass.init.call(this,J,C);N[this.get("id")]=this;this.addClass(this.CSS_CLASS_NAME);this.addClass("yui-"+this.get("type")+"-button");R.on(this._button,"focus",this._onFocus,null,this);this.on("mouseover",this._onMouseOver);this.on("click",this._onClick);this.on("appendTo",this._onAppendTo);var A=this.get("container"),I=this.get("element"),B=X.inDocument(I),G;if(A){if(F&&F!=I){G=F.parentNode;if(G){G.removeChild(F);}}if(V.isString(A)){R.onContentReady(A,function(){this.appendTo(A);},null,this);}else{this.appendTo(A);}}else{if(!B&&F&&F!=I){G=F.parentNode;if(G){this.fireEvent("beforeAppendTo",{type:"beforeAppendTo",target:G});G.replaceChild(I,F);this.fireEvent("appendTo",{type:"appendTo",target:G});}}else{if(this.get("type")!="link"&&B&&F&&F==I){this._addListenersToForm();}}}},initAttributes:function(A){var B=A||{};YAHOO.widget.Button.superclass.initAttributes.call(this,B);this.setAttributeConfig("type",{value:(B.type||"push"),validator:V.isString,writeOnce:true,method:this._setType});this.setAttributeConfig("label",{value:B.label,validator:V.isString,method:this._setLabel});this.setAttributeConfig("value",{value:B.value});this.setAttributeConfig("name",{value:B.name,validator:V.isString});this.setAttributeConfig("tabindex",{value:B.tabindex,validator:V.isNumber,method:this._setTabIndex});this.configureAttribute("title",{value:B.title,validator:V.isString,method:this._setTitle});this.setAttributeConfig("disabled",{value:(B.disabled||false),validator:V.isBoolean,method:this._setDisabled});this.setAttributeConfig("href",{value:B.href,validator:V.isString,method:this._setHref});this.setAttributeConfig("target",{value:B.target,validator:V.isString,method:this._setTarget});this.setAttributeConfig("checked",{value:(B.checked||false),validator:V.isBoolean,method:this._setChecked});this.setAttributeConfig("container",{value:B.container,writeOnce:true});this.setAttributeConfig("srcelement",{value:B.srcelement,writeOnce:true});this.setAttributeConfig("menu",{value:null,method:this._setMenu,writeOnce:true});this.setAttributeConfig("lazyloadmenu",{value:(B.lazyloadmenu===false?false:true),validator:V.isBoolean,writeOnce:true});this.setAttributeConfig("menuclassname",{value:(B.menuclassname||"yui-button-menu"),validator:V.isString,method:this._setMenuClassName,writeOnce:true});this.setAttributeConfig("selectedMenuItem",{value:null,method:this._setSelectedMenuItem});this.setAttributeConfig("onclick",{value:B.onclick,method:this._setOnClick});this.setAttributeConfig("focusmenu",{value:(B.focusmenu===false?false:true),validator:V.isBoolean});},focus:function(){if(!this.get("disabled")){this._button.focus();}},blur:function(){if(!this.get("disabled")){this._button.blur();}},hasFocus:function(){return(O==this);},isActive:function(){return this.hasClass(this.CSS_CLASS_NAME+"-active");},getMenu:function(){return this._menu;},getForm:function(){return this._button.form;},getHiddenFields:function(){return this._hiddenFields;},destroy:function(){var C=this.get("element"),D=C.parentNode,E=this._menu,A;if(E){if(T&&T.find(E)){T.remove(E);}E.destroy();}R.purgeElement(C);R.purgeElement(this._button);R.removeListener(document,"mouseup",this._onDocumentMouseUp);R.removeListener(document,"keyup",this._onDocumentKeyUp);R.removeListener(document,"mousedown",this._onDocumentMouseDown);var B=this.getForm();if(B){R.removeListener(B,"reset",this._onFormReset);R.removeListener(B,"submit",this.createHiddenFields);}this.unsubscribeAll();if(D){D.removeChild(C);}delete N[this.get("id")];A=X.getElementsByClassName(this.CSS_CLASS_NAME,this.NODE_NAME,B);if(V.isArray(A)&&A.length===0){R.removeListener(B,"keypress",YAHOO.widget.Button.onFormKeyPress);}},fireEvent:function(B,C){var A=arguments[0];if(this.DOM_EVENTS[A]&&this.get("disabled")){return;}return YAHOO.widget.Button.superclass.fireEvent.apply(this,arguments);},toString:function(){return("Button "+this.get("id"));}});YAHOO.widget.Button.onFormKeyPress=function(G){var I=R.getTarget(G),F=R.getCharCode(G),H=I.nodeName&&I.nodeName.toUpperCase(),K=I.type,E=false,C,B,J,A;function D(L){var M,b;switch(L.nodeName.toUpperCase()){case"INPUT":case"BUTTON":if(L.type=="submit"&&!L.disabled){if(!E&&!J){J=L;}if(B&&!A){A=L;}}break;default:M=L.id;if(M){C=N[M];if(C){E=true;if(!C.get("disabled")){b=C.get("srcelement");if(!B&&(C.get("type")=="submit"||(b&&b.type=="submit"))){B=C;}}}}break;}}if(F==13&&((H=="INPUT"&&(K=="text"||K=="password"||K=="checkbox"||K=="radio"||K=="file"))||H=="SELECT")){X.getElementsBy(D,"*",this);if(J){J.focus();}else{if(!J&&B){if(A){R.preventDefault(G);}B.submitForm();}}}};YAHOO.widget.Button.addHiddenFieldsToForm=function(F){var A=X.getElementsByClassName(YAHOO.widget.Button.prototype.CSS_CLASS_NAME,"*",F),C=A.length,B,E,D;if(C>0){for(D=0;D<C;D++){E=A[D].id;if(E){B=N[E];if(B){B.createHiddenFields();}}}}};YAHOO.widget.Button.getButton=function(B){var A=N[B];if(A){return A;}};})();(function(){var I=YAHOO.util.Dom,J=YAHOO.util.Event,H=YAHOO.lang,F=YAHOO.widget.Button,G={};YAHOO.widget.ButtonGroup=function(B,D){var C=YAHOO.widget.ButtonGroup.superclass.constructor,A,E,L;if(arguments.length==1&&!H.isString(B)&&!B.nodeName){if(!B.id){L=I.generateId();B.id=L;}C.call(this,(this._createGroupElement()),B);}else{if(H.isString(B)){E=I.get(B);if(E){if(E.nodeName.toUpperCase()==this.NODE_NAME){C.call(this,E,D);}}}else{A=B.nodeName.toUpperCase();if(A&&A==this.NODE_NAME){if(!B.id){B.id=I.generateId();}C.call(this,B,D);}}}};YAHOO.extend(YAHOO.widget.ButtonGroup,YAHOO.util.Element,{_buttons:null,NODE_NAME:"DIV",CSS_CLASS_NAME:"yui-buttongroup",_createGroupElement:function(){var A=document.createElement(this.NODE_NAME);return A;},_setDisabled:function(B){var A=this.getCount(),C;if(A>0){C=A-1;do{this._buttons[C].set("disabled",B);}while(C--);}},_onKeyDown:function(A){var E=J.getTarget(A),C=J.getCharCode(A),D=E.parentNode.parentNode.id,B=G[D],L=-1;if(C==37||C==38){L=(B.index===0)?(this._buttons.length-1):(B.index-1);}else{if(C==39||C==40){L=(B.index===(this._buttons.length-1))?0:(B.index+1);}}if(L>-1){this.check(L);this.getButton(L).focus();}},_onAppendTo:function(B){var A=this._buttons,C=A.length,D;for(D=0;D<C;D++){A[D].appendTo(this.get("element"));}},_onButtonCheckedChange:function(C,D){var A=C.newValue,B=this.get("checkedButton");if(A&&B!=D){if(B){B.set("checked",false,true);}this.set("checkedButton",D);this.set("value",D.get("value"));}else{if(B&&!B.set("checked")){B.set("checked",true,true);}}},init:function(B,C){this._buttons=[];YAHOO.widget.ButtonGroup.superclass.init.call(this,B,C);this.addClass(this.CSS_CLASS_NAME);var A=this.getElementsByClassName("yui-radio-button");if(A.length>0){this.addButtons(A);}function E(L){return(L.type=="radio");}A=I.getElementsBy(E,"input",this.get("element"));if(A.length>0){this.addButtons(A);}this.on("keydown",this._onKeyDown);this.on("appendTo",this._onAppendTo);var D=this.get("container");if(D){if(H.isString(D)){J.onContentReady(D,function(){this.appendTo(D);},null,this);}else{this.appendTo(D);}}},initAttributes:function(A){var B=A||{};YAHOO.widget.ButtonGroup.superclass.initAttributes.call(this,B);this.setAttributeConfig("name",{value:B.name,validator:H.isString});this.setAttributeConfig("disabled",{value:(B.disabled||false),validator:H.isBoolean,method:this._setDisabled});this.setAttributeConfig("value",{value:B.value});this.setAttributeConfig("container",{value:B.container,writeOnce:true});this.setAttributeConfig("checkedButton",{value:null});},addButton:function(C){var A,B,M,N,E,D;if(C instanceof F&&C.get("type")=="radio"){A=C;}else{if(!H.isString(C)&&!C.nodeName){C.type="radio";A=new F(C);}else{A=new F(C,{type:"radio"});}}if(A){N=this._buttons.length;E=A.get("name");D=this.get("name");A.index=N;this._buttons[N]=A;G[A.get("id")]=A;if(E!=D){A.set("name",D);}if(this.get("disabled")){A.set("disabled",true);}if(A.get("checked")){this.set("checkedButton",A);}B=A.get("element");M=this.get("element");if(B.parentNode!=M){M.appendChild(B);}A.on("checkedChange",this._onButtonCheckedChange,A,this);return A;}},addButtons:function(D){var C,B,A,E;if(H.isArray(D)){C=D.length;A=[];if(C>0){for(E=0;E<C;E++){B=this.addButton(D[E]);if(B){A[A.length]=B;}}if(A.length>0){return A;}}}},removeButton:function(B){var A=this.getButton(B),C,D;if(A){this._buttons.splice(B,1);delete G[A.get("id")];A.removeListener("checkedChange",this._onButtonCheckedChange);A.destroy();C=this._buttons.length;if(C>0){D=this._buttons.length-1;do{this._buttons[D].index=D;}while(D--);}}},getButton:function(A){if(H.isNumber(A)){return this._buttons[A];}},getButtons:function(){return this._buttons;},getCount:function(){return this._buttons.length;},focus:function(B){var A,C,D;if(H.isNumber(B)){A=this._buttons[B];if(A){A.focus();}}else{C=this.getCount();for(D=0;D<C;D++){A=this._buttons[D];if(!A.get("disabled")){A.focus();break;}}}},check:function(B){var A=this.getButton(B);if(A){A.set("checked",true);}},destroy:function(){var A=this._buttons.length,B=this.get("element"),D=B.parentNode,C;if(A>0){C=this._buttons.length-1;do{this._buttons[C].destroy();}while(C--);}J.purgeElement(B);D.removeChild(B);},toString:function(){return("ButtonGroup "+this.get("id"));}});})();YAHOO.register("button",YAHOO.widget.Button,{version:"2.5.2",build:"1076"});function PagerSimple(A,B){var D=this;var C=perfUI.util.addEl;this.pagerContainer=null;this.pagerDescrContainer=null;this.headerContainer=null;this.pagesContainer=null;this.footerContainer=null;this.Container=A||null;this.CurrentPage=1;this.TotalRecords=0;this.PageSize=1;this.Step=1;this.PagerCss="";this.DataSourceDescription="";this.DataSource=B||null;this.NoRecordDescription="There are 0 "+this.DataSourceDescription;this.Page=function(E,G,F){this.DataSource=E||null;this.DataFrom=G||0;this.DataTo=F||0;};this.Pages=[];this.AlwaysShow=false;this.AlwaysCycle=false;this.ShowDescription=false;this.onPageLoad=new YAHOO.util.CustomEvent("onPageLoad",this);this.ParseXmlProperties=function(E){if(!E){return;}var F=E.getElementsByTagName("paging")[0];if(F==null){return;}this.PageSize=PERF.parseNodeNumeric(F,"pageSize");this.CurrentPage=PERF.parseNodeNumeric(F,"pageNumber");this.TotalRecords=PERF.parseNodeNumeric(F,"totalRecords");};this.pageDisableCss="pageDisable";this.pageHoverCss="pageHover";this.pageCss="page";this.addPageRollOver=function(E){YAHOO.util.Event.addListener(E,"mouseover",this.pageHoverOn);YAHOO.util.Event.addListener(E,"mouseout",this.pageHoverOff);};this.pageHoverOff=function(E){this.className=this.className.replace(D.pageHoverCss,"");};this.pageHoverOn=function(E){if(this.className.indexOf("selectedPage")<0&&this.className.indexOf(D.pageDisableCss)<0){this.className+=" "+D.pageHoverCss;}};this.buildTotalsDescription=function(){if(this.DataSourceDescription.trim().length>0){var E=addNode(this.pagercontainer,"span","","totals");addNode(E,"strong","","",String(this.TotalRecords));addNode(E,"label","","","&nbsp;"+this.DataSourceDescription);}};this.buildPagerFiringObjectsBase=function(){this.Container.innerHTML="";this.pagercontainer=C(this.Container,"ul",{"class":"pager"});if(this.Pages.length>1||this.AlwaysShow){this.headerContainer=C(this.pagercontainer,"li");this.pagesContainer=C(this.pagercontainer,"li");this.footerContainer=addNode(this.pagercontainer,"li");}};this.buildPagerFiringObjects=function(){var F="Previous";var H=perfTranslator.getValue(1784);if(H.trim().length>0){F=H;}this.buildPagerFiringObjectsBase();if(this.Pages.length>1||this.AlwaysShow){var G=addNode(this.headerContainer,"div");var F="Previous";var H=perfTranslator.getValue(1784);if(H.trim().length>0){F=H;}this.buildGoToPreviousPage(G,F);var F="Next";var H=perfTranslator.getValue(1783);if(H.trim().length>0){F=H;}var E=this.buildGoToNextPage(F);this.buildGoToLastPage(E);}};this.buildPagerPages=function(J){if(J!=null){this.DataSource=J;}this.TotalRecords=(this.TotalRecords<=0&&this.DataSource!=null)?this.DataSource.length:this.TotalRecords;var I=this.TotalRecords;if(this.DataSource==null&&I<=0){return;}var G=1;var E=0;var L=0;for(var F=0;F<I;){G=this.Pages.length>0?(this.Pages[this.Pages.length-1].DataTo+1):1;L=G+(this.PageSize-1);E=L<I?L:I;var H=this.DataSource!=null?this.DataSource.slice(F,E):[];var K=new this.Page(H,G,E);this.Pages.push(K);F=E;}};this.buildGoToFirstPage=function(){};this.buildGoToLastPage=function(E){};this.buildPageLinks=function(E){if(E==undefined){E=false;}if(this.pagesContainer!=null){if(this.CurrentPage>this.Pages.length){this.CurrentPage=this.Pages.length;}this.pagesContainer.innerHTML="";var F=addNode(this.pagesContainer,"strong","","",String(this.CurrentPage)+" of "+this.Pages.length);}if(!E){this.onPageLoad.fire(this);}};this.loadPreviousPage=function(E){D.loadPage(E,D.CurrentPage-1);};this.loadNextPage=function(E){D.loadPage(E,D.CurrentPage+1);};this.loadPage=function(G,E){var F=Number(E);if(F==D.CurrentPage){return;}if(D.AlwaysCycle){if(F<=0){D.CurrentPage=D.Pages.length;}else{if(F>D.Pages.length){D.CurrentPage=1;}else{D.CurrentPage=Number(E);}}}else{if(F<=0||F>D.Pages.length){return;}else{D.CurrentPage=Number(E);}}D.buildPageLinks();};}PagerSimple.prototype.Render=function(C,B,A){this.Container.innerHTML="";this.Pages=[];if(C){this.TotalRecords=C.length;}else{this.TotalRecords=B||this.TotalRecords;}this.buildPagerPages(C);this.buildPagerFiringObjects();this.buildTotalsDescription();this.buildPageLinks(A);};PagerSimple.prototype.buildGoToPreviousPage=function(B,C){var F="Go to Previous Page";var A=perfTranslator.getValue(1785);if(A.trim().length>0){F=A;}var E=addNode(B,"div","","pagePrevious");E.title=F;YAHOO.util.Event.addListener(E,"click",this.loadPreviousPage);if(C!=undefined){var D=addNode(B,"a","","pagePrevious",C);D.title=F;PERF.makeLink(D);YAHOO.util.Event.addListener(D,"click",this.loadPreviousPage);}};PagerSimple.prototype.buildGoToNextPage=function(C){var F="Go to Next Page";var B=perfTranslator.getValue(1786);if(B.trim().length>0){F=B;}var A=addNode(this.footerContainer,"div");if(C!=undefined){var E=addNode(A,"a","","pageNext",C);var F=F;var B=perfTranslator.getValue(1786);if(B.trim().length>0){F=B;}E.title=F;PERF.makeLink(E);YAHOO.util.Event.addListener(E,"click",this.loadNextPage);}var D=addNode(A,"div","","pageNext");D.title=F;YAHOO.util.Event.addListener(D,"click",this.loadNextPage);return A;};function PagerControl(B,C,A,D){var E=this;PagerControl.superclass.constructor.call(this,A,D);this.PageSize=B;this.Step=C;this.Render=function(H,G,F){if(this.Container.className.indexOf("pagerAdvanced")<0){this.Container.className+=" pagerAdvanced";}PagerControl.superclass.Render.call(this,H,G,F);};this.buildPagerFiringObjects=function(){this.buildPagerFiringObjectsBase();if(this.Pages.length>1||this.AlwaysShow){var F=addNode(this.headerContainer,"div","","left");this.buildGoToPreviousPage(F);var G=this.buildGoToNextPage();this.buildGoToLastPage(G);}};this.buildGoToFirstPage=function(){var F=addNode(this.headerContainer,"div");var G=addNode(F,"a","","left","First");G.title="Go to First Page";PERF.makeLink(G);YAHOO.util.Event.addListener(G,"click",this.loadPage,1);return F;};this.buildGoToLastPage=function(F){var G=addNode(F,"a","","","Last");G.title="Go to Last Page";PERF.makeLink(G);YAHOO.util.Event.addListener(G,"click",this.loadPage,this.Pages.length);};this.buildGoToNextPage=function(){return PagerControl.superclass.buildGoToNextPage.call(this);};this.buildPageLinks=function(F){if(F==undefined){F=false;}if(this.pagesContainer!=null){if(this.CurrentPage>this.Pages.length){this.CurrentPage=this.Pages.length;}this.pagesContainer.innerHTML="";var H=Math.floor((this.CurrentPage/this.Step))*this.Step;if((this.CurrentPage%this.Step)==0){H-=this.Step;}for(var J=H+1;J<=this.Pages.length&&J<=(H+this.Step);J++){var G=J==this.CurrentPage?"selectedPage":"";var I=addNode(this.pagesContainer,"a","",G,String(J));PERF.makeLink(I);YAHOO.util.Event.addListener(I,"click",this.loadPage,J);}}if(!F){this.onPageLoad.fire(this);}};}YAHOO.extend(PagerControl,PagerSimple);function CommentsPagerControl(B,A){var C=this;CommentsPagerControl.superclass.constructor.call(this,A,null);this.DataSourceDescription="discussions";this.buildTotalsDescription=function(){};this.buildPageLinks=function(F){if(F==undefined){F=false;}if(this.pagesContainer!=null){if(this.CurrentPage>this.Pages.length){this.CurrentPage=this.Pages.length;}this.pagesContainer.innerHTML="";var E=perfTranslator.getValue(765);var D="";if(E.trim().length>0){D=new String(perfTranslator.parseValue(E,[String(this.Pages[this.CurrentPage-1].DataFrom),String(this.Pages[this.CurrentPage-1].DataTo),String(this.TotalRecords)]));}else{D="Showing "+String(this.Pages[this.CurrentPage-1].DataFrom)+" - "+String(this.Pages[this.CurrentPage-1].DataTo)+' of <span class="peachDarkText">'+String(this.TotalRecords)+" "+this.DataSourceDescription+"</span>";}var G=addNode(this.pagesContainer,"strong","","",D);this.pagercontainer.style.width="auto";}if(!F){this.onPageLoad.fire(this);}};}YAHOO.extend(CommentsPagerControl,PagerSimple);function MediaPagerControl(B,C,A,D){var E=this;MediaPagerControl.superclass.constructor.call(this,A,D);this.PageSize=B;this.Step=C;this.Render=function(H,G,F){if(this.Container.className.indexOf("pagerMedia")<0){this.Container.className+=" pagerMedia";}MediaPagerControl.superclass.Render.call(this,H,G,F);};this.containerPrevious=null;this.containerNext=null;this.buildPagerFiringObjects=function(){this.buildPagerFiringObjectsBase();if(this.Pages.length>1||this.AlwaysShow){var G="Previous";var H=perfTranslator.getValue(1784);if(H.trim().length>0){G=H;}this.buildGoToPreviousPage(this.headerContainer,G);this.pagesContainer=addNode(this.pagesContainer,"span");var G="Next";var H=perfTranslator.getValue(1783);if(H.trim().length>0){G=H;}var F=this.buildGoToNextPage(G);}};this.buildGoToPreviousPage=function(G,H){var I="Go to Previous Page";var F=perfTranslator.getValue(1785);if(F.trim().length>0){I=F;}this.containerPrevious=addNode(G,"span","",this.pageCss,"&lt;&nbsp;"+(H?H:""));this.containerPrevious.title=I;YAHOO.util.Event.addListener(this.containerPrevious,"click",this.loadPreviousPage);this.addPageRollOver(this.containerPrevious);};this.buildGoToNextPage=function(G){var H="Go to Next Page";var F=perfTranslator.getValue(1786);if(F.trim().length>0){H=F;}this.containerNext=addNode(this.footerContainer,"span","",this.pageCss,(G?G:"")+"&nbsp;&gt;");this.containerNext.title=H;YAHOO.util.Event.addListener(this.containerNext,"click",this.loadNextPage);this.addPageRollOver(this.containerNext);};this.buildPage=function(F){var G=this.pageCss;G+=F==this.CurrentPage?" selectedPage":"";var H=addNode(this.pagesContainer,"span","",G,String(F));YAHOO.util.Event.addListener(H,"click",this.loadPage,F);this.addPageRollOver(H);};this.buildTotalsDescription=function(){if(this.ShowDescription){var G="pagerDescription";if(this.pagerDescrContainer!=null){this.pagerDescrContainer.innerHTML="";if(!YAHOO.util.Dom.hasClass(this.pagerDescrContainer,G)){YAHOO.util.Dom.addClass(this.pagerDescrContainer,G);}}else{this.pagerDescrContainer=addNode(this.pagercontainer,"div","",G);}var H="";if(this.Pages.length>0){var F=perfTranslator.getValue(765);if(F.trim().length>0){H=new String(perfTranslator.parseValue(F,[String(this.Pages[this.CurrentPage-1].DataFrom),String(this.Pages[this.CurrentPage-1].DataTo),String(this.TotalRecords)]));}else{H=new String("Displaying&nbsp;<strong>"+this.Pages[this.CurrentPage-1].DataFrom)+"-"+String(this.Pages[this.CurrentPage-1].DataTo)+"</strong>&nbsp;of&nbsp;"+String(this.TotalRecords)+"&nbsp;"+this.DataSourceDescription;}}else{H=this.NoRecordDescription;}this.pagerDescrContainer.innerHTML=H;}};this.buildPageLinks=function(F){if(F==undefined){F=false;}if(this.pagesContainer!=null){if(this.CurrentPage>this.Pages.length){this.CurrentPage=this.Pages.length;}this.pagesContainer.innerHTML="";var H=Math.floor((this.CurrentPage/this.Step))*this.Step;if((this.CurrentPage%this.Step)==0){H-=this.Step;}var G=H+this.Step;if(this.Pages.length<G){G=this.Pages.length;}this.buildPage(1);if(this.CurrentPage>this.Step){addNode(this.pagesContainer,"span","","ellipse","...");}for(var I=H+1;I<=G;I++){if(I>1){this.buildPage(I);if(I==G&&I<this.Pages.length){addNode(this.pagesContainer,"span","","ellipse","...");this.buildPage(this.Pages.length);}}}if(this.CurrentPage==1){this.containerPrevious.className+=" "+this.pageDisableCss;}else{this.containerPrevious.className=this.containerPrevious.className.replace(this.pageDisableCss,"");}if(this.CurrentPage==this.Pages.length){this.containerNext.className+=" "+this.pageDisableCss;}else{this.containerNext.className=this.containerNext.className.replace(this.pageDisableCss,"");}}if(!F){this.onPageLoad.fire(this);}};}YAHOO.extend(MediaPagerControl,PagerSimple);perfUI.widgets.languages=function(){var B=this;var A=function(D,E,C){this.id=E||"";this.name=C||"";this.init=function(){if(D){this.id=PERF.parseNodeNumeric(D,"id");this.name=PERF.parseNode(D,"name");}};this.init();};this.loadLanguagesDropDown=function(E,D){D=D||"0";var C=function(I){for(var H=0;H<I.length;H++){var F=I[H];var G=addNode(E,"option");G.value=String(F.id);G.innerHTML="&nbsp;"+F.name;}if(String(D).trim().length>0){E.value=String(D).trim();}};this.getLanguagesCollection(C);};this.getLanguagesCollection=function(H){var E=[];var F={url:"/api/callna.asp",params:"?Function=GetLanguages"};var D=function(I){H(E);};var C=function(I){var J=I.responseXML;var L=J.getElementsByTagName("languages")[0];if(L!=null){var M=L.getElementsByTagName("language");for(var K=0;K<M.length;K++){E.push(new A(M[K]));}}H(E);};var G={success:C,failure:D,scope:B};YAHOO.util.Connect.asyncRequest("GET",F.url+F.params,G,null);};};perfUI.widgets.splitButton=function(B){var E=YAHOO.util.Dom;var F=perfUI.util.addEl;var C;var A=new perfUI.widgets.menu(B);var D="";this.containerCss="yui-skin-sam";this.getMenu=function(){return A;};this.getType=function(){return D;};this.destroy=function(){C=null;A=null;};this.setType=function(H,G){D=H;switch(H){case"delete":C=F(B,"DIV",{"class":"deleteImg"});break;case"link":C=F(B,"a",{"innerHTML":G,"class":"splitButtonLink"});break;case"dropDownList":C=F(B,"div",{"class":"pullDown left"});break;default:C=B;break;}};this.setEl=function(G){C=G;};this.addMenuItem=function(G){A.addItems([G]);};this.addMenuItems=function(G){A.addItems(G);};this.toggleMenu=function(G){YAHOO.util.Event.purgeElement(C,false,"click");if(A.menuClosed){A.show(G);}else{A.closeMenu(G);}YAHOO.util.Event.addListener(C,"click",this.toggleMenu,this,true);};this.render=function(){if(!E.hasClass(B,this.containerCss)){}E.addClass(B,this.containerCss);A.render(B);switch(D){case"dropDownList":YAHOO.util.Event.addListener(C,"click",this.toggleMenu,this,true);break;default:YAHOO.util.Event.addListener(C,"click",A.show,A,true);break;}};};perfUI.widgets.showHideContainer=function(I,A,C,K){var L=this;this.autoEvents=K==undefined?true:K;this.isCollapsed=C==undefined?false:C;this.onExpandClick=new YAHOO.util.CustomEvent("onExpandClick",this);this.onCollapseClick=new YAHOO.util.CustomEvent("onCollapseClick",this);this.onExpand=new YAHOO.util.CustomEvent("onExpand",this);this.onCollapse=new YAHOO.util.CustomEvent("onCollapse",this);var E="showHideIcon";var H=I.className+" "+E+" "+E+"Collapse";var D=I.className+" "+E+" "+E+"Expand";var B="Hover";var G=I.className+" showHideIconLoading";this.setLoadingIconCss=function(){I.className=G;};this.doCollapse=function(){A.style.display="none";this.isCollapsed=true;I.className=D;I.title="Click to Expand";this.onCollapse.fire();};this.doExpand=function(M){A.style.display="block";this.isCollapsed=false;I.className=H;I.title="Click to Collapse";this.onExpand.fire();};this.toggle=function(){if(I.className.indexOf(H.trim())>=0){this.onCollapseClick.fire();if(this.autoEvents){this.doCollapse();}}else{this.onExpandClick.fire();if(this.autoEvents){this.doExpand();}}};var J=function(){I.className+=B;};var F=function(){I.className=I.className.replace(B,"");};I.className=E;if(this.isCollapsed){this.doCollapse();}else{this.doExpand();}YAHOO.util.Event.addListener(I,"click",this.toggle,this,true);YAHOO.util.Event.addListener(I,"mouseover",J,this,true);YAHOO.util.Event.addListener(I,"mouseout",F,this,true);};perfUI.widgets.ToolTip=function(B,A){if(typeof(tipobj)=="undefined"){tipobj=document.createElement("DIV");tipobj.id="dhtmltooltip";}if(typeof(pointerobj)=="undefined"){pointerobj=document.createElement("DIV");pointerobj.id="dhtmlpointer";pointerobj.appendChild(document.createElement("DIV"));}this.tipobj=tipobj;tipobj.style.width="auto";B.txt=A;B.onmouseover=perfUI.widgets.ToolTip.mouseover;this.setBackgroundColor=function(C){pointerobj.firstChild.style.borderTopColor=C;pointerobj.firstChild.style.borderBottomColor=C;tipobj.style.backgroundColor=C;};this.setBackgroundColor("lightyellow");};perfUI.widgets.ToolTip.mouseout=function(){this.onmousemove=null;this.onmouseout=null;tipobj.parentNode.removeChild(tipobj);pointerobj.parentNode.removeChild(pointerobj);};perfUI.widgets.ToolTip.mouseover=function(){if(document.all&&document.readyState!="complete"){return;}tipobj.style.visibility="hidden";tipobj.style.top="0px";tipobj.style.left="0px";document.body.appendChild(tipobj);if(typeof this.txt=="object"){while(tipobj.childNodes.length){tipobj.removeChild(tipobj.firstChild);}tipobj.appendChild(this.txt);}else{tipobj.innerHTML=this.txt;}document.body.appendChild(pointerobj);this.onmousemove=perfUI.widgets.ToolTip.mousemove;this.onmouseout=perfUI.widgets.ToolTip.mouseout;};perfUI.widgets.ToolTip.mousemove=function(G){var G=YAHOO.util.Event.getEvent(G);var C=YAHOO.util.Event.getPageX(G);var A=YAHOO.util.Event.getPageY(G);var D=12;var B=10;var K=10;var J=14;var F=YAHOO.util.Dom.getViewportWidth()-G.clientX-D;var E=YAHOO.util.Dom.getViewportHeight()-G.clientY-B;var I=F>=tipobj.offsetWidth;var H=E>=tipobj.offsetHeight;tipobj.style.left=C+(!I?0-tipobj.offsetWidth:D-K)+"px";tipobj.style.top=A+(!H?0-tipobj.offsetHeight-B:B+J)+"px";tipobj.style.visibility="visible";pointerobj.style.top=A+B+(H?0:-21)+"px";pointerobj.style.left=C+(I?D:0-D-15)+"px";pointerobj.className="pointerobj"+(H?"Up":"Bottom")+(I?"Right":"Left");};perfUI.widgets.activityIndicator=function(B){B=B||document.body;var A=null;var C=function(){A=new YAHOO.widget.Panel("pageActivityIndicator",{width:"200px",fixedcenter:false,close:false,draggable:false,zindex:4,modal:true,visible:false});A.setBody('<div class="activityLoadingDialog"><p>loading, please wait...</p></div>');A.render(B);};C();this.show=function(){A.show();};this.hide=function(){A.hide();};this.center=function(){A.center();};};perfUI.widgets.reportAbuse=function(B){var F=this;var G=perfUI.util.addEl;var E=YAHOO.util.Dom;var A=[{"value":"1","text":perfTranslator.getValue(1191),"control":null},{"value":"2","text":perfTranslator.getValue(1192),"control":null},{"value":"3","text":perfTranslator.getValue(1193),"control":null},{"value":"4","text":perfTranslator.getValue(1194),"control":null},{"value":"5","text":perfTranslator.getValue(1195),"control":null},{"value":"6","text":perfTranslator.getValue(1196),"control":null},{"value":"7","text":perfTranslator.getValue(1197),"control":null},{"value":"8","text":perfTranslator.getValue(413),"control":null}];var C=A;var D="";this.onRender=new YAHOO.util.CustomEvent("onRender",this);this.getContainer=function(){return B;};this.getSelectedValue=function(){return D;};this.clearSelectedValue=function(){var J=this.getOptions();for(var I=0;I<J.length;I++){var H=J[I].control;if(H){H.checked=false;}}this.setSelectedValue("");};this.setSelectedValue=function(H){D=H;};this.setOptions=function(H){C=H;};this.getOptions=function(){return C;};this.isHidden=function(){if(B.style.display=="none"){return true;}else{return false;}};this.toggle=function(){if(this.isHidden()){this.show();}else{this.hide();}};this.hide=function(){B.style.display="none";};this.show=function(){B.style.display="block";};this.render=function(){var M=G(B,"div",{"class":"optionlist"});var K=this.getOptions();for(var J=0;J<K.length;J++){var L=G(M,"div",{"class":"radio"});var I=G(L,"radio",{"value":K[J].value,"name":"reason"});var H=function(O,N){N.checked=true;F.setSelectedValue(N.value);};G(L,"label",{"innerHTML":K[J].text});YAHOO.util.Event.addListener(L,"click",H,I);K[J].control=I;}this.onRender.fire();};this.renderButtons=function(){var I=G(B,"center",{"class":"buttonbox clear"});var H=G(I,"span",{"class":"submit"});this.buttonSubmit=new YAHOO.widget.Button({label:perfTranslator.getValue(320),container:H});var J=G(I,"span",{"class":"cancel"});this.buttonCancel=new YAHOO.widget.Button({label:perfTranslator.getValue(701),onclick:{fn:this.hide,obj:null,scope:this},container:J});};};perfUI.widgets.reportAbuse.prototype.send=function(B,G,F,A){F=F||this.getSelectedValue();var D="/report.asp?s="+G+"&b="+B+"&r="+F;if(A){D+="&e="+A;}try{var C=getHttpRequestObj();C.open("GET",D,true);C.send(null);}catch(E){alert("Unable to Report Abuse at this time");}};perfUI.widgets.reportAbuseMenu=function(container){var addEl=perfUI.util.addEl;var Dom=YAHOO.util.Dom;var Event=YAHOO.util.Event;perfUI.widgets.reportAbuseMenu.superclass.constructor.call(this,container);var container=this.getContainer();Dom.addClass(container,"report_abuse");addEl(container,"strong",{"class":"txtdblue","innerHTML":perfTranslator.getValue(1189)});this.orientation=this.hide=function(){container.style.display="none";Event.removeListener(window,"resize",this.hide,this,true);};this.show=function(e,context){context=context||"tl";var xy=YAHOO.util.Event.getXY(e);var x=xy[0];var y=xy[1];with(container.style){position="absolute";zIndex="2";top=y+"px";left=x+"px";display="block";}var reg=YAHOO.util.Region.getRegion(container);var w=reg.right-reg.left;var view=Dom.getViewportWidth();if(x+w>view||context=="tr"){container.style.left=(x-w)+"px";}Event.addListener(window,"resize",this.hide,this,true);};};YAHOO.extend(perfUI.widgets.reportAbuseMenu,perfUI.widgets.reportAbuse);perfUI.widgets.reportAbuseMenu.prototype.send=function(B,A){if(this.buttonSubmit&&this.buttonSubmit.set){this.buttonSubmit.set("disabled",true);}perfUI.widgets.reportAbuseMenu.superclass.send.call(this,A.userId,A.section,null,A.optional);this.buttonSubmit.set("disabled",false);this.hide();};var _=perfUI.util.addEl;function loadFriends(B,A){theqs=typeof theqs=="undefined"?(A||""):(A||theqs);pageNum=B;if(typeof pullFriends!="undefined"&&YAHOO.util.Connect.isCallInProgress(pullFriends)){YAHOO.util.Connect.abort(pullFriends);}removeFriends();_(document.getElementById("friend_table").rows[0].cells[0].firstChild.insertRow(1),"TD",{"style":"height:300px;padding:5px","colSpan":3,"vAlign":"middle","align":"center"}).c("IMG",{"src":"/images/v2/indicator_pinwheel_blue.gif"})._("SPAN",{"style":"vertical-align:90%;font-size:10pt;font-weight:bold","text":perfTranslator.getValue(1864)+"..."});var C={success:function(D){if(D.responseXML.getElementsByTagName("error").length){alert(PERF.parseNode(D.responseXML,"error"));return;}var E=D.responseXML.getElementsByTagName("user");pager.ParseXmlProperties(D.responseXML);pager.copy.ParseXmlProperties(D.responseXML);pager.copy.Render(null,null,true);pager.Render(null,null,true);removeFriends();_(document.getElementById("friend_table").rows[0].cells[0].firstChild.insertRow(1),"TD",{"colSpan":2,"align":"center","style":"background-color:#F2F5FA"}).c("TABLE",{"cellSpacing":8}).c("TR");for(var F=0;F<E.length;F++){addGFriend(PERF.parseNode(E[F],"displayName"),PERF.parseNode(E[F],"thumbnailUrl"),PERF.parseNode(E[F],"pictureUrl"),PERF.parseNodeBool(E[F],"online"),PERF.parseNode(E[F],"userCode"),PERF.parseNodeNumeric(E[F],"userId"),PERF.parseNode(E[F],"location3"),PERF.parseNode(E[F],"genderId"),PERF.parseNodeNumeric(E[F],"age"),PERF.parseNodeNumeric(E[F],"maritalStatus"));}var G=document.getElementById("spock_in_a_box");var H=document.getElementById("friend_table").rows[0].cells[0].firstChild;if(E.length==0){if(theqs.indexOf("&q=")>-1){H.style.display="none";H.parentNode.style.backgroundColor="#FFFFFF";if(!G){_(H.parentNode,"DIV",{"id":"spock_in_a_box"});}else{G.style.display="block";}SPOCK.make_new_query(unescape(theqs.substr(3)));}else{if(G){G.style.display="none";}H.style.display="";H.parentNode.style.backgroundColor="#FAFAFA";_(H.insertRow(1),"TD",{"style":"height:300px;vertical-align:middle;font-size:12pt;font-weight:bold;padding:5px","colSpan":3,"align":"center"}).c("DIV",{"text":perfTranslator.getValue(766)})._("A",{"href":"/invite/invite.asp","text":perfTranslator.getValue(1873)});document.getElementById("total_count_row").cells[0].innerHTML="&nbsp;";}}else{if(G){G.style.display="none";}H.style.display="";H.parentNode.style.backgroundColor="#FAFAFA";document.getElementById("total_count_row").cells[0].innerHTML=perfTranslator.parseValue(perfTranslator.getValue(765),[((pageNum-1)*30+1),(PERF.parseNodeNumeric(D.responseXML,"recordsReturned")-1+(pageNum-1)*30+1),(PERF.parseNodeNumeric(D.responseXML,"totalRecords")<500?PERF.parseNodeNumeric(D.responseXML,"totalRecords"):PERF.parseNodeNumeric(D.responseXML,"totalRecords")+"+")]);}}};pullFriends=YAHOO.util.Connect.asyncRequest("GET","/api/callna.asp?Function=user"+(theqs.indexOf("&q=")>-1?"search":"browse")+"&page="+B+"&numrecords=30"+theqs+"&z="+(new Date()).getTime(),C,null);}function removeFriends(){var A=document.getElementById("friend_table").rows[0].cells[0].firstChild;while(A.rows.length>2){A.deleteRow(1);}A=null;}function loadPage(J,U,O,Y,G){var P=document.getElementById("friend_table");P.style.emptyCells="show";if(!document.all){document.body.style.overflow="-moz-scrollbars-vertical";}_(P,"TR").c("TD",{"style":"background-color:#FAFAFA","vAlign":"top"}).c("TABLE",{"style":"width:630px","cellPadding":0,"cellSpacing":0}).c("TR",{"id":"total_count_row"}).c("TD");_(P.rows[0],"TD",{"style":"background-color:RGB(212,225,234);border-left:1px solid RGB(204,204,204)","vAlign":"top"});_(P.rows[0].cells[0].firstChild.rows[0],"TD");_(P.rows[0].cells[0].firstChild,"TR",{"style":"background-color:#FAFAFA"}).c("TD",{"text":" "})._("TD");pager=new MediaPagerControl();pager.Step=5;pager.Container=P.rows[0].cells[0].firstChild.rows[0].cells[1];pager.onPageLoad.subscribe(function(){loadFriends(pager.CurrentPage,theqs);},this,true);pager.copy=new MediaPagerControl();pager.copy.Step=5;pager.copy.Container=P.rows[0].cells[0].firstChild.rows[1].cells[1];pager.copy.onPageLoad.subscribe(function(){loadFriends(pager.copy.CurrentPage,theqs);},this,true);var P=_(P.rows[0].cells[1],"TABLE",{"style":"width:160px;background-color:RGB(242,245,250)","cellPadding":0,"cellSpacing":0});_(P,"TR").c("td",{"style":"background-color:RGB(250,250,250);font-weight:bold;padding:5px;color:RGB(227,91,3);border-bottom:1px solid RGB(231,235,238)","text":perfTranslator.getValue(1874)});var d=_(P,"TR").c("td",{"style":"padding:5px","innerHTML":"<b>"+perfTranslator.getValue(216)+":</b><br/><input style='width:97%;font-family:tahoma;font-size:8pt' type='text' value='"+G+"'/>"}).lastChild;_(P,"TR").c("td",{"align":"center","style":"padding-bottom:10px;border-bottom:1px solid #CCC","innerHTML":"<input class='fbut' type='button' value='"+perfTranslator.getValue(242)+"'/>"}).onclick=N;d.onkeydown=function(f){if((f||event).keyCode==13){N();}};function N(){if(d.value.length<2){d.value="";F();}else{loadFriends(1,"&q="+escape(d.value));}}_(P,"TR").c("td",{"style":"background-color:RGB(212,225,234);height:5px"});_(P,"TR").c("td",{"style":"background-color:RGB(212,225,234);height:5px"});_(P,"TR").c("td",{"style":"background-color:RGB(250,250,250);font-weight:bold;padding:5px;color:RGB(227,91,3);border-bottom:1px solid RGB(231,235,238)","text":perfTranslator.getValue(1875)});var V=_(P,"TR").c("td",{"style":"padding:5px;padding-bottom:6px;border-bottom:1px solid RGB(210,224,233)"}).c("div",{"style":"padding-bottom:6px;font-weight:bold","text":perfTranslator.getValue(903)+":"})._("select",{"style":"width:100%;font-family:Tahoma;font-size:8pt","id":"countrySel","onchange":K}).c("option",{"value":"","text":perfTranslator.getValue(186)}).parentNode;var A=_(P,"TR").c("td",{"style":"display:none;padding:5px;padding-bottom:6px;border-bottom:1px solid RGB(210,224,233)"}).c("div",{"style":"padding-bottom:6px;font-weight:bold","text":perfTranslator.getValue(1878)+":"})._("select",{"style":"width:100%;font-family:Tahoma;font-size:8pt","onchange":W});A.row=A.parentNode;var E=_(P,"TR").c("td",{"style":"display:none;padding:5px;padding-bottom:6px;border-bottom:1px solid RGB(210,224,233)"}).c("div",{"style":"padding-bottom:6px;font-weight:bold","text":perfTranslator.getValue(1876)+":"})._("select",{"style":"width:100%;font-family:Tahoma;font-size:8pt","onchange":T});E.row=E.parentNode;_(P,"TR").c("td",{"style":"border-top:1px solid white","innerHTML":"<div style='font-weight:bold;padding:5px'>"+perfTranslator.getValue(121)+"</div>"});_(P,"TR").c("td",{"style":"border-bottom:1px solid RGB(210,224,233);padding-bottom:5px;padding-left:5px"}).c("checkbox",{"style":"vertical-align:-30%","id":"chk0"})._("label",{"for":"chk0","style":"width:30px","text":perfTranslator.getValue(149)+" "})._("checkbox",{"style":"vertical-align:-30%","id":"chk1"})._("label",{"for":"chk1","text":perfTranslator.getValue(150)});_(P,"TR").c("td",{"style":"padding:5px;border-bottom:1px solid RGB(210,224,233);border-top:1px solid #FFF"}).c("B",{"text":perfTranslator.getValue(769)+" "})._("BR");var S=new Slider(P.rows[P.rows.length-1].cells[0],{"range":[J,99]});S.ondrg=function(){Q=true;};S.onenddrg=function(){Q=false;};_(P,"tr").c("td",{"style":"padding:5px;padding-bottom:0px;border-top:1px solid white;font-weight:bold","text":perfTranslator.getValue(336)+":"});_(P,"tr").c("td",{"style":"padding:5px;border-bottom:1px solid RGB(210,224,233)"}).c("checkbox",{"style":"vertical-align:-30%","id":"lop1"})._("label",{"for":"lop1","text":perfTranslator.getValue(390)})._("br")._("checkbox",{"style":"vertical-align:-30%","id":"lop2"})._("label",{"for":"lop2","text":perfTranslator.getValue(389)})._("br")._("checkbox",{"style":"vertical-align:-30%","id":"lop3"})._("label",{"for":"lop3","text":perfTranslator.getValue(388)})._("br")._("checkbox",{"style":"vertical-align:-30%","id":"lop4"})._("label",{"for":"lop4","text":perfTranslator.getValue(391)})._("br")._("checkbox",{"style":"vertical-align:-30%","id":"lop5"})._("label",{"for":"lop5","text":perfTranslator.getValue(392)});_(P,"tr").c("td",{"style":"padding:5px;padding-bottom:0px;border-top:1px solid white;font-weight:bold","text":perfTranslator.getValue(1880)+":"});var X=_(P,"tr").c("td",{"style":"padding:5px;border-bottom:1px solid RGB(210,224,233)","innerHTML":"<input type='checkbox'><span style='vertical-align:20%'>"+perfTranslator.getValue(1881)+"</span>"}).firstChild;document.getElementById("chk0").onclick=F;document.getElementById("chk1").onclick=F;document.getElementById("lop1").onclick=F;document.getElementById("lop2").onclick=F;document.getElementById("lop3").onclick=F;document.getElementById("lop4").onclick=F;document.getElementById("lop5").onclick=F;X.onclick=F;YAHOO.util.Event.addListener(V,"change",F);YAHOO.util.Event.addListener(A,"change",F);YAHOO.util.Event.addListener(E,"change",F);S.oncng=F;var R=PERF.getCookie("afvs");var D;if(R){R=R.split(",");D=R[0];if(R[1]=="1"){document.getElementById("chk0").setAttribute("checked","true");}if(R[2]=="1"){document.getElementById("chk1").setAttribute("checked","true");}if(R[3]=="1"){document.getElementById("lop1").setAttribute("checked","true");}if(R[4]=="1"){document.getElementById("lop2").setAttribute("checked","true");}if(R[5]=="1"){document.getElementById("lop3").setAttribute("checked","true");}if(R[6]=="1"){document.getElementById("lop4").setAttribute("checked","true");}if(R[7]=="1"){document.getElementById("lop5").setAttribute("checked","true");}if(R[8]=="1"){X.setAttribute("checked","true");}S.setBounds(parseInt(R[9]),parseInt(R[10]));A.pID=R[11]||null;E.rID=R[12]||null;}else{D=0;if(typeof U!="undefined"&&U>0){D=U;}E.rID=null;if(typeof Y!="undefined"&&Y>0){E.rID=Y;}A.pID=null;if(typeof O!="undefined"&&O>0){A.pID=O;}document.getElementById("chk0").setAttribute("checked","true");document.getElementById("chk1").setAttribute("checked","true");document.getElementById("lop1").setAttribute("checked","true");document.getElementById("lop2").setAttribute("checked","true");document.getElementById("lop3").setAttribute("checked","true");document.getElementById("lop4").setAttribute("checked","true");document.getElementById("lop5").setAttribute("checked","true");X.setAttribute("checked","true");}var C=0;var L=800;var M=0;var Q=false;function F(){if(C<3){C+=1;}if(!M){M=1;setTimeout(I,L+(C*200));}}function I(){M=1;if(!Q){C-=1;}if(C==0&&!Q){c();}else{setTimeout(I,L+(C*200));}}function c(){M=0;d.value="";var f="";var e="";e=V.cID+",";e+=(document.getElementById("chk0").checked?1:0)+",";e+=(document.getElementById("chk1").checked?1:0)+",";e+=(document.getElementById("lop1").checked?1:0)+",";e+=(document.getElementById("lop2").checked?1:0)+",";e+=(document.getElementById("lop3").checked?1:0)+",";e+=(document.getElementById("lop4").checked?1:0)+",";e+=(document.getElementById("lop5").checked?1:0)+",";e+=(X.checked?1:0)+",";e+=S.getLowerBound()+","+S.getUpperBound()+",";e+=A.value+","+E.value;PERF.setCookie("afvs",e,365);f+="&p="+(X.checked?1:0);if(V.options.length){f+="&c="+V.cID;}if(E.selectedIndex==0){f+="&s="+A.value;}else{if(E.rID!=null){f+="&n="+E.rID;}}f+="&a1="+S.getLowerBound();f+="&a2="+S.getUpperBound();var g="";if(document.getElementById("lop1").checked){g+=(g?",":"")+3;}if(document.getElementById("lop2").checked){g+=(g?",":"")+2;}if(document.getElementById("lop3").checked){g+=(g?",":"")+1;}if(document.getElementById("lop4").checked){g+=(g?",":"")+4;}if(document.getElementById("lop5").checked){g+=(g?",":"")+5;}if(g){f+="&m="+escape(g);}if(!document.getElementById("chk0").checked||!document.getElementById("chk1").checked){f+="&t="+(document.getElementById("chk0").checked?"1":"2");}loadFriends(1,f);}function b(){var h=YAHOO.util.Connect.createXhrObject(1);h.conn.open("GET","/api/callna.asp?Function=GetCountries&rid="+(new Date()).getTime(),false);h.conn.send(null);var e=h.conn.responseXML.getElementsByTagName("country");var g;for(var f=0;f<e.length;f++){B(V,PERF.parseNode(e[f],"name"),PERF.parseNode(e[f],"id"));g=V.options[V.options.length-1];if(PERF.parseNodeNumeric(e[f],"id")==D){g.selected=true;}g.hasProvinces=PERF.parseNodeBool(e[f],"hasProvinces")?true:false;}Z();}function K(){this.cID=this.value;a(E);a(A);E.rID=null;A.row.style.display="none";E.row.style.display="none";Z();}function a(e){while(e.childNodes.length){e.removeChild(e.firstChild);}}function B(g,f,e){g.options[g.options.length]=new Option(f,e);}function Z(){a(A);if(V.selectedIndex==0){return;}if(!V.options[V.selectedIndex].hasProvinces){H();return;}var g=YAHOO.util.Connect.createXhrObject(1);g.conn.open("GET","/api/callna.asp?function=getprovinces&c="+V.value+"&rid="+(new Date()).getTime(),false);g.conn.send(null);var e=g.conn.responseXML.getElementsByTagName("province");B(A,(V.value==1?perfTranslator.getValue(1877):perfTranslator.getValue(1879)));A.row.firstChild.innerHTML=(V.value==1?perfTranslator.getValue(208):perfTranslator.getValue(1878)+":");if(A.pID!=null){A.row.style.display="";}for(var f=0;f<e.length;f++){B(A,PERF.parseNode(e[f],"name"),PERF.parseNodeNumeric(e[f],"id"));if(A.pID==PERF.parseNodeNumeric(e[f],"id")){A.options[f+1].selected=true;}}if(e.length){A.row.style.display="";}E.row.style.display="none";if(A.pID!=null){A.pID=null;H();}}function W(){E.rID=null;if(this.selectedIndex==0){E.row.style.display="none";}else{H();}}function H(){a(E);var f=YAHOO.util.Connect.createXhrObject(1);f.conn.open("GET","/api/callna.asp?function=getregions&c="+V.value+"&p="+(A.value||0)+"&rid="+(new Date()).getTime(),false);f.conn.send(null);var g=f.conn.responseXML.getElementsByTagName("network");B(E,perfTranslator.getValue(1871));for(var e=0;e<g.length;e++){B(E,PERF.parseNode(g[e],"name"),PERF.parseNodeNumeric(g[e],"networkId"));if(E.rID==PERF.parseNodeNumeric(g[e],"networkId")){E.selectedIndex=e+1;}}E.row.style.display="";}function T(){this.rID=this.value;}theqs="&m="+escape("1,2,3,4,5")+"&p=1&a1=18&a2=99";V.cID=D;b();N();}function getCountryById(C){var A=document.getElementById("countrySel").options;for(var B=0;B<A.length;B++){if(A[B].value==C){return A[B].text;}}return"";}function addGFriend(D,K,N,G,B,L,O,A,H,M){var E=document.getElementById("friend_table").rows[0].cells[0].firstChild.rows[1].cells[0].firstChild,I,C;if(E.rows[E.rows.length-1].cells.length>4){I=E.insertRow(E.rows.length);}else{I=E.rows[E.rows.length-1];}I.style.cursor="default";var F=_(I,"TD",{"style":"bpadding:0px","vAlign":"top"}).c("TABLE",{"cellPadding":3,"cellSpacing":0,"class":"search_results_item"});_(F,"TR").c("TD",{"vAlign":"top","noWrap":true,"style":"height:12px;width:100px;text-align:center"}).c("A",{"class":"link","text":D,"style":"width:100px;font-weight:bold","target":"blank","href":"/profile.asp?uid="+B});_(F,"TR",{"style":"height:100%"}).c("TD",{"vAlign":"top","align":"center","style":"height:100%;padding-left:6px;padding-right:6px;padding-bottom:5px"}).c("A",{"class":"link","style":"font-weight:bold","target":"blank","href":"/profile.asp?uid="+B});var R=_(F,"TR",{"vAlign":"bottom"});var Q=R.c("TD",{"align":"center"});var P=Q.c("A",{"class":"left","title":perfTranslator.getValue(569),"href":"javascript:void(0);","innerHTML":"<img border=0 style='vertical-align:-15%' src='/images/i/add2.gif'> "+perfTranslator.getValue(569),"style":"margin-bottom:3px;margin-right:7px;margin-left:3px;"});YAHOO.util.Event.addListener(P,"mousedown",function(U){var T=YAHOO.util.Event.getTarget(U);var S=new perfUI.widgets.requestFriend(L,"");S.onSuccessEvent.subscribe(function(){T.style.visibility="hidden";},this,true);S.render();S.show();},this,true);if(G){_(F.rows[2].cells[0],"IMG",{"class":"right","style":"margin-top:3px;margin-right:2px","src":"/images/v2/online.gif"});}var J=new Image();J.p=F.rows[1].cells[0].firstChild;J.r=I;J.dat={"iml":N,"age":H,"mar":M,"gen":[perfTranslator.getValue(150),perfTranslator.getValue(149),perfTranslator.getValue(881),perfTranslator.getValue(1659),perfTranslator.getValue(1660)][A],"per":getCountryById(O)};J.border=0;F.rows[1].cells[0].firstChild.appendChild(J);J.onload=Gtempload;J.src=K;F=null;E=null;C=null;}function Gtempload(){var B=0;var G=YAHOO.env.ua.ie>0?10:0;for(var F=0;F<this.r.cells.length;F++){var D=this.r.cells[F].firstChild.rows[1].cells[0];if((D.offsetHeight-G)>B){B=(D.offsetHeight-G);}}for(var F=0;F<this.r.cells.length;F++){var H=this.r.cells[F].firstChild.rows[1].cells[0];if(B>(H.offsetHeight-5)){H.style.height=B+"px";}}var E=document.createElement("DIV");_(E,"IMG",{"src":this.dat.iml});var A=_(E,"TABLE",{"cellSpacing":0});if(this.dat.age>0){_(A,"TR").c("TD",{"align":"right","style":"font-weight:bold;margin-top:1px","text":perfTranslator.getValue(1830)+":"})._("TD",{"align":"left","text":this.dat.age});}_(A,"TR").c("TD",{"style":"font-weight:bold","align":"right","text":perfTranslator.getValue(121)})._("TD",{"align":"left","text":this.dat.gen});_(A,"TR").c("TD",{"style":"font-weight:bold","align":"right","text":perfTranslator.getValue(738)+":"})._("TD",{"align":"left","text":this.dat.per});if(this.dat.mar>0){_(A,"TR").c("TD",{"style":"font-weight:bold","align":"right","text":perfTranslator.getValue(218)+":"})._("TD",{"align":"left","text":[perfTranslator.getValue(388),perfTranslator.getValue(389),perfTranslator.getValue(390),perfTranslator.getValue(391),perfTranslator.getValue(392)][this.dat.mar-1]});}var C=new perfUI.widgets.ToolTip(this,E);C.tipobj.style.width="auto";C.tipobj.style.backgroundColor="#FFF";E=null;A=null;this.p=null;this.r=null;this.dat=null;r=null;}if(!YAHOO.util.DragDropMgr){YAHOO.util.DragDropMgr=function(){var B=YAHOO.util.Event;return{ids:{},handleIds:{},dragCurrent:null,dragOvers:{},deltaX:0,deltaY:0,preventDefault:true,stopPropagation:true,initialized:false,locked:false,interactionInfo:null,init:function(){this.initialized=true;},POINT:0,INTERSECT:1,STRICT_INTERSECT:2,mode:0,_execOnAll:function(H,I){for(var G in this.ids){for(var J in this.ids[G]){var A=this.ids[G][J];if(!this.isTypeOfDD(A)){continue;}A[H].apply(A,I);}}},_onLoad:function(){this.init();B.on(document,"mouseup",this.handleMouseUp,this,true);B.on(document,"mousemove",this.handleMouseMove,this,true);B.on(window,"unload",this._onUnload,this,true);B.on(window,"resize",this._onResize,this,true);},_onResize:function(A){this._execOnAll("resetConstraints",[]);},lock:function(){this.locked=true;},unlock:function(){this.locked=false;},isLocked:function(){return this.locked;},locationCache:{},useCache:true,clickPixelThresh:3,clickTimeThresh:1000,dragThreshMet:false,clickTimeout:null,startX:0,startY:0,fromTimeout:false,regDragDrop:function(A,D){if(!this.initialized){this.init();}if(!this.ids[D]){this.ids[D]={};}this.ids[D][A.id]=A;},removeDDFromGroup:function(A,F){if(!this.ids[F]){this.ids[F]={};}var E=this.ids[F];if(E&&E[A.id]){delete E[A.id];}},_remove:function(A){for(var D in A.groups){if(D&&this.ids[D][A.id]){delete this.ids[D][A.id];}}delete this.handleIds[A.id];},regHandle:function(A,D){if(!this.handleIds[A]){this.handleIds[A]={};}this.handleIds[A][D]=D;},isDragDrop:function(A){return(this.getDDById(A))?true:false;},getRelated:function(A,K){var H=[];for(var I in A.groups){for(var J in this.ids[I]){var L=this.ids[I][J];if(!this.isTypeOfDD(L)){continue;}if(!K||L.isTarget){H[H.length]=L;}}}return H;},isLegalTarget:function(A,G){var I=this.getRelated(A,true);for(var H=0,J=I.length;H<J;++H){if(I[H].id==G.id){return true;}}return false;},isTypeOfDD:function(A){return(A&&A.__ygDragDrop);},isHandle:function(A,D){return(this.handleIds[A]&&this.handleIds[A][D]);},getDDById:function(A){for(var D in this.ids){if(this.ids[D][A]){return this.ids[D][A];}}return null;},handleMouseDown:function(A,E){this.currentTarget=YAHOO.util.Event.getTarget(A);this.dragCurrent=E;var F=E.getEl();this.startX=YAHOO.util.Event.getPageX(A);this.startY=YAHOO.util.Event.getPageY(A);this.deltaX=this.startX-F.offsetLeft;this.deltaY=this.startY-F.offsetTop;this.dragThreshMet=false;this.clickTimeout=setTimeout(function(){var C=YAHOO.util.DDM;C.startDrag(C.startX,C.startY);C.fromTimeout=true;},this.clickTimeThresh);},startDrag:function(F,A){clearTimeout(this.clickTimeout);var E=this.dragCurrent;if(E&&E.events.b4StartDrag){E.b4StartDrag(F,A);E.fireEvent("b4StartDragEvent",{x:F,y:A});}if(E&&E.events.startDrag){E.startDrag(F,A);E.fireEvent("startDragEvent",{x:F,y:A});}this.dragThreshMet=true;},handleMouseUp:function(A){if(this.dragCurrent){clearTimeout(this.clickTimeout);if(this.dragThreshMet){if(this.fromTimeout){this.fromTimeout=false;this.handleMouseMove(A);}this.fromTimeout=false;this.fireEvents(A,true);}else{}this.stopDrag(A);this.stopEvent(A);}},stopEvent:function(A){if(this.stopPropagation){YAHOO.util.Event.stopPropagation(A);}if(this.preventDefault){YAHOO.util.Event.preventDefault(A);}},stopDrag:function(A,E){var F=this.dragCurrent;if(F&&!E){if(this.dragThreshMet){if(F.events.b4EndDrag){F.b4EndDrag(A);F.fireEvent("b4EndDragEvent",{e:A});}if(F.events.endDrag){F.endDrag(A);F.fireEvent("endDragEvent",{e:A});}}if(F.events.mouseUp){F.onMouseUp(A);F.fireEvent("mouseUpEvent",{e:A});}}this.dragCurrent=null;this.dragOvers={};},handleMouseMove:function(A){var H=this.dragCurrent;if(H){if(YAHOO.util.Event.isIE&&!A.button){this.stopEvent(A);return this.handleMouseUp(A);}else{if(A.clientX<0||A.clientY<0){}}if(!this.dragThreshMet){var F=Math.abs(this.startX-YAHOO.util.Event.getPageX(A));var G=Math.abs(this.startY-YAHOO.util.Event.getPageY(A));if(F>this.clickPixelThresh||G>this.clickPixelThresh){this.startDrag(this.startX,this.startY);}}if(this.dragThreshMet){if(H&&H.events.b4Drag){H.b4Drag(A);H.fireEvent("b4DragEvent",{e:A});}if(H&&H.events.drag){H.onDrag(A);H.fireEvent("dragEvent",{e:A});}if(H){this.fireEvents(A,false);}}this.stopEvent(A);}},fireEvents:function(g,q){var A=this.dragCurrent;if(!A||A.isLocked()||A.dragOnly){return;}var o=YAHOO.util.Event.getPageX(g),p=YAHOO.util.Event.getPageY(g),m=new YAHOO.util.Point(o,p),r=A.getTargetCoord(m.x,m.y),w=A.getDragEl(),x=["out","over","drop","enter"],h=new YAHOO.util.Region(r.y,r.x+w.offsetWidth,r.y+w.offsetHeight,r.x),t=[],y={},l=[],AB={outEvts:[],overEvts:[],dropEvts:[],enterEvts:[]};for(var j in this.dragOvers){var AA=this.dragOvers[j];if(!this.isTypeOfDD(AA)){continue;}if(!this.isOverTarget(m,AA,this.mode,h)){AB.outEvts.push(AA);}t[j]=true;delete this.dragOvers[j];}for(var k in A.groups){if("string"!=typeof k){continue;}for(j in this.ids[k]){var v=this.ids[k][j];if(!this.isTypeOfDD(v)){continue;}if(v.isTarget&&!v.isLocked()&&v!=A){if(this.isOverTarget(m,v,this.mode,h)){y[k]=true;if(q){AB.dropEvts.push(v);}else{if(!t[v.id]){AB.enterEvts.push(v);}else{AB.overEvts.push(v);}this.dragOvers[v.id]=v;}}}}}this.interactionInfo={out:AB.outEvts,enter:AB.enterEvts,over:AB.overEvts,drop:AB.dropEvts,point:m,draggedRegion:h,sourceRegion:this.locationCache[A.id],validDrop:q};for(var z in y){l.push(z);}if(q&&!AB.dropEvts.length){this.interactionInfo.validDrop=false;if(A.events.invalidDrop){A.onInvalidDrop(g);A.fireEvent("invalidDropEvent",{e:g});}}for(j=0;j<x.length;j++){var d=null;if(AB[x[j]+"Evts"]){d=AB[x[j]+"Evts"];}if(d&&d.length){var u=x[j].charAt(0).toUpperCase()+x[j].substr(1),e="onDrag"+u,s="b4Drag"+u,n="drag"+u+"Event",f="drag"+u;if(this.mode){if(A.events[s]){A[s](g,d,l);A.fireEvent(s+"Event",{event:g,info:d,group:l});}if(A.events[f]){A[e](g,d,l);A.fireEvent(n,{event:g,info:d,group:l});}}else{for(var b=0,i=d.length;b<i;++b){if(A.events[s]){A[s](g,d[b].id,l[0]);A.fireEvent(s+"Event",{event:g,info:d[b].id,group:l[0]});}if(A.events[f]){A[e](g,d[b].id,l[0]);A.fireEvent(n,{event:g,info:d[b].id,group:l[0]});}}}}}},getBestMatch:function(H){var A=null;var I=H.length;if(I==1){A=H[0];}else{for(var G=0;G<I;++G){var J=H[G];if(this.mode==this.INTERSECT&&J.cursorIsOver){A=J;break;}else{if(!A||!A.overlap||(J.overlap&&A.overlap.getArea()<J.overlap.getArea())){A=J;}}}}return A;},refreshCache:function(K){var I=K||this.ids;for(var L in I){if("string"!=typeof L){continue;}for(var J in this.ids[L]){var H=this.ids[L][J];if(this.isTypeOfDD(H)){var A=this.getLocation(H);if(A){this.locationCache[H.id]=A;}else{delete this.locationCache[H.id];}}}}},verifyEl:function(E){try{if(E){var F=E.offsetParent;if(F){return true;}}}catch(A){}return false;},getLocation:function(V){if(!this.isTypeOfDD(V)){return null;}var X=V.getEl(),S,A,N,Q,R,P,O,T,W;try{S=YAHOO.util.Dom.getXY(X);}catch(U){}if(!S){return null;}A=S[0];N=A+X.offsetWidth;Q=S[1];R=Q+X.offsetHeight;P=Q-V.padding[0];O=N+V.padding[1];T=R+V.padding[2];W=A-V.padding[3];return new YAHOO.util.Region(P,O,T,W);},isOverTarget:function(M,L,A,R){var Q=this.locationCache[L.id];if(!Q||!this.useCache){Q=this.getLocation(L);this.locationCache[L.id]=Q;}if(!Q){return false;}L.cursorIsOver=Q.contains(M);var N=this.dragCurrent;if(!N||(!A&&!N.constrainX&&!N.constrainY)){return L.cursorIsOver;}L.overlap=null;if(!R){var P=N.getTargetCoord(M.x,M.y);var K=N.getDragEl();R=new YAHOO.util.Region(P.y,P.x+K.offsetWidth,P.y+K.offsetHeight,P.x);}var O=R.intersect(Q);if(O){L.overlap=O;return(A)?true:L.cursorIsOver;}else{return false;}},_onUnload:function(A,D){this.unregAll();},unregAll:function(){if(this.dragCurrent){this.stopDrag();this.dragCurrent=null;}this._execOnAll("unreg",[]);this.ids={};},elementCache:{},getElWrapper:function(A){var D=this.elementCache[A];if(!D||!D.el){D=this.elementCache[A]=new this.ElementWrapper(YAHOO.util.Dom.get(A));}return D;},getElement:function(A){return YAHOO.util.Dom.get(A);},getCss:function(A){var D=YAHOO.util.Dom.get(A);return(D)?D.style:null;},ElementWrapper:function(A){this.el=A||null;this.id=this.el&&A.id;this.css=this.el&&A.style;},getPosX:function(A){return YAHOO.util.Dom.getX(A);},getPosY:function(A){return YAHOO.util.Dom.getY(A);},swapNode:function(F,H){if(F.swapNode){F.swapNode(H);}else{var A=H.parentNode;var G=H.nextSibling;if(G==F){A.insertBefore(F,H);}else{if(H==F.nextSibling){A.insertBefore(H,F);}else{F.parentNode.replaceChild(H,F);A.insertBefore(F,G);}}}},getScroll:function(){var F,H,A=document.documentElement,G=document.body;if(A&&(A.scrollTop||A.scrollLeft)){F=A.scrollTop;H=A.scrollLeft;}else{if(G){F=G.scrollTop;H=G.scrollLeft;}else{}}return{top:F,left:H};},getStyle:function(A,D){return YAHOO.util.Dom.getStyle(A,D);},getScrollTop:function(){return this.getScroll().top;},getScrollLeft:function(){return this.getScroll().left;},moveToEl:function(F,A){var E=YAHOO.util.Dom.getXY(A);YAHOO.util.Dom.setXY(F,E);},getClientHeight:function(){return YAHOO.util.Dom.getViewportHeight();},getClientWidth:function(){return YAHOO.util.Dom.getViewportWidth();},numericSort:function(A,D){return(A-D);},_timeoutCount:0,_addListeners:function(){var A=YAHOO.util.DDM;if(YAHOO.util.Event&&document){A._onLoad();}else{if(A._timeoutCount>2000){}else{setTimeout(A._addListeners,10);if(document&&document.body){A._timeoutCount+=1;}}}},handleWasClicked:function(F,A){if(this.isHandle(A,F.id)){return true;}else{var E=F.parentNode;while(E){if(this.isHandle(A,E.id)){return true;}else{E=E.parentNode;}}}return false;}};}();YAHOO.util.DDM=YAHOO.util.DragDropMgr;YAHOO.util.DDM._addListeners();}(function(){var C=YAHOO.util.Event;var D=YAHOO.util.Dom;YAHOO.util.DragDrop=function(A,F,B){if(A){this.init(A,F,B);}};YAHOO.util.DragDrop.prototype={events:null,on:function(){this.subscribe.apply(this,arguments);},id:null,config:null,dragElId:null,handleElId:null,invalidHandleTypes:null,invalidHandleIds:null,invalidHandleClasses:null,startPageX:0,startPageY:0,groups:null,locked:false,lock:function(){this.locked=true;},unlock:function(){this.locked=false;},isTarget:true,padding:null,dragOnly:false,_domRef:null,__ygDragDrop:true,constrainX:false,constrainY:false,minX:0,maxX:0,minY:0,maxY:0,deltaX:0,deltaY:0,maintainOffset:false,xTicks:null,yTicks:null,primaryButtonOnly:true,available:false,hasOuterHandles:false,cursorIsOver:false,overlap:null,b4StartDrag:function(B,A){},startDrag:function(B,A){},b4Drag:function(A){},onDrag:function(A){},onDragEnter:function(B,A){},b4DragOver:function(A){},onDragOver:function(B,A){},b4DragOut:function(A){},onDragOut:function(B,A){},b4DragDrop:function(A){},onDragDrop:function(B,A){},onInvalidDrop:function(A){},b4EndDrag:function(A){},endDrag:function(A){},b4MouseDown:function(A){},onMouseDown:function(A){},onMouseUp:function(A){},onAvailable:function(){},getEl:function(){if(!this._domRef){this._domRef=D.get(this.id);}return this._domRef;},getDragEl:function(){return D.get(this.dragElId);},init:function(A,H,G){this.initTarget(A,H,G);C.on(this._domRef||this.id,"mousedown",this.handleMouseDown,this,true);for(var B in this.events){this.createEvent(B+"Event");}},initTarget:function(A,F,B){this.config=B||{};this.events={};this.DDM=YAHOO.util.DDM;this.groups={};if(typeof A!=="string"){this._domRef=A;A=D.generateId(A);}this.id=A;this.addToGroup((F)?F:"default");this.handleElId=A;C.onAvailable(A,this.handleOnAvailable,this,true);this.setDragElId(A);this.invalidHandleTypes={A:"A"};this.invalidHandleIds={};this.invalidHandleClasses=[];this.applyConfig();},applyConfig:function(){this.events={mouseDown:true,b4MouseDown:true,mouseUp:true,b4StartDrag:true,startDrag:true,b4EndDrag:true,endDrag:true,drag:true,b4Drag:true,invalidDrop:true,b4DragOut:true,dragOut:true,dragEnter:true,b4DragOver:true,dragOver:true,b4DragDrop:true,dragDrop:true};if(this.config.events){for(var A in this.config.events){if(this.config.events[A]===false){this.events[A]=false;}}}this.padding=this.config.padding||[0,0,0,0];this.isTarget=(this.config.isTarget!==false);this.maintainOffset=(this.config.maintainOffset);this.primaryButtonOnly=(this.config.primaryButtonOnly!==false);this.dragOnly=((this.config.dragOnly===true)?true:false);},handleOnAvailable:function(){this.available=true;this.resetConstraints();this.onAvailable();},setPadding:function(B,H,A,G){if(!H&&0!==H){this.padding=[B,B,B,B];}else{if(!A&&0!==A){this.padding=[B,H,B,H];}else{this.padding=[B,H,A,G];}}},setInitPosition:function(I,J){var B=this.getEl();if(!this.DDM.verifyEl(B)){if(B&&B.style&&(B.style.display=="none")){}else{}return;}var K=I||0;var L=J||0;var A=D.getXY(B);this.initPageX=A[0]-K;this.initPageY=A[1]-L;this.lastPageX=A[0];this.lastPageY=A[1];this.setStartPosition(A);},setStartPosition:function(A){var B=A||D.getXY(this.getEl());this.deltaSetXY=null;this.startPageX=B[0];this.startPageY=B[1];},addToGroup:function(A){this.groups[A]=true;this.DDM.regDragDrop(this,A);},removeFromGroup:function(A){if(this.groups[A]){delete this.groups[A];}this.DDM.removeDDFromGroup(this,A);},setDragElId:function(A){this.dragElId=A;},setHandleElId:function(A){if(typeof A!=="string"){A=D.generateId(A);}this.handleElId=A;this.DDM.regHandle(this.id,A);},setOuterHandleElId:function(A){if(typeof A!=="string"){A=D.generateId(A);}C.on(A,"mousedown",this.handleMouseDown,this,true);this.setHandleElId(A);this.hasOuterHandles=true;},unreg:function(){C.removeListener(this.id,"mousedown",this.handleMouseDown);this._domRef=null;this.DDM._remove(this);},isLocked:function(){return(this.DDM.isLocked()||this.locked);},handleMouseDown:function(A,B){var K=A.which||A.button;if(this.primaryButtonOnly&&K>1){return;}if(this.isLocked()){return;}var L=this.b4MouseDown(A);if(this.events.b4MouseDown){L=this.fireEvent("b4MouseDownEvent",A);}var J=this.onMouseDown(A);if(this.events.mouseDown){J=this.fireEvent("mouseDownEvent",A);}if((L===false)||(J===false)){return;}this.DDM.refreshCache(this.groups);var I=new YAHOO.util.Point(C.getPageX(A),C.getPageY(A));if(!this.hasOuterHandles&&!this.DDM.isOverTarget(I,this)){}else{if(this.clickValidator(A)){this.setStartPosition();this.DDM.handleMouseDown(A,this);this.DDM.stopEvent(A);}else{}}},clickValidator:function(A){var B=YAHOO.util.Event.getTarget(A);return(this.isValidHandleChild(B)&&(this.id==this.handleElId||this.DDM.handleWasClicked(B,this.id)));},getTargetCoord:function(B,G){var H=B-this.deltaX;var A=G-this.deltaY;if(this.constrainX){if(H<this.minX){H=this.minX;}if(H>this.maxX){H=this.maxX;}}if(this.constrainY){if(A<this.minY){A=this.minY;}if(A>this.maxY){A=this.maxY;}}H=this.getTick(H,this.xTicks);A=this.getTick(A,this.yTicks);return{x:H,y:A};},addInvalidHandleType:function(B){var A=B.toUpperCase();this.invalidHandleTypes[A]=A;},addInvalidHandleId:function(A){if(typeof A!=="string"){A=D.generateId(A);}this.invalidHandleIds[A]=A;},addInvalidHandleClass:function(A){this.invalidHandleClasses.push(A);},removeInvalidHandleType:function(B){var A=B.toUpperCase();delete this.invalidHandleTypes[A];},removeInvalidHandleId:function(A){if(typeof A!=="string"){A=D.generateId(A);}delete this.invalidHandleIds[A];},removeInvalidHandleClass:function(B){for(var A=0,F=this.invalidHandleClasses.length;A<F;++A){if(this.invalidHandleClasses[A]==B){delete this.invalidHandleClasses[A];}}},isValidHandleChild:function(I){var J=true;var A;try{A=I.nodeName.toUpperCase();}catch(B){A=I.nodeName;}J=J&&!this.invalidHandleTypes[A];J=J&&!this.invalidHandleIds[I.id];for(var K=0,L=this.invalidHandleClasses.length;J&&K<L;++K){J=!D.hasClass(I,this.invalidHandleClasses[K]);}return J;},setXTicks:function(A,H){this.xTicks=[];this.xTickSize=H;var B={};for(var G=this.initPageX;G>=this.minX;G=G-H){if(!B[G]){this.xTicks[this.xTicks.length]=G;B[G]=true;}}for(G=this.initPageX;G<=this.maxX;G=G+H){if(!B[G]){this.xTicks[this.xTicks.length]=G;B[G]=true;}}this.xTicks.sort(this.DDM.numericSort);},setYTicks:function(A,H){this.yTicks=[];this.yTickSize=H;var B={};for(var G=this.initPageY;G>=this.minY;G=G-H){if(!B[G]){this.yTicks[this.yTicks.length]=G;B[G]=true;}}for(G=this.initPageY;G<=this.maxY;G=G+H){if(!B[G]){this.yTicks[this.yTicks.length]=G;B[G]=true;}}this.yTicks.sort(this.DDM.numericSort);},setXConstraint:function(A,B,F){this.leftConstraint=parseInt(A,10);this.rightConstraint=parseInt(B,10);this.minX=this.initPageX-this.leftConstraint;this.maxX=this.initPageX+this.rightConstraint;if(F){this.setXTicks(this.initPageX,F);}this.constrainX=true;},clearConstraints:function(){this.constrainX=false;this.constrainY=false;this.clearTicks();},clearTicks:function(){this.xTicks=null;this.yTicks=null;this.xTickSize=0;this.yTickSize=0;},setYConstraint:function(F,A,B){this.topConstraint=parseInt(F,10);this.bottomConstraint=parseInt(A,10);this.minY=this.initPageY-this.topConstraint;this.maxY=this.initPageY+this.bottomConstraint;if(B){this.setYTicks(this.initPageY,B);}this.constrainY=true;},resetConstraints:function(){if(this.initPageX||this.initPageX===0){var A=(this.maintainOffset)?this.lastPageX-this.initPageX:0;var B=(this.maintainOffset)?this.lastPageY-this.initPageY:0;this.setInitPosition(A,B);}else{this.setInitPosition();}if(this.constrainX){this.setXConstraint(this.leftConstraint,this.rightConstraint,this.xTickSize);}if(this.constrainY){this.setYConstraint(this.topConstraint,this.bottomConstraint,this.yTickSize);}},getTick:function(A,K){if(!K){return A;}else{if(K[0]>=A){return K[0];}else{for(var M=0,N=K.length;M<N;++M){var L=M+1;if(K[L]&&K[L]>=A){var B=A-K[M];var J=K[L]-A;return(J>B)?K[M]:K[L];}}return K[K.length-1];}}},toString:function(){return("DragDrop "+this.id);}};YAHOO.augment(YAHOO.util.DragDrop,YAHOO.util.EventProvider);})();YAHOO.util.DD=function(E,D,F){if(E){this.init(E,D,F);}};YAHOO.extend(YAHOO.util.DD,YAHOO.util.DragDrop,{scroll:true,autoOffset:function(G,H){var E=G-this.startPageX;var F=H-this.startPageY;this.setDelta(E,F);},setDelta:function(D,C){this.deltaX=D;this.deltaY=C;},setDragElPos:function(E,F){var D=this.getDragEl();this.alignElWithMouse(D,E,F);},alignElWithMouse:function(O,K,L){var M=this.getTargetCoord(K,L);if(!this.deltaSetXY){var J=[M.x,M.y];YAHOO.util.Dom.setXY(O,J);var N=parseInt(YAHOO.util.Dom.getStyle(O,"left"),10);var P=parseInt(YAHOO.util.Dom.getStyle(O,"top"),10);this.deltaSetXY=[N-M.x,P-M.y];}else{YAHOO.util.Dom.setStyle(O,"left",(M.x+this.deltaSetXY[0])+"px");YAHOO.util.Dom.setStyle(O,"top",(M.y+this.deltaSetXY[1])+"px");}this.cachePosition(M.x,M.y);var I=this;setTimeout(function(){I.autoScroll.call(I,M.x,M.y,O.offsetHeight,O.offsetWidth);},0);},cachePosition:function(F,D){if(F){this.lastPageX=F;this.lastPageY=D;}else{var E=YAHOO.util.Dom.getXY(this.getEl());this.lastPageX=E[0];this.lastPageY=E[1];}},autoScroll:function(W,X,b,V){if(this.scroll){var U=this.DDM.getClientHeight();var Q=this.DDM.getClientWidth();var S=this.DDM.getScrollTop();var O=this.DDM.getScrollLeft();var Y=b+X;var T=V+W;var Z=(U+S-X-this.deltaY);var a=(Q+O-W-this.deltaX);var P=40;var R=(document.all)?80:30;if(Y>U&&Z<P){window.scrollTo(O,S+R);}if(X<S&&S>0&&X-S<P){window.scrollTo(O,S-R);}if(T>Q&&a<P){window.scrollTo(O+R,S);}if(W<O&&O>0&&W-O<P){window.scrollTo(O-R,S);}}},applyConfig:function(){YAHOO.util.DD.superclass.applyConfig.call(this);this.scroll=(this.config.scroll!==false);},b4MouseDown:function(B){this.setStartPosition();this.autoOffset(YAHOO.util.Event.getPageX(B),YAHOO.util.Event.getPageY(B));},b4Drag:function(B){this.setDragElPos(YAHOO.util.Event.getPageX(B),YAHOO.util.Event.getPageY(B));},toString:function(){return("DD "+this.id);}});YAHOO.util.DDProxy=function(E,D,F){if(E){this.init(E,D,F);this.initFrame();}};YAHOO.util.DDProxy.dragElId="ygddfdiv";YAHOO.extend(YAHOO.util.DDProxy,YAHOO.util.DD,{resizeFrame:true,centerFrame:false,createFrame:function(){var N=this,H=document.body;if(!H||!H.firstChild){setTimeout(function(){N.createFrame();},50);return;}var I=this.getDragEl(),K=YAHOO.util.Dom;if(!I){I=document.createElement("div");I.id=this.dragElId;var L=I.style;L.position="absolute";L.visibility="hidden";L.cursor="move";L.border="2px solid #aaa";L.zIndex=999;L.height="25px";L.width="25px";var M=document.createElement("div");K.setStyle(M,"height","100%");K.setStyle(M,"width","100%");K.setStyle(M,"background-color","#ccc");K.setStyle(M,"opacity","0");I.appendChild(M);if(YAHOO.env.ua.ie){var J=document.createElement("iframe");J.setAttribute("src","javascript:");J.setAttribute("scrolling","no");J.setAttribute("frameborder","0");I.insertBefore(J,I.firstChild);K.setStyle(J,"height","100%");K.setStyle(J,"width","100%");K.setStyle(J,"position","absolute");K.setStyle(J,"top","0");K.setStyle(J,"left","0");K.setStyle(J,"opacity","0");K.setStyle(J,"zIndex","-1");K.setStyle(J.nextSibling,"zIndex","2");}H.insertBefore(I,H.firstChild);}},initFrame:function(){this.createFrame();},applyConfig:function(){YAHOO.util.DDProxy.superclass.applyConfig.call(this);this.resizeFrame=(this.config.resizeFrame!==false);this.centerFrame=(this.config.centerFrame);this.setDragElId(this.config.dragElId||YAHOO.util.DDProxy.dragElId);},showFrame:function(G,H){var I=this.getEl();var F=this.getDragEl();var J=F.style;this._resizeProxy();if(this.centerFrame){this.setDelta(Math.round(parseInt(J.width,10)/2),Math.round(parseInt(J.height,10)/2));}this.setDragElPos(G,H);YAHOO.util.Dom.setStyle(F,"visibility","visible");},_resizeProxy:function(){if(this.resizeFrame){var O=YAHOO.util.Dom;var L=this.getEl();var K=this.getDragEl();var P=parseInt(O.getStyle(K,"borderTopWidth"),10);var N=parseInt(O.getStyle(K,"borderRightWidth"),10);var Q=parseInt(O.getStyle(K,"borderBottomWidth"),10);var J=parseInt(O.getStyle(K,"borderLeftWidth"),10);if(isNaN(P)){P=0;}if(isNaN(N)){N=0;}if(isNaN(Q)){Q=0;}if(isNaN(J)){J=0;}var R=Math.max(0,L.offsetWidth-N-J);var M=Math.max(0,L.offsetHeight-P-Q);O.setStyle(K,"width",R+"px");O.setStyle(K,"height",M+"px");}},b4MouseDown:function(F){this.setStartPosition();var D=YAHOO.util.Event.getPageX(F);var E=YAHOO.util.Event.getPageY(F);this.autoOffset(D,E);},b4StartDrag:function(C,D){this.showFrame(C,D);},b4EndDrag:function(B){YAHOO.util.Dom.setStyle(this.getDragEl(),"visibility","hidden");},endDrag:function(F){var G=YAHOO.util.Dom;var H=this.getEl();var E=this.getDragEl();G.setStyle(E,"visibility","");G.setStyle(H,"visibility","hidden");YAHOO.util.DDM.moveToEl(H,E);G.setStyle(E,"visibility","hidden");G.setStyle(H,"visibility","");},toString:function(){return("DDProxy "+this.id);}});YAHOO.util.DDTarget=function(E,D,F){if(E){this.initTarget(E,D,F);}};YAHOO.extend(YAHOO.util.DDTarget,YAHOO.util.DragDrop,{toString:function(){return("DDTarget "+this.id);}});YAHOO.register("dragdrop",YAHOO.util.DragDropMgr,{version:"2.5.2",build:"1076"});function Slider(container,atts){var range=(typeof(atts)!="undefined"&&typeof(atts["range"])!="undefined"?atts["range"]:[0,100]);var pap=this;var main_width=100;var main_height=7;var main_left=10;var slider_box=_(container,"DIV",{"style":"width:"+main_width+"px;margin:0px "+(main_left+20)+"px;position:relative;margin-top:5px;border-top:1px solid #7CA0C4;border-bottom:1px solid #7CA0C4;background-color:#D3E1EB;height:"+(main_height+(document.all?2:0))+"px;font-size:1px"}).c("div",{"style":"position:absolute;left:0px;height:"+main_height+"px;margin-left:-1px;border-left:1px solid #7CA0C4;font-size:1px","text":" "})._("div",{"style":"height:"+main_height+"px;position:absolute;left:"+(main_width-1)+"px;border-right:1px solid #7CA0C4;font-size:1px","text":" "}).parentNode;var move_box=_(slider_box,"div",{"style":"height:"+main_height+"px;background-color:#E55B02;cursor:move;position:absolute;left:0px;width:"+main_width+"px;font-size:1px","text":" "});var left_input=_(slider_box,"text",{"style":"position:absolute;left:-23px;top:-1px;height:15px;width:15px;font-family:tahoma;font-size:9px;text-align:center","value":range[0]});var right_input=_(slider_box,"text",{"style":"position:absolute;left:"+(main_width+8)+"px;top:-1px;height:15px;width:15px;font-family:tahoma;font-size:9px;text-align:center","value":range[1]});var right_slider=_(container,"DIV").c("DIV",{"style":"position:absolute;"}).c("div",{"style":"position:absolute;left:"+(20+(main_left-1))+"px;top:3px;border-top:1px solid #CCC;width:"+(main_width+2)+"px"})._("div",{"style":"position:absolute;z-index:1;left:"+(16+main_left)+"px;top:-2px;width:7px;height:10px;font-size:1px;background-image:url('/images/v3/sli.png');background-repeat:no-repeat;margin-left:-2px;cursor:pointer"})._("div",{"style":"position:absolute;z-index:1;left:"+(main_width+(19+main_left))+"px;top:-2px;width:7px;height:10px;font-size:1px;background-image:url('/images/v3/sli.png');background-repeat:no-repeat;background-position:-6px 0px;margin-right:-5px;cursor:pointer"});var left_slider=right_slider.previousSibling;_(container,"BR");right_slider.onmouseover=function(){this.style.backgroundPosition="-6px -10px";};right_slider.onmouseout=function(){this.style.backgroundPosition="-6px 0px";};left_slider.onmouseover=function(){this.style.backgroundPosition="0px -10px";};left_slider.onmouseout=function(){this.style.backgroundPosition="0px 0px";};move_box.ondblclick=function(){right_input.value=range[1];left_input.value=range[0];left_slider.style.left=16+main_left+"px";right_slider.style.left=(main_width+19+main_left)+"px";move_box.style.left="0px";move_box.style.width=main_width+"px";pap.change();};this.change=function(){if(this.oncng){this.oncng();}};this.drag=function(){if(this.ondrg){this.ondrg();}};this.endDrag=function(){if(this.onenddrg){this.onenddrg();}};this.getLowerBound=function(){return left_input.value<range[0]?range[0]:left_input.value;};this.getUpperBound=function(){return right_input.value>range[1]?range[1]:right_input.value;};with(new YAHOO.util.DD(left_slider)){onDrag=_drag;onMouseDown=function(){this.resetConstraints();this.setYConstraint(0,0);this.setXConstraint(left_slider.offsetLeft-(14+main_left),right_slider.offsetLeft-left_slider.offsetLeft-right_slider.offsetWidth+1);};endDrag=function(){pap.change();pap.endDrag();};setOuterHandleElId(left_input);setHandleElId(left_slider);}left_input.onclick=function(){this.focus();};right_input.onclick=function(){this.focus();};with(new YAHOO.util.DD(right_slider)){onDrag=_drag;onMouseDown=function(){this.resetConstraints();this.setYConstraint(0,0);this.setXConstraint(right_slider.offsetLeft-left_slider.offsetLeft-right_slider.offsetWidth+1,(main_width+19+main_left)-right_slider.offsetLeft);};endDrag=function(){pap.change();pap.endDrag();};setOuterHandleElId(right_input);setHandleElId(right_slider);}function _drag(){_setInputValues();move_box.style.width=right_slider.offsetLeft-left_slider.offsetLeft-right_slider.offsetWidth+2+"px";move_box.style.left=left_slider.offsetLeft-(14+main_left)+"px";pap.drag();}function _setInputValues(){right_input.value=parseInt(range[0]+(range[1]-range[0])*(right_slider.offsetLeft-(19+main_left))/main_width);left_input.value=parseInt((range[1]-range[0])*(left_slider.offsetLeft-(13+main_left))/main_width+range[0]);}function _placeMoveBox(){move_box.style.width=right_slider.offsetLeft-left_slider.offsetLeft-right_slider.offsetWidth+2+"px";move_box.style.left=left_slider.offsetLeft-(14+main_left)+"px";}with(new YAHOO.util.DD(move_box)){onMouseDown=function(){this.resetConstraints();this.setYConstraint(0,0);this.setXConstraint(move_box.offsetLeft,main_width-move_box.offsetWidth-move_box.offsetLeft);};onDrag=function(){_setInputValues();right_slider.style.left=move_box.offsetLeft+(19+main_left)+move_box.offsetWidth+"px";left_slider.style.left=move_box.offsetLeft+(16+main_left)+"px";};endDrag=function(){pap.change();};}right_input.val=range[1];left_input.setAttribute("size",2);right_input.setAttribute("size",2);left_input.setAttribute("maxLength",2);right_input.setAttribute("maxLength",2);right_input.onchange=function(){if(isNaN(parseInt(this.value))||parseInt(this.value)<parseInt(left_input.value)||parseInt(right_input.value)>range[1]){this.value=this.val;return;}this.val=parseInt(this.value);pap.change();right_slider.style.left=parseInt((main_width*(this.value-range[0]))/(range[1]-range[0])+(19+main_left))+"px";_placeMoveBox();};this.setBounds=function(lb,ub){right_input.value=ub;left_input.value=lb;right_input.val=ub;left_input.val=lb;var rsl=parseInt((main_width*(ub-range[0]))/(range[1]-range[0])+(19+main_left));var lsl=parseInt((main_width*(lb-(19)))/(range[1]-range[0])+range[0])+main_left;right_slider.style.left=rsl+"px";left_slider.style.left=lsl+"px";move_box.style.width=rsl-lsl-7+4+"px";move_box.style.left=lsl-(16+main_left)+"px";};left_input.val=range[0];left_input.onchange=function(){if(isNaN(parseInt(this.value))||parseInt(this.value)>parseInt(right_input.value)||parseInt(this.value)<range[0]){this.value=this.val;return;}this.val=parseInt(this.value);pap.change();left_slider.style.left=parseInt((main_width*(this.value-19))/(range[1]-range[0])+range[0])+main_left+"px";_placeMoveBox();};}perfUI.widgets.panel=function(A,K,F,L){var D=YAHOO.util.Dom;var H=perfUI.util.addEl;var M=YAHOO.util.Event;var Q=null;var C=null;var E=null;var G=null;var J=null;var N=null;var I=null;var O=null;var P=false;var B=false;this.container=A||null;this.width=K||"auto";this.height=F||"auto";this.panelCss="";this.elementCss="yui-panel";this.headerCss="hd";this.bodyCss="bd";this.footerCss="ft";this.modal=L==undefined?true:L;this.afterRenderComplete=new YAHOO.util.CustomEvent("afterRenderComplete",this);this.onShowEvent=new YAHOO.util.CustomEvent("onShowEvent",this);this.onHideEvent=new YAHOO.util.CustomEvent("onHideEvent",this);this.afterRenderComplete.subscribe(function(){B=true;},this);this.isRendered=function(){return B;};this.setMask=function(R){Q=R;};this.getMask=function(){return Q;};this.setElement=function(R){C=R;};this.getElement=function(){return C;};this.setHeader=function(R){if(!R||(typeof R=="string"&&R.trim().length==0)){N="";}else{E=R;}};this.setDraggable=function(R){R=(R==null?true:R);if(!this.isRendered()){P=R;}else{if(R){if(this.getHeader()){if(!this.dragDrop){this.dragDrop=new YAHOO.util.DD(this.container);}this.dragDrop.setHandleElId(this.getHeader());}}else{if(this.dragDrop&&this.getHeader()){this.dragDrop.unreg();}}}};this.getHeader=function(){return E;};this.setHeaderTemplate=function(R){N=R;};this.getHeaderTemplate=function(){return N;};this.setBodyTemplate=function(R){I=R;};this.getBodyTemplate=function(){return I;};this.setFooterTemplate=function(R){O=R;};this.getFooterTemplate=function(){return O;};this.setBody=function(R){if(!R||(typeof R=="string"&&R.trim().length==0)){I="";}else{G=R;}};this.getBody=function(){return G;};this.setFooter=function(R){if(!R||(typeof R=="string"&&R.trim().length==0)){O="";}else{J=R;}};this.getFooter=function(){return J;};this.isDraggable=function(){return P;};this.makeModal=function(){var R=this.getMask();var S=this.getElement();D.setStyle(this.container,"position","absolute");if(!R){var R=new perfUI.widgets.panelMask();this.setMask(R);R.stack(this.container);}var T=function(){var U=this.getMask();if(U){U.destroy();}U=null;};M.addListener(window,"resize",this.center,this,true);};};perfUI.widgets.panel.prototype.center=function(){var C=YAHOO.util.Dom;var I=10;var A=this.container;var G=A.offsetWidth,D=A.offsetHeight,F=C.getViewportWidth(),B=C.getViewportHeight(),H,E;if(G<F){H=(F/2)-(G/2)+C.getDocumentScrollLeft();}else{H=I+C.getDocumentScrollLeft();}if(D<B){E=(B/2)-(D/2)+C.getDocumentScrollTop();}else{E=I+C.getDocumentScrollTop();}C.setXY(A,[parseInt(H,10),parseInt(E,10)]);};perfUI.widgets.panel.prototype.render=function(){var H=perfUI.util.addEl;if(typeof this.container=="string"){this.container=document.getElementById(this.container);}var G=this.getHeaderTemplate();var F=this.getBodyTemplate();var B=this.getFooterTemplate();var E=this.getElement();if(!E){E=H(this.container,"div",{"class":this.elementCss});E.style.display="none";E.style.width=this.width;E.style.height=this.height;this.setElement(E);if(this.getHeader()){E.appendChild(this.getHeader());}else{if(G!=null){var C=H(E,"div",{"class":this.headerCss,"innerHTML":G});this.setHeader(C);}}if(this.getHeader()==null&&this.isDraggable()){var C=H(E,"div",{"class":this.headerCss,"innerHTML":"&nbsp;","style":"background-color:#023F8F;width:100%"});this.setHeader(C);}if(this.isDraggable()){this.dragDrop=new YAHOO.util.DD(this.container);this.dragDrop.setHandleElId(this.getHeader());}if(this.getBody()){E.appendChild(this.getBody());}else{if(F!=null){var A=H(E,"div",{"class":this.bodyCss,"innerHTML":F});this.setBody(A);}}if(this.getFooter()){E.appendChild(this.getFooter());}else{if(B!=null){var D=H(E,"div",{"class":this.footerCss,"innerHTML":B});this.setFooter(D);}}if(this.modal){this.makeModal();}this.afterRenderComplete.fire();}};perfUI.widgets.panel.prototype.hide=function(){var A=this.getMask();if(A){A.hide();}var B=this.getElement();B.style.display="none";this.onHideEvent.fire();};perfUI.widgets.panel.prototype.show=function(){if(this.modal){this.center();}var A=this.getMask();if(A){A.show();}var B=this.getElement();B.style.display="block";B.style.visibility="inherit";this.onShowEvent.fire();};perfUI.widgets.panelMask=function(){var B=YAHOO.util.Dom;var E=perfUI.util.addEl;var A=null;var D="mask";var C="masked";this.useOpaqueEmbed=true;this.getElement=function(){return A;};this.setOpaqueEmbed=function(G){if(!G){G=document.body;}var H=G.getElementsByTagName("embed");for(var F=0;F<H.length;F++){H[F].setAttribute("wmode","opaque");}var I=G.getElementsByTagName("object");for(var F=0;F<I.length;F++){if(!B.hasClass(I[F],"hide-object-tag")){B.addClass(I[F],"hide-object-tag");}}};this.showObjectTags=function(G){if(!G){G=document.body;}var H=G.getElementsByTagName("object");for(var F=0;F<H.length;F++){B.removeClass(H[F],"hide-object-tag");}};this.hide=function(){A.style.display="none";B.removeClass(document.body,C);this.showObjectTags();};this.show=function(){if(this.useOpaqueEmbed){this.setOpaqueEmbed();}B.addClass(document.body,C);this.size();A.style.display="block";};this.size=function(){A.style.height=B.getDocumentHeight()+"px";A.style.width=B.getDocumentWidth()+"px";A.innerHTML="";this.divToMask(A);};this.stack=function(G){var H=B.getStyle(G,"zIndex");var F=B.getStyle(A,"zIndex");if(YAHOO.lang.isUndefined(H)||isNaN(H)||H<=0){H=999;B.setStyle(G,"zIndex",String(H));}if(YAHOO.lang.isUndefined(F)||isNaN(F)){F=998;B.setStyle(A,"zIndex",String(F));}if(H<F){B.setStyle(G,"zIndex",String(F+1));}else{B.setStyle(A,"zIndex",String(H-1));}};this.destroy=function(){document.body.removeChild(A);};this.init=function(){var F=null;F=document.createElement("div");F.innerHTML="&#160;";A=F.cloneNode(true);this.divToMask(A);A.style.display="none";document.body.insertBefore(A,document.body.firstChild);if(YAHOO.env.ua.gecko&&this.platform=="mac"){B.addClass(A,"block-scrollbars");}YAHOO.util.Event.addListener(window,"resize",this.size,this,true);};this.divToMask=function(K){var J,I,H;var F=document.body.scrollWidth;F=F>2000?2000:F;var G=document.body.scrollHeight;K.style.position="absolute";K.style.top="0";K.style.left="0";if(YAHOO.env.ua.ie==0){K.style.opacity="0.7";K.style.backgroundColor="black";}else{K.style.overflow="hidden";for(I=0;I<F;I+=500){for(H=0;H<G;H+=500){if(YAHOO.env.ua.ie>=7){J=K.appendChild(document.createElement("IMG"));J.src="/images/v3/dov.png";}if(YAHOO.env.ua.ie==6){J=K.appendChild(document.createElement("DIV"));J.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='/images/v3/dov.png',sizingMethod='scale')";}J.style.position="absolute";J.style.top=H+"px";J.style.left=I+"px";J.style.height="500px";J.style.width="500px";}}}};this.init();};perfUI.widgets.modalEditor=function(A,G,D,H){this.editorClass=perfUI.widgets.perfEditor;perfUI.widgets.modalEditor.superclass.constructor.call(this,A,G,D,H);var I=this;var E=perfUI.util.addEl;var C=YAHOO.util.Dom;var F=null;var B=function(){I.buildEditorFooter();I.afterRenderComplete.fire();};this.modal=H==undefined?true:H;this.editorPreviewContainer=null;this.buttonSubmit=null;this.buttonCancel=null;this.buttonPreview=null;this.editorWidth=G;this.editorHeight=D;this.onSubmitContent=new YAHOO.util.CustomEvent("onSubmitContent",this);this.onSubmitError=new YAHOO.util.CustomEvent("onSubmitError",this);this.getEditor=function(){return F;};this.setEditor=function(J){F=J;};this.hideEditor=function(){var J=this.getEditor();if(J!=null){J.setContent("");J.hideAll();}};this.showEditor=function(){var J=this.getEditor();if(J!=null){J.show();}};this.getContent=function(){var J=this.getEditor();if(J){return J.getContent({format:"raw"});}};this.setContent=function(J){var K=this.getEditor();if(K){K.setContent(J,{format:"raw"});}};this.render=function(){var J=this.getEditor();if(J!=null){J.render();}};this.init=function(){if(!C.hasClass(this.container,"postCommentEditor")){C.addClass(this.container,"postCommentEditor");}if(!C.hasClass(document.body,"yui-skin-sam")){C.addClass(document.body,"yui-skin-sam");}this.setBody();this.setFooter();perfUI.widgets.modalEditor.superclass.render.call(this);this.initPerfEditor();};this.initPerfEditor=function(){var M=this.getBody();var L=E(M,"textarea",{"id":"perfEditor"});var J=String(this.width).indexOf("px")>0?this.width.substr(0,this.width.indexOf("px")):this.width;if(!this.editorClass){this.editorClass=perfUI.widgets.perfEditor;}var K=new this.editorClass(L.id,null,this.editorWidth,this.editorHeight);this.setEditor(K);K.onInit.add(B);this.editorPreviewContainer=E(M,"div");this.editorPreviewContainer.style.display="none";this.editorPreviewContainer.className="previewPost";};this.init();};YAHOO.extend(perfUI.widgets.modalEditor,perfUI.widgets.panel);perfUI.widgets.modalEditor.prototype.show=function(){perfUI.widgets.modalEditor.superclass.show.call(this);this.showEditor();if(this.modal){this.center();}};perfUI.widgets.modalEditor.prototype.hide=function(){this.hideEditor();perfUI.widgets.modalEditor.superclass.hide.call(this);};perfUI.widgets.modalEditor.prototype.previewContent=function(){var C=this;var B=this.getContent();var E=this.getEditor().getContainer();var F={url:"/api/callna.asp",params:"?function=CustomEncode"};var D=function(H){};var A=function(H){var I=H.responseXML;var M="";try{M=I.getElementsByTagName("response")[0].childNodes[0].nodeValue;}catch(L){}this.editorPreviewContainer.innerHTML=M;if(this.buttonCancel.get&&this.buttonCancel.get("container")&&this.buttonCancel.get("container").style.display=="none"){this.buttonCancel.get("container").style.display="inline";}this.setFooterButtonText(this.buttonCancel,this.getEditButtonText());this.setFooterButtonEvent(this.buttonCancel,"click",null);this.setFooterButtonEvent(this.buttonCancel,"click","cancelPreview");this.buttonPreview.style.display="none";E.style.display="none";var K=E.getElementsByTagName("table")[0];var J=Number(K.style.height.replace("px",""))-12;this.editorPreviewContainer.style.height=J+"px";this.editorPreviewContainer.style.display="block";};var G={success:A,failure:D,scope:C};B="html="+Url.encode(B);YAHOO.util.Connect.asyncRequest("POST",F.url+F.params,G,B);};perfUI.widgets.modalEditor.prototype.setFooterButtonText=function(A,B){switch(A.tagName){case"INPUT":A.value=B;break;case"A":A.innerHTML=B;break;default:if(typeof A=="object"&&A.set){A.set("label",B);}}};perfUI.widgets.modalEditor.prototype.setFooterButtonEvent=function(D,C,A){var B=YAHOO.util.Event;switch(D.tagName){case"INPUT":case"A":if(A){B.addListener(D,"click",this[A],this,true);}else{B.removeListener(D,"click");}break;default:if(typeof D=="object"&&D.set){if(A){D.addListener(C,this[A],null,this,true);}else{D.removeListener(C);}}}};perfUI.widgets.modalEditor.prototype.cancelPreview=function(){this.setFooterButtonText(this.buttonCancel,this.getCancelButtonText());this.setFooterButtonEvent(this.buttonCancel,"click","hide");this.buttonPreview.style.display="inline";this.editorPreviewContainer.style.display="none";var A=this.getEditor().getContainer();A.style.display="block";};perfUI.widgets.modalEditor.prototype.getCancelButtonText=function(){var A=perfTranslator.getValue(701);return A.trim().length>0?A:"Cancel";};perfUI.widgets.modalEditor.prototype.getEditButtonText=function(){var A=perfTranslator.getValue(784);return A.trim().length>0?A:"Edit";};perfUI.widgets.modalEditor.prototype.buildEditorFooter=function(){var I=perfUI.util.addEl;var Q=this;var J=this.getBody();var H=this.getFooter();H.innerHTML="";var O=this.getEditor();var K=O.getContainer();K.style.display="block";var F=this.editorPreviewContainer;F.style.display="none";var M=I(H,"center");var B=perfTranslator.getValue(320);var D=I(M,"span",{"class":"submit"});var C=I(D,"button",{"id":"modalEditor_submit","class":"buttonnew","value":(B.trim().length>0?B:"Submit")});this.buttonSubmit=C;var A=function(){this.cancelPreview();this.submitContent();};YAHOO.util.Event.addListener(C,"click",A,this,true);var L=this.getCancelButtonText();var N=I(M,"span",{"class":"cancel"});var G=I(N,"button",{"id":"modalEditor_cancel","class":"buttonnew","value":L});this.buttonCancel=G;YAHOO.util.Event.addListener(G,"click",this.hide,this,true);var E=perfTranslator.getValue(434);var P=I(M,"a",{"innerHTML":(E.trim().length>0?E:"Preview")});this.buttonPreview=P;PERF.makeLink(P);YAHOO.util.Event.addListener(P,"click",this.previewContent,this,true);};perfUI.widgets.modalEditor.prototype.submitContent=function(){this.onSubmitContent.fire();};perfUI.widgets.requestFriend=function(B,D,A,E,F,C){if(typeof A=="string"){A=document.getElementById(A);}else{if(A==null){A=perfUI.util.addEl(document.body,"DIV",{"class":"yui-skin-sam"});}}A=perfUI.util.addEl(A,"DIV",{"class":"RFpopup"});perfUI.widgets.requestFriend.superclass.constructor.call(this,A,475);this.userId=D||0;this.watchedId=B||0;this.dontPreload=F||0;this.re=E||0;this.showMutual=C||0;this.textarea=null;this.leftButton=null;this.rightButton=null;this.rightDIV=null;this.onFailEvent=new YAHOO.util.CustomEvent("onFailEvent",this);this.onSuccessEvent=new YAHOO.util.CustomEvent("onSuccessEvent",this);this.xmlData={redLink:null,autoFriends:null,status:null,statusDesc:null,statusHtml1:"",statusHtml2:"",statusHtml3:"",user:{userId:null,userCode:null,thumbUrl:null,displayName:null,online:null}};this.xmlParsed=false;this.onXMLParsed=new YAHOO.util.CustomEvent("onXMLParsed");this.onXMLParsed.subscribe(function(){this.xmlParsed=true;},this,true);this.rendered=false;this.onRendered=new YAHOO.util.CustomEvent("onRendered");this.onRendered.subscribe(function(){this.rendered=true;},this,true);if(!this.dontPreload){this.getRequestXML();}};YAHOO.extend(perfUI.widgets.requestFriend,perfUI.widgets.panel);perfUI.widgets.requestFriend.quickPopup=function(A,C,D){var B=new perfUI.widgets.requestFriend(A,C,null,D);B.render();B.show();};perfUI.widgets.requestFriend.prototype.getRequestXML=function(){var A={success:this.getRequestXMLSuccess,failure:this.getRequestXMLFailure,scope:this,cache:false};YAHOO.util.Connect.asyncRequest("GET","/api/call.asp?function=Members.FriendRequest&WatchedID="+this.watchedId+"&userId="+this.userId+(this.showMutual?"&m=1":""),A,null);};perfUI.widgets.requestFriend.prototype.getRequestXMLSuccess=function(B){var A=perfUI.util.getNode;var J=B.responseXML;try{var I;if(I=A(J,"error")[0]){this.xmlData.status="101";this.xmlData.statusHtml1="<b>ERROR</b>: "+I.childNodes[0].nodeValue;}else{var K,H,G,F;if(K=A(J,"redLink")[0].childNodes[0]){this.xmlData.redLink=K.nodeValue;}if(this.xmlData.redLink!=null){document.location.href=this.xmlData.redLink;return;}this.xmlData.autoFriends=A(J,"autoFriends")[0].childNodes[0].nodeValue;this.xmlData.status=A(J,"status")[0].childNodes[0].nodeValue;this.xmlData.statusDesc=A(J,"statusDesc")[0].childNodes[0].nodeValue;if(H=A(J,"statusHtml1")[0].childNodes[0]){this.xmlData.statusHtml1=H.nodeValue;}if(H=A(J,"statusHtml2")[0].childNodes[0]){this.xmlData.statusHtml2=H.nodeValue;}if(H=A(J,"statusHtml3")[0].childNodes[0]){this.xmlData.statusHtml3=H.nodeValue;}var C=A(J,"user")[0];this.xmlData.user.userId=A(C,"userId")[0].childNodes[0].nodeValue;this.xmlData.user.userCode=A(C,"userCode")[0].childNodes[0].nodeValue;this.xmlData.user.thumbUrl=A(C,"thumbUrl")[0].childNodes[0].nodeValue;this.xmlData.user.displayName=A(C,"displayName")[0].childNodes[0].nodeValue;this.xmlData.user.online=A(C,"online")[0].childNodes[0].nodeValue;var E;if(E=A(C,"mutualFriends")[0]){this.xmlData.user.mutualFriends=parseInt(E.childNodes[0].nodeValue);}}}catch(D){this.xmlData.status="102";this.xmlData.statusHtml1="<b>ERROR</b>: Unable to process request";}this.onXMLParsed.fire();};perfUI.widgets.requestFriend.prototype.getRequestXMLFailure=function(){this.xmlData.status="103";this.xmlData.statusHtml1="<b>ERROR</b>: Unable to process request";this.onXMLParsed.fire();};perfUI.widgets.requestFriend.prototype.render=function(){if(this.dontPreload){this.getRequestXML();this.onXMLParsed.subscribe(this.renderPopup,this,true);}else{if(!this.xmlParsed){this.onXMLParsed.subscribe(this.renderPopup,this,true);}else{this.renderPeople();}}};perfUI.widgets.requestFriend.prototype.renderPopup=function(){var F=document.createElement("DIV");F.className="hd bgltblue";var G=perfUI.util.addEl(F,"DIV");var B=G.c("DIV",{"class":"PH_headerMenu_img PH_headerMenu_img_inviteFriends"});var M=G.c("H2",{"class":"txtdkblue left","innerHTML":perfTranslator.getValue(569)});this.setHeader(F);var C=this.destroyFailure;var H=document.createElement("DIV");H.className="bd";if(parseInt(this.xmlData.status)<100){var D=perfUI.util.addEl(H,"DIV",{"class":"left rfProfile"});var A=D.addChild("A",{"href":"/profile.asp?uid="+this.xmlData.user.userCode,"target":"_BLANK"});A.addChild("DIV",{"class":"rfProfileName","innerHTML":this.xmlData.user.displayName});A.addChild("IMG",{"class":"rfProfileImage","src":this.xmlData.user.thumbUrl});if(this.xmlData.user.online=="true"){var E=D.addChild("DIV",{"class":"onlineNow"});E.addChild("IMG",{"src":"/images/v2/online.gif","height":"8","width":"9"});E.addChild("SPAN",{"class":"txtorange","innerHTML":perfTranslator.getValue(1882)});}}this.rightDIV=perfUI.util.addEl(H,"DIV",{"class":"left rfMessage"});if(parseInt(this.xmlData.status)!=0){if(parseInt(this.xmlData.status)==2||parseInt(this.xmlData.status)==3){C=this.destroySuccess;}this.rightDIV.addChild("DIV",{"class":"statusHtml1","innerHTML":this.xmlData.statusHtml1});this.rightDIV.addChild("DIV",{"class":"statusHtml2","innerHTML":this.xmlData.statusHtml2});this.rightDIV.addChild("DIV",{"class":"statusHtml3","innerHTML":this.xmlData.statusHtml3});}if(parseInt(this.xmlData.status)==0||parseInt(this.xmlData.status)==4){this.rightDIV.addChild("DIV",{"class":"rfMessageTitle","innerHTML":perfTranslator.parseValue(perfTranslator.getValue(702),["<b>"+this.xmlData.user.displayName+"</b>"])+"<br><br><b>"+perfTranslator.getValue(699)+":</b>"});this.textarea=this.rightDIV.addChild("TEXTAREA",{"class":"rfMessageTA","src":this.xmlData.user.thumbUrl});this.mutualFriends=this.rightDIV.addChild("DIV",{"class":"rfMutualFriends"});if(this.showMutual&&this.xmlData.user.mutualFriends){this.drawMutualFriends();}if(this.xmlData.autoFriends=="True"){this.onRendered.subscribe(this.sendRequest,this,true);}}this.setBody(H);var J=document.createElement("DIV");J.className="ft buttonStyle1";var L=perfUI.util.addEl(J,"DIV",{"class":"buttonbox right"});var K=L.c("SPAN",{"class":"submit"});if(parseInt(this.xmlData.status)==0||parseInt(this.xmlData.status)==4){this.leftButton=new YAHOO.widget.Button({label:perfTranslator.getValue(759),onclick:{fn:this.sendRequest,obj:null,scope:this},container:K});}var I=L.c("SPAN",{"class":"cancel"});this.rightButton=new YAHOO.widget.Button({label:perfTranslator.getValue(701),onclick:{fn:C,obj:null,scope:this},container:I});this.setFooter(J);perfUI.widgets.requestFriend.superclass.render.call(this);this.onRendered.fire();};perfUI.widgets.requestFriend.prototype.drawMutualFriends=function(){var A=this.mutualFriends.addChild("A",{"class":"rfMutualFriendsTXT","innerHTML":perfTranslator.getValue(1661)+": "+this.xmlData.user.mutualFriends,"href":"javascript:void(0)"});var B=this.mutualFriends.addChild("DIV");B.setAttribute("drawn",0);B.setAttribute("showing",0);YAHOO.util.Event.addListener(A,"click",function(){var C=this.mutualFriends.childNodes[1];if(C.getAttribute("drawn")=="0"){var D=new perfUI.dashboard.mutualFriendList(this.userId,this.xmlData.user.userId,null,B);D.pager.PageSize=4;D.allowCaption=false;D.load();C.setAttribute("drawn",1);C.setAttribute("showing",1);}else{if(C.getAttribute("showing")=="0"){C.style.display="block";C.setAttribute("showing",1);}else{C.style.display="none";C.setAttribute("showing",0);}}},this,true);};perfUI.widgets.requestFriend.prototype.show=function(){if(this.rendered){this.showPopup();}else{this.onRendered.subscribe(this.showPopup,this,true);}};perfUI.widgets.requestFriend.prototype.showPopup=function(){perfUI.widgets.requestFriend.superclass.show.call(this);this.center();};perfUI.widgets.requestFriend.prototype.showLoading=function(){this.cleanRightDIV();this.textarea.disabled=true;this.textarea.className="rfloading";this.hideButtons();};perfUI.widgets.requestFriend.prototype.hideLoading=function(A){this.cleanRightDIV();this.textarea.disabled=false;this.textarea.className="rfMessageTA";this.showButtons();};perfUI.widgets.requestFriend.prototype.hideButtons=function(){this.getFooter().childNodes[0].style.visibility="hidden";};perfUI.widgets.requestFriend.prototype.showButtons=function(){this.getFooter().childNodes[0].style.visibility="visible";};perfUI.widgets.requestFriend.prototype.sendRequest=function(){this.showLoading();this.sendRequestXML(escape(this.textarea.value));};perfUI.widgets.requestFriend.prototype.sendRequestXML=function(A){A=A||"";var B={success:this.submitRequestXMLSuccess,failure:this.submitRequestXMLFailure,scope:this,cache:false};YAHOO.util.Connect.asyncRequest("GET","/api/call.asp?function=Members.FriendRequestSend&WatchedID="+this.watchedId+"&UserID="+this.userId+"&m="+A+"&re="+this.re,B,null);};perfUI.widgets.requestFriend.prototype.submitRequestXMLSuccess=function(A){var E=A.responseXML;try{var B;if(B=perfUI.util.getNode(E,"error")[0]){this.submitError("Error, "+B.childNodes[0].nodeValue);return;}var D=perfUI.util.getNode(E,"success")[0].childNodes[0].nodeValue;}catch(C){this.submitError("Error submitting friend request, please try again");return;}if(D=="true"){this.drawSuccessMessage();}else{this.submitError("Error submitting friend request, please try again");return;}};perfUI.widgets.requestFriend.prototype.drawSuccessMessage=function(){this.rightDIV.innerHTML="";if(this.xmlData.autoFriends=="True"){var B=this.rightDIV.addChild("DIV",{"class":"successAutoFriend"});B.addChild("DIV",{"class":"PH_headerMenu_img PH_headerMenu_img_incomingFriendRequest"});B.addChild("DIV",{"class":"RFsuccessline1","innerHTML":perfTranslator.getValue(2632)});B.addChild("DIV",{"class":"RFsuccessline2 txtorange","innerHTML":"<b>"+perfTranslator.getValue(1856)+"</b>: "+perfTranslator.parseValue(perfTranslator.getValue(2685),[this.xmlData.user.displayName])});if(this.showMutual&&this.xmlData.user.mutualFriends){this.mutualFriends=B.addChild("DIV",{"class":"rfMutualFriends"});this.drawMutualFriends();}}else{var B=this.rightDIV.addChild("DIV",{"class":"successRequestFriend"});B.addChild("DIV",{"class":"PH_headerMenu_img PH_headerMenu_img_friends"});B.addChild("DIV",{"class":"RFsuccessline1","innerHTML":perfTranslator.getValue(1647)});}this.rightButton.destroy();var A={fn:this.destroySuccess,obj:null,scope:this};this.leftButton.setAttributes({"onclick":A,"label":perfTranslator.getValue(1729)});this.showButtons();};perfUI.widgets.requestFriend.prototype.submitRequestXMLFailure=function(){this.submitError("Error submitting friend request, please try again");};perfUI.widgets.requestFriend.prototype.cleanRightDIV=function(){if(this.rightDIV.childNodes.length>=5){for(var A=0;A<3;A++){this.rightDIV.removeChild(this.rightDIV.childNodes[0]);}}for(var A=0;A<this.rightDIV.childNodes.length-3;A++){this.rightDIV.removeChild(this.rightDIV.childNodes[3]);}};perfUI.widgets.requestFriend.prototype.submitError=function(A){this.hideLoading();this.rightDIV.addChild("DIV",{"class":"submitError","innerHTML":A});};perfUI.widgets.requestFriend.prototype.destroySuccess=function(){this.onSuccessEvent.fire();this.destroy();};perfUI.widgets.requestFriend.prototype.destroyFailure=function(){this.onFailEvent.fire();this.destroy();};perfUI.widgets.requestFriend.prototype.destroy=function(){perfUI.widgets.requestFriend.superclass.hide.call(this);var B;if(B=this.getMask()){B.destroy();}var A=this.container;if(A&&A.parentNode&&A.parentNode.parentNode){A.parentNode.parentNode.removeChild(A.parentNode);}for(i in this){if(typeof this[i]=="function"){this[i]=null;delete this[i];}else{delete this[i];}}YAHOO.util.Event.removeListener(window,"resize",this.center);};