if("undefined"==typeof asual)var asual={};"undefined"==typeof asual.util&&(asual.util={}),asual.util.Browser=new function(){var a=navigator.userAgent.toLowerCase(),b=/webkit/.test(a),c=/opera/.test(a),d=/msie/.test(a)&&!/opera/.test(a),e=/mozilla/.test(a)&&!/(compatible|webkit)/.test(a),f=parseFloat(d?a.substr(a.indexOf("msie")+4):(a.match(/.+(?:rv|it|ra|ie)[\/: ]([\d.]+)/)||[0,"0"])[1]);this.toString=function(){return"[class Browser]"},this.getVersion=function(){return f},this.isMSIE=function(){return d},this.isSafari=function(){return b},this.isOpera=function(){return c},this.isMozilla=function(){return e}},asual.util.Events=new function(){var a=window,b=document,c=[],d=asual.util,e=d.Browser,f=e.isMSIE(),g=e.isSafari();this.toString=function(){return"[class Events]"},this.addListener=function(a,b,d){c.push({o:a,t:b,l:d}),"DOMContentLoaded"==b&&(f||g)||(a.addEventListener?a.addEventListener(b,d,!1):a.attachEvent&&a.attachEvent("on"+b,d))},this.removeListener=function(a,b,d){for(var e,h=0;e=c[h];h++)if(e.o==a&&e.t==b&&e.l==d){c.splice(h,1);break}"DOMContentLoaded"==b&&(f||g)||(a.removeEventListener?a.removeEventListener(b,d,!1):a.detachEvent&&a.detachEvent("on"+b,d))};var h=function(){for(var a,b=0;a=c[b];b++)"DOMContentLoaded"!=a.t&&d.Events.removeListener(a.o,a.t,a.l)},e=function(){if("interactive"==b.readyState){var c=function(){b.detachEvent("onstop",c),h()};b.attachEvent("onstop",c),a.setTimeout(function(){b.detachEvent("onstop",c)},0)}};(f||g)&&function(){try{(f&&b.body||!/loaded|complete/.test(b.readyState))&&b.documentElement.doScroll("left")}catch(a){return setTimeout(arguments.callee,0)}for(var d,e=0;d=c[e];e++)"DOMContentLoaded"==d.t&&d.l.call(null)}(),f&&a.attachEvent("onbeforeunload",e),this.addListener(a,"unload",h)},asual.util.Functions=new function(){this.toString=function(){return"[class Functions]"},this.bind=function(a,b,c){for(var d,e=2,f=[];d=arguments[e];e++)f.push(d);return function(){return a.apply(b,f)}}};var SWFAddressEvent=function(a){this.toString=function(){return"[object SWFAddressEvent]"},this.type=a,this.target=SWFAddress,this.value=SWFAddress.getValue(),this.path=SWFAddress.getPath(),this.pathNames=SWFAddress.getPathNames(),this.parameters={},a=SWFAddress.getParameterNames();for(var b=0,c=a.length;c>b;b++)this.parameters[a[b]]=SWFAddress.getParameter(a[b]);this.parameterNames=a};SWFAddressEvent.INIT="init",SWFAddressEvent.CHANGE="change",SWFAddressEvent.INTERNAL_CHANGE="internalChange",SWFAddressEvent.EXTERNAL_CHANGE="externalChange";var SWFAddress=new function(){var b=function(){var a=c.href.indexOf("#");return-1!=a?aa(D(c.href.substr(a+1))):""},e=function(a,b){return u.strict&&(a=b?"/"!=a.substr(0,1)?"/"+a:a:""==a?"/":a),a},p=function(a,b){return x&&"file:"==c.protocol?b?k.replace(/\?/,"%3F"):k.replace(/%253F/,"?"):a},l=function(a){if(a.childNodes)for(var b,c=0,d=a.childNodes.length;d>c;c++)if(a.childNodes[c].src&&(P=String(a.childNodes[c].src)),b=l(a.childNodes[c]))return b},g=function(){h.title!=V&&-1!=h.title.indexOf("#")&&(h.title=V)},t=function(){if(!Q){var a=b(),d=k!=a;E&&523>q?I!=A.length&&(I=A.length,typeof F[I-1]!=f&&(k=F[I-1]),y.call(this,!1)):x&&d?7>q?c.reload():this.setValue(a):d&&(k=a,y.call(this,!1)),x&&g.call(this)}},M=function(a){0"+h.title+"'),a.close()},H=function(){var a=m.contentWindow;k=typeof a[v]!=f?a[v]:"",k!=b()&&(y.call(SWFAddress,!1),c.hash=p(k,r))},Y=function(){if(!ba){if(ba=r,x&&8>q){var a=h.getElementsByTagName("frameset")[0];m=h.createElement((a?"":"i")+"frame"),a?(a.insertAdjacentElement("beforeEnd",m),a[a.cols?"cols":"rows"]+=",0",m.src="javascript:false",m.noResize=!0,m.frameBorder=m.frameSpacing=0):(m.src="javascript:false",m.style.display="none",h.body.insertAdjacentElement("afterBegin",m)),J(function(){W.addListener(m,"load",H),typeof m.contentWindow[v]==f&&$()},50)}else E&&(418>q&&(h.body.innerHTML+='
',X=h.getElementById(v)),typeof c[v]==f&&(c[v]={}),typeof c[v][c.pathname]!=f&&(F=c[v][c.pathname].split(",")));J(G.bind(function(){S.Browser.isSafari()&&h.body.addEventListener("click",M),N.call(this,"init"),O(),N.call(this,"change"),U.call(this)},this),1),x&&q>=8?(h.body.onhashchange=G.bind(t,this),ca(G.bind(g,this),50)):ca(G.bind(t,this),50)}},v="swfaddress",R="function",f="undefined",r=!0,S=asual.util,s=S.Browser,W=S.Events,G=S.Functions,q=s.getVersion(),x=s.isMSIE(),da=s.isMozilla(),T=s.isOpera(),E=s.isSafari(),K=!1,n=window,h=n.document,A=n.history,c=n.location,ca=setInterval,J=setTimeout,D=decodeURI,aa=encodeURI,m,X,P,V=h.title,I=A.length,Q=!1,ba=!1,Z=r,ea=r,L=this,F=[],C=[],B=[],z={},k=b(),u={history:r,strict:r};if(x&&h.documentMode&&h.documentMode!=q&&(q=8!=h.documentMode?7:8),K=da&&q>=1||x&&q>=6||T&&q>=9.5||E&&q>=312){for(T&&(history.navigationMode="compatible"),s=1;I>s;s++)F.push("");if(F.push(b()),x&&c.hash!=b()&&(c.hash="#"+p(b(),r)),l(document),s=P?P.indexOf("?"):-1,-1!=s)for(var w,T=P.substr(s+1).split("&"),s=0;w=T[s];s++)w=w.split("="),/^(history|strict)$/.test(w[0])&&(u[w[0]]=isNaN(w[1])?/^(true|yes)$/i.test(w[1]):0!=parseInt(w[1])),/^tracker$/.test(w[0])&&(u[w[0]]=w[1]);x&&g.call(this),window==n&&W.addListener(document,"DOMContentLoaded",G.bind(Y,this)),W.addListener(n,"load",G.bind(Y,this)),"undefined"!=typeof n.document.body&&Y.call(this)}else!K&&-1!=c.href.indexOf("#")||E&&418>q&&-1!=c.href.indexOf("#")&&""!=c.search?(h.open(),h.write(''),h.close()):U();this.toString=function(){return"[class SWFAddress]"},this.back=function(){A.back()},this.forward=function(){A.forward()},this.up=function(){var a=this.getPath();this.setValue(a.substr(0,a.lastIndexOf("/",a.length-2)+("/"==a.substr(a.length-1)?1:0)))},this.go=function(a){A.go(a)},this.href=function(a,b){b=typeof b!=f?b:"_self","_self"==b?self.location.href=a:"_top"==b?c.href=a:"_blank"==b?window.open(a):n.frames[b].location.href=a},this.popup=function(a,d,b,c){try{window.open(a,d,eval(b)),typeof c!=f&&eval(c)}catch(e){}B=arguments},this.getIds=function(){return C},this.getId=function(a){return C[0]},this.setId=function(a){C[0]=a},this.addId=function(a){this.removeId(a),C.push(a)},this.removeId=function(a){for(var b=0;bq)""==c.search&&(X.action="#"+k,X.submit());else if(523>q||""==k){a=h.createEvent("MouseEvents"),a.initEvent("click",r,r);var d=h.createElement("a");d.href="#"+k,d.dispatchEvent(a)}else c.hash="#"+k;else c.replace("#"+k);else k!=b()&&(u.history?c.hash="#"+D(p(k,r)):c.replace("#"+D(k)));x&&8>q&&u.history&&J($,50),E?J(function(){Q=!1},1):Q=!1}},this.getPath=function(){var a=this.getValue();return-1!=a.indexOf("?")?a.split("?")[0]:-1!=a.indexOf("#")?a.split("#")[0]:a},this.getPathNames=function(){var a=this.getPath(),b=a.split("/");return"/"!=a.substr(0,1)&&0!=a.length||b.splice(0,1),"/"==a.substr(a.length-1,1)&&b.splice(b.length-1,1),b},this.getQueryString=function(){var a=this.getValue(),b=a.indexOf("?");return-1!=b&&bthis.getAttribute("version").major&&(this.addVariable("$swfaddress",SWFAddress.getValue()),("string"==typeof a[0]?document.getElementById(a[0]):a[0]).so=this);var c;return(c=b.apply(this,a))&&L.addId(this.getAttribute("id")),c}}if(typeof swfobject!=f){var c=swfobject.registerObject;swfobject.registerObject=function(){a=arguments,c.apply(this,a),L.addId(a[0])};var d=swfobject.createSWF;swfobject.createSWF=function(){a=arguments;var b=d.apply(this,a);return b&&L.addId(a[0].id),b};var e=swfobject.embedSWF;swfobject.embedSWF=function(){a=arguments,typeof a[8]==f&&(a[8]={}),typeof a[8].id==f&&(a[8].id=a[1]),e.apply(this,a),L.addId(a[8].id)}}if(typeof UFO!=f){var g=UFO.create;UFO.create=function(){a=arguments,g.apply(this,a),L.addId(a[0].id)}}if(typeof AC_FL_RunContent!=f){var h=AC_FL_RunContent;AC_FL_RunContent=function(){a=arguments,h.apply(this,a);for(var b=0,c=a.length;c>b;b++)"id"==a[b]&&L.addId(a[b+1])}}}()};