/* JSCmprsd Hash:1c4a65b98f5cdf0622bc7186cef81e0d */
var HistoryManager=(function(B){var A=new Class({Implements:Events,initialize:function(E){this._realurls=(E&&E.realurls)?true:false;this._currentLocation=this._getHash();if(Browser.Engine.trident){this.addState=this._addStateIE;this._iframe=new Element("iframe",{src:"javascript:'<html></html>'",styles:{position:"absolute",top:"-1000px"}}).inject(document.body).contentWindow;$justForIE=function(G){this._getHash=function(){return G};this._monitorDefault.call(this);if(G==""&&!location.hash){}else{if(G==""){location.hash="/"}else{location.hash=G}}}.bind(this);var D=function F(){if(this._iframe&&this._iframe.document&&this._iframe.document.body){if(!this._iframe.document.body.innerHTML){this.addState(this._currentLocation,true)}$clear(D)}}.periodical(50,this)}else{if(Browser.Engine.webkit&&Browser.Engine.version==419){this._form=new Element("form",{method:"get"}).inject(document.body);this._historyCounter=history.length;this._stateHistory=[];this._stateHistory[history.length]=this._getHash();this.addState=this._addStateSafari;this._monitorSafari.periodical(250,this)}else{if(Browser.Engine.presto&&Browser.Engine.version<9.5){this.addState=this._addStateDefault;$justForOpera=this._monitorDefault.bind(this);new Element("img",{src:"javascript:location.href='javascript:$justForOpera();';",style:"position: absolute; top: -1000px;"}).inject(document.body)}else{this.addState=this._addStateDefault;this._monitorDefault.periodical(250,this)}}}},getCurrentLocation:function(){return this._currentLocation},_getHash:function(){if(!this._realurls){return location.href.split("#")[1]||""}else{return location.href}},_addStateIE:function(E,D){if(this._currentLocation==E&&!D){return }this._currentLocation=E;this._iframe.document.write("<html><body onload=\"top.$justForIE('",E.replace("'","\\'"),"');\">Loaded</body></html>");this._iframe.document.close()},_addStateSafari:function(D){if(this._currentLocation==D){return }this._form.setProperty("action","#"+D).submit();this._currentLocation=D;this._stateHistory[history.length]=this._getHash();this._historyCounter=history.length},_monitorSafari:function(){if(history.length!=this._historyCounter){this._historyCounter=history.length;this._currentLocation=this._stateHistory[history.length];this.fireEvent("onHistoryChange",[this._currentLocation])}},_addStateDefault:function(D){if(this._currentLocation==D){return }if(this._realurls){location.href=D}else{location.hash="#"+D}this._currentLocation=D},_monitorDefault:function(){var D=this._getHash();if(D!=this._currentLocation){this._currentLocation=D;this.fireEvent("onHistoryChange",[D])}}});var C;return function(D){return C?C:C=new A(D)}})();