jQuery.url=function(){var e={};var b={};var d={url:window.location,strictMode:false,key:["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"],q:{name:"queryKey",parser:/(?:^|&)([^&=]*)=?([^&]*)/g},parser:{strict:/^(?:([^:\/?#]+):)?(?:\/\/((?:(([^:@]*):?([^:@]*))?@)?([^:\/?#]*)(?::(\d*))?))?((((?:[^?#\/]*\/)*)([^?#]*))(?:\?([^#]*))?(?:#(.*))?)/,loose:/^(?:(?![^:@]+:[^:@\/]*@)([^:\/?#.]+):)?(?:\/\/)?((?:(([^:@]*):?([^:@]*))?@)?([^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/}};var c=function(){str=decodeURI(d.url);var j=d.parser[d.strictMode?"strict":"loose"].exec(str);var l={};var k=14;while(k--){l[d.key[k]]=j[k]||""}l[d.q.name]={};l[d.key[12]].replace(d.q.parser,function(m,i,n){if(i){l[d.q.name][i]=n}});return l};var f=function(i){if(jQuery.isEmptyObject(b)){a()}if(i=="base"){if(b.port!==null&&b.port!==""){return b.protocol+"://"+b.host+":"+b.port+"/"}else{return b.protocol+"://"+b.host+"/"}}return(b[i]==="")?null:b[i]};var h=function(i){if(jQuery.isEmptyObject(b)){a()}return(b.queryKey[i]===null)?null:b.queryKey[i]};var a=function(){b=c();g()};var g=function(){var i=b.path;e=[];e=b.path.length==1?{}:(i.charAt(i.length-1)=="/"?i.substring(1,i.length-1):path=i.substring(1)).split("/")};return{setMode:function(i){d.strictMode=i=="strict"?true:false;return this},setUrl:function(i){d.url=i===undefined?window.location:i;a();return this},segment:function(i){if(jQuery.isEmptyObject(b)){a()}if(i===undefined){return e.length}return(e[i]===""||e[i]===undefined)?null:e[i]},attr:f,param:h}}();(function(a){a.belowthefold=function(c,d){var b=a(window).height()+a(window).scrollTop();return b<=a(c).offset().top-d.threshold};a.abovethetop=function(b,c){var d=a(window).scrollTop();return d>=a(b).offset().top+a(b).height()-c.threshold};a.rightofscreen=function(c,d){var b=a(window).width()+a(window).scrollLeft();return b<=a(c).offset().left-d.threshold};a.leftofscreen=function(b,c){var d=a(window).scrollLeft();return d>=a(b).offset().left+a(b).width()-c.threshold};a.inviewport=function(b,c){return !a.rightofscreen(b,c)&&!a.leftofscreen(b,c)&&!a.belowthefold(b,c)&&!a.abovethetop(b,c)};a.extend(a.expr[":"],{"below-the-fold":function(c,d,b){return a.belowthefold(c,{threshold:0})},"above-the-top":function(c,d,b){return a.abovethetop(c,{threshold:0})},"left-of-screen":function(c,d,b){return a.leftofscreen(c,{threshold:0})},"right-of-screen":function(c,d,b){return a.rightofscreen(c,{threshold:0})},"in-viewport":function(c,d,b){return a.inviewport(c,{threshold:0})}})})(jQuery);window.onerror=function(a){};HR={};HR.BuildNamespace=function(d){var a=d.split(".");var c=HR;var e=0;for(e=1;e<a.length;e++){var b=a[e];if(typeof c[b]==="undefined"){c[b]={}}c=c[b]}};HR.BuildNamespace("HR.constants.messages.validation.error.100");HR.constants.messages.validation.error[100]={email:{heading:"Email address missing!"},password:{heading:"Password missing!"},message:{heading:"Message missing!"}};HR.BuildNamespace("HR.constants.messages.ajaxError.error");HR.constants.messages.ajaxError.error[0]={"default":{heading:"Ah, that really didn't work",body:"<p>Either you've lost your connection to the Internet or Hosting Reborn has disappeared.</p><p>  By all means try again.</p>"}};HR.log=function(a){if(!HR.internal.isLive()){try{if(typeof console==="object"){console.log(a)}}catch(b){}}};HR.internal={};HR.internal.message=function(a){var c={note:"",namespace:"",type:"",code:0,data:null,key:null,callback:null};var b=$.extend({},c,a);this.data=b.data;this.note=b.note;this.type=b.type;this.code=b.code;this.namespace=b.namespace;this.key=b.key;this.callback=b.callback;this.getHash=function(){return this.namespace+"."+this.type+"."+this.code+"."+this.data.key};this.equals=function(d){if(!d instanceof HR.internal.message){return false}return this.getHash()===d.getHash()};this.isEmpty=function(){var d="";for(d in c){if(c.hasOwnProperty(d)){if(this[d]!==c[d]){return false}}}return true}};HR.internal.isLive=function(){var a=["dev","local"];var b="";for(b in a){if(a.hasOwnProperty(b)){if(window.location.host.indexOf(a[b]+".")>-1){return false}}}return true};HR.internal.isSecure=function(){return(window.location.protocol==="https:"&&(window.location.hostname.indexOf("secure.")!==-1))};HR.internal.url=function(b){var d={relativePath:"",secure:"default",live:"default"};var c=$.extend(d,b);if(typeof c.secure!=="boolean"){c.secure=HR.internal.isSecure()}if(typeof c.live!=="boolean"){c.live=HR.internal.isLive()}var a="";a+=(c.secure)?"https://secure.":"http://";a+=(c.live===false)?"dev.":"";a+="hostingreborn.com/"+b.relativePath;return a};HR.internal.domain=function(){return window.location.host.replace(/(secure\.)|(support\.)/,"")};HR.exception=function(a){var c={message:"",code:0,type:"",data:null};var b=$.extend(c,a);this.message=function(){return b.message};this.code=function(){return b.code};this.type=function(){return b.type};this.data=function(){return b.data}};HR.window={scrollTo:function(a){var e={offset:0,duration:400,easing:"swing",speed:false,target:"",source:""};var c=$.extend({},e,a);var b=function(){return typeof c.speed==="number"};var f=function(){var g=$(c.source);var h=$(c.target).offset().top-g.offset().top;return(h/c.speed)*1000};var d=c.duration;if(b()){d=f()}$("html, body").animate({scrollTop:$(c.target).offset().top+c.offset},d,c.easing)}};HR.validate={isBlankString:function(a){if(typeof(a)!=="string"&&typeof(a)!=="number"){return true}return $.trim(a)===""},isNumeric:function(a){if(isNaN(a)){return false}if(typeof(a)==="number"){return true}if((typeof(a)!=="string")){return false}var d=false;var c=0;for(c in a){if(a.hasOwnProperty(c)){var b=a.charAt(c);if(!(b>="0"&&b<="9")){if((b!==".")){return false}if(d===true){return false}else{d=true}}}}return true}};HR.url={query:{value:function(b,e){if(e===undefined){e=window.location.search.substring(1)}if(e.indexOf("?")>-1){e=e.substring(e.indexOf("?")+1)}var c=e.split("&");var a="";for(a in c){if(c.hasOwnProperty(a)){var d=c[a].split("=");if(d[0]===b){return d[1]}}}return undefined},build:function(a){var b="";var c="";for(c in a){if(a.hasOwnProperty(c)){b+=c+"="+encodeURIComponent(a[c])+"&"}}if(b.length){b=b.substr(0,b.length-1)}return b}}};HR.location={hash:{present:function(){return(window.location.hash.indexOf("#")>-1&&window.location.hash.indexOf("#")<1)},get:function(b){if(!this.present()){return undefined}var e=window.location.hash.substr(1).split("&");var d=[];var c=0;for(c in e){if(e.hasOwnProperty(c)){var a=e[c].split("=");if(b===undefined){d[a[0]]=a[1]}else{if(a[0]===b){return a[1]}}}}if(b===undefined){return d}return undefined},set:function(b,e){switch(typeof(b)){case"undefined":case"function":case"object":return false;case"object":if(typeof(b.toString)==="function"){b=b.toString()}else{return false}break;case"boolean":b=(b)?"true":"false";break;case"number":b+="";break;default:break}if(!this.present()){window.location.hash="#"+b+"="+e;return true}var c="#";var d=this.get();var a="";for(a in d){if(d.hasOwnProperty(a)){if(a===b){c+=b+"="+e}else{if(this.get(a)===undefined){c+=a}else{c+=a+"="+this.get(a)}}c+="&"}}if(this.get(b)===undefined){c+=b+"="+e+"&"}window.location.hash=c.substring(0,c.length-1);return true}}};HR.format={GBP_readable:function(e){var f=typeof(e);if(!(f==="string"||f==="number")){return 0+"p"}e=parseInt(e,10);if(e<100){return e.toFixed(2)+"p"}var c=e/100;if(c>=1000){if(c>=1000000000000){return"Way too much!"}if(c>=1000000000){var d=c/1000000000;return"&pound;"+d.toFixed(2)+"B"}else{if(c>=1000000){var a=c/1000000;return"&pound;"+a.toFixed(2)+"M"}else{var b=c/1000;return"&pound;"+b.toFixed(2)+"K"}}}return"&pound;"+(e/100).toFixed(2)}};HR.optionSet=function(b){var a=b;this.contains=function(c){return c in a};this.get=function(c){if(this.contains(c)){return a[c]}return null};this.set=function(c,d){a[c]=d}};HR.forms={disableInputButtons:function(){$("input[type=submit], input[type=button], input[type=image]").attr("disabled","disabled")},enableInputButtons:function(){$("input[type=submit], input[type=button], input[type=image]").each(function(){if(($(this).hasClass("disabled"))===false){$(this).removeAttr("disabled")}})}};HR.form={getValidateKey:function(d){if(d.attr("class")===""){return d.attr("name")}var c=d.attr("class").split(" ");var b=0;for(b=0;b<c.length;b++){var a=/validateId:.*/.exec(c[b]);if(a!==null){return a[0].replace("validateId:","")}}return d.attr("name")},cloneMessageFields:function(a){$("input, textarea, select",$("div.message",a)).each(function(){var b=$(this);var c=function(d,e){if($("input[type=hidden][name="+d+"]",a).length===0){$(a).append($('<input type="hidden" name="'+d+'" />'))}$("input[type=hidden][name="+d+"]",a).val(e);return true};switch(this.nodeName.toLowerCase()){case"select":break;case"textarea":break;default:switch(b.attr("type")){case"checkbox":if(b.is(":checked")){c(b.attr("name"),b.val())}break;case"radio":break;default:break}break}return true})},validate:function(b){try{$("input[type=text], input[type=password], textarea",b).each(function(){if(!$(this).hasClass("optional")){var d=new HR.form.textInput({selector:"#"+$(this).attr("id")});var c=d.validate();if(c!==true){throw c}}})}catch(a){if(a instanceof HR.internal.message){return a}}return true},rememberSelectedButton:function(b,a){if($("input[type=hidden][name=selectedButton]",a).length===0){$(a).append($('<input type="hidden" name="selectedButton" />'))}$("input[type=hidden][name=selectedButton]",a).val($(b.target).attr("name"));return true}};HR.date={daysInMonth:function(){var a=new Date();return 32-new Date(a.getFullYear(),a.getMonth(),32).getDate()}};HR.incrementor=function(d){var k=this;var h=d;var b=2;var f=200;var c=false;var g=h.initialAmount;var i=false;var a=false;var e=function(){return(c!==false)};this.duration=function(){if(c===false){c=new Date()}var l=Math.floor(new Date().getTime()/1000);var m=Math.floor(c.getTime()/1000);return l-m};this.logDuration=function(){var l=this.duration();return(l===0)?0:Math.log(l)/Math.log(b)};var j=function(p){if(p.direction==="up"&&g>=h.maximum){return false}else{if(p.direction==="down"&&g<=h.minimum){return false}}var n=Math.ceil(k.duration());var m=Math.pow(b,n);var o=0;var l=0;for(l=0;l<m;l++){if(p.direction==="up"){if(g<=h.maximum){o=h.maximum-g;if(o<=p.delta){g=parseInt(g,10)+o}else{g=parseInt(g,10)+p.delta}}}else{if(g>=h.minimum){o=g-h.minimum;if(o<=p.delta){g=parseInt(g,10)-o}else{g=parseInt(g,10)-p.delta}if(g<=0){g=0}}}}i=window.setTimeout(function(){j(p)},f);return true};this.setAmount=function(l){g=l};this.start=function(l){if(e()){return true}if(typeof(l.callback)==="function"){a=window.setInterval(l.callback,l.callbackInterval)}return j(l)};this.stop=function(){c=false;window.clearInterval(a);window.clearTimeout(i);return true};this.amount=function(){return g}};HR.BuildNamespace("HR.ui");HR.ui.addClass=function(a,b,c){if(jQuery.browser.msie){return a.addClass(b)}else{return a.addClass(b,c)}};HR.ui.removeClass=function(a,b,c,d){if(jQuery.browser.msie){a.removeClass(b);if(typeof d==="function"){d()}return a}else{return a.removeClass(b,c,d)}};HR.ui.expandable={};HR.ui.expandable.feature=function(b){var a=b;var c=function(){return a.css("display")!=="none"};this.isExpanded=function(){return c()};this.toggle=function(){if(c()){if(jQuery.support.opacity){a.fadeTo(100,0.5)}a.slideUp(200)}else{a.slideDown(200,function(){if(jQuery.support.opacity){a.fadeTo(200,1)}})}};this.hide=function(){a.hide();if(jQuery.support.opacity){a.css("opacity",0.5)}}};HR.ui.expandable.control=function(h){var d=h;var e=null;var g=function(){var i=0;for(i=0;i<e.length;i++){e[i].toggle()}b();return false};var c=function(){return'<span>&#160;</span><span class="indicator"></span>'};var a=function(){return $($(".indicator",d))};var b=function(){var k=9660;var i=9650;var j=function(){switch(a().text().charCodeAt(0)){case i:return k;case k:return i;default:if(e[0].isExpanded()){return i}else{return k}}};a().fadeOut(200,function(){a().html("&#"+j()+";").hide();a().fadeIn(200)})};this.exists=function(){return(d.is(".expandable-control"))};this.disable=function(){var i=$(".expandable-control-anchor",d);var j=i.html();i.remove();d.html(j)};this.setFeatures=function(i){e=i;b()};var f=function(){d.html($('<a href="#" class="expandable-control-anchor" />').text(d.text()).append(c())).click(function(){return g()})};f()};HR.ui.expandable.section=function(e){var c=null;var a=e;var d=function(){return($(a).is(".expandable-initialised"))};var b=function(){if(d()){return true}a.addClass("expandable-initialised");c=new HR.ui.expandable.control($($(".expandable-control",a).get(0)));if(!c.exists()){return true}var f=[];$($(".expandable-feature",a)).each(function(){f.push(new HR.ui.expandable.feature($(this)))});if(f.length===0){c.disable();return true}c.setFeatures(f);if(!a.hasClass("expandable-open")){var g=0;for(g=0;g<f.length;g++){f[g].hide()}}return true};b()};HR.ui.expandable.initialise=function(){var a=[];$(".expandable").each(function(){a.push(new HR.ui.expandable.section($(this)))})};HR.ui.message={};HR.ui.message.constants={colours:{error:{standard:"#DB0C07",hover:"#f00"},confirm:{standard:"#008000",hover:"#079525"}}};HR.ui.message.defaults={display:{content:{heading:"Error!",body:null},type:"error",preCallback:null,postCallback:null,callback:null,data:null,mappings:null}};HR.ui.message.defaults.message={returnMessage:{heading:"",body:""}};HR.ui.message.debugKey=function(a){return"HR.constants.messages."+a.namespace+"."+a.type+"."+a.code+"."+a.data.key};HR.ui.message.exists=function(a){if(typeof(HR.constants.messages[a.namespace])==="undefined"){return false}if(typeof(HR.constants.messages[a.namespace][a.type])==="undefined"){return false}if(typeof(HR.constants.messages[a.namespace][a.type][a.code])==="undefined"){return false}if(typeof(HR.constants.messages[a.namespace][a.type][a.code][a.data.key])==="undefined"){return false}return true};HR.ui.message.getKeyString=function(a){return"HR.constants.messages."+a.namespace+"."+a.type+"."+a.code+"."+a.data.key};HR.ui.message.message=function(a){HR.log("Looking for message "+HR.ui.message.debugKey(a));if(!HR.ui.message.exists(a)){HR.log("no message");return false}HR.log("exists");var b={};b.heading=HR.ui.message.defaults.message.returnMessage.heading;b.body=HR.ui.message.defaults.message.returnMessage.body;if(typeof HR.constants.messages[a.namespace][a.type][a.code][a.data.key].heading==="string"){b.heading=HR.constants.messages[a.namespace][a.type][a.code][a.data.key].heading}if(typeof HR.constants.messages[a.namespace][a.type][a.code][a.data.key].body==="string"){b.body=HR.constants.messages[a.namespace][a.type][a.code][a.data.key].body}return b};HR.ui.message.clearAll=function(){var a=function(d){if($("form",d).length>0){return true}if($(d).is(".persist")){return true}$(d).remove()};var c=$("div.closedalert");if(c.length>0){c.each(function(){a(this)});return true}var b=$("div.message.confirm, div.message.error");b.each(function(){a(this)});return true};HR.ui.message.fadeAll=function(c){if(typeof(c)!=="undefined"){var d=function(){var g=function(n){var m=n.attr("class").split(" ");var l=/for:.*/;var j=null;var k=0;for(k in m){if(m.hasOwnProperty(k)){if(l.test(m[k])){j=m[k].replace("for:","")}}}return j};var i=function(j){return g(j)!==null};var h=c.parent();if(i(h)){return g(h)}var f=h.parent();if(i(f)){return g(f)}return null};var b=function(){return d!==null};if(b()){$("#"+d()).focus()}}var a=function(f){if($(f).is(".persist")){return true}$(f).fadeOut("normal",function(){window.setTimeout(function(){if($.browser.msie){$("input.error, textarea.error").removeClass("error")}else{$("input.error, textarea.error").removeClass("error",300)}window.setTimeout(function(){HR.ui.message.clearAll()},300)},350)});return true};var e=$("div.closedalert");if(e.length>0){e.each(function(){a(this)});return true}$("div.message.error, div.message.confirm").each(function(){a(this)})};HR.ui.message.display=function(a){var c=$.extend(HR.ui.message.defaults.display,a);var d={domain:HR.internal.domain()};HR.ui.message.clearAll();if(typeof(c.preCallback)==="function"){c.preCallback()}if(c.data.mappings===undefined){c.data.mappings={}}var b="";for(b in d){if(d.hasOwnProperty(b)){if(c.data.mappings[b]===undefined){c.data.mappings[b]=d[b]}}}window.setTimeout(function(){if(c.data.mappings instanceof Object){var g="";for(g in c.data.mappings){if(c.data.mappings.hasOwnProperty(g)){var f="{"+g+"}";while(c.content.heading.indexOf(f)!==-1){c.content.heading=c.content.heading.replace(f,c.data.mappings[g])}while(c.content.body.indexOf(f)!==-1){c.content.body=c.content.body.replace(f,c.data.mappings[g])}}}}var e=HR.ui.message.getMessageObject(c.content.heading,c.content.body,c.type,c.data.messageType);$("#main").before(e.hide());e.fadeIn("slow",function(){c.postCallback(this)});if(c.data.object){e.addClass("for:"+c.data.object.attr("id"))}HR.ui.message.displayCloseIcon();HR.forms.enableInputButtons()},300)};HR.ui.message.getMessageObject=function(f,a,e,d){var c=$("<div />").addClass("message").addClass(e).append($("<div />").append($("<h2 />").text(f)).append(a));if(typeof d==="string"&&d==="closed"){var b=$("<div />").addClass("closedalert");return b.append(c)}return c};HR.ui.message.displayCloseIcon=function(){$("div.message.error, div.message.confirm").each(function(){var b=$(this);if(b.is(".persist")){return true}var a=b.is(".error")?"error":"confirm";var c=$('<span title="Close" />').text("[x] Close");b.prepend(c);c.css({"float":"right",top:0,cursor:"pointer",color:HR.ui.message.constants.colours[a].standard,padding:"10px",margin:"-20px -20px 0 0"}).mouseover(function(){$(this).css({color:HR.ui.message.constants.colours[a].hover})}).mouseout(function(){$(this).css({color:HR.ui.message.constants.colours[a].standard})});c.click(function(){HR.ui.message.fadeAll($(this))})})};HR.ObjectFinder=function(a){this.key=a;this.get=function(){HR.log("Object finder: looking for "+this.key);var e=this.key.split(".");var d=HR;var c=0;for(c=0;c<e.length;c++){var b=typeof d[e[c]];if(!(b==="object"||b==="function")){HR.log("Object finder: not found");return null}d=d[e[c]]}HR.log("Object finder: found!");return d}};HR.Site=function(){this.subdomains=["secure","support"]};HR.Site.prototype.DomainKey=function(){var b=0;for(b=0;b<this.subdomains.length;b++){var a=new RegExp("^"+this.subdomains[b]+"\\.");if(window.location.hostname.match(a)){return this.subdomains[b]}}return"main"};HR.Site.prototype.PathKey=function(){var b=window.location.pathname.split("/");var c=[];var a=0;for(a=0;a<b.length;a++){if(b[a].length>0){c.push(b[a])}}if(c.length===0){c=["main"]}return c.join(".")};HR.Site.prototype.PageKey=function(){return HR.CurrentController.site.DomainKey()+"."+HR.CurrentController.site.PathKey()};HR.MethodFinder=function(a){this.key=a;this.get=function(){HR.log("Method finder: looking for "+this.key);var b=new HR.ObjectFinder(a).get();if(typeof b==="function"){HR.log("Method finder: found!");return b}HR.log("Method finder: not present, returning empty function");return function(){}}};HR.Form=function(a){this.form=a;this.jqForm=null};HR.Form.prototype.jQueryForm=function(){if(this.jqForm===null){this.jqForm=$(this.form)}return this.jqForm};HR.Form.prototype.validate=function(){var a=true;var b=function(){return a instanceof HR.internal.message};$("input[type=text], input[type=password], textarea",this.jQueryForm()).not(".optional").each(function(){if(!b()){var d=new HR.Form.TextInput({selector:"#"+$(this).attr("id")});var c=d.validate();if(c instanceof HR.internal.message){a=c}}});return a};HR.Form.TextInput=function(d){var a=this;var b=new HR.optionSet(d);var c=null;if(b.contains("scope")){c=$(b.get("selector"),b.scope)}else{c=$(b.get("selector"))}this.prepare=function(){c.val($.trim(c.val()))};this.validate=function(){this.prepare();if(!this.isFilled()){c.key=HR.form.getValidateKey(c);var e=new HR.internal.message({note:"input is not allowed to be blank",type:"error",code:100,namespace:"validation",data:{key:c.key,object:c}});return e}return true};this.element=function(){return c};this.isFilled=function(){return $.trim(c.val())!==""};this.name=function(){return c.attr("name")};this.value=function(){return c.val()};this.persist=function(){var f=function(){HR.location.hash.set(a.name(),a.value())};var e=function(){$("."+c.attr("id")).each(function(){var i=$(this);var h=i.attr("href");var g=h.replace(a.name()+"="+$.url.setUrl(h).param(a.name()),a.name()+"="+encodeURI(a.value()));i.attr("href",g)})};if(this.isFilled()){f()}else{c.val(HR.location.hash.get(this.name()))}e();c.change(function(){f();e()}).keyup(function(){f();e()})}};HR.GlobalInitialiser=function(){HR.LinkInitialiser();HR.FormInitialiser();HR.MessageInitialiser();HR.ui.expandable.initialise();var b=$(".givemefocus");if(b.length){b.get(0).focus()}var a=$(".autoscroll");if(a.length){HR.window.scrollTo({target:a.get(0),offset:-30,duration:600})}};HR.MessageInitialiser=function(){$("div.message.error, div.message.confirm").hide();HR.ui.message.displayCloseIcon();$("div.message.error, div.message.confirm").fadeIn(2000)};HR.PageInitialiser=function(){this.get=function(){return new HR.MethodFinder(HR.CurrentController.site.PageKey()+".initialiser").get()}};HR.Controller=function(){this.site=new HR.Site()};HR.Controller.prototype.initialise=function(){HR.GlobalInitialiser();var a=new HR.PageInitialiser();a.get()()};HR.Controller.prototype.getMethods=function(b){var c=function(d){return d.nodeName.toLowerCase()==="form"};if(c(b)){var a=new HR.FormController(b);return a.getMethods(b)}return{validate:function(){},ajaxSuccess:function(){},ajaxError:function(){}}};HR.FormController=function(a){this.form=new HR.Form(a);this.customControllerMethods=new HR.ObjectFinder(HR.CurrentController.site.PageKey()+"."+this.form.form.id).get()};HR.FormController.prototype.validate=function(){var b=this.form.validate();if(b instanceof HR.internal.message){if(this.hasCustomMethod("customiseGenericResponse")){return this.customControllerMethods.customiseGenericResponse(b)}return b}var a=this.customMethods().validate();if(a instanceof HR.internal.message){return a}return true};HR.FormController.prototype.hasCustomMethod=function(a){if(typeof a!=="string"){return false}if(this.customControllerMethods===null){return false}return(typeof this.customControllerMethods[a]==="function")};HR.FormController.prototype.canHandleSubmission=function(){if(!this.form.jQueryForm().hasClass("handleSubmission")){HR.log("no handleSubmission");return false}if(!this.hasCustomMethod("ajaxSuccess")){HR.log("no ajaxSuccess");return false}return true};HR.FormController.prototype.handleAjaxSuccess=function(b,d,c){if(b.type==="redirect"){if(this.hasCustomMethod("preRedirect")){message=this.customControllerMethods.preRedirect(b,d,c)}HR.log("Redirecting to: "+b.value);window.location.href=b.value;return false}var a=this.customControllerMethods.ajaxSuccess(new HR.internal.message({note:b.note,type:b.type,code:b.code,namespace:b.namespace,data:{key:b.field,object:$("input[name="+b.field+"]")}}),this.form.form,b,d,c);if(a===true){HR.forms.enableInputButtons();return true}return this.handleResponseMessage(a)};HR.FormController.prototype.handleAjaxError=function(b,d,c){var a=new HR.internal.message({note:"ajax error",type:"error",code:b.status,namespace:"ajaxError",key:"default",data:{key:"default"}});if(this.hasCustomMethod("ajaxError")){a=this.customControllerMethods.ajaxError(a,b,d,c)}return this.handleResponseMessage(a)};HR.FormController.prototype.handleResponseMessage=function(b){if(HR.ui.message.exists(b)){var a=this.form.jQueryForm();HR.ui.message.display({content:HR.ui.message.message(b),type:b.type,data:b.data,postCallback:function(){var c=$(".message.confirm");var d=$(".message.error");if(b.namespace==="ajaxError"){HR.window.scrollTo({target:d.get(0),offset:-30,duration:600});return true}b.data.object.focus();if(b.type==="error"){HR.ui.addClass(b.data.object,"error","normal")}if(typeof b.callback==="function"){b.callback(this)}if(a.hasClass("returnToConfirmation")&&c.length){HR.window.scrollTo({target:c.get(0),offset:-30,duration:600})}else{if(a.hasClass("returnToError")&&d.length){HR.window.scrollTo({target:b.data.object,offset:-30,duration:600})}}}});return false}if(b.namespace==="ajaxError"){b.code=0;this.handleResponseMessage(b)}if(HR.internal.isLive()){return true}HR.log("error, no message for it");HR.log(b);HR.log(HR.ui.message.getKeyString(b));return false};HR.FormController.prototype.handleSubmission=function(){if(this.canHandleSubmission()){HR.log("FormController: handling submission");var a={url:this.form.jQueryForm().attr("action"),data:this.form.jQueryForm().serialize(),type:this.form.jQueryForm().attr("method").toUpperCase(),beforeSend:function(b){b.setRequestHeader("X-Environment","javascript")},success:this.handleAjaxSuccess,error:this.handleAjaxError,context:this};$.ajax(a);return false}return true};HR.FormController.prototype.defaultMethods=function(){return{validate:function(){HR.log("defaultControllerMethods: validate true");return true},ajaxSuccess:function(){HR.log("defaultControllerMethods: ajaxSuccess true");return true},ajaxError:function(){HR.log("defaultControllerMethods: ajaxError true");return true}}};HR.FormController.prototype.customMethods=function(){HR.log("FormController: looking for methods");var b=this.defaultMethods();if(this.customControllerMethods===null||typeof b!=="object"){HR.log("FormController: returning default methods 1");return b}var a="";for(a in b){if(b.hasOwnProperty(a)&&this.customControllerMethods.hasOwnProperty(a)){HR.log("FormController: found custom "+a);b[a]=this.customControllerMethods[a]}}return b};HR.FormInitialiser=function(){$("input.persist").each(function(){var b=new HR.Form.TextInput({selector:"#"+$(this).attr("id")});b.persist()});$("input[type=text],input[type=password], select, textarea").addClass("standby").focus(function(){$(this).addClass("focused")}).blur(function(){$(this).removeClass("focused")});$("form").click(function(b){HR.form.rememberSelectedButton(b,this)});var a={};$("input").each(function(){var c=function(d){return function(){HR.ui.removeClass(d,"error",300,function(){delete (a[$(this).attr("id")])})}};var b=function(d){if(d.hasClass("error")){if(typeof(a[d.attr("id")])==="undefined"){a[d.attr("id")]=window.setTimeout(c(d),750)}}};$(this).keydown(function(){b($(this))});$(this).change(function(){b($(this))});$(this).mousedown(function(){b($(this))})});$("form").submit(function(){HR.forms.disableInputButtons();HR.form.cloneMessageFields(this);HR.ui.message.clearAll();var c=new HR.FormController(this);var b=c.validate();if(b===false){return false}if(typeof b==="object"&&b.isEmpty()){return false}if(b instanceof HR.internal.message){HR.ui.message.display({content:HR.ui.message.message(b),type:b.type,data:b.data,postCallback:function(){b.data.object.focus();if(b.type==="error"){HR.ui.addClass(b.data.object,"error","normal")}if(typeof b.callback==="function"){b.callback(this)}}});return false}return c.handleSubmission()})};HR.LinkInitialiser=function(){$("a[href^=#]").click(function(){HR.window.scrollTo({target:$(this).attr("href"),offset:-30,duration:600})});$("a").focus(function(){$(this).addClass("focused")}).blur(function(){$(this).removeClass("focused")})};HR.MessageController=function(){};HR.TableInitialiser=function(){$("table").each(function(){var a=$(this);if(a.is(".no-striping")){return false}$("tr:nth-child(even)",a).addClass("highlightedRow");return true})};HR.CurrentController={};$(document).ready(function(){if(window.location.hostname.indexOf("local.hostingreborn.com")>-1){$("script[src=http://www.google-analytics.com/ga.js]").remove();$("script[src=https://ssl.google-analytics.com/ga.js]").remove();$("script").each(function(){if(this.getAttribute("src")===null){$(this).remove()}})}HR.CurrentController=new HR.Controller();HR.CurrentController.initialise()});HR.pricing={};HR.pricing.calculator=function(){var a=this;this.cost={update:function(){var e=this.get(365);$("#price-yearly").html(HR.format.GBP_readable(e));$("#price-monthly").html(HR.format.GBP_readable(e/12))},storage:function(e){return d.price.get()*d.amount.get()*(e/HR.date.daysInMonth())},bandwidth:function(){return c.price.get()*c.amount.get()*12},get:function(e){return this.storage(e)+this.bandwidth()}};this.update={all:function(e){d.amount.set(null,e);c.amount.set(null,e);d.amount.incrementor.setAmount(d.amount.get());c.amount.incrementor.setAmount(c.amount.get())}};var b=function(f){if(!(f==="storage"||f==="bandwidth")){return false}var e=function(h){if(!(h==="storage"||h==="bandwidth")){return false}var i=h+"Amount";this.get=function(){return $("#"+i).val()};this.set=function(j,k){if(HR.validate.isNumeric(j)===false){if(typeof(k)!=="boolean"||k!==true){return false}j=HR.location.hash.get(i);if(HR.validate.isNumeric(j)===false){j=this.get()}}HR.location.hash.set(i,j);$("#"+i).val(j);a.cost.update();return true};this.incrementor=new HR.incrementor({initialAmount:this.get(),minimum:0,maximum:10000})};var g=function(h){if(!(h==="storage"||h==="bandwidth")){return false}var i=h+"Price";this.get=function(){return $("#"+i).attr("class")}};this.amount=new e(f);this.price=new g(f)};var d=new b("storage");var c=new b("bandwidth");this.initialise=function(){if((window.location+"").indexOf("basic")!==-1){return true}var i=function(){d.amount.set(d.amount.incrementor.amount())};var j=function(){c.amount.set(c.amount.incrementor.amount())};var k=function(m,l){d.amount.incrementor.start({direction:l,delta:m,callback:i,callbackInterval:f})};var h=function(){d.amount.incrementor.stop();d.amount.set(d.amount.get());d.amount.incrementor.setAmount(d.amount.get())};var g=function(m,l){c.amount.incrementor.start({direction:l,delta:m,callback:j,callbackInterval:f})};var e=function(){c.amount.incrementor.stop();c.amount.set(c.amount.get());c.amount.incrementor.setAmount(c.amount.get())};$("#storageinput").append($('<span class="bigarrows" />').append($('<a id="storage-increase" href="#" class="bigarrow bigarrow-up" />').click(function(){return false}).mouseup(function(){h()}).mousedown(function(){k(1,"up")}).mouseout(function(){h()})).append($('<a id="storage-decrease" href="#" class="bigarrow bigarrow-down" />').click(function(){return false}).mouseup(function(){h()}).mousedown(function(){k(1,"down")}).mouseout(function(){h()})));$("#bandwidthinput").append($('<span class="bigarrows" />').append($('<a id="bandwidth-increase" href="#" class="bigarrow bigarrow-up" />').click(function(){return false}).mouseup(function(){e()}).mousedown(function(){g(1,"up")}).mouseout(function(){e()})).append($('<a id="bandwidth-decrease" href="#" class="bigarrow bigarrow-down" />').click(function(){return false}).mouseup(function(){e()}).mousedown(function(){g(1,"down")}).mouseout(function(){e()})));var f=50;$("#storageAmount").change(function(){d.amount.set(d.amount.get())}).keyup(function(){h()}).keydown(function(l){switch(l.keyCode){case 33:k(10,"up");break;case 34:k(10,"down");break;case 38:k(1,"up");break;case 40:k(1,"down");break;default:break}});$("#bandwidthAmount").change(function(){c.amount.set(c.amount.get())}).keyup(function(){e()}).keydown(function(l){switch(l.keyCode){case 33:g(10,"up");break;case 34:g(10,"down");break;case 38:g(1,"up");break;case 40:g(1,"down");break;default:break}});$("#calculate").hide();$("#calculateForm").submit(function(){return false});$("#typicalCosts a").click(function(){var n=HR.url.query.value("storageAmount",$(this).attr("href"));var l=HR.url.query.value("bandwidthAmount",$(this).attr("href"));var m=($("#price-monthly:in-viewport").length===0)?500:200;HR.window.scrollTo({target:"#calculator",offset:-30,duration:400});window.setTimeout(function(){d.amount.set(n);c.amount.set(l);a.update.all()},m);return false});this.update.all(true);return true}};HR.BuildNamespace("HR.main.pricing");HR.main.pricing={};HR.main.pricing.initialiser=function(){var a=new HR.pricing.calculator();a.initialise()};PASSWORD={};PASSWORD.characterClasses={};HR.constants.messages.contact={error:{101:{email:{heading:"Email address valid?",body:'<p><label><input type="checkbox" value="1" name="ignoreInvalidEmail-user" />No, my email address is correct.</label></p>'}}}};HR.constants.messages.contact.confirm={100:{email:{heading:"Your messsage has been sent to enquiries@{domain}",body:'<p>An automatic response will soon be sent to <strong>{email}</strong>.</p><ul><li><a href="https://secure.{domain}/messages/">View and update your message online</a></li><li><a id="sendNewMessage" href="https://secure.{domain}/contact/">Send a new message</a></li></ul>'}}};HR.BuildNamespace("HR.secure.contact.contact");HR.secure.contact.contact.ajaxSuccess=function(c,b,a,e,d){c.data.mappings={email:$("#email").val()};c.callback=function(){var f=$("input[name=ignoreInvalidEmail-user]");f.change(function(){$("input[name=ignoreInvalidEmail]").attr("checked",f.is(":checked"))});$("#sendNewMessage").click(function(){$("span:first",b).click();$("input[type=text], textarea",b).val("").removeClass("error");$("#email").focus();$("input[name=ignoreInvalidEmail]").attr("checked",false);return false})};return c};HR.constants.messages.login={error:{102:{password:{heading:"Sorry, that email address and password are not correct.",body:'<p>You may like to: </p><ul><li><p><a href="https://secure.{domain}/register/?email={email}">register an account for {email}</a> if you don\'t think you have an account</p></li><li><p><a href="https://secure.{domain}/resetpassword/?email={email}">reset your password</a> if your email address is definitely correct</p></li></ul>'}}}};HR.BuildNamespace("HR.secure.login.login");HR.secure.login.login.validate=function(a){return true};HR.secure.login.login.ajaxSuccess=function(c,b,a,e,d){c.data.mappings={email:$("#email").val()};return c};HR.secure.login.login.preRedirect=function(){var b=$("#nav-logout");if(b.length>0){return true}var a=$('<li id="nav-logout"><a title="Log out" href="https://secure.local.hostingreborn.com/logout/" class="">Log out</a></li>').hide();$("#nav ul").append(a);a.fadeIn();$("#nav-account-tab-login").remove();$("#content").children().slideUp();$("#content").children().remove();$("#content").append($("<p>").css({"font-size":"120%",width:"200px",margin:"6em auto"}).text("Loading account ..."))};HR.BuildNamespace("HR.secure.messages.openmessage");HR.secure.messages.openmessage.customiseGenericResponse=function(a){a.namespace="openmessage";return a};HR.secure.messages.openmessage.validate=function(){};HR.constants.messages.register={error:{101:{email:{heading:"Email address invalid?",body:'<p><label><input type="checkbox" value="1" name="ignoreInvalidEmail-user" />No, my email address is correct.</label></p>'}}},confirm:{100:{email:{heading:"{email} has an account!",body:'<p>Try to go to your <a href="https://secure.{domain}/myaccount/">account dashboard</a>, or perhaps <a href="https://secure.{domain}/resetpassword/?email={email}">reset your password</a> if you\'ve lost it.</p>'}}}};HR.BuildNamespace("HR.secure.register.registrationrequest");HR.secure.register.registrationrequest.ajaxSuccess=function(c,b,a,e,d){c.data.mappings={email:$("#email").val()};return c};PASSWORD.characterClasses.characterClass=function(d,f){var c=null;var a=[];var e=function(i){var g=[];var h=0;for(h=0;h<i.length;(h+=1)){g[h]=i.charAt(h)}return g};var b=function(g){if(typeof g!=="number"){return false}if(typeof a[g]!=="string"){return false}return true};this.setName=function(g){if(typeof g!=="string"){return false}return(c=g)};this.getName=function(){return c};this.setCharacters=function(g){if(typeof g!=="string"){return(a=[])}return(a=e(g))};this.contains=function(g){if(typeof g!=="string"){return false}var h=0;for(h=0;h<a.length;(h+=1)){if(a[h]===g){return true}}return false};this.length=function(){return a.length};this.characters=function(){return a};this.get=function(g){if(!b(g)){return""}return a[g]};this.initialise=function(g,h){this.setName(g);this.setCharacters(h)};this.initialise(d,f)};PASSWORD.characterClasses.characterClassList=function(){var b={};var c={"::alpha_lower::":"abcdefghijklnmopqrstuvwxyz","::alpha_upper::":"ABCDEFGHIJKLMNOPQRSTUVWXYZ","::numbers::":"0123456789","::special::":"!\"??$%^&*()_-+={}[];:'@#~|\\,<.>/?`"};var d=null;var a=function(e){if(typeof e!=="string"){return false}return e.length===1};this.classNames=function(){if(d===null){d=[];var e="";for(e in c){if(c.hasOwnProperty(e)){d.push(e)}}}return d};this.classFromCharacter=function(g){if(!a(g)){return new PASSWORD.characterClasses.characterClass()}var f=null;var e="";for(e in this.classes()){if(b.hasOwnProperty(e)){f=b[e];if(f.contains(g)){return f}}}return new PASSWORD.characterClasses.characterClass()};this.inSameClass=function(e,f){if(!a(e)||!a(f)){return false}return this.classFromCharacter(e).getName()===this.classFromCharacter(f).getName()};this.classes=function(){return b};this.length=function(){var f=0;var e="";for(e in b){if(b.hasOwnProperty(e)){f+=1}}return f};this.get=function(e){if(typeof b[e]!=="object"){return new PASSWORD.characterClasses.characterClass()}return b[e]};this.getRandom=function(){var g=0;var e=this.classNames().length-1;var f=Math.floor(Math.random()*(e-g+1))+g;var i=0;var h="";for(h in b){if(b.hasOwnProperty(h)){if(i===f){return b[h]}i+=1}}return new PASSWORD.characterClasses.characterClass()};this.initialise=function(){var e="";for(e in c){if(c.hasOwnProperty(e)){b[e]=new PASSWORD.characterClasses.characterClass(e,c[e])}}};this.initialise()};PASSWORD.strength={};PASSWORD.longestRepeatingSubstringFinder={};PASSWORD.longestRepeatingSubstringFinder.Array=function(){this.count=function(c){var b=0;var a=0;for(a=0;a<this.length;(a+=1)){if(this[a]===c){b+=1}}return b};this.contains=function(a){return this.count(a)>1}};PASSWORD.longestRepeatingSubstringFinder.Array.prototype=Array();PASSWORD.longestRepeatingSubstringFinder.finder=function(h){var c="";var g=null;var f=null;var b=null;var e=function(){var j=0;var i=0;f=new PASSWORD.longestRepeatingSubstringFinder.Array();for(j=0;j<c.length;(j+=1)){for(i=j+1;i<=c.length;(i+=1)){f.push(c.substring(j,i))}}};var a=function(){if(f===null){e()}b=new PASSWORD.longestRepeatingSubstringFinder.Array();var j="";var i=0;for(i=0;i<f.length;(i+=1)){j=f[i];if(f.count(j)>1){if(!b.contains(j)){b.push(j)}}}b.sort(function(l,k){if(l.length===k.length){return 0}return l.length<k.length})};var d=function(){if(typeof g==="string"){return g}if(b===null){a()}return(g=(b.length===0)?"":b[0])};this.get=function(){if(g===null){d()}return g};this.initialise=function(i){if(typeof i!=="string"){i=""}g=null;f=null;b=null;return(c=i)};this.initialise(h)};PASSWORD.strength.rule=function(a){var b=null;this.weight=1;this.calculateScore=function(c){return 0};this.getWeight=function(){return this.weight};this.setWeight=function(c){if(typeof c!=="number"){return false}return(this.weight=c)};this.characterClassList=function(){if(b===null){b=new PASSWORD.characterClasses.characterClassList()}return b};this.characters=function(d){if(typeof d!=="string"){return[]}var c=[];var e=0;for(e=0;e<d.length;e++){c.push(d.charAt(e))}return c};this.initialise=function(c){this.setWeight(c)};this.initialise(a)};PASSWORD.strength.characterClassCountRule=function(){var a={percentage_threshold:20,below_threshold_score:1,above_threshold_score:-1};this.classCounts=[];this.classRatios=[];this.classesToCheck=null;this.percentageThreshold=null;this.belowThresholdScore=null;this.aboveThresholdScore=null;this.setCharacterClassToCheck=function(b){if((!b instanceof Array)&&typeof b!=="string"){return(this.classesToCheck=[])}if(typeof b==="string"){b=[b]}return(this.classesToCheck=b)};this.setPercentageThreshold=function(b){if(typeof b!=="number"){return(this.percentageThreshold=null)}return(this.percentageThreshold=b)};this.getPercentageThreshold=function(){return(this.percentageThreshold===null)?a.percentage_threshold:this.percentageThreshold};this.getClassesToCheck=function(){return this.classesToCheck};this.getClassProportionPercentage=function(){var d=0;var c="";var b="";for(b in this.classesToCheck){if(this.classesToCheck.hasOwnProperty(b)){c=this.classesToCheck[b];if(typeof this.classRatios[c]==="number"){d+=this.classRatios[c]}}}return d*100};this.setBelowThresholdScore=function(b){if(typeof b!=="number"){return(this.belowThresholdScore=null)}return(this.belowThresholdScore=b)};this.setAboveThresholdScore=function(b){if(typeof b!=="number"){return(this.aboveThresholdScore=null)}return(this.aboveThresholdScore=b)};this.getBelowThresholdScore=function(){return(this.belowThresholdScore===null)?a.below_threshold_score:this.belowThresholdScore};this.getAboveThresholdScore=function(){return(this.aboveThresholdScore===null)?a.above_threshold_score:this.aboveThresholdScore};this.calculateScore=function(b){this.countClassUsage(b);var c=(this.getClassProportionPercentage()>this.getPercentageThreshold())?this.getAboveThresholdScore():this.getBelowThresholdScore();return c};this.initialise=function(){this.classCounts=[];this.classRatios=[]};this.initialise()};PASSWORD.strength.characterClassCountRule.prototype=new PASSWORD.strength.rule();PASSWORD.strength.characterClassProportionRule=function(){this.countClassUsage=function(b){this.classCounts=[];this.classRatios=[];var a=this.characters(b);var f="";var d="";var g=0;for(g=0;g<a.length;(g+=1)){f=a[g];d=this.characterClassList().classFromCharacter(f).getName();if(this.classCounts[d]===undefined){this.classCounts[d]=0}this.classCounts[d]+=1}var e=0;var c="";for(c in this.classCounts){if(this.classCounts.hasOwnProperty(c)){e=this.classCounts[c];this.classRatios[c]=(e/a.length)}}};this.initialise=function(){this.classCounts=[];this.classRatios=[]};this.initialise()};PASSWORD.strength.characterClassProportionRule.prototype=new PASSWORD.strength.characterClassCountRule();PASSWORD.strength.characterClassRepetitionRule=function(){this.countClassUsage=function(i){var e=this.characters(i);var h="";var a=[];var g=0;var c="";var d="";var b=0;var f=0;for(f=0;f<e.length;(f+=1)){c=e[f];d=this.characterClassList().classFromCharacter(c).getName();if(d===h){a[g].count+=1}else{a.push({"class":d,count:1});g=a.length-1}h=d}var j=0;for(j=0;j<a.length;(j+=1)){d=a[j]["class"];if(a[d]===undefined){this.classCounts[d]=a[j].count}else{if(this.classCounts[d]<a[j].count){this.classCounts[d]=a[j].count}}}for(d in this.classCounts){if(this.classCounts.hasOwnProperty(d)){b=this.classCounts[d];this.classRatios[d]=b/e.length}}};this.initialise=function(){};this.initialise()};PASSWORD.strength.characterClassRepetitionRule.prototype=new PASSWORD.strength.characterClassCountRule();PASSWORD.strength.lengthRule=function(c){var a={minimumLength:8};var b=null;this.calculateScore=function(d){if(typeof d!=="string"){return 0}var e=d.length-this.getMinimumLength()+1;return e/this.getMinimumLength()};this.setMinimumLength=function(d){if(typeof d!=="number"){return(b=null)}return(b=d)};this.getMinimumLength=function(){if(b===null){return a.minimumLength}return b};this.initialise=function(d){this.setMinimumLength(d)};this.initialise(c)};PASSWORD.strength.lengthRule.prototype=new PASSWORD.strength.rule();PASSWORD.strength.longestRepeatingSubstringRule=function(){var b={repetition_percentage_threshold:100};var a=null;this.setRepetitionPercentageThreshold=function(c){if(typeof c!=="number"){return(a=null)}return(a=c)};this.getRepetitionPercentageThreshold=function(){return(a===null)?b.repetition_percentage_threshold:a};this.calculateScore=function(d){if(typeof d!=="string"){return 0}var f=new PASSWORD.longestRepeatingSubstringFinder.finder(d);var e=f.get().length;var c=(e===0)?0:e/d.length;return((c*100)<this.getRepetitionPercentageThreshold())?0:-1};this.initialise=function(){this.setWeight(4)};this.initialise()};PASSWORD.strength.longestRepeatingSubstringRule.prototype=new PASSWORD.strength.rule();PASSWORD.strength.mixedCharactersRule=function(){this.calculateScore=function(h){if(typeof h!=="string"){return 0}var f=this.characters(h);var a=this.characterClassList().classNames();var b=[];var c=0;var i=0;var g=0;for(i=0;i<a.length;i++){var e=this.characterClassList().get(a[i]);for(g=0;g<f.length;g++){var d=f[g];if(b[e.getName()]===undefined){if(e.contains(d)){b[e.getName()]=true;c++}}}}return c-(this.characterClassList().length()/2)};this.initialise=function(){this.setWeight(4)};this.initialise()};PASSWORD.strength.mixedCharactersRule.prototype=new PASSWORD.strength.rule();PASSWORD.strength.requiredCharactersRule=function(b,a,g){var e={minimumFrequency:1,minimumFrequencyMatchedScore:1};var d=null;var f=null;var c=null;this.calculateScore=function(i){if(typeof i!=="string"){return 0}var l=0;var h=this.characters(i);var m=0;for(m=0;m<h.length;m++){var k=h[m];if(d.contains(k)){l++}}var j=this.getMinimumFrequencyMatchedScore();return(l>=this.getMinimumFrequency())?j:-1*j};this.setMinimumFrequency=function(h){if(typeof h!=="number"){return(f=null)}return(f=h)};this.getMinimumFrequency=function(){if(f===null){return e.minimumFrequency}return f};this.setMinimumFrequencyMatchedScore=function(h){if(typeof h!=="number"){return(c=null)}return(c=h)};this.getMinimumFrequencyMatchedScore=function(){if(c===null){return e.minimumFrequencyMatchedScore}return c};this.initialise=function(i,h,j){if(typeof i==="object"){d=i}this.setMinimumFrequency(h);this.setMinimumFrequencyMatchedScore(j)};this.initialise(b,a,g)};PASSWORD.strength.requiredCharactersRule.prototype=new PASSWORD.strength.rule();PASSWORD.strength.variedCharactersRule=function(){this.calculateScore=function(b){if(typeof b!=="string"){return 0}var a=this.characters(b);var c="";var e="";var f=0;var d=0;for(d=0;d<a.length;d++){if(d>1){e=a[d];c=a[d-1];if(!this.characterClassList().inSameClass(e,c)){f++}}}return f};this.initialise=function(){this.setWeight(4)};this.initialise()};PASSWORD.strength.variedCharactersRule.prototype=new PASSWORD.strength.rule();PASSWORD.strength.calculator=function(){var a=[];this.rules=function(){return a};this.getScore=function(c){if(typeof c!=="string"){return 0}var b=0;var d=0;var f=null;var g=0;var e=0;for(e=0;e<a.length;(e+=1)){f=a[e];g=f.calculateScore(c)*f.getWeight();b+=f.getWeight();d+=g}if(d===0||b===0){return 0}return(d/b)};this.initialise=function(){a=[]};this.initialise()};PASSWORD.strength.checker=function(b){var d={weight:{requiredCharacters:1,length:2,mixed:3,varied:2,proportion:{alpha:2,special:2,numbers:2},repetition:{upper:5,lower:5,numbers:2},repeatingSubstring:20},rating:{threshold:{low:0.3,mid:0.6},wording:{low:"weak",mid:"fair",high:"strong"}}};var i="";var j=null;var a=null;var c=null;var f={};var h={};var g=function(){if(c===null){c=new PASSWORD.characterClasses.characterClassList()}return c};var e=function(){if(j===null){j=new PASSWORD.strength.calculator();var n=g().classes();var v="";for(v in n){if(n.hasOwnProperty(v)){var s=new PASSWORD.strength.requiredCharactersRule(g().get(v));s.setWeight(d.weight.requiredCharacters);j.rules().push(s)}}var t=new PASSWORD.strength.lengthRule();t.setWeight(d.weight.length);j.rules().push(t);var r=new PASSWORD.strength.mixedCharactersRule();r.setWeight(d.weight.mixed);j.rules().push(r);var m=new PASSWORD.strength.variedCharactersRule();m.setWeight(d.weight.varied);j.rules().push(m);var q=new PASSWORD.strength.characterClassProportionRule();q.setCharacterClassToCheck(["::alpha_lower::","::alpha_upper::"]);q.setPercentageThreshold(80);q.setWeight(d.weight.proportion.alpha);j.rules().push(q);var l=new PASSWORD.strength.characterClassProportionRule();l.setCharacterClassToCheck(["::numbers::"]);l.setPercentageThreshold(35);l.setWeight(d.weight.proportion.numbers);j.rules().push(l);var p=new PASSWORD.strength.characterClassProportionRule();p.setCharacterClassToCheck(["::special::"]);p.setPercentageThreshold(20);p.setBelowThresholdScore(-1);p.setAboveThresholdScore(0);p.setWeight(d.weight.proportion.special);j.rules().push(p);var k=new PASSWORD.strength.characterClassRepetitionRule();k.setCharacterClassToCheck("::alpha_lower::");k.setPercentageThreshold(70);k.setBelowThresholdScore(1);k.setAboveThresholdScore(-1);k.setWeight(d.weight.repetition.lower);j.rules().push(k);var u=new PASSWORD.strength.characterClassRepetitionRule();u.setCharacterClassToCheck("::alpha_upper::");u.setPercentageThreshold(70);u.setBelowThresholdScore(1);u.setAboveThresholdScore(-1);u.setWeight(d.weight.repetition.upper);j.rules().push(u);var w=new PASSWORD.strength.characterClassRepetitionRule();w.setCharacterClassToCheck("::numbers::");w.setPercentageThreshold(70);w.setBelowThresholdScore(1);w.setAboveThresholdScore(-1);w.setWeight(d.weight.repetition.numbers);j.rules().push(w);var o=new PASSWORD.strength.longestRepeatingSubstringRule();o.setRepetitionPercentageThreshold(30);o.setWeight(d.weight.repeatingSubstring);j.rules().push(o)}return j};this.setRatingWording=function(l,k){if(l!=="low"&&l!=="mid"&&l!=="high"){return false}return(f[l]=k)};this.getRatingWording=function(k){return(typeof f[k]==="string")?f[k]:d.rating.wording[k]};this.setRatingThreshold=function(l,k){if(typeof l!=="string"){return false}if(typeof k!=="number"){return false}return(h[l]=k)};this.getRatingThreshold=function(k){return(typeof h[k]==="string")?h[k]:d.rating.threshold[k]};this.getRatingLevel=function(k){if(this.getScore(k)<this.getRatingThreshold("low")){return"low"}if(this.getScore(k)<this.getRatingThreshold("mid")){return"mid"}return"high"};this.setPassword=function(k){if(typeof k!=="string"){k=""}a=null;return(i=k)};this.getScore=function(k){if(typeof k==="string"){this.setPassword(k)}if(a===null){a=e().getScore(i)}return a};this.getRating=function(k){if(this.getScore(k)<this.getRatingThreshold("low")){return this.getRatingWording("low")}if(this.getScore(k)<this.getRatingThreshold("mid")){return this.getRatingWording("mid")}return this.getRatingWording("high")};this.toObject=function(){return{score:this.getScore(),rating:this.getRating()}};this.initialise=function(k){this.setPassword(k)};this.initialise(b)};PASSWORD.strength.controllerOptions=function(g){var c={changeWaitTime:400,events:{initialise:function(h){},change:function(h){},detectLow:function(h){},detectMid:function(h){},detectHigh:function(h){}}};var a={};var f=null;var e=null;var b=function(){var h=document.createElement("input");h.setAttribute("type","password");return h};var d=function(i){var h=function(m){var k=["INPUT","TEXTAREA"];var l=0;for(l=0;l<k.length;l++){if(m===k[l]){return true}}return false};var j=function(m){var k=["text","password"];var l=0;for(l=0;l<k.length;l++){if(m===k[l]){return true}}return false};if(!h(i.nodeName)){return false}if(i.nodeName==="INPUT"){if(!j(i.getAttribute("type"))){return false}}return true};this.getChangeCallback=function(){if(typeof a.events!=="object"){return c.events.change}return(typeof a.events.change==="function")?a.events.change:c.events.change};this.getLowRatingCallback=function(){if(typeof a.events!=="object"){return c.events.detectLow}return(typeof a.events.detectLow==="function")?a.events.detectLow:c.events.detectLow};this.getMidRatingCallback=function(){if(typeof a.events!=="object"){return c.events.detectMid}return(typeof a.events.detectMid==="function")?a.events.detectMid:c.events.detectMid};this.getHighRatingCallback=function(){if(typeof a.events!=="object"){return c.events.detectHigh}return(typeof a.events.detectHigh==="function")?a.events.detectHigh:c.events.detectHigh};this.getInitialisationCallback=function(){if(typeof a.events!=="object"){return c.events.initialise}return(typeof a.events.initialise==="function")?a.events.initialise:c.events.initialise};this.setChangeWaitTime=function(h){if(typeof h!=="number"){return false}h=Math.floor(h);return(e=h)};this.getChangeWaitTime=function(){return(e===null)?c.changeWaitTime:e};this.getPasswordField=function(){if(f===null){if(d(a.passwordField)){f=a.passwordField}else{f=b()}}return f};this.initialise=function(h){if(typeof h!=="object"){return false}a=h;return true};this.initialise(g)};PASSWORD.strength.controller=function(c){var b=null;var a=null;this.getPasswordField=function(){return $(b.getPasswordField())};this.getChangeWaitTime=function(){return b.getChangeWaitTime()};this.getChangeCallback=function(){return b.getChangeCallback()};this.getLowRatingCallback=function(){return b.getLowRatingCallback()};this.getMidRatingCallback=function(){return b.getMidRatingCallback()};this.getHighRatingCallback=function(){return b.getHighRatingCallback()};this.getInitialisationCallback=function(){return b.getInitialisationCallback()};this.checker=function(){return a};this.initialise=function(g){b=new PASSWORD.strength.controllerOptions(g);a=new PASSWORD.strength.checker();var i=this.getPasswordField();var f=this.getChangeCallback();var j=this.getLowRatingCallback();var k=this.getMidRatingCallback();var h=this.getHighRatingCallback();var d=this.getChangeWaitTime();var e=null;var m=null;var l=function(){a.setPassword(i.val());switch(a.getRating()){case a.getRatingWording("low"):m=j;break;case a.getRatingWording("mid"):m=k;break;case a.getRatingWording("high"):m=h;break}if(e!==null){window.clearTimeout(e)}e=window.setTimeout(function(){m(i)},d);f(i)};this.getPasswordField().change(function(){l()});this.getPasswordField().keyup(function(){l()})};this.initialise(c)};HR.resetpassword={};HR.resetpassword.validate={key:{present:function(a){return a!==""},valid:function(a){return(/[a-zA-Z0-9]{32}/).test(a)}},password:{present:function(a){return a!==""}}};HR.BuildNamespace("HR.account.resetpassword.controller");HR.account.resetpassword.controller.main=function(){this.isConfirm=function(){return window.location.pathname.indexOf("/confirm")>-1};this.isRequest=function(){return !this.isConfirm()};this.requestController=new HR.account.resetpassword.controller.request();this.confirmController=new HR.account.resetpassword.controller.confirm()};HR.account.resetpassword.controller.request=function(){};HR.account.resetpassword.controller.confirm=function(){this.keyField=function(){return $("#key")};this.key=function(){return $.trim(this.keyField().val())};this.passwordField=function(){return $("#password")};this.password=function(){return $.trim(this.passwordField().val())};this.passwordContainer=function(){return $("#passwordContainer")};this.pickForMe=function(){return $("#pickForMe")};this.wordedRating={element:function(){return $("#wordedPasswordStrength")},ratingWording:{low:"a bit poor, really",mid:"good enough",high:"great"},setRatingStyle:function(a){this.element().text(this.ratingWording[a])}}};HR.account.resetpassword.controller.confirm.prototype.meter={ratingStyles:{low:"meter-weak",mid:"meter-good",high:"meter-strong"},element:function(){return $(".meter",this.passwordContainer)},clear:function(){var a="";for(a in this.ratingStyles){if(this.ratingStyles.hasOwnProperty(a)){this.element().removeClass(this.ratingStyles[a])}}this.setWidth(0)},setRatingStyle:function(a){this.clear();this.element().addClass(this.ratingStyles[a])},setWidth:function(a){this.element().css({width:a})},calculateWidth:function(e,a,d){var b={low:50,mid:80,high:100};if(a==="high"){this.setWidth("100%")}var c=(e/d)*b[a];if(c<5){this.setWidth("5%")}this.setWidth(c+"%")}};HR.resetpassword={};HR.resetpassword.validate={password:{present:function(a){return a!==""}}};HR.BuildNamespace("HR.hostingaccount.resetpassword.controller");HR.hostingaccount.resetpassword.controller=function(){var a=null;this.hasPasswordField=function(){if(a===null){a=$("#password")}return a.length};this.passwordField=function(){if(a===null){a=$("#password")}return a};this.password=function(){return $.trim(this.passwordField().val())};this.passwordContainer=function(){return $("#passwordContainer")};this.pickForMe=function(){return $("#pickForMe")};this.wordedRating={element:function(){return $("#wordedPasswordStrength")},ratingWording:{low:"a bit poor, really",mid:"good enough",high:"great"},setRatingStyle:function(b){this.element().text(this.ratingWording[b])}}};HR.hostingaccount.resetpassword.controller.prototype.meter={ratingStyles:{low:"meter-weak",mid:"meter-good",high:"meter-strong"},element:function(){return $(".meter",this.passwordContainer)},clear:function(){var a="";for(a in this.ratingStyles){if(this.ratingStyles.hasOwnProperty(a)){this.element().removeClass(this.ratingStyles[a])}}this.setWidth(0)},setRatingStyle:function(a){this.clear();this.element().addClass(this.ratingStyles[a])},setWidth:function(a){this.element().css({width:a})},calculateWidth:function(e,a,d){var b={low:50,mid:80,high:100};if(a==="high"){this.setWidth("100%")}var c=(e/d)*b[a];if(c<5){this.setWidth("5%")}this.setWidth(c+"%")}};HR.resetpassword={};HR.resetpassword.validate={key:{present:function(a){return a!==""},valid:function(a){return(/[a-zA-Z0-9]{32}/).test(a)}},password:{present:function(a){return a!==""}}};HR.resetpassword.controller={};HR.resetpassword.controller.main=function(){this.isConfirm=function(){return window.location.pathname.indexOf("/confirm")>-1};this.isRequest=function(){return !this.isConfirm()};this.requestController=new HR.resetpassword.controller.request();this.confirmController=new HR.resetpassword.controller.confirm()};HR.resetpassword.controller.request=function(){};HR.resetpassword.controller.confirm=function(){this.keyField=function(){return $("#key")};this.key=function(){return $.trim(this.keyField().val())};this.passwordField=function(){return $("#password")};this.password=function(){return $.trim(this.passwordField().val())};this.passwordContainer=function(){return $("#passwordContainer")};this.pickForMe=function(){return $("#pickForMe")};this.wordedRating={element:function(){return $("#wordedPasswordStrength")},ratingWording:{low:"a bit poor, really",mid:"good enough",high:"great"},setRatingStyle:function(a){this.element().text(this.ratingWording[a])}}};HR.resetpassword.controller.confirm.prototype.meter={ratingStyles:{low:"meter-weak",mid:"meter-good",high:"meter-strong"},element:function(){return $(".meter",this.passwordContainer)},clear:function(){for(var a in this.ratingStyles){if(this.ratingStyles.hasOwnProperty(a)){this.element().removeClass(this.ratingStyles[a])}}this.setWidth(0)},setRatingStyle:function(a){this.clear();this.element().addClass(this.ratingStyles[a])},setWidth:function(a){this.element().css({width:a})},calculateWidth:function(e,a,d){var b={low:50,mid:80,high:100};if(a=="high"){this.setWidth("100%")}var c=(e/d)*b[a];if(c<5){this.setWidth("5%")}this.setWidth(c+"%")}};HR.BuildNamespace("HR.constants.messages.validation.error.102.hostingaccountpasswordreset_password");HR.constants.messages.validation.error[102].hostingaccountpasswordreset_password={heading:"You didn't pick a new password!",body:'<p>It has to be at least 8 characters long and should contain upper and lower case characters, numbers and punctuation to make it tricky to guess.<p>Read about <a href="http://support.{domain}/choosing-a-secure-password/">choosing a secure password</a>.</p>'};HR.BuildNamespace("HR.constants.messages.validation.error.103.hostingaccountpasswordreset_password");HR.constants.messages.validation.error[103].hostingaccountpasswordreset_password={heading:" Password insecure!",body:'<p>Your password is too easy to guess, either by a person or by a rather persistent computer.</p><p>Have a read though our advice on <a href="http://support.{domain}/choosing-a-secure-password/">choosing a secure password</a> or check the option below the password field to let us generate a secure password for you.</p>'};HR.BuildNamespace("HR.constants.messages.hostingaccountResetPassword.confirm.100.password");HR.constants.messages.hostingaccountResetPassword.confirm[100].password={heading:"",body:""};HR.BuildNamespace("HR.secure.myaccount.hostingaccounts.manage");HR.BuildNamespace("HR.secure.myaccount.hostingaccounts.manage.resetPassword");HR.secure.myaccount.hostingaccounts.manage.resetPassword.validate=function(){$("#servicePasswordResetDone").remove();var b=new HR.hostingaccount.resetpassword.controller();if(b.pickForMe().is(":checked")===false){if(HR.resetpassword.validate.password.present(b.password())===false){return new HR.internal.message({type:"error",code:102,namespace:"validation",data:{key:"hostingaccountpasswordreset_password",object:b.passwordField(),messageType:"closed"},key:"hostingaccountpasswordreset_password"})}var a=new PASSWORD.strength.controller({passwordField:b.passwordField().get(0)});if(a.checker().getRatingLevel(b.password())==="low"){return new HR.internal.message({type:"error",code:103,namespace:"validation",data:{key:"hostingaccountpasswordreset_password",object:b.passwordField(),messageType:"closed"},key:"hostingaccountpasswordreset_password"})}return true}return true};HR.secure.myaccount.hostingaccounts.manage.resetPassword.ajaxSuccess=function(a){var c=$("input[name=domain]","#resetPassword").val();var b=$('<p id="servicePasswordResetDone"><label style="display: inline;" for="serviceNewPassword">New password: </label><span id="serviceNewPassword"></span></p>');var d=$("#serviceNewPassword",b);$("#resetPassword").before(b);d.text(a.note);d.effect("highlight",{mode:"show",color:"#F7CE25"},300,function(){d.effect("highlight",{mode:"show",color:"#F7CE25"},300,function(){d.effect("highlight",{mode:"show",color:"#F7CE25"},300)})});return true};HR.secure.myaccount.hostingaccounts.manage.initialiser=function(){$("#wordedPasswordStrengthIntro").text("Current password strength:");var b=new HR.hostingaccount.resetpassword.controller();if(b.hasPasswordField()){var c=function(d){b.meter.setRatingStyle(d);b.wordedRating.setRatingStyle(d);b.meter.calculateWidth(a.checker().getScore(),a.checker().getRatingLevel(),a.checker().getRatingThreshold(a.checker().getRatingLevel()))};var a=new PASSWORD.strength.controller({passwordField:b.passwordField().get(0),events:{initialise:function(){c("low")},detectLow:function(){c("low")},detectMid:function(){c("mid")},detectHigh:function(){c("high")}}});b.pickForMe().click(function(){if(b.passwordContainer().css("display")==="block"){b.passwordContainer().slideUp()}else{b.passwordContainer().slideDown()}});if(b.pickForMe().is(":checked")){b.passwordContainer().hide()}a.getInitialisationCallback()()}$("#nameServerList").addClass("expandable");$("#nameServerList li:first").addClass("expandable-control");$(":not(li:first)","#nameServerList").each(function(){$(this).addClass("expandable-feature")});HR.ui.expandable.initialise();return true};HR.BuildNamespace("HR.constants.messages.requestpasswordreset.error.101.email");HR.constants.messages.requestpasswordreset.error[101].email={heading:"No account found for {email}",body:'<p>Perhaps you don\'t have an account. First try to <a href="https://secure.{domain}/register/?email={email}">open your free account</a>.</p>'};HR.constants.messages.validation.error[100].confirmpasswordreset_key={heading:"Key missing!",body:'<p>You might first need to <a id="requestlink" href="https://secure.{domain}/resetpassword/?email={email}">request a password reset</a> if you don\'t have a key, or are using an old key.</p>'};HR.BuildNamespace("HR.constants.messages.validation.error.101");HR.BuildNamespace("HR.constants.messages.validation.error.102");HR.BuildNamespace("HR.constants.messages.validation.error.103");HR.constants.messages.validation.error[101].confirmpasswordreset_key={heading:"The confirmation key you provided was not correct.",body:'<p>You might first need to <a id="requestlink" href="https://secure.{domain}/resetpassword/?email={email}">request a password reset</a> if you don\'t have a key, or are using an old key.</p>'};HR.constants.messages.validation.error[102].confirmpasswordreset_password={heading:"You didn't pick a new password!",body:'<p>It has to be at least 8 characters long and should contain upper and lower case characters, numbers and punctuation to make it tricky to guess.<p>Read about <a href="http://support.{domain}/choosing-a-secure-password/">choosing a secure password</a>.</p>'};HR.constants.messages.validation.error[103].confirmpasswordreset_password={heading:" Password insecure!",body:'<p>Your password is too easy to guess, either by a person or by a rather persistent computer.</p><p>Have a read though our advice on <a href="http://support.{domain}/choosing-a-secure-password/">choosing a secure password</a> or check the option below the password field to let us generate a secure password for you.</p>'};HR.BuildNamespace("HR.constants.messages.requestpasswordreset.confirm.100.email");HR.constants.messages.requestpasswordreset.confirm[100].email={heading:"A confirmation message has been sent to {email}",body:"<p>You can choose your new password after responding to the confirmation message. This prevents others resetting your password without you knowing.</p>"};HR.BuildNamespace("HR.constants.messages.confirmpasswordreset.error.100");HR.constants.messages.confirmpasswordreset.error[100].password=HR.constants.messages.validation.error[103].confirmpasswordreset_password;HR.BuildNamespace("HR.constants.messages.confirmpasswordreset.error.100.key");HR.constants.messages.confirmpasswordreset.error[100].key={heading:"The confirmation key you provided was not correct",body:'<p>You might first need to <a id="requestlink" href="https://secure.{domain}/resetpassword/?email={email}">request a password reset</a> if you don\'t have a key, or are using an old key.</p>'};HR.BuildNamespace("HR.constants.messages.confirmpasswordreset.confirm.100");HR.constants.messages.confirmpasswordreset.confirm[100].email={heading:"Your new password is: {password}",body:'<p> You\'ve also been logged in to <a id="accountlink" href="https://secure.{domain}/myaccount/">your account</a>.</p>'};HR.BuildNamespace("HR.secure.resetpassword.confirm.initialiser");HR.secure.resetpassword.confirm.initialiser=function(){$("#wordedPasswordStrengthIntro").text("Current password strength:");var b=new HR.account.resetpassword.controller.main();if(b.isRequest()){return true}var d=function(e){c.meter.setRatingStyle(e);c.wordedRating.setRatingStyle(e);c.meter.calculateWidth(a.checker().getScore(),a.checker().getRatingLevel(),a.checker().getRatingThreshold(a.checker().getRatingLevel()))};var c=b.confirmController;var a=new PASSWORD.strength.controller({passwordField:c.passwordField().get(0),events:{initialise:function(){d("low")},detectLow:function(){d("low")},detectMid:function(){d("mid")},detectHigh:function(){d("high")}}});c.pickForMe().click(function(){if(c.passwordContainer().css("display")==="block"){c.passwordContainer().slideUp()}else{c.passwordContainer().slideDown()}});if(c.pickForMe().is(":checked")){c.passwordContainer().hide()}a.getInitialisationCallback()();return true};HR.BuildNamespace("HR.secure.resetpassword.confirm.confirm");HR.secure.resetpassword.confirm.confirm.validate=function(){var b=new HR.account.resetpassword.controller.main();var c=b.confirmController;if(HR.resetpassword.validate.key.present(c.key())===false){return new HR.internal.message({type:"error",code:100,namespace:"validation",data:{key:"confirmpasswordreset_key",object:c.keyField()},key:"confirmpasswordreset_key",callback:function(){var d=$("#requestlink").attr("href").replace("{email}",$("#email").val());$("#requestlink").attr("href",d)}})}if(HR.resetpassword.validate.key.valid(c.key())===false){return new HR.internal.message({type:"error",code:101,namespace:"validation",data:{key:"confirmpasswordreset_key",object:c.keyField()},key:"confirmpasswordreset_key",callback:function(){var d=$("#requestlink").attr("href").replace("{email}",$("#email").val());$("#requestlink").attr("href",d)}})}if(c.pickForMe().is(":checked")===false){if(HR.resetpassword.validate.password.present(c.password())===false){return new HR.internal.message({type:"error",code:102,namespace:"validation",data:{key:"confirmpasswordreset_password",object:c.passwordField()},key:"confirmpasswordreset_password"})}var a=new PASSWORD.strength.controller({passwordField:c.passwordField().get(0)});if(a.checker().getRatingLevel(c.password())==="low"){return new HR.internal.message({type:"error",code:103,namespace:"validation",data:{key:"confirmpasswordreset_password",object:c.passwordField()},key:"confirmpasswordreset_password"})}}return true};HR.secure.resetpassword.confirm.confirm.ajaxSuccess=function(b){var a=function(){var d=$("#nav-logout");if(d.length>0){return true}var c=$('<li id="nav-logout"><a title="Log out" href="https://secure.local.hostingreborn.com/logout/" class="">Log out</a></li>').hide();$("#nav ul").append(c);c.fadeIn()};b.data.mappings={password:b.note,email:$("#email").val()};if(b.type==="confirm"){$("#nav-account-tab-login").remove();a();$(":input","#confirm").not(":button, :submit, :reset, :hidden").val("").removeAttr("checked").removeAttr("selected")}return b};HR.BuildNamespace("HR.secure.resetpassword.requestpassword");HR.secure.resetpassword.requestpassword.ajaxSuccess=function(a){a.data.mappings={email:$("#email").val()};return a};
