/**
 * SWFAddress 2.2: Deep linking for Flash and Ajax <http://www.asual.com/swfaddress/>
 *
 * SWFAddress is (c) 2006-2008 Rostislav Hristov and contributors
 * This software is released under the MIT License <http://www.opensource.org/licenses/mit-license.php>
 *
 */
if(typeof com=="undefined"){var com={};}if(typeof com.asual=="undefined"){com.asual={};}if(typeof com.asual.util=="undefined"){com.asual.util={};}com.asual.util.Browser=new function(){var B=-1,D=navigator.userAgent,I=false,H=false,F=false,A=false,C=false,G=false,J=false;var E=function(L,K){return parseFloat(D.substr(D.indexOf(L)+K));};if(I=/MSIE/.test(D)){B=E("MSIE",4);}if(F=/AppleWebKit/.test(D)){B=E("Safari",7);}if(A=/Opera/.test(D)){B=parseFloat(navigator.appVersion);}if(H=/Camino/.test(D)){B=E("Camino",7);}if(G=/Netscape/.test(D)){B=E("Netscape",9);}if(C=(/Firefox/.test(D)&&!H&&!G)){B=E("Firefox",8);}if(J=/Mozilla/.test(D)&&/rv:/.test(D)){B=E("rv:",3);}this.toString=function(){return "[class Browser]";};this.getVersion=function(){return B;};this.isIE=function(){return I;};this.isSafari=function(){return F;};this.isOpera=function(){return A;};this.isCamino=function(){return H;};this.isFirefox=function(){return C;};this.isNetscape=function(){return G;};this.isMozilla=function(){return J;};};com.asual.util.Events=new function(){var B="DOMContentLoaded",F="onstop",I=window,E=document,A=[],H=com.asual.util,C=H.Browser;this.toString=function(){return "[class Events]";};this.addListener=function(L,J,K){A.push({o:L,t:J,l:K});if(!(J==B&&(C.isIE()||C.isSafari()))){if(L.addEventListener){L.addEventListener(J,K,false);}else{if(L.attachEvent){L.attachEvent("on"+J,K);}}}};this.removeListener=function(N,K,L){for(var J=0,M;M=A[J];J++){if(M.o==N&&M.t==K&&M.l==L){A.splice(J,1);break;}}if(!(K==B&&(C.isIE()||C.isSafari()))){if(N.removeEventListener){N.removeEventListener(K,L,false);}else{if(N.detachEvent){N.detachEvent("on"+K,L);}}}};var G=function(){for(var K=0,J;J=A[K];K++){if(J.t!=B){H.Events.removeListener(J.o,J.t,J.l);}}};var D=function(){if(E.readyState=="interactive"){function J(){E.detachEvent(F,J);G();};E.attachEvent(F,J);I.setTimeout(function(){E.detachEvent(F,J);},0);}};if(C.isIE()||C.isSafari()){(function(){try{if((C.isIE()&&E.body)||!/loaded|complete/.test(E.readyState)){E.documentElement.doScroll("left");}}catch(K){return setTimeout(arguments.callee,0);}for(var J=0,K;K=A[J];J++){if(K.t==B){K.l.call(null);}}})();}if(C.isIE()){I.attachEvent("onbeforeunload",D);}this.addListener(I,"unload",G);};com.asual.util.Functions=new function(){this.toString=function(){return "[class Functions]";};this.extend=function(C,A){function B(){};B.prototype=C.prototype;A.prototype=new B();A.prototype.constructor=A;A.superConstructor=C;A.superClass=C.prototype;return A;};this.bind=function(F,B,E){for(var C=2,D,A=[];D=arguments[C];C++){A.push(D);}return function(){return F.apply(B,A);};};};com.asual.util.WEBAddressEvent=function(D){var A=com.asual.util.WEBAddress;this.toString=function(){return "[object WEBAddressEvent]";};this.type=D;this.target=[A][0];this.value=A.getValue();this.path=A.getPath();this.pathNames=A.getPathNames();this.parameters={};var E=A.getParameterNames();for(var C=0,B=E.length;C<B;C++){this.parameters[E[C]]=A.getParameter(E[C]);}this.parametersNames=E;};com.asual.util.WEBAddressEvent.INIT="init";com.asual.util.WEBAddressEvent.CHANGE="change";com.asual.util.WEBAddress=new function(){var ID="",_30="function",_31="undefined",_32=com.asual.util,_33=_32.Browser,_34=_32.Events,_35=_32.Functions,_36=_33.getVersion(),_37=false,_t=top,_d=_t.document,_h=_t.history,_l=_t.location,_st=setTimeout,_dc=decodeURIComponent,_ec=encodeURIComponent,_3f,_40,_41,_42=_d.title,_43=_h.length,_44=false,_45=false,_46=true,_47=[],_48={},_49={history:true,html:false,strict:true,tracker:"_trackDefault"};if(_33.isIE()){_37=_36>=6;}if(_33.isSafari()){_37=_36>=312;}if(_33.isOpera()){_37=_36>=9.02;}if(_33.isCamino()){_37=_36>=1;}if(_33.isFirefox()){_37=_36>=1;}if(_33.isNetscape()){_37=_36>=8;}if(_33.isMozilla()){_37=_36>=1.8;}if((!_37&&_l.href.indexOf("#")!=-1)||(_33.isSafari()&&_36<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 _4a=function(){var _4b=_l.href.indexOf("#");return _4b!=-1?_l.href.substr(_4b+1):"";};var _4c=_4a();var _4d=function(_4e,_4f){if(_49.strict){_4e=_4f?(_4e.substr(0,1)!="/"?"/"+_4e:_4e):(_4e==""?"/":_4e);}return _4e;};var _50=function(_51){return (_33.isIE()&&_l.protocol=="file:")?_4c.replace(/\?/,"%3F"):_51;};var _52=function(el){for(var i=0,l=el.childNodes.length,s;i<l;i++){if(el.childNodes[i].src){_41=String(el.childNodes[i].src);}if(s=_52(el.childNodes[i])){return s;}}};var _57=function(){if(_33.isIE()&&_d.title!=_42&&_d.title.indexOf("#")!=-1){this.setTitle(_42);}};var _58=function(){if(!_44){var _59=_4a();if(_33.isIE()){if(_4c!=_59){if(_36<7){_l.reload();}else{this.setValue(_59);}}}else{if(_33.isSafari()&&_36<523){if(_43!=_h.length){_43=_h.length;if(typeof _47[_43-1]!=_31){_4c=_47[_43-1];}_5a.call(this);}}else{if(_4c!=_59){_4c=_59;_5a.call(this);}}}_57.call(this);}};var _5b=function(_5c){this.dispatchEvent(new _32.WEBAddressEvent(_5c));_5c=_5c.substr(0,1).toUpperCase()+_5c.substr(1);if(typeof this["on"+_5c]==_30){this["on"+_5c]();}};var _5d=function(){_5b.call(this,"init");};var _5e=function(){_5b.call(this,"change");};var _5a=function(){_5e.call(this);_st(_35.bind(_5f,this),10);};var _60=function(_61){if(typeof urchinTracker==_30){urchinTracker(_61);}if(typeof pageTracker!=_31&&typeof pageTracker._trackPageview==_30){pageTracker._trackPageview(_61);}};eval("var _trackDefault = "+_60+";");var _5f=function(){if(typeof _49.tracker!=_31&&eval("typeof "+_49.tracker+" != \""+_31+"\"")){var fn=eval(_49.tracker);if(typeof fn==_30){fn((_l.pathname+(/\/$/.test(_l.pathname)?"":"/")+this.getValue()).replace(/\/\//,"/").replace(/^\/$/,""));}}};var _63=function(){var doc=_3f.contentWindow.document;doc.open();doc.write("<html><head><title>"+_d.title+"</title><script>var "+ID+" = \""+_ec(_4a())+"\";</script></head></html>");doc.close();};var _65=function(){var win=_3f.contentWindow;var src=win.location.href;_4c=(_49.html)?(src.indexOf("?")>-1?_dc(src.substr(src.indexOf("?")+1)):""):(typeof win[ID]!=_31?_dc(win[ID]):"");if(_4c!=_4a()){_5a.call(_32.WEBAddress);_l.hash=_50(_4c);}};var _68=function(){if(!_45){_45=true;var _69="id=\""+ID+"\" style=\"position:absolute;top:-9999px;\"";if(_33.isIE()&&_36<8){_d.body.appendChild(_d.createElement("div")).innerHTML="<iframe "+_69+" src=\""+(_49.html?_41.replace(/\.js(\?.*)?$/,".html")+"?"+_ec(_4a()):"javascript:false;")+"\" width=\"0\" height=\"0\"></iframe>";_3f=_d.getElementById(ID);_st(function(){_34.addListener(_3f,"load",_65);if(!_49.html&&typeof _3f.contentWindow[ID]==_31){_63();}},10);}else{if(_33.isSafari()){if(_36<412){_d.body.innerHTML+="<form "+_69+" method=\"get\"></form>";_40=_d.getElementById(ID);}if(typeof _l[ID]==_31){_l[ID]={};}if(typeof _l[ID][_l.pathname]!=_31){_47=_l[ID][_l.pathname].split(",");}}}_st(_35.bind(_5d,this),1);_st(_35.bind(_5e,this),2);_st(_35.bind(_5f,this),10);if(_33.isIE()&&_36>=8){_d.body.onhashchange=_35.bind(_58,this);setInterval(_35.bind(_57,this),50);}else{setInterval(_35.bind(_58,this),50);}}};this.onInit=null;this.onChange=null;this.toString=function(){return "[class WEBAddress]";};this.back=function(){_h.back();};this.forward=function(){_h.forward();};this.up=function(){var _6a=this.getPath();this.setValue(_6a.substr(0,_6a.lastIndexOf("/",_6a.length-2)+(_6a.substr(_6a.length-1)=="/"?1:0)));};this.go=function(_6b){_h.go(_6b);};this.addEventListener=function(_6c,_6d){if(typeof _48[_6c]==_31){_48[_6c]=[];}_48[_6c].push(_6d);};this.removeEventListener=function(_6e,_6f){if(typeof _48[_6e]!=_31){for(var i=0,l;l=_48[_6e][i];i++){if(l==_6f){break;}}_48[_6e].splice(i,1);}};this.dispatchEvent=function(_72){if(this.hasEventListener(_72.type)){_72.target=this;for(var i=0,l;l=_48[_72.type][i];i++){l(_72);}return true;}return false;};this.hasEventListener=function(_75){return (typeof _48[_75]!=_31&&_48[_75].length>0);};this.getBaseURL=function(){var url=_l.href;if(url.indexOf("#")!=-1){url=url.substr(0,url.indexOf("#"));}if(url.substr(url.length-1)=="/"){url=url.substr(0,url.length-1);}return url;};this.getStrict=function(){return _49.strict;};this.setStrict=function(_77){_49.strict=_77;};this.getHistory=function(){return _49.history;};this.setHistory=function(_78){_49.history=_78;};this.getTracker=function(){return _49.tracker;};this.setTracker=function(_79){_49.tracker=_79;};this.getTitle=function(){return _d.title;};this.setTitle=function(_7a){if(!_37){return null;}if(typeof _7a==_31){return;}if(_7a=="null"){_7a="";}setTimeout(function(){_42=_d.title=_7a;if(!_46&&(_33.isCamino()||_33.isNetscape()||_33.isMozilla()||_33.isFirefox())){_l.replace(_l.href.indexOf("#")!=-1?_l.href:_l.href+"#");}_46=false;},50);};this.getStatus=function(){return _t.status;};this.setStatus=function(_7b){if(typeof _7b==_31){return;}if(!_33.isSafari()){_7b=_4d((_7b!="null")?_7b:"",true);if(_7b=="/"){_7b="";}if(!(/http(s)?:\/\//.test(_7b))){var _7c=_l.href.indexOf("#");_7b=(_7c==-1?_l.href:_l.href.substr(0,_7c))+"#"+_7b;}_t.status=_7b;}};this.resetStatus=function(){_t.status="";};this.getValue=function(){if(!_37){return null;}return _4d(_4c,false);};this.setValue=function(_7d){if(!_37){return null;}if(typeof _7d==_31){return;}if(_7d=="null"){_7d="";}_7d=_4d(_7d,true);if(_7d=="/"){_7d="";}if(_4c==_7d){return;}_46=true;_4c=_7d;_44=true;_5a.call(_32.WEBAddress);_47[_h.length]=_4c;if(_33.isSafari()){if(_49.history){_l[ID][_l.pathname]=_47.toString();_43=_h.length+1;if(_36<412){if(_l.search==""){_40.action="#"+_4c;_40.submit();}}else{if(_36<523||_4c==""){var evt=_d.createEvent("MouseEvents");evt.initEvent("click",true,true);var _7f=_d.createElement("a");_7f.href="#"+_4c;_7f.dispatchEvent(evt);}else{_l.hash="#"+_4c;}}}else{_l.replace("#"+_4c);}}else{if(_4c!=_4a()){if(_49.history){_l.hash="#"+_50(_4c);}else{_l.replace("#"+_4c);}}}if((_33.isIE()&&_36<8)&&_49.history){if(_49.html){var loc=_3f.contentWindow.location;loc.assign(loc.pathname+"?"+_4a());}else{setTimeout(_63,50);}}if(_33.isSafari()){_st(function(){_44=false;},1);}else{_44=false;}};this.getPath=function(){var _81=this.getValue();return (_81.indexOf("?")!=-1)?_81.split("?")[0]:_81;};this.getPathNames=function(){var _82=this.getPath();var _83=_82.split("/");if(_82.substr(0,1)=="/"){_83.splice(0,1);}if(_82.substr(_82.length-1,1)=="/"){_83.splice(_83.length-1,1);}return _83;};this.getQueryString=function(){var _84=this.getValue();var _85=_84.indexOf("?");return (_85!=-1&&_85<_84.length)?_84.substr(_85+1):"";};this.getParameter=function(_86){var _87=this.getValue();var _88=_87.indexOf("?");if(_88!=-1){_87=_87.substr(_88+1);var _89=_87.split("&");var p,i=_89.length;while(i--){p=_89[i].split("=");if(p[0]==_86){return p[1];}}}return "";};this.getParameterNames=function(){var _8c=this.getValue();var _8d=_8c.indexOf("?");var _8e=[];if(_8d!=-1){_8c=_8c.substr(_8d+1);if(_8c!=""&&_8c.indexOf("=")!=-1){var _8f=_8c.split("&");var i=0;while(i<_8f.length){_8e.push(_8f[i].split("=")[0]);i++;}}}return _8e;};if(_37){for(var i=1;i<_43;i++){_47.push("");}_47.push(_4a());if(_33.isIE()&&_l.hash!=_4a()){_l.hash="#"+_50(_4a());}_52(document);var _qi=_41.indexOf("?");if(_41&&_qi>-1){var _93,_94=_41.substr(_qi+1).split("&");for(var i=0,p;p=_94[i];i++){_93=p.split("=");if(/^(history|html|strict)$/.test(_93[0])){_49[_93[0]]=(isNaN(_93[1])?eval(_93[1]):(parseFloat(_93[1])>0));}if(/^tracker$/.test(_93[0])){_49[_93[0]]=_93[1];}}}if(/file:\/\//.test(_l.href)){_49.html=false;}var _ei=_41.indexOf(".js"),l;if(_41&&_ei>-1){while(_ei--){l=_41.substr(_ei,1);if(/(\/|\\)/.test(l)){break;}ID=l+ID;}}_57.call(this);if(window==_t){_34.addListener(document,"DOMContentLoaded",_35.bind(_68,this));}_34.addListener(_t,"load",_35.bind(_68,this));}else{_5f();}};SWFAddressEvent=function(A){SWFAddressEvent.superConstructor.apply(this,arguments);this.target=[SWFAddress][0];this.toString=function(){return "[object SWFAddressEvent]";};};com.asual.util.Functions.extend(com.asual.util.WEBAddressEvent,SWFAddressEvent);SWFAddressEvent.INIT="init";SWFAddressEvent.CHANGE="change";SWFAddress=new function(){var _99="undefined",_t=top,_l=_t.location,_9c=this,_9d=[],_9e={},_9f=com.asual.util,_a0=_9f.Functions,_a1=_9f.WEBAddress;for(var p in _a1){this[p]=_a1[p];}var _a3=function(_a4){this.dispatchEvent(new SWFAddressEvent(_a4));_a4=_a4.substr(0,1).toUpperCase()+_a4.substr(1);if(typeof this["on"+_a4]=="function"){this["on"+_a4]();}};var _a5=function(){_a3.call(this,"init");};var _a6=function(){_a7();_a3.call(this,"change");};var _a7=function(){for(var i=0,id,obj,_ab=SWFAddress.getValue(),_ac="setSWFAddressValue";id=_9d[i];i++){obj=document.getElementById(id);if(obj){if(obj.parentNode&&typeof obj.parentNode.so!=_99){obj.parentNode.so.call(_ac,_ab);}else{if(!(obj&&typeof obj[_ac]!=_99)){var _ad=obj.getElementsByTagName("object");var _ae=obj.getElementsByTagName("embed");obj=((_ad[0]&&typeof _ad[0][_ac]!=_99)?_ad[0]:((_ae[0]&&typeof _ae[0][_ac]!=_99)?_ae[0]:null));}if(obj){obj[_ac](_ab);}}}else{if(obj=document[id]){if(typeof obj[_ac]!=_99){obj[_ac](_ab);}}}}};this.toString=function(){return "[class SWFAddress]";};this.addEventListener=function(_af,_b0){if(typeof _9e[_af]==_99){_9e[_af]=[];}_9e[_af].push(_b0);};this.removeEventListener=function(_b1,_b2){if(typeof _9e[_b1]!=_99){for(var i=0,l;l=_9e[_b1][i];i++){if(l==_b2){break;}}_9e[_b1].splice(i,1);}};this.dispatchEvent=function(_b5){if(typeof _9e[_b5.type]!=_99&&_9e[_b5.type].length){_b5.target=this;for(var i=0,l;l=_9e[_b5.type][i];i++){l(_b5);}return true;}return false;};this.hasEventListener=function(_b8){return (typeof _9e[_b8]!=_99&&_9e[_b8].length>0);};this.href=function(url,_ba){_ba=typeof _ba!=_99?_ba:"_self";if(_ba=="_self"){self.location.href=url;}else{if(_ba=="_top"){_l.href=url;}else{if(_ba=="_blank"){window.open(url);}else{_t.frames[_ba].location.href=url;}}}};this.popup=function(url,_bc,_bd,_be){var _bf=window.open(url,_bc,eval(_bd));eval(_be);};this.getIds=function(){return _9d;};this.getId=function(_c0){return _9d[0];};this.setId=function(id){_9d[0]=id;};this.addId=function(id){this.removeId(id);_9d.push(id);};this.removeId=function(id){for(var i=0;i<_9d.length;i++){if(id==_9d[i]){_9d.splice(i,1);break;}}};_a1.addEventListener("init",_a0.bind(_a5,this));_a1.addEventListener("change",_a0.bind(_a6,this));(function(){var _c5;if(typeof FlashObject!=_99){SWFObject=FlashObject;}if(typeof SWFObject!=_99&&SWFObject.prototype&&SWFObject.prototype.write){var _s1=SWFObject.prototype.write;SWFObject.prototype.write=function(){_c5=arguments;if(this.getAttribute("version").major<8){this.addVariable("$swfaddress",SWFAddress.getValue());((typeof _c5[0]=="string")?document.getElementById(_c5[0]):_c5[0]).so=this;}var _c7;if(_c7=_s1.apply(this,_c5)){_9c.addId(this.getAttribute("id"));}return _c7;};}if(typeof swfobject!=_99){var _c8=swfobject.registerObject;swfobject.registerObject=function(){_c5=arguments;_c8.apply(this,_c5);_9c.addId(_c5[0]);};var _c9=swfobject.createSWF;swfobject.createSWF=function(){_c5=arguments;_c9.apply(this,_c5);_9c.addId(_c5[0].id);};var _ca=swfobject.embedSWF;swfobject.embedSWF=function(){_c5=arguments;_ca.apply(this,_c5);_9c.addId(_c5[8].id);};}if(typeof UFO!=_99){var _u=UFO.create;UFO.create=function(){_c5=arguments;_u.apply(this,_c5);_9c.addId(_c5[0].id);};}if(typeof AC_FL_RunContent!=_99){var _a=AC_FL_RunContent;AC_FL_RunContent=function(){_c5=arguments;_a.apply(this,_c5);for(var i=0,l=_c5.length;i<l;i++){if(_c5[i]=="id"){_9c.addId(_c5[i+1]);}}};}})();};

