window.blankHTML="blank.html";window.dhtmlHistory={isIE:false,isOpera:false,isSafari:false,isKonquerer:false,isGecko:false,isSupported:false,blankHTML:"blank.html",create:function(d){var g=this;var f=navigator.userAgent.toLowerCase();var a=navigator.platform.toLowerCase();var h=navigator.vendor||"";if(h==="KDE"){this.isKonqueror=true;this.isSupported=false}else{if(typeof window.opera!=="undefined"){this.isOpera=true;this.isSupported=true}else{if(typeof document.all!=="undefined"){this.isIE=true;this.isSupported=true}else{if(h.indexOf("Apple Computer, Inc.")>-1){this.isSafari=true;this.isSupported=(a.indexOf("mac")>-1)}else{if(f.indexOf("gecko")!=-1){this.isGecko=true;this.isSupported=true}}}}}if(d.blankHTML){blankHTML=d.blankHTML}window.historyStorage.setup(d);if(this.isSafari){this.createSafari()}else{if(this.isOpera){this.createOpera()}}var b=this.getCurrentLocation();this.currentLocation=b;if(this.isIE){this.createIE(b)}var e=function(){g.firstLoad=null};this.addEventListener(window,"unload",e);if(this.isIE){this.ignoreLocationChange=true}else{if(!historyStorage.hasKey(this.PAGELOADEDSTRING)){this.ignoreLocationChange=true;this.firstLoad=true;historyStorage.put(this.PAGELOADEDSTRING,true)}else{this.ignoreLocationChange=false;this.fireOnNewListener=true}}var c=function(){g.checkLocation()};setInterval(c,100)},initialize:function(){if(this.isIE){if(!historyStorage.hasKey(this.PAGELOADEDSTRING)){this.fireOnNewListener=false;this.firstLoad=true;historyStorage.put(this.PAGELOADEDSTRING,true)}else{this.fireOnNewListener=true;this.firstLoad=false}}},addListener:function(a){this.listener=a;if(this.fireOnNewListener){this.fireHistoryEvent(this.currentLocation);this.fireOnNewListener=false}},addEventListener:function(c,b,a){if(c.addEventListener){c.addEventListener(b,a,false)}else{if(c.attachEvent){c.attachEvent("on"+b,function(){a(window.event)})}}},add:function(c,d){if(this.isSafari){c=this.removeHash(c);historyStorage.put(c,d);this.currentLocation=c;window.location.hash=c;this.putSafariState(c)}else{var b=this;var a=function(){if(b.currentWaitTime>0){b.currentWaitTime=b.currentWaitTime-b.waitTime}c=b.removeHash(c);if(document.getElementById(c)&&b.debugMode){var f="Exception: History locations can not have the same value as _any_ IDs that might be in the document, due to a bug in IE; please ask the developer to choose a history location that does not match any HTML IDs in this document. The following ID is already taken and cannot be a location: "+c;throw new Error(f)}historyStorage.put(c,d);b.ignoreLocationChange=true;b.ieAtomicLocationChange=true;b.currentLocation=c;window.location.hash=c;if(b.isIE){b.iframe.src=blankHTML+"?"+c}b.ieAtomicLocationChange=false};window.setTimeout(a,this.currentWaitTime);this.currentWaitTime=this.currentWaitTime+this.waitTime}},isFirstLoad:function(){return this.firstLoad},getVersion:function(){return"0.6"},getCurrentLocation:function(){var a=(this.isSafari?this.getSafariState():this.getCurrentHash());return a},getCurrentHash:function(){var b=window.location.href;var a=b.indexOf("#");return(a>=0?b.substr(a+1):"")},PAGELOADEDSTRING:"DhtmlHistory_pageLoaded",listener:null,waitTime:200,currentWaitTime:0,currentLocation:null,iframe:null,safariHistoryStartPoint:null,safariStack:null,safariLength:null,ignoreLocationChange:null,fireOnNewListener:null,firstLoad:null,ieAtomicLocationChange:null,createIE:function(a){this.waitTime=400;var b=(historyStorage.debugMode?"width: 800px;height:80px;border:1px solid black;":historyStorage.hideStyles);var d="rshHistoryFrame";var c='<iframe frameborder="0" id="'+d+'" style="'+b+'" src="'+blankHTML+"?"+a+'"></iframe>';document.write(c);this.iframe=document.getElementById(d)},createOpera:function(){this.waitTime=400;var a='<img src="javascript:location.href=\'javascript:dhtmlHistory.checkLocation();\';" style="'+historyStorage.hideStyles+'" />';document.write(a)},createSafari:function(){var e="rshSafariForm";var d="rshSafariStack";var c="rshSafariLength";var b=historyStorage.debugMode?historyStorage.showStyles:historyStorage.hideStyles;var a=(historyStorage.debugMode?"width:800px;height:20px;border:1px solid black;margin:0;padding:0;":historyStorage.hideStyles);var f='<form id="'+e+'" style="'+b+'"><input type="text" style="'+a+'" id="'+d+'" value="[]"/><input type="text" style="'+a+'" id="'+c+'" value=""/></form>';document.write(f);this.safariStack=document.getElementById(d);this.safariLength=document.getElementById(c);if(!historyStorage.hasKey(this.PAGELOADEDSTRING)){this.safariHistoryStartPoint=history.length;this.safariLength.value=this.safariHistoryStartPoint}else{this.safariHistoryStartPoint=this.safariLength.value}},getSafariStack:function(){var a=this.safariStack.value;return historyStorage.fromJSON(a)},getSafariState:function(){var a=this.getSafariStack();var b=a[history.length-this.safariHistoryStartPoint-1];return b},putSafariState:function(b){var a=this.getSafariStack();a[history.length-this.safariHistoryStartPoint]=b;this.safariStack.value=historyStorage.toJSON(a)},fireHistoryEvent:function(a){var b=historyStorage.get(a);this.listener.call(null,a,b)},checkLocation:function(){if(!this.isIE&&this.ignoreLocationChange){this.ignoreLocationChange=false;return}if(!this.isIE&&this.ieAtomicLocationChange){return}var a=this.getCurrentLocation();if(a==this.currentLocation){return}this.ieAtomicLocationChange=true;if(this.isIE&&this.getIframeHash()!=a){this.iframe.src=blankHTML+"?"+a}else{if(this.isIE){return}}this.currentLocation=a;this.ieAtomicLocationChange=false;this.fireHistoryEvent(a)},getIframeHash:function(){var b=this.iframe.contentWindow.document;var a=String(b.location.search);if(a.length==1&&a.charAt(0)=="?"){a=""}else{if(a.length>=2&&a.charAt(0)=="?"){a=a.substring(1)}}return a},removeHash:function(b){var a;if(b===null||b===undefined){a=null}else{if(b===""){a=""}else{if(b.length==1&&b.charAt(0)=="#"){a=""}else{if(b.length>1&&b.charAt(0)=="#"){a=b.substring(1)}else{a=b}}}}return a},iframeLoaded:function(a){if(this.ignoreLocationChange){this.ignoreLocationChange=false;return}var b=String(a.search);if(b.length==1&&b.charAt(0)=="?"){b=""}else{if(b.length>=2&&b.charAt(0)=="?"){b=b.substring(1)}}window.location.hash=b;this.fireHistoryEvent(b)}};window.historyStorage={setup:function(b){if(typeof b!=="undefined"){if(b.debugMode){this.debugMode=b.debugMode}if(b.toJSON){this.toJSON=b.toJSON}if(b.fromJSON){this.fromJSON=b.fromJSON}}var d="rshStorageForm";var f="rshStorageField";var a=this.debugMode?historyStorage.showStyles:historyStorage.hideStyles;var e=(historyStorage.debugMode?"width: 800px;height:80px;border:1px solid black;":historyStorage.hideStyles);var c='<form id="'+d+'" style="'+a+'"><textarea id="'+f+'" style="'+e+'"></textarea></form>';document.write(c);this.storageField=document.getElementById(f);if(typeof window.opera!=="undefined"){this.storageField.focus()}},put:function(a,b){this.assertValidKey(a);if(this.hasKey(a)){this.remove(a)}this.storageHash[a]=b;this.saveHashTable()},get:function(a){this.assertValidKey(a);this.loadHashTable();var b=this.storageHash[a];if(b===undefined){b=null}return b},remove:function(a){this.assertValidKey(a);this.loadHashTable();delete this.storageHash[a];this.saveHashTable()},reset:function(){this.storageField.value="";this.storageHash={}},hasKey:function(a){this.assertValidKey(a);this.loadHashTable();return(typeof this.storageHash[a]!=="undefined")},isValidKey:function(a){return(typeof a==="string")},showStyles:"border:0;margin:0;padding:0;",hideStyles:"left:-1000px;top:-1000px;width:1px;height:1px;border:0;position:absolute;",debugMode:false,storageHash:{},hashLoaded:false,storageField:null,assertValidKey:function(a){var b=this.isValidKey(a);if(!b&&this.debugMode){throw new Error("Please provide a valid key for window.historyStorage. Invalid key = "+a+".")}},loadHashTable:function(){if(!this.hashLoaded){var a=this.storageField.value;if(a!==""&&a!==null){this.storageHash=this.fromJSON(a);this.hashLoaded=true}}},saveHashTable:function(){this.loadHashTable();var a=this.toJSON(this.storageHash);this.storageField.value=a},toJSON:function(a){return a.toJSONString()},fromJSON:function(a){return a.parseJSON()}};Array.prototype.______array="______array";var JSON={org:"http://www.JSON.org",copyright:"(c)2005 JSON.org",license:"http://www.crockford.com/JSON/license.html",stringify:function(a){var g,e,b,f="",d;switch(typeof a){case"object":if(a){if(a.______array=="______array"){for(e=0;e<a.length;++e){d=this.stringify(a[e]);if(f){f+=","}f+=d}return"["+f+"]"}else{if(typeof a.toString!="undefined"){for(e in a){d=a[e];if(typeof d!="undefined"&&typeof d!="function"){d=this.stringify(d);if(f){f+=","}f+=this.stringify(e)+":"+d}}return"{"+f+"}"}}}return"null";case"number":return isFinite(a)?String(a):"null";case"string":b=a.length;f='"';for(e=0;e<b;e+=1){g=a.charAt(e);if(g>=" "){if(g=="\\"||g=='"'){f+="\\"}f+=g}else{switch(g){case"\b":f+="\\b";break;case"\f":f+="\\f";break;case"\n":f+="\\n";break;case"\r":f+="\\r";break;case"\t":f+="\\t";break;default:g=g.charCodeAt();f+="\\u00"+Math.floor(g/16).toString(16)+(g%16).toString(16)}}}return f+'"';case"boolean":return String(a);default:return"null"}},parse:function(l){var d=0;var a=" ";function k(n){throw {name:"JSONError",message:n,at:d-1,text:l}}function g(){a=l.charAt(d);d+=1;return a}function i(){while(a!=""&&a<=" "){g()}}function j(){var o,p="",n,m;if(a=='"'){outer:while(g()){if(a=='"'){g();return p}else{if(a=="\\"){switch(g()){case"b":p+="\b";break;case"f":p+="\f";break;case"n":p+="\n";break;case"r":p+="\r";break;case"t":p+="\t";break;case"u":m=0;for(o=0;o<4;o+=1){n=parseInt(g(),16);if(!isFinite(n)){break outer}m=m*16+n}p+=String.fromCharCode(m);break;default:p+=a}}else{p+=a}}}}k("Bad string")}function h(){var m=[];if(a=="["){g();i();if(a=="]"){g();return m}while(a){m.push(c());i();if(a=="]"){g();return m}else{if(a!=","){break}}g();i()}}k("Bad array")}function e(){var m,n={};if(a=="{"){g();i();if(a=="}"){g();return n}while(a){m=j();i();if(a!=":"){break}g();n[m]=c();i();if(a=="}"){g();return n}else{if(a!=","){break}}g();i()}}k("Bad object")}function f(){var o="",m;if(a=="-"){o="-";g()}while(a>="0"&&a<="9"){o+=a;g()}if(a=="."){o+=".";while(g()&&a>="0"&&a<="9"){o+=a}}if(a=="e"||a=="E"){o+="e";g();if(a=="-"||a=="+"){o+=a;g()}while(a>="0"&&a<="9"){o+=a;g()}}m=+o;if(!isFinite(m)){k("Bad number")}else{return m}}function b(){switch(a){case"t":if(g()=="r"&&g()=="u"&&g()=="e"){g();return true}break;case"f":if(g()=="a"&&g()=="l"&&g()=="s"&&g()=="e"){g();return false}break;case"n":if(g()=="u"&&g()=="l"&&g()=="l"){g();return null}break}k("Syntax error")}function c(){i();switch(a){case"{":return e();case"[":return h();case'"':return j();case"-":return f();default:return a>="0"&&a<="9"?f():b()}}return c()}};Array.prototype.______array="______array";var JSON={org:"http://www.JSON.org",copyright:"(c)2005 JSON.org",license:"http://www.crockford.com/JSON/license.html",stringify:function(a){var g,e,b,f="",d;switch(typeof a){case"object":if(a){if(a.______array=="______array"){for(e=0;e<a.length;++e){d=this.stringify(a[e]);if(f){f+=","}f+=d}return"["+f+"]"}else{if(typeof a.toString!="undefined"){for(e in a){d=a[e];if(typeof d!="undefined"&&typeof d!="function"){d=this.stringify(d);if(f){f+=","}f+=this.stringify(e)+":"+d}}return"{"+f+"}"}}}return"null";case"number":return isFinite(a)?String(a):"null";case"string":b=a.length;f='"';for(e=0;e<b;e+=1){g=a.charAt(e);if(g>=" "){if(g=="\\"||g=='"'){f+="\\"}f+=g}else{switch(g){case"\b":f+="\\b";break;case"\f":f+="\\f";break;case"\n":f+="\\n";break;case"\r":f+="\\r";break;case"\t":f+="\\t";break;default:g=g.charCodeAt();f+="\\u00"+Math.floor(g/16).toString(16)+(g%16).toString(16)}}}return f+'"';case"boolean":return String(a);default:return"null"}},parse:function(l){var d=0;var a=" ";function k(n){throw {name:"JSONError",message:n,at:d-1,text:l}}function g(){a=l.charAt(d);d+=1;return a}function i(){while(a!=""&&a<=" "){g()}}function j(){var o,p="",n,m;if(a=='"'){outer:while(g()){if(a=='"'){g();return p}else{if(a=="\\"){switch(g()){case"b":p+="\b";break;case"f":p+="\f";break;case"n":p+="\n";break;case"r":p+="\r";break;case"t":p+="\t";break;case"u":m=0;for(o=0;o<4;o+=1){n=parseInt(g(),16);if(!isFinite(n)){break outer}m=m*16+n}p+=String.fromCharCode(m);break;default:p+=a}}else{p+=a}}}}k("Bad string")}function h(){var m=[];if(a=="["){g();i();if(a=="]"){g();return m}while(a){m.push(c());i();if(a=="]"){g();return m}else{if(a!=","){break}}g();i()}}k("Bad array")}function e(){var m,n={};if(a=="{"){g();i();if(a=="}"){g();return n}while(a){m=j();i();if(a!=":"){break}g();n[m]=c();i();if(a=="}"){g();return n}else{if(a!=","){break}}g();i()}}k("Bad object")}function f(){var o="",m;if(a=="-"){o="-";g()}while(a>="0"&&a<="9"){o+=a;g()}if(a=="."){o+=".";while(g()&&a>="0"&&a<="9"){o+=a}}if(a=="e"||a=="E"){o+="e";g();if(a=="-"||a=="+"){o+=a;g()}while(a>="0"&&a<="9"){o+=a;g()}}m=+o;if(!isFinite(m)){k("Bad number")}else{return m}}function b(){switch(a){case"t":if(g()=="r"&&g()=="u"&&g()=="e"){g();return true}break;case"f":if(g()=="a"&&g()=="l"&&g()=="s"&&g()=="e"){g();return false}break;case"n":if(g()=="u"&&g()=="l"&&g()=="l"){g();return null}break}k("Syntax error")}function c(){i();switch(a){case"{":return e();case"[":return h();case'"':return j();case"-":return f();default:return a>="0"&&a<="9"?f():b()}}return c()}};MNP.Reg=function(){var e=0;function h(){dhtmlHistory.initialize();dhtmlHistory.addListener(function(i,j){if(i==="srch"||i===""){g()}});window.blankHTML="/tiles/misc/blank.html";window.dhtmlHistory.create({toJSON:function(i){return JSON.stringify(i)},fromJSON:function(i){return JSON.parse(i)}});e=1}function b(k,j,i){Event.stop(k);LazyLoad.js("/js/build/landing_ajax.js".addBuildNumber(),function(){if(c()){window.location.href=window.location.href}else{a(k,j,i)}})}function a(k,j,i){Event.stop(k);LazyLoad.js("/js/build/landing_ajax.js".addBuildNumber(),function(){window.setTimeout("window.scrollTo(0,0);",1);var l=j.href;MNP.Ajax.Load.initialize(uncache(l),{closeF:f,className:"abox flushbox"});d();dhtmlHistory.add("reg","showreg")})}function d(){if(!window.regOverDLP_ContentMaim){window.regOverDLP_ContentMaim=$C("content-main")[0]}var i=window.regOverDLP_ContentMaim;MnpEffect.Opacity(i,0);$("mnpfooter").style.display="none";var j=$("regbg");if(!j){j=$E("div",{id:"regbg",anonymous:true});i.parentNode.insertBefore(j,i)}j.style.display="block";$("page").className="regg"}function g(j){try{if(!j){Mbox.cancel()}if(!window.regOverDLP_ContentMaim){window.regOverDLP_ContentMaim=$C("content-main")[0]}var i=window.regOverDLP_ContentMaim;i.style.display="block";MnpEffect.Opacity(i,1);$("mnpfooter").style.display="block";$("regbg").style.display="none";window.setTimeout("window.scrollTo(0,0);",1);$("page").className=""}catch(k){}}function f(){g()}function c(i,k){if(k){i="/authenticated?fv=t"}else{if(MNP.au){return true}}if(!i){i="/authenticated"}var j=new MNP.Ajax.Request(uncache(i),{asynchronous:false,method:"get"});return j.transport.responseText=="true"}h();return{regOverDLP:a,conditionalRegOverDLP:b}}();
