/**
 * 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.SWFAddress=new function(){var _1a=asual.util.Browser;var _1b,_1c,_1d=_1a.isSupported();var _1e,_1f,_20,_21=false;var _22=document.title;var _23=history.length;var _24=new Array();var _25=new Object();var _26=true;var _27=true;var js="swfaddress.js";var swf="swfaddress.swf";var _2a="swfaddress.html";var d=top.document;var h=top.history;var l=top.location;if((!_1d&&l.href.indexOf("#")!=-1)||(_1a.isSafari()&&_1a.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 _2e=function(url){var _30=document.getElementsByTagName("script");for(var i=0,s;s=_30[i];i++){if(s.src.indexOf(js)>-1){return (new String(s.src)).replace(js,url);}}};var _33=function(){var _34=l.href.indexOf("#");if(_34!=-1){return l.href.substring(_34).replace(/^#/g,"");}return "";};var _35=_33();var _36=function(){if(_1a.isIE()&&d.title!=_22){asual.SWFAddress.setTitle(_22);}};var _37=function(){if(_1a.isSafari()){if(_23!=h.length&&!_21){_23=h.length;if(typeof _24[_23-1]!="undefined"){_35=_24[_23-1];}_38();}}else{if(_1a.isIE()){if(_35!=_33()){if(_1a.getVersion()<7){l.reload();}else{_39(_33(),false);}}}else{if(_35!=l.hash){_35=_33();if(_1a.isMozilla()){var _3a=false;for(var i=0;i<_24.length;i++){if(_24[i]==_35){_3a=true;break;}}if(!_3a){l.reload();return;}}_38();}}}_36();};var _3c=function(){_3d("init");};var _3e=function(){_3d("change");};var _3d=function(_3f){if(asual.SWFAddress.hasEventListener(_3f)){var e={target:asual.SWFAddress,type:_3f,value:asual.SWFAddress.getValue()};e.path=(e.value.indexOf("?")!=1)?e.value.split("?")[0]:e.value;e.parameters=new Array();if(e.value!=e.path){var _41=e.value.substr(e.value.indexOf("?")+1);if(_41!=""&&_41.indexOf("=")!=-1){var _42=_41.split("&");var i=0,_44;while(i<_42.length){_44=_42[i].split("=");e.parameters[_44[0]]=_44[1];i++;}}}asual.SWFAddress.dispatchEvent(e);}_3f=_3f.substr(0,1).toUpperCase()+_3f.substring(1);if(typeof asual.SWFAddress["on"+_3f]=="function"){asual.SWFAddress["on"+_3f]();}};var _38=function(){var _45=_35;if(_45!=_1e){_1e=_45;var obj=document[_20]||document.getElementById(_20);if(obj&&obj.setSWFAddressValue){obj.setSWFAddressValue(_45);}if(_1f&&_1f.call){_1f.call("setSWFAddressValue",_45);}_3e();}};var _47=function(){if(_26&&typeof urchinTracker!="undefined"){var _48=l.pathname+this.getValue();_48=_48.replace(/\/\//,"/");_48=_48.replace(/^\/$/,"");urchinTracker(_48);}};var _49=function(){if(_1b.contentWindow&&_1b.contentWindow.location){var win=_1b.contentWindow;win.document.title=d.title=_22;var src=win.location.href;if(src.indexOf("?")>-1){_35=src.substring(src.indexOf("?")+1);}else{_35="";}if(_35!=_33()){_38();l.hash="#"+_35;}}};var _4c=function(){if(_1a.isIE()||_1a.isSafari()){var _4d=document.createElement("div");document.body.appendChild(_4d);_4d.id="swfaddress";_4d.style.position="absolute";_4d.style.left=_4d.style.top="-9999px";_4d.innerHTML="<iframe id=\"swfaddress-iframe\" src=\""+_2e(_2a)+"?"+_33()+"\" frameborder=\"no\" scrolling=\"no\"></iframe>";_1b=_4d.getElementsByTagName("iframe")[0];}if(_1a.isIE()){asual.util.Events.addListener(_1b,"load",asual.util.Functions.bindAsListener(_49,this));}if(_1a.isSafari()){_1c=document.createElement("form");_1c.id="swfaddress-form";_1c.method="get";_4d.appendChild(_1c);if(typeof l.swfaddress=="undefined"){l.swfaddress=new Object();}if(typeof l.swfaddress.history!="undefined"){_24=l.swfaddress.history.split(",");}}if(_1a.isOpera()&&typeof _20=="undefined"){document.body.innerHTML+="<embed src=\""+_2e(swf)+"\" width=\"1\" height=\"1\" style=\"position: absolute; top: -9999px; left: -9999px\" type=\"application/x-shockwave-flash\" />";}_47.call(this);_38.call(this);setTimeout(_3c,1);setTimeout(_3e,2);setInterval(_37,50);};var _39=function(_4e,_4f){if(!_1d){return null;}if(_4e=="null"){_4e="";}if(_1e==_4e){return;}_35=_4e;if(_4f){_1e=_4e;_38();}else{_38();_1e=_4e;}_24[history.length]=_35;if(_1a.isSafari()){if(_27){l.swfaddress.history=_24.toString();_21=true;_23=history.length+1;if(_1a.getVersion()<412){if(l.search==""){_1c.action="#"+_35;_1c.submit();}}else{var evt=document.createEvent("MouseEvents");evt.initEvent("click",true,true);var _51=document.createElement("a");_51.href="#"+_35;_51.dispatchEvent(evt);}_21=false;}else{l.hash="#"+_35;}}else{if(_4f){if(_27){l.hash="#"+_35;}else{l.replace("#"+_35);}}}if(_1a.isIE()&&_27){var win=_1b.contentWindow;var _53="?"+_33();win.location.assign(win.location.pathname+_53);}_47.call(this);_3e.call(this);};this.toString=function(){return "[class SWFAddress]";};this.back=function(){h.back();};this.forward=function(){h.forward();};this.go=function(_54){h.go(_54);};this.addEventListener=function(_55,_56){if(typeof _25[_55]=="undefined"){_25[_55]=new Array();}_25[_55].push(_56);};this.removeEventListener=function(_57,_58){if(typeof _25[_57]!="undefined"){for(var i=0,l;l=_25[_57][i];i++){if(l==_58){break;}}_25[_57].splice(i,1);}};this.dispatchEvent=function(_5a){if(typeof _25[_5a.type]!="undefined"){_5a.target=this;for(var i=0,l;l=_25[_5a.type][i];i++){l(_5a);}}};this.hasEventListener=function(_5c){return (typeof _25[_5c]!="undefined"&&_25[_5c].length>0);};this.getHistoryEnabled=function(){return _27;};this.setHistoryEnabled=function(_5d){_27=_5d;};this.getTrackingEnabled=function(){return _26;};this.setTrackingEnabled=function(_5e){_26=_5e;};this.openLink=function(url,_60){switch(_60){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,_62,_63,_64){var w=window.open(url,_62,_63);};this.getSWFObject=function(){if(!_1d){return null;}return _1f;};this.setSWFObject=function(_66){if(!_1d){return null;}_1f=_66;};this.getId=function(){if(!_1d){return null;}return _20;};this.setId=function(id){if(!_1d){return null;}_20=id;};this.getTitle=function(){if(!_1d){return null;}return d.title;};this.setTitle=function(_68){if(!_1d){return null;}if(_68=="null"){_68="";}if(typeof _68!="undefined"){_22=_68;d.title=_22;}};this.getStatus=function(){if(!_1d){return null;}return top.status;};this.setStatus=function(_69){if(!_1d){return null;}if(!_1a.isSafari()){if(_69=="null"||typeof _69=="undefined"){_69="";}var _6a=l.href.indexOf("#");if(_6a==-1){_69=l.href+"#"+_69;}else{_69=l.href.substr(0,_6a)+"#"+_69;}top.status=_69;}};this.resetStatus=function(){top.status="";};this.getValue=function(){if(!_1d){return null;}return _35;};this.setValue=function(_6b){_39(_6b,true);};this.getPath=function(){var _6c=this.getValue();if(_6c.indexOf("?")!=1){return _6c.split("?")[0];}else{return _6c;}};this.getQueryString=function(){var _6d=this.getValue();var _6e=_6d.indexOf("?");if(_6e!=-1&&_6e<_6d.length){return _6d.substr(_6e+1);}return "";};this.getParameter=function(_6f){var _70=this.getValue();var _71=_70.indexOf("?");if(_71!=-1){_70=_70.substr(_71+1);var _72=_70.split("&");var p,i=_72.length;while(i--){p=_72[i].split("=");if(p[0]==_6f){return p[1];}}}return "";};if(!_1d){return;}for(var i=1;i<_23;i++){_24.push("");}_24.push(l.hash.replace(/^#/g,""));if(_1a.isIE()&&l.hash!=_33()){l.hash="#"+_33();}_1e=this.getValue();_36();asual.util.Events.addListener(window,"load",asual.util.Functions.bindAsListener(_4c,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,_7c,_7d,_7e,_7f){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;}