var FlashDetector={};FlashDetector.version=-1;FlashDetector.initialized=false;FlashDetector.initialize=function(){if(window.ActiveXObject){for(var b=6;b<11;b++){try{new window.ActiveXObject("ShockwaveFlash.ShockwaveFlash."+b);FlashDetector.version=b}catch(a){}}}else{if(navigator.plugins&&navigator.plugins["Shockwave Flash"]&&navigator.plugins["Shockwave Flash"].description){var c=navigator.plugins["Shockwave Flash"].description.match(/([0-9]+)\.[0-9]+/);if(c[1]&&!isNaN(parseInt(c[1]))){FlashDetector.version=parseInt(c[1])}}}};FlashDetector.getVersion=function(){if(!FlashDetector.initialized){FlashDetector.initialize();FlashDetector.initialized=true}return FlashDetector.version};var FlashTag=function(){if(!FlashTag.initialized){FlashTag.initialize()}this.version=7;this.src=null;this.width=1;this.height=1;this.id="flash"+(Math.random().toString()).split(".")[1];this.allowScriptAccess="sameDomain";this.vars={};this.play=true;this.menu=false;this.loop=true;this.quality="high";this.scale="noscale";this.salign=null;this.wmode="window";this.bgcolor=null;this.base=null;this.allowFullScreen=true;this.historyEnabled=false;this.wheelEnabled=false;FlashTag.tagsById[this.id]=this};FlashTag.initialized=false;FlashTag.initialize=function(){if(!FlashTag.initialized){var a=navigator.userAgent.toLowerCase();var b=document.getElementsByTagName("title");FlashTag.useEmbed=(a.indexOf("msie")==-1)&&document.embeds;FlashTag.historySupported=(a.indexOf("opera")==-1)&&(a.indexOf("msie 6.")==-1);FlashTag.wheelSupported=(a.indexOf("gecko")>=0)||(a.indexOf("msie 7.")>=0)||(a.indexOf("msie 6.")>=0);FlashTag.documentTitle=b[0]?b[0].innerHTML.replace(/#.*?$/,""):"";FlashTag.tagsById=[];if(FlashTag.historySupported){unFocus.History.addEventListener("historyChange",FlashTag.onHistoryChange)}if(FlashTag.wheelSupported){if(window.addEventListener){window.addEventListener("DOMMouseScroll",FlashTag.onWheel,false)}window.onmousewheel=document.onmousewheel=FlashTag.onWheel}FlashTag.initialized=true}};FlashTag.getById=function(b){var a;if(FlashTag.tagsById[b]){a=FlashTag.tagsById[b]}return a};FlashTag.onHistoryChange=function(b){document.title=FlashTag.documentTitle;for(var a in FlashTag.tagsById){if(FlashTag.tagsById[a].historyEnabled){FlashTag.tagsById[a].onHistoryHash(b)}}};FlashTag.onWheel=function(b){b=b||window.event;var c=b.wheelDelta?b.wheelDelta:(b.detail?(-b.detail):0);c=(c>0)?1:((c<0)?-1:0);if(c!=0){for(var a in FlashTag.tagsById){if(FlashTag.tagsById[a].wheelEnabled){FlashTag.tagsById[a].onWheelDelta(c)}}}};FlashTag.addHistoryHash=function(a){if(FlashTag.historySupported){unFocus.History.addHistory(a);document.title=FlashTag.documentTitle}};FlashTag.prototype.getHtml=function(){var a='<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" align="middle"';var d='<param name="allowScriptAccess" value="'+this.allowScriptAccess+'" />';var f='<embed swLiveConnect="true" allowScriptAccess="'+this.allowScriptAccess+'" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"';var c=' style="width: '+(this.width.toString().match(/^[0-9]+$/)?(this.width+"px"):this.width)+"; height: "+(this.height.toString().match(/^[0-9]+$/)?(this.height+"px"):this.height)+';"';a+=c;f+=c;a+='codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version='+this.version+',0,0,0"';if(this.src){d+='<param name="movie" value="'+this.src+'" />';f+=' src="'+this.src+'"'}a+='" id="'+this.id+'"';f+=' name="'+this.id+'" id="'+this.id+'"';if(this.bgcolor){d+='<param name="bgcolor" value="'+this.bgcolor+'" />';f+=' bgcolor="'+this.bgcolor+'"'}if(!this.menu){d+='<param name="menu" value="false" />';f+=' menu="false"'}if(this.scale){d+='<param name="scale" value="'+this.scale+'" />';f+=' scale="'+this.scale+'"'}if(this.quality){d+='<param name="quality" value="'+this.quality+'" />';f+=' quality="'+this.quality+'"'}if(!this.play){d+='<param name="play" value="false" />';f+=' play="false"'}if(this.salign){d+='<param name="salign" value="'+this.salign+'" />';f+=' salign="'+this.salign+'"'}if(this.wmode){d+='<param name="wmode" value="'+this.wmode+'" />';f+=' wmode="'+this.wmode+'"'}if(this.base){d+='<param name="base" value="'+this.base+'" />';f+=' base="'+this.base+'"'}if(this.allowFullScreen){d+='<param name="allowFullScreen" value="true" />';f+=' allowFullScreen="true"'}if(!this.vars){this.vars={}}this.vars.flashTagHtmlElementId=this.id;this.vars.flashTagBrowserVersion=window.navigator.userAgent;this.vars.flashTagDocumentUrl=window.location.href;if(FlashTag.historySupported&&this.historyEnabled){this.vars.flashTagHistoryEnabled="true"}if(FlashTag.wheelSupported&&this.wheelEnabled){this.vars.flashTagWheelEnabled="true"}if(FlashTag.historySupported&&this.historyEnabled){if(unFocus.History.getCurrent()){this.vars.flashTagHistoryHash=unFocus.History.getCurrent()}}var e=[];for(var b in this.vars){e.push(b+"="+escape(this.vars[b]))}if(e.length>0){e=e.join("&amp;");d+='<param name="flashvars" value="'+e+'">';f+=' flashvars="'+e+'"'}return FlashTag.useEmbed?(f+" />"):(a+">"+d+"</object>")};FlashTag.prototype.writeToElement=function(b){try{document.getElementById(b).innerHTML=this.getHtml()}catch(a){}};FlashTag.prototype.getElement=function(){var a;if(FlashTag.useEmbed&&document.embeds[this.id]){a=document.embeds[this.id]}else{if(document[this.id]){a=document[this.id]}}return a};FlashTag.prototype.setHeight=function(a){this.height=a;if(this.getElement()){try{this.getElement().style.height=this.height.toString().match(/^[0-9]+$/)?(this.height+"px"):this.height}catch(b){}}};FlashTag.prototype.setWidth=function(a){this.width=a;if(this.getElement()){try{this.getElement().style.width=this.width.toString().match(/^[0-9]+$/)?(this.width+"px"):this.width}catch(b){}}};FlashTag.prototype.onHistoryHash=function(b){try{this.getElement().SetVariable("flashTagHistoryHash",b);this.getElement().onFlashTagHistoryHash(b)}catch(a){}};FlashTag.prototype.onWheelDelta=function(b){try{this.getElement().SetVariable("flashTagWheelDelta",b.toString())}catch(a){}};if(!window.unFocus){var unFocus={}}unFocus.EventManager=function(){this._listeners={};for(var a=0;a<arguments.length;a++){this._listeners[arguments[a]]=[]}};unFocus.EventManager.prototype={addEventListener:function(c,b){for(var a=0;a<this._listeners[c].length;a++){if(this._listeners[c][a]==b){return}}this._listeners[c].push(b)},removeEventListener:function(c,b){for(var a=0;a<this._listeners[c].length;a++){if(this._listeners[c][a]==b){this._listeners.splice(a,1);return}}},notifyListeners:function(c,a){for(var b=0;b<this._listeners[c].length;b++){this._listeners[c][b](a)}}};unFocus.History=(function(){function Keeper(){var _this=this,_pollInterval=200,_intervalID,_currentHash;var _getHash=function(){return location.hash.substring(1)};_currentHash=_getHash();var _setHash=function($newHash){window.location.hash=$newHash};function _watchHash(){var $newHash=_getHash();if(_currentHash!=$newHash){_currentHash=$newHash;_this.notifyListeners("historyChange",$newHash)}}if(setInterval){_intervalID=setInterval(_watchHash,_pollInterval)}function _createAnchor($newHash){if(!_checkAnchorExists($newHash)){var $anchor;if(/MSIE/.test(navigator.userAgent)&&!window.opera){$anchor=document.createElement('<a name="'+$newHash+'">'+$newHash+"</a>")}else{$anchor=document.createElement("a")}$anchor.setAttribute("name",$newHash);with($anchor.style){position="absolute";display="block";top=getScrollY()+"px";left=getScrollX()+"px"}document.body.insertBefore($anchor,document.body.firstChild)}}function _checkAnchorExists($name){if(document.getElementsByName($name).length>0){return true}return false}function getScrollY(){if(typeof self.pageYOffset=="number"){return self.pageYOffset}else{if(document.documentElement&&document.documentElement.scrollTop){return document.documentElement.scrollTop}else{if(document.body){return document.body.scrollTop}}}return 0}eval(String(getScrollY).toString().replace(/Top/g,"Left").replace(/Y/g,"X"));_this.getCurrent=function(){return _currentHash};function addHistory($newHash){if(_currentHash!=$newHash){_createAnchor($newHash);_currentHash=$newHash;_setHash($newHash);_this.notifyListeners("historyChange",$newHash)}return true}_this.addHistory=function($newHash){_createAnchor(_currentHash);_this.addHistory=addHistory;return _this.addHistory($newHash)};if(/WebKit\/\d+/.test(navigator.appVersion)&&navigator.appVersion.match(/WebKit\/(\d+)/)[1]<420){var _unFocusHistoryLength=history.length,_historyStates={},_form,_recentlyAdded=false;function _createSafariSetHashForm(){_form=document.createElement("form");_form.id="unFocusHistoryForm";_form.method="get";document.body.insertBefore(_form,document.body.firstChild)}_setHash=function($newHash){_historyStates[_unFocusHistoryLength]=$newHash;_form.action="#"+_getHash();_form.submit()};_getHash=function(){return _historyStates[_unFocusHistoryLength]};_historyStates[_unFocusHistoryLength]=_currentHash;function addHistorySafari($newHash){if(_currentHash!=$newHash){_createAnchor($newHash);_currentHash=$newHash;_unFocusHistoryLength=history.length+1;_recentlyAdded=true;_setHash($newHash);_this.notifyListeners("historyChange",$newHash);_recentlyAdded=false}return true}_this.addHistory=function($newHash){_createAnchor(_currentHash);_createSafariSetHashForm();_this.addHistory=addHistorySafari;return _this.addHistory($newHash)};function _watchHistoryLength(){if(!_recentlyAdded){var _historyLength=history.length;if(_historyLength!=_unFocusHistoryLength){_unFocusHistoryLength=_historyLength;var $newHash=_getHash();if(_currentHash!=$newHash){_currentHash=$newHash;_this.notifyListeners("historyChange",$newHash)}}}}clearInterval(_intervalID);_intervalID=setInterval(_watchHistoryLength,_pollInterval)}else{if(typeof ActiveXObject!="undefined"&&window.print&&!window.opera&&navigator.userAgent.match(/MSIE (\d\.\d)/)[1]>=5.5){var _historyFrameObj,_historyFrameRef;function _createHistoryFrame(){var $historyFrameName="unFocusHistoryFrame";_historyFrameObj=document.createElement("iframe");_historyFrameObj.setAttribute("name",$historyFrameName);_historyFrameObj.setAttribute("id",$historyFrameName);_historyFrameObj.setAttribute("src","javascript:;");_historyFrameObj.style.position="absolute";_historyFrameObj.style.top="-900px";document.body.insertBefore(_historyFrameObj,document.body.firstChild);_historyFrameRef=frames[$historyFrameName];_createHistoryHTML(_currentHash,true)}function _createHistoryHTML($newHash){with(_historyFrameRef.document){open("text/html");write("<html><head></head><body onl","oad=\"parent.unFocus.History._updateFromHistory('"+$newHash+"');\">",$newHash+"</body></html>");close()}}function updateFromHistory($hash){_currentHash=$hash;_this.notifyListeners("historyChange",$hash)}_this._updateFromHistory=function(){_this._updateFromHistory=updateFromHistory};function addHistoryIE($newHash){if(_currentHash!=$newHash){_currentHash=$newHash;_createHistoryHTML($newHash)}return true}_this.addHistory=function($newHash){_createHistoryFrame();_this.addHistory=addHistoryIE;return _this.addHistory($newHash)};_this.addEventListener("historyChange",function($hash){_setHash($hash)})}}}Keeper.prototype=new unFocus.EventManager("historyChange");return new Keeper()})();