function TabController(A){this.contentIDPattern="section";this.tabIDPattern="tab";this.activeTabClassName="on";this.inactiveTabClassName="off";this.selectedIndex=1;this.tabCount=A;this.getTab=function(B){var C=document.getElementById(this.tabIDPattern+B);if(C==null){throw new Error("Tab not found ["+B+"]")}return C};this.getContent=function(B){var C=document.getElementById(this.contentIDPattern+B);if(C==null){throw new Error("Content pane not found ["+B+"]")}return C};this.onTabActivated=function(B){this.getContent(B).style.display="block"};this.postActivated=null;this.onTabInactivated=function(B){this.getContent(B).style.display="none"};this.activateTab=function(B){this.selectedIndex=parseInt(B);for(var C=1;C<(this.tabCount+1);C++){var D=this.getTab(C);if(C==this.selectedIndex){if(typeof (this.onTabActivated)=="function"){this.onTabActivated(C)}if(typeof (this.postActivated)=="function"){this.postActivated(C)}D.className=this.activeTabClassName}else{if(typeof (this.onTabInactivated)=="function"){this.onTabInactivated(C)}D.className=this.inactiveTabClassName}}return false};this.trackEvent=null}function AjaxContentLoaderClass(){this.target=null;this.fallbackUrl=null;this.debug=false;this.onStartLoad=null;this.onLoaded=null;this.onProcessBegin=null;this.onLoadDataTarget=function(A){};this.onNullDataFound=function(A){};this.onNullTargetFound=function(A){};this.handleSuccess=function(A){this.processResult(A)};this.handleFailure=function(A){if(this.debug&&A!=null){alert("failure:"+A.statusText)}else{window.location=this.fallbackUrl}};this.processResult=function(J){if(J.responseXML!=null){try{var D=DOMHelper.getFirstElement(J.responseXML);if(D.nodeName=="error"){this.handleFailure(null)}else{if(typeof (this.onProcessBegin)=="function"){this.onProcessBegin()}if(D.nodeName=="xrequest"){var E=D.childNodes;var P=D.getAttribute("mlc");if(typeof (_hbSend)=="function"&&P!=null){try{var C=D.getAttribute("pn");var K=D.getAttribute("hc1");var G=D.getAttribute("hc2");if(C!=null){_hbSet("N",C)}if(K!=null){_hbSet("C1",K)}if(G!=null){_hbSet("C2",G)}_hbSet("VCON",P);_hbSend()}catch(M){}}for(var I=0;I<E.length;I++){if(E[I].nodeName=="target"){var A=E[I].getAttribute("id");var H=E[I].getAttribute("attribute");var F=E[I].getAttribute("action");var N=E[I].getAttribute("display");var B=E[I].getAttribute("style");var O=document.getElementById(A);if(O!=null){if(E[I].childNodes.length==0){if(typeof (this.onNullDataFound)=="function"){this.onNullDataFound(A)}}else{if(typeof (this.onLoadDataTarget)=="function"){this.onLoadDataTarget(A)}if(H!=null){try{var L=trim(E[I].childNodes[0].nodeValue);switch(H){case"value":O.value=L;break;case"src":O.src=L;break;case"href":O.href=L;break;case"class":O.className=L;break;default:O.setAttribute(H,L);break}}catch(M){}}else{switch(F){case"replace":DOMHelper.removeChildNodes(O);DOMHelper.importNode(O,E[I]);break;case"append":DOMHelper.importNode(O,E[I]);break}}}if(B!=null){DOMHelper.applyCSS(O,B)}if(N=="show"){O.style.display=""}if(N=="hide"){O.style.display="none"}}else{if(typeof (this.onNullTargetFound)=="function"){this.onNullTargetFound(A)}}}}}else{if(this.target!=null){this.target.style.display="none";DOMHelper.removeChildNodes(this.target);DOMHelper.importNode(this.target,J.responseXML);this.target.style.display=""}}if(typeof (this.onLoaded)=="function"){this.onLoaded()}}}catch(M){this.handleFailure(null)}}else{this.handleFailure(null)}};this.sendForm=function(A,C,B){if(typeof (this.onStartLoad)=="function"){this.onStartLoad()}this.fallbackUrl=C;YAHOO.util.Connect.setForm(B,false);YAHOO.util.Connect.asyncRequest("POST",A,callback)};this.startPostRequest=function(B,C,A){if(typeof (this.onStartLoad)=="function"){this.onStartLoad()}this.fallbackUrl=C;YAHOO.util.Connect.asyncRequest("POST",B,callback,A)};this.startRequest=function(A,B){this.fallbackUrl=B;if(typeof (this.onStartLoad)=="function"){this.onStartLoad()}YAHOO.util.Connect.asyncRequest("GET",A,callback)}}var AjaxContentLoader=new AjaxContentLoaderClass();var callback={success:AjaxContentLoader.handleSuccess,failure:AjaxContentLoader.handleFailure,scope:AjaxContentLoader};