/**
 * 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;}}}}}}}};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;for(var p in _2){if(p!="prototype"){_3[p]=_2[p];}}return _3;};this.bindAsListener=function(_5,_6,_7){return function(_8){return _5.call(_6,_8||((_7)?_7.event:window.event));};};};asual.util.Events=new function(){var _9=new Array();this.addListener=function(_a,_b,_c){if(_a.addEventListener){_a.addEventListener(_b,_c,false);}else{if(_a.attachEvent){_a.attachEvent("on"+_b,_c);}else{_a["on"+_b]=_c;}}_9.push({o:_a,t:_b,l:_c});};this.removeListener=function(_d,_e,_f){if(_d.removeEventListener){_d.removeEventListener(_e,_f,false);}else{if(_d.detachEvent){_d.detachEvent("on"+_e,_f);}else{_d["on"+_e]=_f;}}};var _10=function(){for(var i=0,evt;evt=_9[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(_10,this));}};asual.SWFAddress=new function(){var _13=asual.util.Browser;var _14,_15,_16=_13.supported;var _17,_18,_19,_1a=false;var _1b=document.title;var _1c=history.length;var _1d=new Array();var _1e=new Object();var _1f=true;var _20=true;var js="swfaddress.js";var _22="swfaddress.html";var swf="swfaddress.swf";var d=top.document;var h=top.history;var l=top.location;if((!_16&&l.href.indexOf("#")!=-1)||(_13.safari&&_13.version<412&&l.href.indexOf("#")!=-1&&l.search!="")){d.open();d.write("<html><head><meta http-equiv=\"refresh\" content=\"0;url="+l.href.substr(0,l.href.indexOf("#"))+"\" /></head></html>");d.close();}var _27=function(){var _28=l.href.indexOf("#");if(_28!=-1){return l.href.substring(_28);}return "";};var _29=_27();var _2a=function(){if(_13.ie&&d.title!=_1b){asual.SWFAddress.setTitle(_1b);}};var _2b=function(){if(_13.safari){if(_1c!=h.length&&!_1a){_1c=h.length;if(typeof _1d[_1c-1]!="undefined"){_29=_1d[_1c-1];}_2c();}}else{if(_13.ie){if(_29!=_27()){if(_13.version<7){l.reload();}else{_2d(_27().replace(/^#/g,""),false);}}}else{if(_29!=l.hash){_29=_27();_2c();}}}_2a();};var _2e=function(){if(typeof SWFAddress.onInit=="function"){SWFAddress.onInit();}if(SWFAddress.hasEventListener("init")){SWFAddress.dispatchEvent({target:SWFAddress,type:"init"});}};var _2f=function(){if(typeof SWFAddress.onChange=="function"){SWFAddress.onChange();}if(SWFAddress.hasEventListener("change")){SWFAddress.dispatchEvent({target:SWFAddress,type:"change"});}};var _2c=function(){var _30=_29.replace(/^#/g,"");if(_30!=_17){_17=_30;var obj=document[_19]||document.getElementById(_19);if(obj&&obj.setSWFAddressValue){obj.setSWFAddressValue(_30);}if(_18&&_18.call){_18.call("setSWFAddressValue",_30);}_2f();}};var _32=function(){if(_1f&&typeof urchinTracker!="undefined"){var _33=l.pathname+this.getValue();_33=_33.replace(/\/\//,"/");_33=_33.replace(/^\/$/,"");urchinTracker(_33);}};var _34=function(){if(_14.contentWindow&&_14.contentWindow.location){var win=_14.contentWindow;win.document.title=d.title=_1b;var src=win.location.href;if(src.indexOf("?")>-1){_29="#"+src.substring(src.indexOf("?")+1);}else{_29="#";}if(_29!=_27()){_2c();l.hash=_29;}}};var _37=function(url){var _39=document.getElementsByTagName("script");for(var i=0,s;s=_39[i];i++){if(s.src.indexOf(js)>-1){return (new String(s.src)).replace(js,url);}}};var _3c=function(){if(_13.ie||_13.safari){var _3d=document.createElement("div");_3d.id="swfaddress";_3d.innerHTML="<iframe id=\"swfaddress-iframe\" src=\""+_37(_22)+_27().replace(/^#/g,"?")+"\" frameborder=\"no\" scrolling=\"no\"></iframe>";document.body.appendChild(_3d);_3d.style.position="absolute";_3d.style.left=_3d.style.top="-9999px";_14=_3d.getElementsByTagName("iframe")[0];}if(_13.ie){asual.util.Events.addListener(_14,"load",asual.util.Functions.bindAsListener(_34,this));}if(_13.safari){_15=document.createElement("form");_15.id="swfaddress-form";_15.method="get";_3d.appendChild(_15);if(typeof l.swfaddress=="undefined"){l.swfaddress=new Object();}if(typeof l.swfaddress.history!="undefined"){_1d=l.swfaddress.history.split(",");}}if(_13.opera&&typeof _19=="undefined"){document.body.innerHTML+="<embed src=\""+_37(swf)+"\" width=\"1\" height=\"1\" style=\"position: absolute; top: -9999px; left: -9999px\" type=\"application/x-shockwave-flash\" />";}_32.call(this);_2c.call(this);setTimeout(_2e,1);setTimeout(_2f,2);setInterval(_2b,50);};var _2d=function(_3e,_3f){if(!_16){return null;}if(_3e=="null"){_3e="";}if(_17==_3e){return;}_29="#"+_3e;if(_3f){_17=_3e;_2c();}else{_2c();_17=_3e;}if(_13.safari){if(_20){_1d[history.length]=_29;l.swfaddress.history=_1d.toString();_1a=true;_1c=history.length+1;if(_13.version<412){if(l.search==""){_15.action=_29;_15.submit();}}else{var evt=document.createEvent("MouseEvents");evt.initEvent("click",true,true);var _41=document.createElement("a");_41.href=_29;_41.dispatchEvent(evt);}_1a=false;}else{l.hash=_29;}}else{if(_3f){if(_20){l.hash=_29;}else{l.replace(_29);}}}if(_13.ie&&_20){var win=_14.contentWindow;var _43="?"+_27().substring(_29.indexOf("#")+1);win.location.assign(win.location.pathname+_43);}_32.call(this);_2f.call(this);};this.toString=function(){return "[object SWFAddress]";};this.back=function(){h.back();};this.forward=function(){h.forward();};this.go=function(_44){h.go(_44);};this.addEventListener=function(_45,_46){if(typeof _1e[_45]=="undefined"){_1e[_45]=new Array();}_1e[_45].push(_46);};this.removeEventListener=function(_47,_48){if(typeof _1e[_47]!="undefined"){for(var i=0,l;l=_1e[_47][i];i++){if(l==_48){break;}}_1e[_47].splice(i,1);}};this.dispatchEvent=function(_4a){if(typeof _1e[_4a.type]!="undefined"){_4a.target=this;for(var i=0,l;l=_1e[_4a.type][i];i++){l(_4a);}}};this.hasEventListener=function(_4c){return (typeof _1e[_4c]!="undefined"&&_1e[_4c].length>0);};this.getHistoryEnabled=function(){return _20;};this.setHistoryEnabled=function(_4d){_20=_4d;};this.getTrackingEnabled=function(){return _1f;};this.setTrackingEnabled=function(_4e){_1f=_4e;};this.openLink=function(url,_50){switch(_50){case "_blank":window.open(url);break;case "_self":self.location=url;break;case "_top":loc=url;break;default:self.location=url;break;}};this.openPopup=function(url,_52,_53,_54){var w=window.open(url,_52,_53);};this.getSWFObject=function(){if(!_16){return null;}return _18;};this.setSWFObject=function(_56){if(!_16){return null;}_18=_56;};this.getId=function(){if(!_16){return null;}return _19;};this.setId=function(id){if(!_16){return null;}_19=id;};this.getTitle=function(){if(!_16){return null;}return d.title;};this.setTitle=function(_58){if(!_16){return null;}if(_58=="null"){_58="";}if(typeof _58!="undefined"){_1b=_58;d.title=_1b;}};this.getStatus=function(){if(!_16){return null;}return top.status;};this.setStatus=function(_59){if(!_16){return null;}if(!_13.safari){if(_59=="null"||typeof _59=="undefined"){_59="";}var _5a=l.href.indexOf("#");if(_5a==-1){_59=l.href+"#"+_59;}else{_59=l.href.substr(0,_5a)+"#"+_59;}top.status=_59;}};this.resetStatus=function(){top.status="";};this.getValue=function(){if(!_16){return null;}var _5b=_29.replace(/^#/g,"");return _5b;};this.setValue=function(_5c){_2d(_5c,true);};this.getPath=function(){var _5d=this.getValue();if(_5d.indexOf("?")!=1){return _5d.split("?")[0];}else{return _5d;}};this.getQueryString=function(){var _5e=this.getValue();var _5f=_5e.indexOf("?");if(_5f!=-1&&_5f<_5e.length){return _5e.substr(_5f+1);}return "";};this.getParameter=function(_60){var _61=this.getValue();var _62=_61.indexOf("?");if(_62!=-1){_61=_61.substr(_62+1);var _63=_61.split("&");var p,i=_63.length;while(i--){p=_63[i].split("=");if(p[0]==_60){return p[1];}}}return "";};this.init=function(){if(_18.call){_18.call("setSWFAddressValue",SWFAddress.getValue());}};if(!_16){return;}if(_13.safari){for(var i=1;i<_1c;i++){_1d.push("");}_1d.push(l.hash);}if(_13.ie){if(_29==""){_29=l.hash="#";}else{if(l.hash!=_27()){l.hash=_27();}}}_17=this.getValue();_2a();asual.util.Events.addListener(window,"load",asual.util.Functions.bindAsListener(_3c,this));};SWFAddress=asual.SWFAddress;if(typeof deconcept!="undefined"&&deconcept.SWFObject){asual.SWFAddressObject=asual.util.Functions.extend(deconcept.SWFObject,function(swf,id,w,h,ver,c,_6d,_6e,_6f,_70){asual.SWFAddressObject.superConstructor.apply(this,arguments);SWFAddress.setSWFObject(this);SWFAddress.setId(id);this.setAttribute("style",";");if(this.getAttribute("version").major<8){this.addVariable("$swfaddress",SWFAddress.getValue());}});SWFObject=deconcept.SWFObject=asual.SWFAddressObject;}