/** * SWFAddress 2.3: Deep linking for Flash and Ajax <http://www.asual.com/swfaddress/> * * SWFAddress is (c) 2006-2009 Rostislav Hristov and contributors * This software is released under the MIT License <http://www.opensource.org/licenses/mit-license.php> * * Uses code from SWFObject 2.1 <http://code.google.com/p/swfobject/> * SWFObject is (c) 2007-2009 Geoff Stearns, Michael Williams, and Bobby van der Sluis * */if(typeof asual=="undefined"){var asual={};}if(typeof asual.swfaddress=="undefined"){asual.swfaddress={};}asual.swfaddress.SWFAddressOptimizer=new function(){var _1=function(_2){var rv=_2.toString().split(".");for(var i=0;i<3;i++){rv[i]=typeof rv[i]!=_5?parseInt(rv[i]):0;}var pv=[0,0,0];var d=null;if(typeof _n.plugins!=_5&&typeof _n.plugins[_9]==_a){d=_n.plugins[_9].description;if(d&&!(typeof _n.mimeTypes!=_5&&_n.mimeTypes[_b]&&!_n.mimeTypes[_b].enabledPlugin)){d=d.replace(/^.*\s+(\S+\s+\S+$)/,"$1");pv[0]=parseInt(d.replace(/^(.*)\..*$/,"$1"),10);pv[1]=parseInt(d.replace(/^.*\.(.*)\s.*$/,"$1"),10);pv[2]=/r/.test(d)?parseInt(d.replace(/^.*r(.*)$/,"$1"),10):0;}}else{if(typeof window.ActiveXObject!=_5){var a=null;var _d=false;try{a=new ActiveXObject(_e+".7");}catch(e){try{a=new ActiveXObject(_e+".6");pv=[6,0,21];a.AllowScriptAccess="always";}catch(e){if(pv[0]==6){_d=true;}}if(!_d){try{a=new ActiveXObject(_e);}catch(e){}}}if(!_d&&typeof a==_a){try{d=a.GetVariable("$version");if(d){d=d.split(" ")[1].split(",");pv=[parseInt(d[0],10),parseInt(d[1],10),parseInt(d[2],10)];}}catch(e){}}}}return (pv[0]>rv[0]||(pv[0]==rv[0]&&pv[1]>rv[1])||(pv[0]==rv[0]&&pv[1]==rv[1]&&pv[2]>=rv[2]))?true:false;};var _f=function(_10,_11){var _12=_l.href.split(_l.hostname)[1].replace(_11,"");if(_10!="/"&&(!_14||_15==_l.href.length-1)&&(_12!=""&&_12!="/")){var xhr;if(window.XMLHttpRequest){xhr=new XMLHttpRequest();}else{if(window.ActiveXObject){try{try{xhr=new ActiveXObject("Msxml2.XMLHTTP");}catch(e){xhr=new ActiveXObject("Microsoft.XMLHTTP");}}catch(e){}}}if(xhr){xhr.open("get",((typeof _11!=_5)?_11:"")+"/?"+_10+(_l.hash!=""?"&hash="+_l.hash.replace(/^#/,""):""),false);xhr.setRequestHeader("Content-Type","application/x-swfaddress");xhr.send("");eval(xhr.responseText);}}};this.toString=function(){return "[class SWFAddressOptimizer]";};var _a="object",_9="Shockwave Flash",_e="ShockwaveFlash.ShockwaveFlash",_b="application/x-shockwave-flash",_5="undefined",_17,_l=location,_n=navigator,_15=_l.href.indexOf("#"),_14=(_15!=-1),_18={};var _19=function(el){for(var i=0,l=el.childNodes.length,s;i<l;i++){if(el.childNodes[i].src){_17=String(el.childNodes[i].src);}_19(el.childNodes[i]);}};_19(document);var qi=_17.indexOf("?");if(_17&&qi>-1){var _1f,_20=_17.substr(qi+1).split("&");for(var i=0,p;p=_20[i];i++){_1f=p.split("=");if(/^(base|flash|swfaddress)$/.test(_1f[0])){_18[_1f[0]]=unescape(_1f[1]);}}}if(_14&&(_15-(_l.href.indexOf(_l.pathname,_l.protocol.length+2)+_l.pathname.indexOf(_18.base)+_18.base.length))>1){_14=false;}if(typeof _18.flash!=_5){if(_1(_18.flash)){_f(_18.swfaddress,_18.base);}else{if(_14){_l.replace(_l.href.replace(/#(\/)?/,""));}}}else{_f(_18.swfaddress,_18.base);}};