/** * SWFAddress 2.1: Deep linking for Flash and Ajax - 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 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 J=-1;var I=navigator.userAgent;var H=false,F=false,E=false,D=false,C=false,B=false,A=false;var G=function(L,K) {return parseFloat(I.substring(I.indexOf(L)+K))};if(H=/MSIE/.test(I)){J=G("MSIE",4)}if(E=/AppleWebKit/.test(I)){J=G("Safari",7)}if(D=/Opera/.test(I)){J=parseFloat(navigator.appVersion)}if(F=/Camino/.test(I)){J=G("Camino",7)}if(C=/Firefox/.test(I)){J=G("Firefox",8)}if(B=/Netscape/.test(I)){J=G("Netscape",9)}if(A=/Mozilla/.test(I)&&/rv:/.test(I)){J=G("rv:",3)}this.getVersion=function() {return J};this.isIE=function() {return H};this.isSafari=function() {return E};this.isOpera=function() {return D};this.isCamino=function() {return F};this.isFirefox=function() {return C};this.isNetscape=function() {return B};this.isMozilla=function() {return A}};com.asual.util.Events=new function(){var B=[];var A=com.asual.util.Browser;var D="DOMContentLoaded";if(A.isIE()||A.isSafari()){(function() {try{if(A.isIE()||!/loaded|complete/.test(document.readyState)){document.documentElement.doScroll("left")}}catch(F){return  _proxy_jslib_handle(null, 'setTimeout', setTimeout, 1, 0)(arguments.callee,0)}for(var E=0,F;F= _proxy_jslib_handle(B, (E), 0, 0);E++){if(F.t==D){F.l.call(null)}}})()}this.addListener=function(G,F,E) {B.push({o:G,t:F,l:E});if(!(F==D&&(A.isIE()||A.isSafari()))){if(G.addEventListener){G.addEventListener(F,E,false)}else{if(G.attachEvent){G.attachEvent("on"+F,E)}}}};this.removeListener=function(I,G,E) {for(var F=0,H;H= _proxy_jslib_handle(B, (F), 0, 0);F++){if(H.o==I&&H.t==G&&H.l==E){B.splice(F,1);break}}if(!(G==D&&(A.isIE()||A.isSafari()))){if(I.removeEventListener){I.removeEventListener(G,E,false)}else{if(I.detachEvent){I.detachEvent("on"+G,E)}}}};var C=function() {for(var F=0,E;E= _proxy_jslib_handle(B, (F), 0, 0);F++){if(E.t!=D){com.asual.util.Events.removeListener(E.o,E.t,E.l)}}};this.addListener(window,"unload",C)};SWFAddressEvent=function(C) { _proxy_jslib_assign('', this, 'toString', '=', (function() {return"[object SWFAddressEvent]"}));this.type=C;this.target=[SWFAddress][0]; _proxy_jslib_assign('', this, 'value', '=', (SWFAddress.getValue()));this.path=SWFAddress.getPath();this.pathNames=SWFAddress.getPathNames();this.parameters={};var B=SWFAddress.getParameterNames();for(var D=0,A=B.length;D<A;D++){ _proxy_jslib_assign('', this.parameters, ( _proxy_jslib_handle(B, (D), 0, 0)), '=', (SWFAddress.getParameter( _proxy_jslib_handle(B, (D), 0, 0))))}this.parameterNames=SWFAddress.getParameterNames()};SWFAddressEvent.INIT="init";SWFAddressEvent.CHANGE="change";SWFAddress=new function(){var _21=com.asual.util.Browser;var _22=com.asual.util.Events;var _23=_21.getVersion();var _24=false;if(_21.isIE()){_24=_23>=6}if(_21.isSafari()){_24=_23>=312}if(_21.isOpera()){_24=_23>=9.02}if(_21.isCamino()){_24=_23>=1}if(_21.isFirefox()){_24=_23>=1}if(_21.isNetscape()){_24=_23>=8}if(_21.isMozilla()){_24=_23>=1.8}var _d= _proxy_jslib_handle(null, 'top', top, 0, 0).document;var _h= _proxy_jslib_handle(null, 'top', top, 0, 0).history;var _l= _proxy_jslib_handle( _proxy_jslib_handle(null, 'top', top, 0, 0), 'location', '', 0, 0);var _28="function";var _29="undefined";var _2a,_2b,_2c;var _2d=_d.title;var _2e=_h.length;var _2f=false;var _30={};var _31=[];var _32=[];var _33={};_33.history=true;_33.html=false;_33.strict=true;_33.tracker="_trackDefault";if((!_24&& _proxy_jslib_handle(_l, 'href', '', 0, 0).indexOf("#")!=-1)||(_21.isSafari()&&_23<412&& _proxy_jslib_handle(_l, 'href', '', 0, 0).indexOf("#")!=-1&& _proxy_jslib_handle(_l, 'search', '', 0, 0)!="")){ _proxy_jslib_handle(_d, 'open', '', 1, 0)(); _proxy_jslib_handle(_d, 'write', '', 1, 0)('<html><head><meta http-equiv="refresh" content="0;url='+ _proxy_jslib_handle(_l, 'href', '', 0, 0).substr(0, _proxy_jslib_handle(_l, 'href', '', 0, 0).indexOf("#"))+'" /></head></html>'); _proxy_jslib_handle(_d, 'close', '', 1, 0)()}var _34=function() {var _35= _proxy_jslib_handle(_l, 'href', '', 0, 0).indexOf("#");if(_35!=-1){var _36=unescape( _proxy_jslib_handle(_l, 'href', '', 0, 0).substr(_35+1));if(/^[a-z0-9,=_&\-\.\?\+\/]*$/.test(_36)){return _36}else{ _proxy_jslib_handle(_l, 'replace', '', 1, 0)( _proxy_jslib_handle(_l, 'href', '', 0, 0).substr(0,_35))}}return""};var _37=_34();var _38=function(_39,_3a) {if(_33.strict){if(_3a){if(_39.substr(0,1)!="/"){_39="/"+_39}}else{if(_39==""){_39="/"}}}return _39};var _3b=function(_3c) {return(_21.isIE()&& _proxy_jslib_handle(_l, 'protocol', '', 0, 0)=="file:")? _proxy_jslib_handle(_37, 'replace', '', 1, 0)(/\?/,"%3F"):_3c};var _3d=function(el) {if( _proxy_jslib_handle(el, 'src', '', 0, 0)&&/swfaddress\.js(\?.*)?$/.test( _proxy_jslib_handle(el, 'src', '', 0, 0))){return el}for(var i=0,l=el.childNodes.length,s;i<l;i++){if(s=_3d( _proxy_jslib_handle(el.childNodes, (i), 0, 0))){return s}}};var _42=function() {if(_21.isIE()&&_d.title!=_2d){SWFAddress.setTitle(_2d)}};var _43=function() {if(!_2f){if(_21.isIE()){if(_37!=_34()){if(_23<7){_l.reload()}else{SWFAddress.setValue(_34())}}}else{if(_21.isSafari()&&_23<523){if(_2e!=_h.length){_2e=_h.length;if(typeof  _proxy_jslib_handle(_31, (_2e-1), 0, 0)!=_29){_37= _proxy_jslib_handle(_31, (_2e-1), 0, 0)}_44()}}else{if(_37!=_34()){_37=_34();_44()}}}_42()}};var _45=function(_46) {if(SWFAddress.hasEventListener(_46)){SWFAddress.dispatchEvent(new (SWFAddressEvent)(_46))}_46=_46.substr(0,1).toUpperCase()+_46.substring(1);if(typeof  _proxy_jslib_handle(SWFAddress, ("on"+_46), 0, 0)==_28){ _proxy_jslib_handle(SWFAddress, ("on"+_46), 1, 0)()}};var _47=function() {_45("init")};var _48=function() {_45("change")};var _49=function() {for(var i=0,id;id= _proxy_jslib_handle(_32, (i), 0, 0);i++){var obj= _proxy_jslib_handle(document, 'getElementById', '', 1, 0)(id);if(obj){if(obj.parentNode&&typeof obj.parentNode.so!=_29){obj.parentNode.so.call("setSWFAddressValue",SWFAddress.getValue())}else{if(!(obj&&typeof obj.setSWFAddressValue!=_29)){var _4d= _proxy_jslib_handle(obj, 'getElementsByTagName', '', 1, 0)("object");var _4e= _proxy_jslib_handle(obj, 'getElementsByTagName', '', 1, 0)("embed");obj=((_4d[0]&&typeof _4d[0].setSWFAddressValue!=_29)?_4d:((_4e[0]&&typeof _4e[0].setSWFAddressValue!=_29)?_4e[0]:null))}if(obj){obj.setSWFAddressValue(SWFAddress.getValue())}}}else{if(obj= _proxy_jslib_handle(document, (id), 0, 0)){if(typeof obj.setSWFAddressValue!=_29){obj.setSWFAddressValue(SWFAddress.getValue())}}}}};var _44=function() {_49();_48(); _proxy_jslib_handle(null, 'setTimeout', setTimeout, 1, 0)(_4f,10)};var _50=function(_51) {if(typeof urchinTracker==_28){urchinTracker(_51)}if(typeof pageTracker!=_29&&typeof pageTracker._trackPagevie==_28){pageTracker._trackPagevie(_51)}};eval(_proxy_jslib_proxify_js(("var _trackDefault = "+_50+";"), 0, 0) );var _4f=function() {if(typeof _33.tracker!=_29&&eval(_proxy_jslib_proxify_js(("typeof "+_33.tracker+' != "'+_29+'"'), 0, 0) )){var fn=eval(_proxy_jslib_proxify_js((_33.tracker), 0, 0) );if(typeof fn==_28){fn( _proxy_jslib_handle( _proxy_jslib_handle(( _proxy_jslib_handle(_l, 'pathname', '', 0, 0)+SWFAddress.getValue()), 'replace', '', 1, 0)(/\/\//,"/"), 'replace', '', 1, 0)(/^\/$/,""))}}};var _53=function() {var doc=_2a.contentWindow.document; _proxy_jslib_handle(doc, 'open', '', 1, 0)(); _proxy_jslib_handle(doc, 'write', '', 1, 0)('<script>var swfaddress = "'+_34()+'";<\/script>'); _proxy_jslib_handle(doc, 'close', '', 1, 0)()};var _55=function() {var win=_2a.contentWindow;if(_33.html){var src= _proxy_jslib_handle( _proxy_jslib_handle(win, 'location', '', 0, 0), 'href', '', 0, 0);_37=( _proxy_jslib_handle(null, 'src', src, 0, 0).indexOf("?")>-1)? _proxy_jslib_handle(null, 'src', src, 0, 0).substring( _proxy_jslib_handle(null, 'src', src, 0, 0).indexOf("?")+1):""}else{_37=(typeof win.swfaddress!=_29)?win.swfaddress:""}win.document.title=_d.title;if(_37!=_34()){_44();_l.hash=_3b(_37)}};var _58=function() {var _59='id="swfaddress" style="position:absolute;top:-9999px;"';if(_21.isIE()){ _proxy_jslib_assign('',  _proxy_jslib_handle(document, 'body', '', 0, 0).appendChild(document.createElement("div")), 'innerHTML', '=', ("<iframe "+_59+' src="'+(_33.html? _proxy_jslib_handle(_2c, 'replace', '', 1, 0)(/\.js(\?.*)?$/,".html")+"?"+_34():"javascript:false;")+'" width="0" height="0"></iframe>'));_2a= _proxy_jslib_handle(document, 'getElementById', '', 1, 0)("swfaddress"); _proxy_jslib_handle(null, 'setTimeout', setTimeout, 1, 0)(function() {if(!_33.html&&typeof _2a.contentWindow.swfaddress==_29){_53()}_22.addListener(_2a,"load",_55)},10)}else{if(_21.isSafari()){if(_23<412){ _proxy_jslib_assign('',  _proxy_jslib_handle(document, 'body', '', 0, 0), 'innerHTML', '+=', ("<form "+_59+' method="get"></form>'));_2b= _proxy_jslib_handle(document, 'getElementById', '', 1, 0)("swfaddress")}if(typeof _l.swfaddress==_29){_l.swfaddress={}}if(typeof  _proxy_jslib_handle(_l.swfaddress, ( _proxy_jslib_handle(_l, 'pathname', '', 0, 0)), 0, 0)!=_29){_31= _proxy_jslib_handle(_l.swfaddress, ( _proxy_jslib_handle(_l, 'pathname', '', 0, 0)), 0, 0).split(",")}}else{if(_21.isOpera()&&_32.length==0&&typeof  _proxy_jslib_handle(navigator.plugins, ("Shockwave Flash"), 0, 0)=="object"){ _proxy_jslib_assign('',  _proxy_jslib_handle(document, 'body', '', 0, 0), 'innerHTML', '+=', ("<embed "+_59+' src="'+ _proxy_jslib_handle(_2c, 'replace', '', 1, 0)(/\.js(\?.*)?$/,".swf")+'" type="application/x-shockwave-flash" />'))}}} _proxy_jslib_handle(null, 'setTimeout', setTimeout, 1, 0)(_47,1); _proxy_jslib_handle(null, 'setTimeout', setTimeout, 1, 0)(_48,2); _proxy_jslib_handle(null, 'setTimeout', setTimeout, 1, 0)(_4f,10); _proxy_jslib_handle(null, 'setInterval', setInterval, 1, 0)(_43,50)};this.onInit=null;this.onChange=null; _proxy_jslib_assign('', this, 'toString', '=', (function() {return"[class SWFAddress]"}));this.back=function() {_h.back()};this.forward=function() {_h.forward()};this.go=function(_5a) {_h.go(_5a)}; _proxy_jslib_assign('', this, 'href', '=', (function(url,_5c) {_5c=(typeof _5c!=_29)?_5c:"_self";if(_5c=="_self"){ _proxy_jslib_assign('',  _proxy_jslib_handle(self, 'location', '', 0, 0), 'href', '=', (url))}if(_5c=="_top"){ _proxy_jslib_assign('', _l, 'href', '=', (url))}if(_5c=="_blank"){ _proxy_jslib_handle(window, 'open', '', 1, 0)(url)}else{ _proxy_jslib_assign('',  _proxy_jslib_handle( _proxy_jslib_handle( _proxy_jslib_handle( _proxy_jslib_handle(null, 'top', top, 0, 0), 'frames', '', 0, 0), (_5c), 0, 0), 'location', '', 0, 0), 'href', '=', (url))}}));this.popup=function(url,_5e,_5f,_60) {var _61= _proxy_jslib_handle(window, 'open', '', 1, 0)(url,_5e,eval(_proxy_jslib_proxify_js((_5f), 0, 0) ));eval(_proxy_jslib_proxify_js((_60), 0, 0) )};this.addEventListener=function(_62,_63) {if(typeof  _proxy_jslib_handle(_30, (_62), 0, 0)==_29){ _proxy_jslib_assign('', _30, (_62), '=', ([]))} _proxy_jslib_handle(_30, (_62), 0, 0).push(_63)};this.removeEventListener=function(_64,_65) {if(typeof  _proxy_jslib_handle(_30, (_64), 0, 0)!=_29){for(var i=0,l;l= _proxy_jslib_handle( _proxy_jslib_handle(_30, (_64), 0, 0), (i), 0, 0);i++){if(l==_65){break}} _proxy_jslib_handle(_30, (_64), 0, 0).splice(i,1)}};this.dispatchEvent=function(_68) {if(typeof  _proxy_jslib_handle(_30, (_68.type), 0, 0)!=_29&& _proxy_jslib_handle(_30, (_68.type), 0, 0).length){_68.target=this;for(var i=0,l;l= _proxy_jslib_handle( _proxy_jslib_handle(_30, (_68.type), 0, 0), (i), 0, 0);i++){l(_68)}return true}return false};this.hasEventListener=function(_6b) {return(typeof  _proxy_jslib_handle(_30, (_6b), 0, 0)!=_29&& _proxy_jslib_handle(_30, (_6b), 0, 0).length>0)};this.getBaseURL=function() {var url= _proxy_jslib_handle(_l, 'href', '', 0, 0);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 _33.strict};this.setStrict=function(_6d) {_33.strict=_6d};this.getHistory=function() {return _33.history};this.setHistory=function(_6e) {_33.history=_6e};this.getTracker=function() {return _33.tracker};this.setTracker=function(_6f) {_33.tracker=_6f};this.getIds=function() {return _32};this.getId=function(_70) {return _32[0]};this.setId=function(id) {_32[0]=id};this.addId=function(id) {this.removeId(id);_32.push(id)};this.removeId=function(id) {for(var i=0;i<_32.length;i++){if(id== _proxy_jslib_handle(_32, (i), 0, 0)){_32.splice(i,1);break}}};this.getTitle=function() {return _d.title};this.setTitle=function(_75) {if(!_24){return null}if(typeof _75==_29){return }if(_75=="null"){_75=""}_2d=_d.title=_75;if(_2a&&_2a.contentWindow){_2a.contentWindow.document.title=_75}};this.getStatus=function() {return  _proxy_jslib_handle(null, 'top', top, 0, 0).status};this.setStatus=function(_76) {if(!_24){return null}if(typeof _76==_29){return }if(!_21.isSafari()){_76=_38((_76!="null")?_76:"",true);if(_76=="/"){_76=""}if(!(/http(s)?:\/\//.test(_76))){var _77= _proxy_jslib_handle(_l, 'href', '', 0, 0).indexOf("#");_76=(_77==-1? _proxy_jslib_handle(_l, 'href', '', 0, 0): _proxy_jslib_handle(_l, 'href', '', 0, 0).substr(0,_77))+"#"+_76} _proxy_jslib_handle(null, 'top', top, 0, 0).status=_76}};this.resetStatus=function() { _proxy_jslib_handle(null, 'top', top, 0, 0).status=""};this.getValue=function() {if(!_24){return null}return _38(_37,false)};this.setValue=function(_78) {if(!_24){return null}if(typeof _78==_29){return }if(_78=="null"){_78=""}_78=_38(_78,true);if(_78=="/"){_78=""}if(_37==_78){return }_37=_78;_2f=true;_44(); _proxy_jslib_assign('', _31, (_h.length), '=', (_37));if(_21.isSafari()){if(_33.history){ _proxy_jslib_assign('', _l.swfaddress, ( _proxy_jslib_handle(_l, 'pathname', '', 0, 0)), '=', ( _proxy_jslib_handle(_31, 'toString', '', 1, 0)()));_2e=_h.length+1;if(_23<412){if( _proxy_jslib_handle(_l, 'search', '', 0, 0)==""){ _proxy_jslib_assign('', _2b, 'action', '=', ("#"+_37));_2b.submit()}}else{if(_23<523){var evt=document.createEvent("MouseEvents");evt.initEvent("click",true,true);var _7a=document.createElement("a"); _proxy_jslib_assign('', _7a, 'href', '=', ("#"+_37));_7a.dispatchEvent(evt)}else{_l.hash="#"+_37}}}else{ _proxy_jslib_handle(_l, 'replace', '', 1, 0)("#"+_37)}}else{if(_37!=_34()){if(_33.history){_l.hash="#"+_3b(_37)}else{ _proxy_jslib_handle(_l, 'replace', '', 1, 0)("#"+_37)}}}if(_21.isIE()&&_33.history){if(_33.html){var loc= _proxy_jslib_handle(_2a.contentWindow, 'location', '', 0, 0);loc.assign( _proxy_jslib_handle(loc, 'pathname', '', 0, 0)+"?"+_34())}else{_53()}}_2f=false};this.getPath=function() {var _7c=this.getValue();return(_7c.indexOf("?")!=-1)?_7c.split("?")[0]:_7c};this.getPathNames=function() {var _7d=SWFAddress.getPath();var _7e=_7d.split("/");if(_7d.substr(0,1)=="/"){_7e.splice(0,1)}if(_7d.substr(_7d.length-1,1)=="/"){_7e.splice(_7e.length-1,1)}return _7e};this.getQueryString=function() {var _7f=this.getValue();var _80=_7f.indexOf("?");return(_80!=-1&&_80<_7f.length)?_7f.substr(_80+1):""};this.getParameter=function(_81) {var _82=this.getValue();var _83=_82.indexOf("?");if(_83!=-1){_82=_82.substr(_83+1);var _84=_82.split("&");var p,i=_84.length;while(i--){p= _proxy_jslib_handle(_84, (i), 0, 0).split("=");if(p[0]==_81){return p[1]}}}return""};this.getParameterNames=function() {var _87=this.getValue();var _88=_87.indexOf("?");var _89=[];if(_88!=-1){_87=_87.substr(_88+1);if(_87!=""&&_87.indexOf("=")!=-1){var _8a=_87.split("&");var i=0;while(i<_8a.length){_89.push( _proxy_jslib_handle(_8a, (i), 0, 0).split("=")[0]);i++}}}return _89};if(_24){for(var i=1;i<_2e;i++){_31.push("")}_31.push(_34());if(_21.isIE()&&_l.hash!=_34()){_l.hash="#"+_3b(_34())}try{_2c=String( _proxy_jslib_handle(_3d(document), 'src', '', 0, 0));var qi=_2c.indexOf("?");if(_2c&&qi>-1){var _8e,_8f=_2c.substr(qi+1).split("&");for(var i=0,p;p= _proxy_jslib_handle(_8f, (i), 0, 0);i++){_8e=p.split("=");if(/^(history|html|strict)$/.test(_8e[0])){ _proxy_jslib_assign('', _33, (_8e[0]), '=', ((isNaN(_8e[1])?eval(_proxy_jslib_proxify_js((_8e[1]), 0, 0) ):(parseFloat(_8e[1])>0))))}if(/^tracker$/.test(_8e[0])){ _proxy_jslib_assign('', _33, (_8e[0]), '=', (_8e[1]))}}}}catch(e){}if(/file:\/\//.test( _proxy_jslib_handle(_l, 'href', '', 0, 0))){_33.html=false}_42();_22.addListener(document,"DOMContentLoaded",_58)}else{_4f()}};new function(){var C,B;var A="undefined";if(typeof swfobject!=A){SWFObject=swfobject}if(typeof FlashObject!=A){SWFObject=FlashObject}if(typeof SWFObject!=A){if(SWFObject.prototype&& _proxy_jslib_handle(SWFObject.prototype, 'write', '', 0, 0)){C= _proxy_jslib_handle(SWFObject.prototype, 'write', '', 0, 0); _proxy_jslib_assign('', SWFObject.prototype, 'write', '=', (function() {B=arguments;if(this.getAttribute("version").major<8){this.addVariable("$swfaddress",SWFAddress.getValue());((typeof B[0]=="string")? _proxy_jslib_handle(document, 'getElementById', '', 1, 0)(B[0]):B[0]).so=this}var D;if(D=C.apply(this,B)){SWFAddress.addId(this.getAttribute("id"))}return D}))}else{C=SWFObject.registerObject;SWFObject.registerObject=function() {B=arguments;C.apply(this,B);SWFAddress.addId(B[0])};C=SWFObject.createSWF;SWFObject.createSWF=function() {B=arguments;C.apply(this,B);SWFAddress.addId(B[0].id)};C=SWFObject.embedSWF;SWFObject.embedSWF=function() {B=B;C.apply(this,B);SWFAddress.addId(B[8].id)}}}if(typeof UFO!=A){C=UFO.create;UFO.create=function() {B=arguments;C.apply(this,B);SWFAddress.addId(B[0].id)}}if(typeof AC_FL_RunContent!=A){C=AC_FL_RunContent;AC_FL_RunContent=function() {B=arguments;C.apply(this,B);for(var E=0,D=B.length;E<D;E++){if( _proxy_jslib_handle(B, (E), 0, 0)=="id"){SWFAddress.addId( _proxy_jslib_handle(B, (E+1), 0, 0))}}}}}; ;
_proxy_jslib_flush_write_buffers() ;