/**
 * 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(C=/Firefox/.test(D)){B=E("Firefox",8);}if(G=/Netscape/.test(D)){B=E("Netscape",9);}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=[],_47={},_48={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 _49=function(){var _4a=_l.href.indexOf("#");return _4a!=-1?_l.href.substr(_4a+1):"";};var _4b=_49();var _4c=function(_4d,_4e){if(_48.strict){_4d=_4e?(_4d.substr(0,1)!="/"?"/"+_4d:_4d):(_4d==""?"/":_4d);}return _4d;};var _4f=function(_50){return (_33.isIE()&&_l.protocol=="file:")?_4b.replace(/\?/,"%3F"):_50;};var _51=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=_51(el.childNodes[i])){return s;}}};var _56=function(){if(_33.isIE()&&_d.title!=_42){this.setTitle(_42);}};var _57=function(){if(!_44){var _58=_49();if(_33.isIE()){if(_4b!=_58){if(_36<7){_l.reload();}else{this.setValue(_58);}}}else{if(_33.isSafari()&&_36<523){if(_43!=_h.length){_43=_h.length;if(typeof _46[_43-1]!=_31){_4b=_46[_43-1];}_59.call(this);}}else{if(_4b!=_58){_4b=_58;_59.call(this);}}}_56.call(this);}};var _5a=function(_5b){this.dispatchEvent(new _32.WEBAddressEvent(_5b));_5b=_5b.substr(0,1).toUpperCase()+_5b.substr(1);if(typeof this["on"+_5b]==_30){this["on"+_5b]();}};var _5c=function(){_5a.call(this,"init");};var _5d=function(){_5a.call(this,"change");};var _59=function(){_5d.call(this);_st(_35.bind(_5e,this),10);};var _5f=function(_60){if(typeof urchinTracker==_30){urchinTracker(_60);}if(typeof pageTracker!=_31&&typeof pageTracker._trackPageview==_30){pageTracker._trackPageview(_60);}};eval("var _trackDefault = "+_5f+";");var _5e=function(){if(typeof _48.tracker!=_31&&eval("typeof "+_48.tracker+" != \""+_31+"\"")){var fn=eval(_48.tracker);if(typeof fn==_30){fn((_l.pathname+(/\/$/.test(_l.pathname)?"":"/")+this.getValue()).replace(/\/\//,"/").replace(/^\/$/,""));}}};var _62=function(){var doc=_3f.contentWindow.document;doc.open();doc.write("<script>var "+ID+" = \""+_ec(_49())+"\";</script>");doc.close();};var _64=function(){var win=_3f.contentWindow;var src=win.location.href;win.document.title=_d.title;_4b=(_48.html)?(src.indexOf("?")>-1?_dc(src.substr(src.indexOf("?")+1)):""):(typeof win[ID]!=_31?_dc(win[ID]):"");if(_4b!=_49()){_59.call(_32.WEBAddress);_l.hash=_4f(_4b);}};var _67=function(){if(!_45){_45=true;var _68="id=\""+ID+"\" style=\"position:absolute;top:-9999px;\"";if(_33.isIE()&&_36<8){_d.body.appendChild(_d.createElement("div")).innerHTML="<iframe "+_68+" src=\""+(_48.html?_41.replace(/\.js(\?.*)?$/,".html")+"?"+_ec(_49()):"javascript:false;")+"\" width=\"0\" height=\"0\"></iframe>";_3f=_d.getElementById(ID);_st(function(){_34.addListener(_3f,"load",_64);if(!_48.html&&typeof _3f.contentWindow[ID]==_31){_62();}},10);}else{if(_33.isSafari()){if(_36<412){_d.body.innerHTML+="<form "+_68+" method=\"get\"></form>";_40=_d.getElementById(ID);}if(typeof _l[ID]==_31){_l[ID]={};}if(typeof _l[ID][_l.pathname]!=_31){_46=_l[ID][_l.pathname].split(",");}}}_st(_35.bind(_5c,this),1);_st(_35.bind(_5d,this),2);_st(_35.bind(_5e,this),10);if(_33.isIE()&&_36>=8){_d.body.onhashchange=_35.bind(_57,this);setInterval(_35.bind(_56,this),50);}else{setInterval(_35.bind(_57,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 _69=SWFAddress.getPath();SWFAddress.setValue(_69.substr(0,_69.lastIndexOf("/",_69.length-2)+(_69.substr(_69.length-1)=="/"?1:0)));};this.go=function(_6a){_h.go(_6a);};this.addEventListener=function(_6b,_6c){if(typeof _47[_6b]==_31){_47[_6b]=[];}_47[_6b].push(_6c);};this.removeEventListener=function(_6d,_6e){if(typeof _47[_6d]!=_31){for(var i=0,l;l=_47[_6d][i];i++){if(l==_6e){break;}}_47[_6d].splice(i,1);}};this.dispatchEvent=function(_71){if(this.hasEventListener(_71.type)){_71.target=this;for(var i=0,l;l=_47[_71.type][i];i++){l(_71);}return true;}return false;};this.hasEventListener=function(_74){return (typeof _47[_74]!=_31&&_47[_74].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 _48.strict;};this.setStrict=function(_76){_48.strict=_76;};this.getHistory=function(){return _48.history;};this.setHistory=function(_77){_48.history=_77;};this.getTracker=function(){return _48.tracker;};this.setTracker=function(_78){_48.tracker=_78;};this.getTitle=function(){return _d.title;};this.setTitle=function(_79){if(!_37){return null;}if(typeof _79==_31){return;}if(_79=="null"){_79="";}_42=_d.title=_79;_st(function(){if(_3f&&_3f.contentWindow&&_3f.contentWindow.document&&_3f.contentWindow.title){_3f.contentWindow.document.title=_42;}},1000);};this.getStatus=function(){return _t.status;};this.setStatus=function(_7a){if(typeof _7a==_31){return;}if(!_33.isSafari()){_7a=_4c((_7a!="null")?_7a:"",true);if(_7a=="/"){_7a="";}if(!(/http(s)?:\/\//.test(_7a))){var _7b=_l.href.indexOf("#");_7a=(_7b==-1?_l.href:_l.href.substr(0,_7b))+"#"+_7a;}_t.status=_7a;}};this.resetStatus=function(){_t.status="";};this.getValue=function(){if(!_37){return null;}return _4c(_4b,false);};this.setValue=function(_7c){if(!_37){return null;}if(typeof _7c==_31){return;}if(_7c=="null"){_7c="";}_7c=_4c(_7c,true);if(_7c=="/"){_7c="";}if(_4b==_7c){return;}_4b=_7c;_44=true;_59.call(_32.WEBAddress);_46[_h.length]=_4b;if(_33.isSafari()){if(_48.history){_l[ID][_l.pathname]=_46.toString();_43=_h.length+1;if(_36<412){if(_l.search==""){_40.action="#"+_4b;_40.submit();}}else{if(_36<523||_4b==""){var evt=_d.createEvent("MouseEvents");evt.initEvent("click",true,true);var _7e=_d.createElement("a");_7e.href="#"+_4b;_7e.dispatchEvent(evt);}else{_l.hash="#"+_4b;}}}else{_l.replace("#"+_4b);}}else{if(_4b!=_49()){if(_48.history){_l.hash="#"+_4f(_4b);}else{_l.replace("#"+_4b);}}}if((_33.isIE()&&_36<8)&&_48.history){if(_48.html){var loc=_3f.contentWindow.location;loc.assign(loc.pathname+"?"+_49());}else{_62();}}if(_33.isSafari()){_st(function(){_44=false;},1);}else{_44=false;}};this.getPath=function(){var _80=this.getValue();return (_80.indexOf("?")!=-1)?_80.split("?")[0]:_80;};this.getPathNames=function(){var _81=this.getPath();var _82=_81.split("/");if(_81.substr(0,1)=="/"){_82.splice(0,1);}if(_81.substr(_81.length-1,1)=="/"){_82.splice(_82.length-1,1);}return _82;};this.getQueryString=function(){var _83=this.getValue();var _84=_83.indexOf("?");return (_84!=-1&&_84<_83.length)?_83.substr(_84+1):"";};this.getParameter=function(_85){var _86=this.getValue();var _87=_86.indexOf("?");if(_87!=-1){_86=_86.substr(_87+1);var _88=_86.split("&");var p,i=_88.length;while(i--){p=_88[i].split("=");if(p[0]==_85){return p[1];}}}return "";};this.getParameterNames=function(){var _8b=this.getValue();var _8c=_8b.indexOf("?");var _8d=[];if(_8c!=-1){_8b=_8b.substr(_8c+1);if(_8b!=""&&_8b.indexOf("=")!=-1){var _8e=_8b.split("&");var i=0;while(i<_8e.length){_8d.push(_8e[i].split("=")[0]);i++;}}}return _8d;};if(_37){for(var i=1;i<_43;i++){_46.push("");}_46.push(_49());if(_33.isIE()&&_l.hash!=_49()){_l.hash="#"+_4f(_49());}_51(document);var _qi=_41.indexOf("?");if(_41&&_qi>-1){var _92,_93=_41.substr(_qi+1).split("&");for(var i=0,p;p=_93[i];i++){_92=p.split("=");if(/^(history|html|strict)$/.test(_92[0])){_48[_92[0]]=(isNaN(_92[1])?eval(_92[1]):(parseFloat(_92[1])>0));}if(/^tracker$/.test(_92[0])){_48[_92[0]]=_92[1];}}}if(/file:\/\//.test(_l.href)){_48.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;}}_56.call(this);if(window!=_t){_34.addListener(_t,"load",_35.bind(_67,this));}else{_34.addListener(document,"DOMContentLoaded",_35.bind(_67,this));}}else{_5e();}};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 _98="undefined",_t=top,_l=_t.location,_9b=this,_9c=[],_9d={},_9e=com.asual.util,_9f=_9e.Functions,_a0=_9e.WEBAddress;for(var p in _a0){this[p]=_a0[p];}var _a2=function(_a3){this.dispatchEvent(new SWFAddressEvent(_a3));_a3=_a3.substr(0,1).toUpperCase()+_a3.substr(1);if(typeof this["on"+_a3]=="function"){this["on"+_a3]();}};var _a4=function(){_a2.call(this,"init");};var _a5=function(){_a6();_a2.call(this,"change");};var _a6=function(){for(var i=0,id,_a9=SWFAddress.getValue(),_aa="setSWFAddressValue";id=_9c[i];i++){var obj=document.getElementById(id);if(obj){if(obj.parentNode&&typeof obj.parentNode.so!=_98){obj.parentNode.so.call(_aa,_a9);}else{if(!(obj&&typeof obj[_aa]!=_98)){var _ac=obj.getElementsByTagName("object");var _ad=obj.getElementsByTagName("embed");obj=((_ac[0]&&typeof _ac[0][_aa]!=_98)?_ac[0]:((_ad[0]&&typeof _ad[0][_aa]!=_98)?_ad[0]:null));}if(obj){obj[_aa](_a9);}}}else{if(obj=document[id]){if(typeof obj[_aa]!=_98){obj[_aa](_a9);}}}}};this.toString=function(){return "[class SWFAddress]";};this.addEventListener=function(_ae,_af){if(typeof _9d[_ae]==_98){_9d[_ae]=[];}_9d[_ae].push(_af);};this.removeEventListener=function(_b0,_b1){if(typeof _9d[_b0]!=_98){for(var i=0,l;l=_9d[_b0][i];i++){if(l==_b1){break;}}_9d[_b0].splice(i,1);}};this.dispatchEvent=function(_b4){if(typeof _9d[_b4.type]!=_98&&_9d[_b4.type].length){_b4.target=this;for(var i=0,l;l=_9d[_b4.type][i];i++){l(_b4);}return true;}return false;};this.hasEventListener=function(_b7){return (typeof _9d[_b7]!=_98&&_9d[_b7].length>0);};this.href=function(url,_b9){_b9=typeof _b9!=_98?_b9:"_self";if(_b9=="_self"){self.location.href=url;}else{if(_b9=="_top"){_l.href=url;}else{if(_b9=="_blank"){window.open(url);}else{_t.frames[_b9].location.href=url;}}}};this.popup=function(url,_bb,_bc,_bd){var _be=window.open(url,_bb,eval(_bc));eval(_bd);};this.getIds=function(){return _9c;};this.getId=function(_bf){return _9c[0];};this.setId=function(id){_9c[0]=id;};this.addId=function(id){this.removeId(id);_9c.push(id);};this.removeId=function(id){for(var i=0;i<_9c.length;i++){if(id==_9c[i]){_9c.splice(i,1);break;}}};_a0.addEventListener("init",_9f.bind(_a4,this));_a0.addEventListener("change",_9f.bind(_a5,this));new function(){var _c4,_c5;if(typeof swfobject!=_98){SWFObject=swfobject;}if(typeof FlashObject!=_98){SWFObject=FlashObject;}if(typeof SWFObject!=_98){if(SWFObject.prototype&&SWFObject.prototype.write){_c4=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 _c6;if(_c6=_c4.apply(this,_c5)){_9b.addId(this.getAttribute("id"));}return _c6;};}else{_c4=SWFObject.registerObject;SWFObject.registerObject=function(){_c5=arguments;_c4.apply(this,_c5);_9b.addId(_c5[0]);};_c4=SWFObject.createSWF;SWFObject.createSWF=function(){_c5=arguments;_c4.apply(this,_c5);_9b.addId(_c5[0].id);};_c4=SWFObject.embedSWF;SWFObject.embedSWF=function(){_c5=arguments;_c4.apply(this,_c5);_9b.addId(_c5[8].id);};}}if(typeof UFO!=_98){_c4=UFO.create;UFO.create=function(){_c5=arguments;_c4.apply(this,_c5);_9b.addId(_c5[0].id);};}if(typeof AC_FL_RunContent!=_98){_c4=AC_FL_RunContent;AC_FL_RunContent=function(){_c5=arguments;_c4.apply(this,_c5);for(var i=0,l=_c5.length;i<l;i++){if(_c5[i]=="id"){_9b.addId(_c5[i+1]);}}};}};};

