/**
 * 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 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 _26=function(){var _27=l.href.indexOf("#");if(_27!=-1){return l.href.substring(_27);}return "";};var _28=_26();var _29=function(){if(_13.ie&&d.title!=_1b){asual.SWFAddress.setTitle(_1b);}};var _2a=function(){if(_13.safari){if(_1c!=h.length&&!_1a){_1c=h.length;if(typeof _1d[_1c-1]!="undefined"){_28=_1d[_1c-1];}_2b();}}else{if(_13.ie){if(_28!=_26()){if(_13.version<7){l.reload();}else{_2c(_26().replace(/^#/g,""),false);}}}else{if(_28!=l.hash){_28=_26();_2b();}}}_29();};var _2d=function(){if(typeof SWFAddress.onInit=="function"){SWFAddress.onInit();}if(SWFAddress.hasEventListener("init")){SWFAddress.dispatchEvent({target:SWFAddress,type:"init"});}};var _2e=function(){if(typeof SWFAddress.onChange=="function"){SWFAddress.onChange();}if(SWFAddress.hasEventListener("change")){SWFAddress.dispatchEvent({target:SWFAddress,type:"change"});}};var _2b=function(){var _2f=_28.replace(/^#/g,"");if(_2f!=_17){_17=_2f;var obj=document[_19]||document.getElementById(_19);if(obj&&obj.setSWFAddressValue){obj.setSWFAddressValue(_2f);}if(_18&&_18.call){_18.call("setSWFAddressValue",_2f);}_2e();}};var _31=function(){if(_1f&&typeof urchinTracker!="undefined"){var _32=l.pathname+this.getValue();_32=_32.replace(/\/\//,"/");_32=_32.replace(/^\/$/,"");urchinTracker(_32);}};var _33=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){_28="#"+src.substring(src.indexOf("?")+1);}else{_28="#";}if(_28!=_26()){_2b();l.hash=_28;}}};var _36=function(){if(_13.ie||_13.safari){var _37=document.createElement("div");_37.id="swfaddress";var _38=document.getElementsByTagName("script");for(var i=0,s;s=_38[i];i++){if(s.src.indexOf(js)>-1){_22=(new String(s.src)).replace(js,_22);}}_37.innerHTML="<iframe id=\"swfaddress-iframe\" src=\""+_22+_26().replace(/^#/g,"?")+"\" frameborder=\"no\" scrolling=\"no\"></iframe>";document.body.appendChild(_37);_37.style.position="absolute";_37.style.left=_37.style.top="-9999px";_14=_37.getElementsByTagName("iframe")[0];}if(_13.ie){asual.util.Events.addListener(_14,"load",asual.util.Functions.bindAsListener(_33,this));}if(_13.safari){_15=document.createElement("form");_15.id="swfaddress-form";_15.method="get";_37.appendChild(_15);if(typeof l.swfaddress=="undefined"){l.swfaddress=new Object();}if(typeof l.swfaddress.history!="undefined"){_1d=l.swfaddress.history.split(",");}}_31.call(this);_2b.call(this);setTimeout(_2d,1);setTimeout(_2e,2);setInterval(_2a,50);};var _2c=function(_3b,_3c){if(!_16){return null;}if(_3b=="null"){_3b="";}if(_17==_3b){return;}_28="#"+_3b;if(_3c){_17=_3b;_2b();}else{_2b();_17=_3b;}if(_13.safari){if(_20){_1d[history.length]=_28;l.swfaddress.history=_1d.toString();_1a=true;_1c=history.length+1;if(_13.version<412){if(l.search==""){_15.action=_28;_15.submit();}}else{var evt=document.createEvent("MouseEvents");evt.initEvent("click",true,true);var _3e=document.createElement("a");_3e.href=_28;_3e.dispatchEvent(evt);}_1a=false;}else{l.hash=_28;}}else{if(_3c){if(_20){l.hash=_28;}else{l.replace(_28);}}}if(_13.ie&&_20){var win=_14.contentWindow;var _40="?"+_26().substring(_28.indexOf("#")+1);win.location.assign(win.location.pathname+_40);}_31.call(this);_2e.call(this);};this.toString=function(){return "[object SWFAddress]";};this.back=function(){h.back();};this.forward=function(){h.forward();};this.go=function(_41){h.go(_41);};this.addEventListener=function(_42,_43){if(typeof _1e[_42]=="undefined"){_1e[_42]=new Array();}_1e[_42].push(_43);};this.removeEventListener=function(_44,_45){if(typeof _1e[_44]!="undefined"){for(var i=0,l;l=_1e[_44][i];i++){if(l==_45){break;}}_1e[_44].splice(i,1);}};this.dispatchEvent=function(_47){if(typeof _1e[_47.type]!="undefined"){_47.target=this;for(var i=0,l;l=_1e[_47.type][i];i++){l(_47);}}};this.hasEventListener=function(_49){return (typeof _1e[_49]!="undefined"&&_1e[_49].length>0);};this.getHistoryEnabled=function(){return _20;};this.setHistoryEnabled=function(_4a){_20=_4a;};this.getTrackingEnabled=function(){return _1f;};this.setTrackingEnabled=function(_4b){_1f=_4b;};this.openLink=function(url,_4d){switch(_4d){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,_4f,_50,_51){var w=window.open(url,_4f,_50);};this.getSWFObject=function(){if(!_16){return null;}return _18;};this.setSWFObject=function(_53){if(!_16){return null;}_18=_53;};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(_55){if(!_16){return null;}if(_55=="null"){_55="";}if(typeof _55!="undefined"){_1b=_55;d.title=_1b;}};this.getStatus=function(){if(!_16){return null;}return top.status;};this.setStatus=function(_56){if(!_16){return null;}if(!_13.safari){if(_56=="null"||typeof _56=="undefined"){_56="";}var _57=l.href.indexOf("#");if(_57==-1){_56=l.href+"#"+_56;}else{_56=l.href.substr(0,_57)+"#"+_56;}top.status=_56;}};this.resetStatus=function(){top.status="";};this.getValue=function(){if(!_16){return null;}var _58=_28.replace(/^#/g,"");return _58;};this.setValue=function(_59){_2c(_59,true);};this.getPath=function(){var _5a=this.getValue();if(_5a.indexOf("?")!=1){return _5a.split("?")[0];}else{return _5a;}};this.getQueryString=function(){var _5b=this.getValue();var _5c=_5b.indexOf("?");if(_5c!=-1&&_5c<_5b.length){return _5b.substr(_5c+1);}return "";};this.getParameter=function(_5d){var _5e=this.getValue();var _5f=_5e.indexOf("?");if(_5f!=-1){_5e=_5e.substr(_5f+1);var _60=_5e.split("&");var p,i=_60.length;while(i--){p=_60[i].split("=");if(p[0]==_5d){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(_28==""){_28=l.hash="#";}else{if(l.hash!=_26()){l.hash=_26();}}}_17=this.getValue();_29();asual.util.Events.addListener(window,"load",asual.util.Functions.bindAsListener(_36,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,_6a,_6b,_6c,_6d){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;}