/**
 * SWFAddress v1.2: Deep linking for Flash - http://www.asual.com/swfaddress/
 *
 * SWFAddress is (c) 2006-2007 Rostislav Hristov and is released under the MIT License:
 * http://www.opensource.org/licenses/mit-license.php
 *
 */
if(typeof asual=="undefined"){var asual=new Object();}if(typeof asual.util=="undefined"){asual.util=new Object();}asual.util.Browser=new function(){var _1=navigator.userAgent;this.supported=false;this.ie=false;this.gecko=false;this.safari=false;this.opera=false;this.version=-1;if(/MSIE/.test(_1)){this.ie=true;this.version=parseFloat(_1.substring(_1.indexOf("MSIE")+4));this.supported=this.version>=6;}else{if(/AppleWebKit/.test(_1)){this.safari=true;this.version=parseFloat(_1.substring(_1.indexOf("Safari")+7));this.supported=this.version>=312;}else{if(/Opera/.test(_1)){this.opera=true;this.version=parseFloat(navigator.appVersion);this.supported=this.version>=9.02;}else{if(/Firefox/.test(_1)){this.gecko=true;this.version=parseFloat(_1.substring(_1.indexOf("Firefox")+8));this.supported=this.version>=1;}else{if(/Camino/.test(_1)){this.gecko=true;this.version=parseFloat(_1.substring(_1.indexOf("Camino")+7));this.supported=this.version>=1;}else{if(/Netscape/.test(_1)){this.gecko=true;this.version=parseFloat(_1.substring(_1.indexOf("Netscape")+9));this.supported=this.version>=8;}else{if(/Mozilla/.test(_1)&&/rv:/.test(_1)){this.gecko=true;this.version=parseFloat(_1.substring(_1.indexOf("rv:")+3));this.supported=this.version>=1.8;}}}}}}}if((!this.supported&&top.location.href.indexOf("#")!=-1)||(this.safari&&this.version<412&&top.location.href.indexOf("#")!=-1&&top.location.search!="")){document.open();document.write("<html><head><meta http-equiv=\"refresh\" content=\"0;url="+top.location.href.substr(0,top.location.href.indexOf("#"))+"\" /></head></html>");document.close();}};asual.util.Functions=new function(){this.extend=function(_2,_3){function inheritance(){}inheritance.prototype=_2.prototype;_3.prototype=new inheritance();_3.prototype.constructor=_3;_3.superConstructor=_2;_3.superClass=_2.prototype;return _3;};this.bindAsListener=function(_4,_5,_6){return function(_7){return _4.call(_5,_7||((_6)?_6.event:window.event));};};};asual.util.Events=new function(){var _8=new Array();this.addListener=function(_9,_a,_b){if(_9.addEventListener){_9.addEventListener(_a,_b,false);}else{if(_9.attachEvent){_9.attachEvent("on"+_a,_b);}else{_9["on"+_a]=_b;}}_8.push({o:_9,t:_a,l:_b});};this.removeListener=function(_c,_d,_e){if(_c.removeEventListener){_c.removeEventListener(_d,_e,false);}else{if(_c.detachEvent){_c.detachEvent("on"+_d,_e);}else{_c["on"+_d]=_e;}}};var _f=function(){for(var i=0,evt;evt=_8[i];i++){asual.util.Events.removeListener(evt.o,evt.t,evt.l);}};if(asual.util.Browser.ie||asual.util.Browser.safari){this.addListener(window,"unload",asual.util.Functions.bindAsListener(_f,this));}};asual.SWFAddress=new function(){var _12=asual.util.Browser;var _13=_12.supported;var _14,_15,_16=false;var _17,_18,_19=false;var _1a=document.title;var _1b=history.length;var _1c=new Array();var js="swfaddress.js";var _1e="swfaddress.html";var _1f=function(){var _20=top.location.href.indexOf("#");if(_20!=-1){return top.location.href.substring(_20);}return "";};var _21=_1f();var _22=function(){if(_16){if(_12.safari){if(_1b!=history.length&&!_19){_1b=history.length;if(typeof _1c[_1b-1]!="undefined"){_21=_1c[_1b-1];}_23();}}else{if(_12.ie){if(_21!=_1f()){if(_12.version<7){top.location.reload();}else{_24(_1f().replace(/^#/g,""),false);}}}else{if(_21!=top.location.hash){_21=top.location.hash;_23();}}}}if(_12.ie&&top.document.title!=_1a){asual.SWFAddress.setTitle(_1a);}};var _23=function(){var _25=_21.replace(/^#/g,"");if(_25!=_17){_17=_25;var obj=document[_18]||document.getElementById(_18);if(obj&&obj.setSWFAddressValue){obj.setSWFAddressValue(_25);}if(typeof SWFAddress.onChange=="function"){SWFAddress.onChange();}}};var _27=function(){if(_14.contentWindow&&_14.contentWindow.location){var win=_14.contentWindow;win.document.title=top.document.title=_1a;var src=win.location.href;if(src.indexOf("?")>-1){_21="#"+src.substring(src.indexOf("?")+1);}else{_21="#";}if(_21!=_1f()){_23();top.location.hash=_21;}}};var _2a=function(){if(_12.ie||_12.safari){var _2b=document.createElement("div");_2b.id="swfaddress";var _2c=document.getElementsByTagName("script");for(var i=0,s;s=_2c[i];i++){if(s.src.indexOf(js)>-1){_1e=(new String(s.src)).replace(js,_1e);}}_2b.innerHTML="<iframe id=\"swfaddress-iframe\" src=\""+_1e+_1f().replace(/^#/g,"?")+"\" frameborder=\"no\" scrolling=\"no\"></iframe>";document.body.appendChild(_2b);_2b.style.position="absolute";_2b.style.left=_2b.style.top="-9999px";_14=_2b.getElementsByTagName("iframe")[0];}if(_12.ie){asual.util.Events.addListener(_14,"load",asual.util.Functions.bindAsListener(_27,this));}if(_12.safari){_15=document.createElement("form");_15.id="swfaddress-form";_15.method="get";_2b.appendChild(_15);if(typeof top.document.location.swfaddress=="undefined"){top.document.location.swfaddress=new Object();}if(typeof top.document.location.swfaddress.history!="undefined"){_1c=top.document.location.swfaddress.history.split(",");}}_2f.call(this);_23.call(this);if(typeof this.onChange=="function"){this.onChange();}_16=true;};var _2f=function(){if(typeof urchinTracker!="undefined"){var _30=top.location.pathname+this.getValue();_30=_30.replace(/\/\//,"/");_30=_30.replace(/^\/$/,"");urchinTracker(_30);}};var _24=function(_31,_32){if(!_13){return null;}if(_31=="null"){_31="";}if(_17==_31){return;}_21="#"+_31;if(_32){_17=_31;_23();}else{_23();_17=_31;}if(_12.safari){if(this.disableHistory){top.document.location.hash=_21;}else{_1c[history.length]=_21;top.document.location.swfaddress.history=_1c.toString();_19=true;_1b=history.length+1;if(_12.version<412){if(top.location.search!=""){_15.action=_21;_15.submit();}}else{var evt=document.createEvent("MouseEvents");evt.initEvent("click",true,true);var _34=document.createElement("a");_34.href=_21;_34.dispatchEvent(evt);}_19=false;}}else{if(_32){if(this.disableHistory){location.replace(_21);}else{top.location.hash=_21;}}}if(_12.ie&&this.disableHistory!=true){var win=_14.contentWindow;var _36="?"+_1f().substring(_21.indexOf("#")+1);win.location.assign(win.location.pathname+_36);}_2f.call(this);if(typeof SWFAddress.onChange=="function"){SWFAddress.onChange();}};this.disableHistory=true;this.openLink=function(url,_38){window.open(url);};this.openPopup=function(url,_3a,_3b){window.open(url,_3a,_3b);};this.getId=function(){if(!_13){return null;}return _18;};this.setId=function(id){if(!_13){return null;}_18=id;};this.getTitle=function(){if(!_13){return null;}return top.document.title;};this.setTitle=function(_3d){if(!_13){return null;}if(_3d=="null"){_3d="";}if(typeof _3d!="undefined"){_1a=_3d;top.document.title=_1a;}};this.getStatus=function(){if(!_13){return null;}return top.status;};this.setStatus=function(_3e){if(!_13){return null;}if(!_12.safari){if(_3e=="null"||typeof _3e=="undefined"){_3e="";}var _3f=top.location.href.indexOf("#");if(_3f==-1){_3e=top.location.href+"#"+_3e;}else{_3e=top.location.href.substr(0,_3f)+"#"+_3e;}top.status=_3e;}};this.resetStatus=function(){top.status="";};this.getValue=function(){if(!_13){return null;}var _40=_21.replace(/^#/g,"");return _40;};this.setValue=function(_41){_24(_41,true);};if(!_13){return;}if(_12.safari){for(var i=1;i<_1b;i++){_1c.push("");}_1c.push(top.location.hash);}if(_12.ie){if(_21==""){top.location.hash="#";}else{top.location.hash=_1f();}}asual.util.Events.addListener(window,"load",asual.util.Functions.bindAsListener(_2a,this));_17=this.getValue();setInterval(_22,50);};if(typeof deconcept!="undefined"&&deconcept.SWFObject){asual.SWFAddressObject=asual.util.Functions.extend(deconcept.SWFObject,function(swf,id,w,h,ver,c,_49,_4a,_4b,_4c){asual.SWFAddressObject.superConstructor.apply(this,arguments);asual.SWFAddress.setId(id);});SWFObject=deconcept.SWFObject=asual.SWFAddressObject;}SWFAddress=asual.SWFAddress;