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