/**
 * 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=false;var _2=-1;var _3=navigator.userAgent;var ie=false;var _5=false;var _6=false;var _7=false;var _8=false;if(/MSIE/.test(_3)){ie=true;_2=parseFloat(_3.substring(_3.indexOf("MSIE")+4));_1=_2>=6;}else{if(/AppleWebKit/.test(_3)){_6=true;_2=parseFloat(_3.substring(_3.indexOf("Safari")+7));_1=_2>=312;}else{if(/Opera/.test(_3)){_7=true;_2=parseFloat(navigator.appVersion);_1=_2>=9.02;}else{if(/Camino/.test(_3)){_5=true;_2=parseFloat(_3.substring(_3.indexOf("Camino")+7));_1=_2>=1;}else{if(/Firefox/.test(_3)){_8=true;_2=parseFloat(_3.substring(_3.indexOf("Firefox")+8));_1=_2>=1;}else{if(/Netscape/.test(_3)){_8=true;_2=parseFloat(_3.substring(_3.indexOf("Netscape")+9));_1=_2>=8;}else{if(/Mozilla/.test(_3)&&/rv:/.test(_3)){_8=true;_2=parseFloat(_3.substring(_3.indexOf("rv:")+3));_1=_2>=1.8;}}}}}}}this.isSupported=function(){return _1;};this.getVersion=function(){return _2;};this.isIE=function(){return ie;};this.isSafari=function(){return _6;};this.isOpera=function(){return _7;};this.isCamino=function(){return _5;};this.isMozilla=function(){return _8;};};asual.util.Functions=new function(){this.extend=function(_9,_a){function inheritance(){}inheritance.prototype=_9.prototype;_a.prototype=new inheritance();_a.prototype.constructor=_a;_a.superConstructor=_9;_a.superClass=_9.prototype;for(var p in _9){if(p!="prototype"){_a[p]=_9[p];}}return _a;};this.bindAsListener=function(_c,_d,_e){return function(_f){return _c.call(_d,_f||((_e)?_e.event:window.event));};};};asual.util.Events=new function(){var _10=new Array();this.addListener=function(obj,_12,_13){if(obj.addEventListener){obj.addEventListener(_12,_13,false);}else{if(obj.attachEvent){obj.attachEvent("on"+_12,_13);}else{obj["on"+_12]=_13;}}_10.push({o:obj,t:_12,l:_13});};this.removeListener=function(obj,_15,_16){if(obj.removeEventListener){obj.removeEventListener(_15,_16,false);}else{if(obj.detachEvent){obj.detachEvent("on"+_15,_16);}else{obj["on"+_15]=_16;}}};var _17=function(){for(var i=0,evt;evt=_10[i];i++){asual.util.Events.removeListener(evt.o,evt.t,evt.l);}};if(asual.util.Browser.isIE()||asual.util.Browser.isSafari()){this.addListener(window,"unload",asual.util.Functions.bindAsListener(_17,this));}};asual.SWFAddressEvent=function(_1a){this.type=_1a;this.target=SWFAddress;this.value=SWFAddress.getValue();this.path=SWFAddress.getPath();this.parameters=new Array();var _1b=SWFAddress.getParameterNames();for(var i=0,n;n=_1b[i];i++){this.parameters[n]=SWFAddress.getParameter(n);}};SWFAddressEvent=asual.SWFAddressEvent;asual.SWFAddress=new function(){var _1e=asual.util.Browser;var _1f,_20,_21=_1e.isSupported();var _22,_23,_24,_25=false;var _26=document.title;var _27=history.length;var _28=new Array();var _29=new Object();var _2a=true;var _2b=true;var js="swfaddress.js";var swf="swfaddress.swf";var _2e="swfaddress.html";var d=top.document;var h=top.history;var l=top.location;if((!_21&&l.href.indexOf("#")!=-1)||(_1e.isSafari()&&_1e.getVersion()<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 _32=function(url){var _34=document.getElementsByTagName("script");for(var i=0,s;s=_34[i];i++){if(s.src.indexOf(js)>-1){return (new String(s.src)).replace(js,url);}}};var _37=function(){var _38=l.href.indexOf("#");if(_38!=-1){return l.href.substring(_38).replace(/^#/g,"");}return "";};var _39=_37();var _3a=function(){if(_1e.isIE()&&d.title!=_26){asual.SWFAddress.setTitle(_26);}};var _3b=function(){if(_1e.isSafari()){if(_27!=h.length&&!_25){_27=h.length;if(typeof _28[_27-1]!="undefined"){_39=_28[_27-1];}_3c();}}else{if(_1e.isIE()){if(_39!=_37()){if(_1e.getVersion()<7){l.reload();}else{_3d(_37(),false);}}}else{if(_39!=l.hash){_39=_37();_3c();}}}_3a();};var _3e=function(){_3f("init");};var _40=function(){_3f("change");};var _3f=function(_41){if(asual.SWFAddress.hasEventListener(_41)){asual.SWFAddress.dispatchEvent(new asual.SWFAddressEvent(_41));}_41=_41.substr(0,1).toUpperCase()+_41.substring(1);if(typeof asual.SWFAddress["on"+_41]=="function"){asual.SWFAddress["on"+_41]();}};var _3c=function(){var _42=_39;if(_42!=_22){_22=_42;var obj=document[_24]||document.getElementById(_24);if(obj&&typeof obj.getElementsByTagName("object")[0]!="undefined"){obj=obj.getElementsByTagName("object")[0];}if(obj&&obj.setSWFAddressValue){obj.setSWFAddressValue(_42);}if(_23&&_23.call){_23.call("setSWFAddressValue",_42);}_40();}};var _44=function(){if(_2a&&typeof urchinTracker!="undefined"){var _45=l.pathname+this.getValue();_45=_45.replace(/\/\//,"/");_45=_45.replace(/^\/$/,"");urchinTracker(_45);}};var _46=function(){if(_1f.contentWindow&&_1f.contentWindow.location){var win=_1f.contentWindow;win.document.title=d.title=_26;var src=win.location.href;if(src.indexOf("?")>-1){_39=src.substring(src.indexOf("?")+1);}else{_39="";}if(_39!=_37()){_3c();l.hash="#"+_39;}}};var _49=function(){if(_1e.isIE()||_1e.isSafari()){var _4a=document.createElement("div");document.body.appendChild(_4a);_4a.id="swfaddress";_4a.style.position="absolute";_4a.style.left=_4a.style.top="-9999px";_4a.innerHTML="<iframe id=\"swfaddress-iframe\" src=\""+_32(_2e)+"?"+_37()+"\" frameborder=\"no\" scrolling=\"no\"></iframe>";_1f=_4a.getElementsByTagName("iframe")[0];}if(_1e.isIE()){asual.util.Events.addListener(_1f,"load",asual.util.Functions.bindAsListener(_46,this));}if(_1e.isSafari()){_20=document.createElement("form");_20.id="swfaddress-form";_20.method="get";_4a.appendChild(_20);if(typeof l.swfaddress=="undefined"){l.swfaddress=new Object();}if(typeof l.swfaddress.history!="undefined"){_28=l.swfaddress.history.split(",");}}if(_1e.isOpera()&&typeof _24=="undefined"){document.body.innerHTML+="<embed src=\""+_32(swf)+"\" width=\"1\" height=\"1\" style=\"position: absolute; top: -9999px; left: -9999px\" type=\"application/x-shockwave-flash\" />";}_44.call(this);_3c.call(this);setTimeout(_3e,1);setTimeout(_40,2);setInterval(_3b,50);};var _3d=function(_4b,_4c){if(!_21){return null;}if(_4b=="null"){_4b="";}if(_22==_4b){return;}_39=_4b;if(_4c){_22=_4b;_3c();}else{_3c();_22=_4b;}_28[history.length]=_39;if(_1e.isSafari()){if(_2b){l.swfaddress.history=_28.toString();_25=true;_27=history.length+1;if(_1e.getVersion()<412){if(l.search==""){_20.action="#"+_39;_20.submit();}}else{var evt=document.createEvent("MouseEvents");evt.initEvent("click",true,true);var _4e=document.createElement("a");_4e.href="#"+_39;_4e.dispatchEvent(evt);}_25=false;}else{l.hash="#"+_39;}}else{if(_4c){if(_2b){l.hash="#"+_39;}else{l.replace("#"+_39);}}}if(_1e.isIE()&&_2b){var win=_1f.contentWindow;var _50="?"+_37();win.location.assign(win.location.pathname+_50);}_44.call(this);_40.call(this);};this.toString=function(){return "[class SWFAddress]";};this.back=function(){h.back();};this.forward=function(){h.forward();};this.go=function(_51){h.go(_51);};this.addEventListener=function(_52,_53){if(typeof _29[_52]=="undefined"){_29[_52]=new Array();}_29[_52].push(_53);};this.removeEventListener=function(_54,_55){if(typeof _29[_54]!="undefined"){for(var i=0,l;l=_29[_54][i];i++){if(l==_55){break;}}_29[_54].splice(i,1);}};this.dispatchEvent=function(_57){if(typeof _29[_57.type]!="undefined"){_57.target=this;for(var i=0,l;l=_29[_57.type][i];i++){l(_57);}}};this.hasEventListener=function(_59){return (typeof _29[_59]!="undefined"&&_29[_59].length>0);};this.getHistoryEnabled=function(){return _2b;};this.setHistoryEnabled=function(_5a){_2b=_5a;};this.getTrackingEnabled=function(){return _2a;};this.setTrackingEnabled=function(_5b){_2a=_5b;};this.openLink=function(url,_5d){switch(_5d){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,_5f,_60,_61){var w=window.open(url,_5f,_60);};this.getSWFObject=function(){if(!_21){return null;}return _23;};this.setSWFObject=function(_63){if(!_21){return null;}_23=_63;};this.getId=function(){if(!_21){return null;}return _24;};this.setId=function(id){if(!_21){return null;}_24=id;};this.getTitle=function(){if(!_21){return null;}return d.title;};this.setTitle=function(_65){if(!_21){return null;}if(_65=="null"){_65="";}if(typeof _65!="undefined"){_26=_65;d.title=_26;}};this.getStatus=function(){if(!_21){return null;}return top.status;};this.setStatus=function(_66){if(!_21){return null;}if(!_1e.isSafari()){if(_66=="null"||typeof _66=="undefined"){_66="";}var _67=l.href.indexOf("#");if(_67==-1){_66=l.href+"#"+_66;}else{_66=l.href.substr(0,_67)+"#"+_66;}top.status=_66;}};this.resetStatus=function(){top.status="";};this.getValue=function(){if(!_21){return null;}return _39;};this.setValue=function(_68){_3d(_68,true);};this.getPath=function(){var _69=this.getValue();if(_69.indexOf("?")!=1){return _69.split("?")[0];}else{return _69;}};this.getQueryString=function(){var _6a=this.getValue();var _6b=_6a.indexOf("?");if(_6b!=-1&&_6b<_6a.length){return _6a.substr(_6b+1);}return "";};this.getParameter=function(_6c){var _6d=this.getValue();var _6e=_6d.indexOf("?");if(_6e!=-1){_6d=_6d.substr(_6e+1);var _6f=_6d.split("&");var p,i=_6f.length;while(i--){p=_6f[i].split("=");if(p[0]==_6c){return p[1];}}}return "";};this.getParameterNames=function(){var _72=this.getValue();var _73=_72.indexOf("?");var _74=new Array();if(_73!=-1){_72=_72.substr(_73+1);if(_72!=""&&_72.indexOf("=")!=-1){var _75=_72.split("&");var i=0;while(i<_75.length){_74.push(_75[i].split("=")[0]);i++;}}}return _74;};if(!_21){return;}for(var i=1;i<_27;i++){_28.push("");}_28.push(l.hash.replace(/^#/g,""));if(_1e.isIE()&&l.hash!=_37()){l.hash="#"+_37();}_22=this.getValue();_3a();asual.util.Events.addListener(window,"load",asual.util.Functions.bindAsListener(_49,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,_7e,_7f,_80,_81){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;}if(typeof SWFFix!="undefined"){asual.SWFAddressFix=SWFFix.registerObject;SWFFix.registerObject=function(_82,_83){SWFAddress.setId(_82);asual.SWFAddressFix.apply(this,arguments);};}