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(C){var F=YAHOO.util.Dom;var G=perfUI.util.addEl;var D;var B=new perfUI.widgets.menu(C);var E="";this.containerCss="yui-skin-sam";this.getMenu=function(){return B};this.getType=function(){return E};this.destroy=function(){D=null;B=null};this.setType=function(I,H){E=I;switch(I){case"delete":D=G(C,"DIV",{"class":"deleteImg"});break;case"link":D=G(C,"a",{"innerHTML":H,"class":"splitButtonLink"});break;case"dropDownList":D=G(C,"div",{"class":"pullDown left"});break}};this.setEl=function(H){D=H};this.addMenuItem=function(H){B.addItems([H])};this.addMenuItems=function(H){B.addItems(H)};this.toggleMenu=function(H){YAHOO.util.Event.purgeElement(D,false,"click");if(B.menuClosed){B.show(H)}else{B.closeMenu(H)}YAHOO.util.Event.addListener(D,"click",this.toggleMenu,this,true)};this.render=function(){if(!F.hasClass(C,this.containerCss)){}F.addClass(C,this.containerCss);B.render(C);B.subscribe("show",A,B);switch(E){case"dropDownList":YAHOO.util.Event.addListener(D,"click",this.toggleMenu,this,true);break;default:YAHOO.util.Event.addListener(D,"click",B.show,B,true);break}};function A(){B.cfg.setProperty("context",[D,"tl","bl"])}};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)>=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.zIndex="100";tipobj.style.width="200px";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 C=this;var F=perfUI.util.addEl;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 D=A;var E="";this.getSelectedValue=function(){return E};this.clearSelectedValue=function(){var I=this.getOptions();for(var H=0;H<I.length;H++){var G=I[H].control;if(G){G.checked=false}}this.setSelectedValue=""};this.setSelectedValue=function(G){E=G};this.setOptions=function(G){D=G};this.getOptions=function(){return D};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.send=function(G,L,K){K||this.getSelectedValue();var I="/report.asp?s="+L+"&b="+G+"&r="+K;try{var H=getHttpRequestObj();H.open("GET",I,true);H.send(null)}catch(J){}};this.render=function(){var L=F(B,"div",{"class":"optionlist"});var J=this.getOptions();for(var I=0;I<J.length;I++){var K=F(L,"div",{"class":"radio"});var H=F(K,"radio",{"value":J[I].value,"name":"reason"});var G=function(N,M){M.checked=true;C.setSelectedValue(M.value)};F(K,"label",{"innerHTML":J[I].text});YAHOO.util.Event.addListener(K,"click",G,H);J[I].control=H}}}