YAHOO.util.Event.onDOMReady(loginInit);var loginActionPanel=null;var loginNoPanel=false;function loginInit(){YAHOO.pass_forgotten=new YAHOO.widget.Panel("pass_forgotten",{constraintoviewport:true,fixedcenter:true,effect:{effect:YAHOO.widget.ContainerEffect.FADE,duration:0.5},width:"450px",draggable:true,underlay:"shadow",close:true,modal:true,visible:false,zindex:9999});
YAHOO.pass_forgotten.render(document.body);loginActionPanel=new YAHOO.widget.Panel("login_action_panel",{constraintoviewport:true,fixedcenter:true,effect:{effect:YAHOO.widget.ContainerEffect.FADE,duration:0.2},width:"250px",draggable:true,underlay:"shadow",close:true,modal:true,visible:false,zindex:10000});
loginActionPanel.render(document.body);if(YAHOO.env.ua.ie>0&&YAHOO.env.ua.ie<7){loginNoPanel=true;}YAHOO.pass_renew=new YAHOO.widget.Panel("pass_renew",{constraintoviewport:true,fixedcenter:true,effect:{effect:YAHOO.widget.ContainerEffect.FADE,duration:0.5},width:"450px",draggable:true,underlay:"shadow",close:true,modal:true,visible:false,zindex:9999});
YAHOO.pass_renew.render(document.body);YAHOO.util.Event.addListener("pwrequest","click",YAHOO.pass_forgotten.show,YAHOO.pass_forgotten,true);
YAHOO.util.Event.addListener("pwrenew","click",YAHOO.pass_renew.show,YAHOO.pass_renew,true);}function loginAction(f){var callback={success:function(xhr){try{if(YAHOO.env.ua.opera<1){var resp=YAHOO.lang.JSON.parse(xhr.responseText);
}else{var resp=eval("("+xhr.responseText+")");}}catch(e){var resp={error:true,errorMessages:[e]};}try{if(resp.error){if(resp.message){var msg=resp.message.join("<br />");
}else{var msg="login error";}if(loginNoPanel){alert(msg.replace("<br />","\n"));}else{loginActionPanel.setHeader("Error:");
loginActionPanel.setBody(msg);}}else{document.location.reload();}}catch(e){alert(e);}},failure:function(xhr){if(loginNoPanel){loginActionPanel.hide();
}document.location.reload();},argument:{},timeout:300000,scope:this};if(!loginNoPanel){loginActionPanel.setHeader("Login...");
loginActionPanel.setBody('<img src="_files/gx/progressbar.gif" />');loginActionPanel.show();}var url="http://"+loginBaseUrl+"/public/Web/Authentification/login?login=1&format=json";
url=url.replace("public/public/","public/");YAHOO.util.Connect.setForm(f);YAHOO.util.Connect.asyncRequest("POST",url,callback);
}function logoutAction(f){var callback={success:function(xhr){try{if(YAHOO.env.ua.opera<1){var resp=YAHOO.lang.JSON.parse(xhr.responseText);
}else{var resp=eval("("+xhr.responseText+")");}}catch(e){var resp={error:true,errorMessages:[e]};}try{if(resp.error){if(resp.message){var msg=resp.message.join("<br />");
}else{var msg="logout error";}if(loginNoPanel){alert(msg.replace("<br />","\n"));}else{loginActionPanel.setHeader("Error:");
loginActionPanel.setBody(msg);}}else{document.location.reload();}}catch(e){alert(e);}},failure:function(xhr){loginActionPanel.hide();
document.location.reload();},argument:{},timeout:300000,scope:this};if(!loginNoPanel){loginActionPanel.setHeader("Logout...");
loginActionPanel.setBody('<img src="_files/gx/progressbar.gif" />');loginActionPanel.show();}var url="http://"+loginBaseUrl+"/public/Web/Authentification/logout?format=json";
url=url.replace("public/public/","public/");YAHOO.util.Connect.asyncRequest("GET",url,callback);}function emailFieldFocus(a){if(a.value==emailDefaultValue){a.value="";
}}function emailFieldBlur(a){if(a.value.length<1){a.value=emailDefaultValue;}}function panelClose(){YAHOO.pass_forgotten.hide();
YAHOO.pass_renew.hide();}function passwordforgottenSendForm(){var c=document.getElementById("passwordforgotten_form");
YAHOO.util.Connect.setForm(c);var a="public/Web/Authentification/passwordforgotten?format=json";var b=YAHOO.util.Connect.asyncRequest("POST",a,callback);
}var callback={success:function(i){try{var b=YAHOO.lang.JSON.parse(i.responseText);}catch(f){var b={error:true,errorMessages:[f]};
}var a=document.getElementById("error_password");if(b.error){a.removeAttribute("style");a.innerHTML=""+b.errorMessages.join("<br />")+"";
}else{var h=document.getElementById("success");var d=document.getElementById("passwordforgotten_form");
d.removeChild(a);h.removeAttribute("style");var c=document.getElementsByTagName("table")[0];c.parentNode.removeChild(c);
var g=document.getElementById("navform_passre");g.parentNode.removeChild(g);h.innerHTML=ap_getpassword_data.successInnerHTML;
setTimeout("YAHOO.pass_forgotten.hide()",7000);}},failure:function(a){alert("Sending Data -> failure");
YAHOO.pass_forgotten.hide();}};var searchDefaultValue="Keyword Search";var searchOnFocus=function(a){if(a.value==searchDefaultValue){a.value="";
}};var searchOnBlur=function(a){if(a.value.length<1){a.value=searchDefaultValue;}};YAHOO.util.Event.onContentReady("statesinput",function(){var c=ap_country_list_data.curCountry;
var a=ap_country_list_data.statesArray;var b=ap_country_list_data.query;this.oACDS=new YAHOO.widget.DS_JSArray(a);
this.oAutoComp=new YAHOO.widget.AutoComplete("statesinput","statescontainer",this.oACDS);this.oAutoComp.prehighlightClassName="yui-ac-prehighlight";
this.oAutoComp.typeAhead=false;this.oAutoComp.useShadow=true;this.oAutoComp.minQueryLength=0;this.oAutoComp.maxResultsDisplayed=15;
this.curTextboxValue=c;this.oAutoComp.textboxFocusEvent.subscribe(function(){var f=YAHOO.util.Dom.get("statesinput");
this.curTextboxValue=f.value;f.value="";var e=YAHOO.util.Dom.get("statesinput").value;if(e.length===0){var d=this;
setTimeout(function(){d.sendQuery("");},0);}});this.oAutoComp.formatResult=function(e,f){var d="";if(e[0]==this.curTextboxValue){d="<b>"+e[0]+"</b>";
}else{d=e[0];}return d;};this.oAutoComp.textboxBlurEvent.subscribe(function(){var d=YAHOO.util.Dom.get("statesinput");
if(d.value.length<1){d.value=this.curTextboxValue;}});this.oAutoComp.textboxKeyEvent.subscribe(function(d,e){});
this.oAutoComp.itemSelectEvent.subscribe(function(f,e,h){var g=e[2];var d=b.replace("{TOKEN}",g[1]);document.location.href=d;
});this.oAutoComp.containerCollapseEvent.subscribe(function(f,d,g){var e=YAHOO.util.Dom.get("statesinput");
e.blur();});});YAHOO.util.Event.onDOMReady(function(){try{var c=document.getElementsByTagName("base")[0];
var a=c.getAttribute("href");}catch(b){var a="";}});function changeEofAnchor(a){var b=document.getElementById("eof_anchor");
if(b){b.setAttribute("name",a);}}