var FlashDetector={};FlashDetector.version=-1;FlashDetector.initialized=false;FlashDetector.initialize=function(){if(window.ActiveXObject){for(var i=6;i<11;i++){try{new window.ActiveXObject("ShockwaveFlash.ShockwaveFlash."+i);FlashDetector.version=i;}catch(error){}}}else{if(navigator.plugins&&navigator.plugins["Shockwave Flash"]&&navigator.plugins["Shockwave Flash"].description){var _2=navigator.plugins["Shockwave Flash"].description.match(/([0-9]+)\.[0-9]+/);if(_2[1]&&!isNaN(parseInt(_2[1]))){FlashDetector.version=parseInt(_2[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 _3=navigator.userAgent.toLowerCase();var _4=document.getElementsByTagName("title");FlashTag.useEmbed=(_3.indexOf("msie")==-1)&&document.embeds;FlashTag.historySupported=(_3.indexOf("opera")==-1)&&(_3.indexOf("msie 6.")==-1);FlashTag.wheelSupported=(_3.indexOf("gecko")>=0)||(_3.indexOf("msie 7.")>=0)||(_3.indexOf("msie 6.")>=0);FlashTag.documentTitle=_4[0]?_4[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(id){var _6;if(FlashTag.tagsById[id]){_6=FlashTag.tagsById[id];}return _6;};FlashTag.onHistoryChange=function(_7){document.title=FlashTag.documentTitle;for(var i in FlashTag.tagsById){if(FlashTag.tagsById[i].historyEnabled){FlashTag.tagsById[i].onHistoryHash(_7);}}};FlashTag.onWheel=function(_9){_9=_9||window.event;var _a=_9.wheelDelta?_9.wheelDelta:(_9.detail?(-_9.detail):0);_a=(_a>0)?1:((_a<0)?-1:0);if(_a!=0){for(var i in FlashTag.tagsById){if(FlashTag.tagsById[i].wheelEnabled){FlashTag.tagsById[i].onWheelDelta(_a);}}}};FlashTag.addHistoryHash=function(_c){if(FlashTag.historySupported){unFocus.History.addHistory(_c);document.title=FlashTag.documentTitle;}};FlashTag.prototype.getHtml=function(){var _d="<object classid=\"clsid:d27cdb6e-ae6d-11cf-96b8-444553540000\" align=\"middle\"";var _e="<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 _10=" 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)+";\"";_d+=_10;_f+=_10;_d+="codebase=\"http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version="+this.version+",0,0,0\"";if(this.src){_e+="<param name=\"movie\" value=\""+this.src+"\" />";_f+=" src=\""+this.src+"\"";}_d+="\" id=\""+this.id+"\"";_f+=" name=\""+this.id+"\" id=\""+this.id+"\"";if(this.bgcolor){_e+="<param name=\"bgcolor\" value=\""+this.bgcolor+"\" />";_f+=" bgcolor=\""+this.bgcolor+"\"";}if(!this.menu){_e+="<param name=\"menu\" value=\"false\" />";_f+=" menu=\"false\"";}if(this.scale){_e+="<param name=\"scale\" value=\""+this.scale+"\" />";_f+=" scale=\""+this.scale+"\"";}if(this.quality){_e+="<param name=\"quality\" value=\""+this.quality+"\" />";_f+=" quality=\""+this.quality+"\"";}if(!this.play){_e+="<param name=\"play\" value=\"false\" />";_f+=" play=\"false\"";}if(this.salign){_e+="<param name=\"salign\" value=\""+this.salign+"\" />";_f+=" salign=\""+this.salign+"\"";}if(this.wmode){_e+="<param name=\"wmode\" value=\""+this.wmode+"\" />";_f+=" wmode=\""+this.wmode+"\"";}if(this.base){_e+="<param name=\"base\" value=\""+this.base+"\" />";_f+=" base=\""+this.base+"\"";}if(this.allowFullScreen){_e+="<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 _11=[];for(var i in this.vars){_11.push(i+"="+escape(this.vars[i]));}if(_11.length>0){_11=_11.join("&amp;");_e+="<param name=\"flashvars\" value=\""+_11+"\">";_f+=" flashvars=\""+_11+"\"";}return FlashTag.useEmbed?(_f+" />"):(_d+">"+_e+"</object>");};FlashTag.prototype.writeToElement=function(id){try{document.getElementById(id).innerHTML=this.getHtml();}catch(error){}};FlashTag.prototype.getElement=function(){var _14;if(FlashTag.useEmbed&&document.embeds[this.id]){_14=document.embeds[this.id];}else{if(document[this.id]){_14=document[this.id];}}return _14;};FlashTag.prototype.setHeight=function(_15){this.height=_15;if(this.getElement()){try{this.getElement().style.height=this.height.toString().match(/^[0-9]+$/)?(this.height+"px"):this.height;}catch(e){}}};FlashTag.prototype.setWidth=function(_16){this.width=_16;if(this.getElement()){try{this.getElement().style.width=this.width.toString().match(/^[0-9]+$/)?(this.width+"px"):this.width;}catch(e){}}};FlashTag.prototype.onHistoryHash=function(_17){try{this.getElement().SetVariable("flashTagHistoryHash",_17);}catch(e){}};FlashTag.prototype.onWheelDelta=function(_18){try{this.getElement().SetVariable("flashTagWheelDelta",_18.toString());}catch(e){}};if(!window.unFocus){var unFocus={};}unFocus.EventManager=function(){this._listeners={};for(var i=0;i<arguments.length;i++){this._listeners[arguments[i]]=[];}};unFocus.EventManager.prototype={addEventListener:function(_1a,_1b){for(var i=0;i<this._listeners[_1a].length;i++){if(this._listeners[_1a][i]==_1b){return;}}this._listeners[_1a].push(_1b);},removeEventListener:function(_1d,_1e){for(var i=0;i<this._listeners[_1d].length;i++){if(this._listeners[_1d][i]==_1e){this._listeners.splice(i,1);return;}}},notifyListeners:function(_20,_21){for(var i=0;i<this._listeners[_20].length;i++){this._listeners[_20][i](_21);}}};unFocus.History=(function(){function Keeper(){var _23=this,_24=200,_25,_26;var _27=function(){return location.hash.substring(1);};_26=_27();var _28=function(_29){window.location.hash=_29;};function _watchHash(){var _2a=_27();if(_26!=_2a){_26=_2a;_23.notifyListeners("historyChange",_2a);}};if(setInterval){_25=setInterval(_watchHash,_24);}function _createAnchor(_2b){if(!_checkAnchorExists(_2b)){var _2c;if(/MSIE/.test(navigator.userAgent)&&!window.opera){_2c=document.createElement("<a name=\""+_2b+"\">"+_2b+"</a>");}else{_2c=document.createElement("a");}_2c.setAttribute("name",_2b);with(_2c.style){position="absolute";display="block";top=getScrollY()+"px";left=getScrollX()+"px";}document.body.insertBefore(_2c,document.body.firstChild);}};function _checkAnchorExists(_2d){if(document.getElementsByName(_2d).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"));_23.getCurrent=function(){return _26;};function addHistory(_2e){if(_26!=_2e){_createAnchor(_2e);_26=_2e;_28(_2e);_23.notifyListeners("historyChange",_2e);}return true;};_23.addHistory=function(_2f){_createAnchor(_26);_23.addHistory=addHistory;return _23.addHistory(_2f);};if(/WebKit\/\d+/.test(navigator.appVersion)&&navigator.appVersion.match(/WebKit\/(\d+)/)[1]<420){var _30=history.length,_31={},_32,_33=false;function _createSafariSetHashForm(){_32=document.createElement("form");_32.id="unFocusHistoryForm";_32.method="get";document.body.insertBefore(_32,document.body.firstChild);};_28=function(_34){_31[_30]=_34;_32.action="#"+_27();_32.submit();};_27=function(){return _31[_30];};_31[_30]=_26;function addHistorySafari(_35){if(_26!=_35){_createAnchor(_35);_26=_35;_30=history.length+1;_33=true;_28(_35);_23.notifyListeners("historyChange",_35);_33=false;}return true;};_23.addHistory=function(_36){_createAnchor(_26);_createSafariSetHashForm();_23.addHistory=addHistorySafari;return _23.addHistory(_36);};function _watchHistoryLength(){if(!_33){var _37=history.length;if(_37!=_30){_30=_37;var _38=_27();if(_26!=_38){_26=_38;_23.notifyListeners("historyChange",_38);}}}};clearInterval(_25);_25=setInterval(_watchHistoryLength,_24);}else{if(typeof ActiveXObject!="undefined"&&window.print&&!window.opera&&navigator.userAgent.match(/MSIE (\d\.\d)/)[1]>=5.5){var _39,_3a;function _createHistoryFrame(){var _3b="unFocusHistoryFrame";_39=document.createElement("iframe");_39.setAttribute("name",_3b);_39.setAttribute("id",_3b);_39.setAttribute("src","javascript:;");_39.style.position="absolute";_39.style.top="-900px";document.body.insertBefore(_39,document.body.firstChild);_3a=frames[_3b];_createHistoryHTML(_26,true);};function _createHistoryHTML(_3c){with(_3a.document){open("text/html");write("<html><head></head><body onl","oad=\"parent.unFocus.History._updateFromHistory('"+_3c+"');\">",_3c+"</body></html>");close();}};function updateFromHistory(_3d){_26=_3d;_23.notifyListeners("historyChange",_3d);};_23._updateFromHistory=function(){_23._updateFromHistory=updateFromHistory;};function addHistoryIE(_3e){if(_26!=_3e){_26=_3e;_createHistoryHTML(_3e);}return true;};_23.addHistory=function(_3f){_createHistoryFrame();_23.addHistory=addHistoryIE;return _23.addHistory(_3f);};_23.addEventListener("historyChange",function(_40){_28(_40);});}}};Keeper.prototype=new unFocus.EventManager("historyChange");return new Keeper();})();