var swfobject=function(){var d="undefined",l="object",u="Shockwave Flash",z="ShockwaveFlash.ShockwaveFlash",B="application/x-shockwave-flash",p="SWFObjectExprInst",A="onreadystatechange",x=window,g=document,o=navigator,t=false,q=[Q],C=[],m=[],J=[],I,e,v,r,G=false,F=false,H,L,M=true,j=function(){var b=typeof g.getElementById!=d&&typeof g.getElementsByTagName!=d&&typeof g.createElement!=d,c=o.userAgent.toLowerCase(),f=o.platform.toLowerCase(),k=f?/win/.test(f):/win/.test(c);f=f?/mac/.test(f):/mac/.test(c);
c=/webkit/.test(c)?parseFloat(c.replace(/^.*webkit\/(\d+(\.\d+)?).*$/,"$1")):false;var n=!+"\u000b1",w=[0,0,0],a=null;if(typeof o.plugins!=d&&typeof o.plugins[u]==l){if((a=o.plugins[u].description)&&!(typeof o.mimeTypes!=d&&o.mimeTypes[B]&&!o.mimeTypes[B].enabledPlugin)){t=true;n=false;a=a.replace(/^.*\s+(\S+\s+\S+$)/,"$1");w[0]=parseInt(a.replace(/^(.*)\..*$/,"$1"),10);w[1]=parseInt(a.replace(/^.*\.(.*)\s.*$/,"$1"),10);w[2]=/[a-zA-Z]/.test(a)?parseInt(a.replace(/^.*[a-zA-Z]+(.*)$/,"$1"),10):0}}else if(typeof x.ActiveXObject!=
d)try{var h=new ActiveXObject(z);if(h)if(a=h.GetVariable("$version")){n=true;a=a.split(" ")[1].split(",");w=[parseInt(a[0],10),parseInt(a[1],10),parseInt(a[2],10)]}}catch(y){}return{w3:b,pv:w,wk:c,ie:n,win:k,mac:f}}(),ca=function(){if(j.w3){if(typeof g.readyState!=d&&g.readyState=="complete"||typeof g.readyState==d&&(g.getElementsByTagName("body")[0]||g.body))R();if(!G){typeof g.addEventListener!=d&&g.addEventListener("DOMContentLoaded",R,false);if(j.ie&&j.win){g.attachEvent(A,function(){if(g.readyState==
"complete"){g.detachEvent(A,arguments.callee);R()}});x==top&&function(){if(!G){try{g.documentElement.doScroll("left")}catch(b){setTimeout(arguments.callee,0);return}R()}}()}j.wk&&function(){G||(/loaded|complete/.test(g.readyState)?R():setTimeout(arguments.callee,0))}();K(R)}}}();function R(){if(!G){try{var b=g.getElementsByTagName("body")[0].appendChild(X("span"));b.parentNode.removeChild(b)}catch(c){return}G=true;b=q.length;for(var f=0;f<b;f++)q[f]()}}function Y(b){if(G)b();else q[q.length]=b}function K(b){if(typeof x.addEventListener!=
d)x.addEventListener("load",b,false);else if(typeof g.addEventListener!=d)g.addEventListener("load",b,false);else if(typeof x.attachEvent!=d)ea(x,"onload",b);else if(typeof x.onload=="function"){var c=x.onload;x.onload=function(){c();b()}}else x.onload=b}function Q(){t?D():N()}function D(){var b=g.getElementsByTagName("body")[0],c=X(l);c.setAttribute("type",B);var f=b.appendChild(c);if(f){var k=0;(function(){if(typeof f.GetVariable!=d){var n=f.GetVariable("$version");if(n){n=n.split(" ")[1].split(",");
j.pv=[parseInt(n[0],10),parseInt(n[1],10),parseInt(n[2],10)]}}else if(k<10){k++;setTimeout(arguments.callee,10);return}b.removeChild(c);f=null;N()})()}else N()}function N(){var b=C.length;if(b>0)for(var c=0;c<b;c++){var f=C[c].id,k=C[c].callbackFn,n={success:false,id:f};if(j.pv[0]>0){var w=S(f);if(w)if(da(C[c].swfVersion)&&!(j.wk&&j.wk<312)){Z(f,true);if(k){n.success=true;n.ref=E(f);k(n)}}else if(C[c].expressInstall&&i()){n={};n.data=C[c].expressInstall;n.width=w.getAttribute("width")||"0";n.height=
w.getAttribute("height")||"0";if(w.getAttribute("class"))n.styleclass=w.getAttribute("class");if(w.getAttribute("align"))n.align=w.getAttribute("align");var a={};w=w.getElementsByTagName("param");for(var h=w.length,y=0;y<h;y++)if(w[y].getAttribute("name").toLowerCase()!="movie")a[w[y].getAttribute("name")]=w[y].getAttribute("value");s(n,a,f,k)}else{V(w);k&&k(n)}}else{Z(f,true);if(k){if((f=E(f))&&typeof f.SetVariable!=d){n.success=true;n.ref=f}k(n)}}}}function E(b){var c=null;if((b=S(b))&&b.nodeName==
"OBJECT")if(typeof b.SetVariable!=d)c=b;else if(b=b.getElementsByTagName(l)[0])c=b;return c}function i(){return!F&&da("6.0.65")&&(j.win||j.mac)&&!(j.wk&&j.wk<312)}function s(b,c,f,k){F=true;v=k||null;r={success:false,id:f};var n=S(f);if(n){if(n.nodeName=="OBJECT"){I=T(n);e=null}else{I=n;e=f}b.id=p;if(typeof b.width==d||!/%$/.test(b.width)&&parseInt(b.width,10)<310)b.width="310";if(typeof b.height==d||!/%$/.test(b.height)&&parseInt(b.height,10)<137)b.height="137";g.title=g.title.slice(0,47)+" - Flash Player Installation";
k=j.ie&&j.win?"ActiveX":"PlugIn";k="MMredirectURL="+x.location.toString().replace(/&/g,"%26")+"&MMplayerType="+k+"&MMdoctitle="+g.title;if(typeof c.flashvars!=d)c.flashvars+="&"+k;else c.flashvars=k;if(j.ie&&j.win&&n.readyState!=4){k=X("div");f+="SWFObjectNew";k.setAttribute("id",f);n.parentNode.insertBefore(k,n);n.style.display="none";(function(){n.readyState==4?n.parentNode.removeChild(n):setTimeout(arguments.callee,10)})()}P(b,c,f)}}function V(b){if(j.ie&&j.win&&b.readyState!=4){var c=X("div");
b.parentNode.insertBefore(c,b);c.parentNode.replaceChild(T(b),c);b.style.display="none";(function(){b.readyState==4?b.parentNode.removeChild(b):setTimeout(arguments.callee,10)})()}else b.parentNode.replaceChild(T(b),b)}function T(b){var c=X("div");if(j.win&&j.ie)c.innerHTML=b.innerHTML;else if(b=b.getElementsByTagName(l)[0])if(b=b.childNodes)for(var f=b.length,k=0;k<f;k++)!(b[k].nodeType==1&&b[k].nodeName=="PARAM")&&b[k].nodeType!=8&&c.appendChild(b[k].cloneNode(true));return c}function P(b,c,f){var k,
n=S(f);if(j.wk&&j.wk<312)return k;if(n){if(typeof b.id==d)b.id=f;if(j.ie&&j.win){var w="";for(var a in b)if(b[a]!=Object.prototype[a])if(a.toLowerCase()=="data")c.movie=b[a];else if(a.toLowerCase()=="styleclass")w+=' class="'+b[a]+'"';else if(a.toLowerCase()!="classid")w+=" "+a+'="'+b[a]+'"';a="";for(var h in c)if(c[h]!=Object.prototype[h])a+='<param name="'+h+'" value="'+c[h]+'" />';n.outerHTML='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"'+w+">"+a+"</object>";m[m.length]=b.id;k=
S(b.id)}else{h=X(l);h.setAttribute("type",B);for(w in b)if(b[w]!=Object.prototype[w])if(w.toLowerCase()=="styleclass")h.setAttribute("class",b[w]);else w.toLowerCase()!="classid"&&h.setAttribute(w,b[w]);for(var y in c)c[y]!=Object.prototype[y]&&y.toLowerCase()!="movie"&&$(h,y,c[y]);n.parentNode.replaceChild(h,n);k=h}}return k}function $(b,c,f){var k=X("param");k.setAttribute("name",c);k.setAttribute("value",f);b.appendChild(k)}function aa(b){var c=S(b);if(c&&c.nodeName=="OBJECT")if(j.ie&&j.win){c.style.display=
"none";(function(){c.readyState==4?fa(b):setTimeout(arguments.callee,10)})()}else c.parentNode.removeChild(c)}function fa(b){if(b=S(b)){for(var c in b)if(typeof b[c]=="function")b[c]=null;b.parentNode.removeChild(b)}}function S(b){var c=null;try{c=g.getElementById(b)}catch(f){}return c}function X(b){return g.createElement(b)}function ea(b,c,f){b.attachEvent(c,f);J[J.length]=[b,c,f]}function da(b){var c=j.pv;b=b.split(".");b[0]=parseInt(b[0],10);b[1]=parseInt(b[1],10)||0;b[2]=parseInt(b[2],10)||0;
return c[0]>b[0]||c[0]==b[0]&&c[1]>b[1]||c[0]==b[0]&&c[1]==b[1]&&c[2]>=b[2]?true:false}function ga(b,c,f,k){if(!(j.ie&&j.mac)){var n=g.getElementsByTagName("head")[0];if(n){f=f&&typeof f=="string"?f:"screen";if(k)L=H=null;if(!H||L!=f){k=X("style");k.setAttribute("type","text/css");k.setAttribute("media",f);H=n.appendChild(k);if(j.ie&&j.win&&typeof g.styleSheets!=d&&g.styleSheets.length>0)H=g.styleSheets[g.styleSheets.length-1];L=f}if(j.ie&&j.win)H&&typeof H.addRule==l&&H.addRule(b,c);else H&&typeof g.createTextNode!=
d&&H.appendChild(g.createTextNode(b+" {"+c+"}"))}}}function Z(b,c){if(M){c=c?"visible":"hidden";if(G&&S(b))S(b).style.visibility=c;else ga("#"+b,"visibility:"+c)}}function ha(b){var c=/[\\\"<>\.;]/;return(c=c.exec(b)!=null)&&typeof encodeURIComponent!=d?encodeURIComponent(b):b}ca=function(){j.ie&&j.win&&window.attachEvent("onunload",function(){for(var b=J.length,c=0;c<b;c++)J[c][0].detachEvent(J[c][1],J[c][2]);b=m.length;for(c=0;c<b;c++)aa(m[c]);for(var f in j)j[f]=null;j=null;for(var k in swfobject)swfobject[k]=
null;swfobject=null})}();return{registerObject:function(b,c,f,k){if(j.w3&&b&&c){var n={};n.id=b;n.swfVersion=c;n.expressInstall=f;n.callbackFn=k;C[C.length]=n;Z(b,false)}else k&&k({success:false,id:b})},getObjectById:function(b){if(j.w3)return E(b)},embedSWF:function(b,c,f,k,n,w,a,h,y,O){var U={success:false,id:c};if(j.w3&&!(j.wk&&j.wk<312)&&b&&c&&f&&k&&n){Z(c,false);Y(function(){f+="";k+="";var W={};if(y&&typeof y===l)for(var ba in y)W[ba]=y[ba];W.data=b;W.width=f;W.height=k;ba={};if(h&&typeof h===
l)for(var ia in h)ba[ia]=h[ia];if(a&&typeof a===l)for(var ja in a)if(typeof ba.flashvars!=d)ba.flashvars+="&"+ja+"="+a[ja];else ba.flashvars=ja+"="+a[ja];if(da(n)){ia=P(W,ba,c);W.id==c&&Z(c,true);U.success=true;U.ref=ia}else if(w&&i()){W.data=w;s(W,ba,c,O);return}else Z(c,true);O&&O(U)})}else O&&O(U)},switchOffAutoHideShow:function(){M=false},ua:j,getFlashPlayerVersion:function(){return{major:j.pv[0],minor:j.pv[1],release:j.pv[2]}},hasFlashPlayerVersion:da,createSWF:function(b,c,f){if(j.w3)return P(b,
c,f)},showExpressInstall:function(b,c,f,k){j.w3&&i()&&s(b,c,f,k)},removeSWF:function(b){j.w3&&aa(b)},createCSS:function(b,c,f,k){j.w3&&ga(b,c,f,k)},addDomLoadEvent:Y,addLoadEvent:K,getQueryParamValue:function(b){var c=g.location.search||g.location.hash;if(c){if(/\?/.test(c))c=c.split("?")[1];if(b==null)return ha(c);c=c.split("&");for(var f=0;f<c.length;f++)if(c[f].substring(0,c[f].indexOf("="))==b)return ha(c[f].substring(c[f].indexOf("=")+1))}return""},expressInstallCallback:function(){if(F){var b=
S(p);if(b&&I){b.parentNode.replaceChild(I,b);if(e){Z(e,true);if(j.ie&&j.win)I.style.display="block"}v&&v(r)}F=false}}}}();if(typeof asual=="undefined")asual={};if(typeof asual.swfaddress=="undefined")asual.swfaddress={};if(typeof asual.util=="undefined")asual.util={};
asual.util.Browser=new (function(){var d=-1,l=navigator.userAgent,u=false,z=false,B=false,p=false,A=false,x=false;function g(o,t){return parseFloat(l.substr(l.indexOf(o)+t))}if(p=/Opera/.test(l))d=parseFloat(navigator.appVersion);if(u=/MSIE/.test(l))d=g("MSIE",4);if(x=/Chrome/.test(l))d=g("Chrome",7);if(z=/Camino/.test(l))d=g("Camino",7);if(B=/AppleWebKit/.test(l)&&!x)d=g("Safari",7);if(A=/Firefox/.test(l)&&!z)d=g("Firefox",8);this.toString=function(){return"[class Browser]"};this.getVersion=function(){return d};
this.isIE=function(){return u};this.isSafari=function(){return B};this.isOpera=function(){return p};this.isCamino=function(){return z};this.isFirefox=function(){return A};this.isChrome=function(){return x}});
asual.util.Events=new (function(){var d="DOMContentLoaded",l="onstop",u=window,z=document,B=[],p=asual.util,A=p.Browser;this.toString=function(){return"[class Events]"};this.addListener=function(o,t,q){B.push({o:o,t:t,l:q});if(!(t==d&&(A.isIE()||A.isSafari())))if(o.addEventListener)o.addEventListener(t,q,false);else o.attachEvent&&o.attachEvent("on"+t,q)};this.removeListener=function(o,t,q){for(var C=0,m;m=B[C];C++)if(m.o==o&&m.t==t&&m.l==q){B.splice(C,1);break}if(!(t==d&&(A.isIE()||A.isSafari())))if(o.removeEventListener)o.removeEventListener(t,
q,false);else o.detachEvent&&o.detachEvent("on"+t,q)};function x(){for(var o=0,t;t=B[o];o++)t.t!=d&&p.Events.removeListener(t.o,t.t,t.l)}function g(){if(z.readyState=="interactive"){function o(){z.detachEvent(l,o);x()}z.attachEvent(l,o);u.setTimeout(function(){z.detachEvent(l,o)},0)}}if(A.isIE()||A.isSafari())(function(){try{if(A.isIE()&&z.body||!/loaded|complete/.test(z.readyState))z.documentElement.doScroll("left")}catch(o){return setTimeout(arguments.callee,0)}for(var t=0,q;q=B[t];t++)q.t==d&&
q.l.call(null)})();A.isIE()&&u.attachEvent("onbeforeunload",g);this.addListener(u,"unload",x)});asual.util.Functions=new (function(){this.toString=function(){return"[class Functions]"};this.extend=function(d,l){function u(){}u.prototype=d.prototype;l.prototype=new u;l.prototype.constructor=l;l.superConstructor=d;l.superClass=d.prototype;return l};this.bind=function(d,l,u){for(var z=2,B,p=[];B=arguments[z];z++)p.push(B);return function(){return d.apply(l,p)}}});
asual.swfaddress.WEBAddressEvent=function(d){var l=asual.swfaddress.WEBAddress;this.toString=function(){return"[object WEBAddressEvent]"};this.type=d;this.target=[l][0];this.value=l.getValue();this.path=l.getPath();this.pathNames=l.getPathNames();this.parameters={};d=l.getParameterNames();for(var u=0,z=d.length;u<z;u++)this.parameters[d[u]]=l.getParameter(d[u]);this.parametersNames=d};asual.swfaddress.WEBAddressEvent.INIT="init";asual.swfaddress.WEBAddressEvent.CHANGE="change";
asual.swfaddress.WEBAddress=new (function(){var d="",l="function",u="undefined",z=asual.swfaddress,B=asual.util,p=B.Browser,A=B.Events,x=B.Functions,g=p.getVersion(),o=false,t=top,q=t.document,C=t.history,m=t.location,J=setInterval,I=setTimeout,e=decodeURIComponent,v=encodeURIComponent,r,G,F,H,L=q.title,M=C.length,j=false,ca=false,R=true,Y=true,K=[],Q={},D={history:true,html:false,strict:true,tracker:"_trackDefault"};if(p.isOpera())o=g>=9.02;if(p.isIE())o=g>=6;if(p.isSafari())o=g>=312;if(p.isChrome())o=
g>=0.2;if(p.isCamino())o=g>=1;if(p.isFirefox())o=g>=1;if(!o&&m.href.indexOf("#")!=-1||p.isSafari()&&g<418&&m.href.indexOf("#")!=-1&&m.search!=""){q.open();q.write('<html><head><meta http-equiv="refresh" content="0;url='+m.href.substr(0,m.href.indexOf("#"))+'" /></head></html>');q.close()}function N(){var a=m.href.indexOf("#");return a!=-1?m.href.substr(a+1):""}var E=N();function i(a,h){if(D.strict)a=h?a.substr(0,1)!="/"?"/"+a:a:a==""?"/":a;return a}function s(a){return p.isIE()&&m.protocol=="file:"?
E.replace(/\?/,"%3F"):a}function V(a){for(var h=0,y=a.childNodes.length,O;h<y;h++){if(a.childNodes[h].src)F=String(a.childNodes[h].src);if(O=V(a.childNodes[h]))return O}}function T(){if(p.isIE()&&q.title!=L&&q.title.indexOf("#")!=-1){q.title=L;if(D.html&&r&&r.contentWindow&&r.contentWindow.document)r.contentWindow.document.title=L}}function P(){if(!j){var a=N(),h=!(E==a||E==e(a)||e(E)==a);if(p.isSafari()&&g<523){if(M!=C.length){M=C.length;if(typeof K[M-1]!=u)E=K[M-1];S.call(this)}}else if(p.isIE()&&
h)g<7?m.reload():this.setValue(a);else if(h){E=a;S.call(this)}T.call(this)}}function $(a){this.dispatchEvent(new z.WEBAddressEvent(a));a=a.substr(0,1).toUpperCase()+a.substr(1);typeof this["on"+a]==l&&this["on"+a]()}function aa(){$.call(this,"init")}function fa(){$.call(this,"change")}function S(){fa.call(this);I(x.bind(ea,this),10)}function X(a){typeof urchinTracker==l&&urchinTracker(a);typeof pageTracker!=u&&typeof pageTracker._trackPageview==l&&pageTracker._trackPageview(a)}eval("var _trackDefault = "+
X+";");function ea(){if(typeof D.tracker!=u&&eval("typeof "+D.tracker+' != "'+u+'"')){var a=eval(D.tracker);if(typeof a==l)a(e((m.pathname+(/\/$/.test(m.pathname)?"":"/")+this.getValue()).replace(/\/\//,"/").replace(/^\/$/,"")))}}function da(){var a=r.contentWindow.document;a.open();a.write("<html><head><title>"+q.title+"</title><script>var "+d+' = "'+v(N())+'";<\/script></head></html>');a.close()}function ga(){var a=r.contentWindow,h=a.location.href;E=D.html?h.indexOf("?")>-1?e(h.substr(h.indexOf("?")+
1)):"":typeof a[d]!=u?e(a[d]):"";if(D.html)a.document.title=L;if(E!=N()){S.call(z.WEBAddress);m.hash=s(E)}}function Z(){if(!ca){ca=true;var a='id="'+d+'" style="position:absolute;top:-9999px;"';if(p.isIE()&&g<8){q.body.appendChild(q.createElement("div")).innerHTML="<iframe "+a+' src="'+(D.html?F.replace(/\.js(\?.*)?$/,".html")+"?"+v(N()):"javascript:false;")+'" width="0" height="0"></iframe>';r=q.getElementById(d);I(function(){A.addListener(r,"load",ga);!D.html&&typeof r.contentWindow[d]==u&&da()},
50)}else if(p.isSafari()){if(g<418){q.body.innerHTML+="<form "+a+' method="get"></form>';G=q.getElementById(d)}if(typeof m[d]==u)m[d]={};if(typeof m[d][m.pathname]!=u)K=m[d][m.pathname].split(",")}I(x.bind(aa,this),1);I(x.bind(fa,this),2);I(x.bind(ea,this),10);if(p.isIE()&&g>=8){q.body.onhashchange=x.bind(P,this);H=J(x.bind(T,this),50)}else H=J(x.bind(P,this),50)}}function ha(){clearInterval(H)}this.onChange=this.onInit=null;this.toString=function(){return"[class WEBAddress]"};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.addEventListener=function(a,h){if(typeof Q[a]==u)Q[a]=[];Q[a].push(h)};this.removeEventListener=function(a,h){if(typeof Q[a]!=u){for(var y=0,O;O=Q[a][y];y++)if(O==h)break;Q[a].splice(y,1)}};this.dispatchEvent=function(a){if(this.hasEventListener(a.type)){a.target=this;for(var h=0,y;y=Q[a.type][h];h++)y(a);
return true}return false};this.hasEventListener=function(a){return typeof Q[a]!=u&&Q[a].length>0};this.getBaseURL=function(){var a=m.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 D.strict};this.setStrict=function(a){D.strict=a};this.getHistory=function(){return D.history};this.setHistory=function(a){D.history=a};this.getTracker=function(){return D.tracker};this.setTracker=function(a){D.tracker=
a};this.getTitle=function(){return q.title};this.setTitle=function(a){if(!o)return null;if(typeof a!=u){if(a=="null")a="";L=q.title=a;I(function(){if((Y||D.html)&&r&&r.contentWindow&&r.contentWindow.document){r.contentWindow.document.title=a;Y=false}if(!R&&(p.isCamino()||p.isFirefox()))m.replace(m.href.indexOf("#")!=-1?m.href:m.href+"#");R=false},50)}};this.getStatus=function(){return t.status};this.setStatus=function(a){if(typeof a!=u)if(!p.isSafari()){a=i(a!="null"?a:"",true);if(a=="/")a="";if(!/http(s)?:\/\//.test(a)){var h=
m.href.indexOf("#");a=(h==-1?m.href:m.href.substr(0,h))+"#"+a}t.status=a}};this.resetStatus=function(){t.status=""};this.getValue=function(){if(!o)return null;return i(E,false)};this.setValue=function(a){if(!o)return null;if(typeof a!=u){if(a=="null")a="";a=i(a,true);if(a=="/")a="";if(!(E==a||E==e(a)||e(E)==a)){R=true;E=a;j=true;S.call(z.WEBAddress);K[C.length]=E;if(p.isSafari())if(D.history){m[d][m.pathname]=K.toString();M=C.length+1;if(g<418){if(m.search==""){G.action="#"+E;G.submit()}}else if(g<
523||E==""){var h=q.createEvent("MouseEvents");h.initEvent("click",true,true);var y=q.createElement("a");y.href="#"+E;y.dispatchEvent(h)}else m.hash="#"+E}else m.replace("#"+E);else if(E!=N())if(D.history)m.hash=(p.isChrome()?"":"#")+s(E);else m.replace("#"+E);if(p.isIE()&&g<8&&D.history)if(D.html){h=r.contentWindow.location;h.assign(h.pathname+"?"+N())}else I(da,50);if(p.isSafari())I(function(){j=false},1);else j=false}}};this.getPath=function(){var a=this.getValue();return a.indexOf("?")!=-1?a.split("?")[0]:
a};this.getPathNames=function(){var a=this.getPath(),h=a.split("/");if(a.substr(0,1)=="/"||a.length==0)h.splice(0,1);a.substr(a.length-1,1)=="/"&&h.splice(h.length-1,1);return h};this.getQueryString=function(){var a=this.getValue(),h=a.indexOf("?");return h!=-1&&h<a.length?a.substr(h+1):""};this.getParameter=function(a){var h=this.getValue(),y=h.indexOf("?");if(y!=-1){h=h.substr(y+1);for(var O=h.split("&"),U,W=O.length;W--;){U=O[W].split("=");if(U[0]==a)return U[1]}}return""};this.getParameterNames=
function(){var a=this.getValue(),h=a.indexOf("?"),y=[];if(h!=-1){a=a.substr(h+1);if(a!=""&&a.indexOf("=")!=-1)for(var O=a.split("&"),U=0;U<O.length;){y.push(O[U].split("=")[0]);U++}}return y};if(o){for(var b=1;b<M;b++)K.push("");K.push(N());if(p.isIE()&&m.hash!=N())m.hash="#"+s(N());V(document);var c=F.indexOf("?");if(F&&c>-1){var f,k=F.substr(c+1).split("&");b=0;for(var n;n=k[b];b++){f=n.split("=");if(/^(history|html|strict)$/.test(f[0]))D[f[0]]=isNaN(f[1])?eval(f[1]):parseFloat(f[1])>0;if(/^tracker$/.test(f[0]))D[f[0]]=
f[1]}}if(/file:\/\//.test(m.href))D.html=false;var w=F.indexOf(".js");if(F&&w>-1)for(;w--;){b=F.substr(w,1);if(/(\/|\\)/.test(b))break;d=b+d}T.call(this);window==t&&A.addListener(document,"DOMContentLoaded",x.bind(Z,this));A.addListener(t,"load",x.bind(Z,this));A.addListener(t,"unload",x.bind(ha,this))}else ea()});SWFAddressEvent=asual.swfaddress.SWFAddressEvent=function(d){SWFAddressEvent.superConstructor.apply(this,arguments);this.target=[SWFAddress][0];this.toString=function(){return"[object SWFAddressEvent]"}};
asual.util.Functions.extend(asual.swfaddress.WEBAddressEvent,SWFAddressEvent);asual.swfaddress.SWFAddressEvent.INIT="init";asual.swfaddress.SWFAddressEvent.CHANGE="change";
SWFAddress=asual.swfaddress.SWFAddress=new (function(){var d="undefined",l=top,u=l.location,z=this,B=[],p=[],A={},x=asual.util,g=asual.util.Functions,o=asual.swfaddress.WEBAddress;for(var t in o)this[t]=o[t];function q(e){this.dispatchEvent(new SWFAddressEvent(e));e=e.substr(0,1).toUpperCase()+e.substr(1);typeof this["on"+e]=="function"&&this["on"+e]()}function C(e){if(p.length>0){var v=window.open(p[0],p[1],eval(p[2]));typeof p[3]!=d&&eval(p[3])}p=[]}function m(){x.Browser.isSafari()&&document.body.addEventListener("click",
C);q.call(this,"init")}function J(){I();q.call(this,"change")}function I(){for(var e=0,v,r,G=SWFAddress.getValue(),F="setSWFAddressValue";v=B[e];e++)if(r=document.getElementById(v))if(r.parentNode&&typeof r.parentNode.so!=d)r.parentNode.so.call(F,G);else{if(!(r&&typeof r[F]!=d)){var H=r.getElementsByTagName("object"),L=r.getElementsByTagName("embed");r=H[0]&&typeof H[0][F]!=d?H[0]:L[0]&&typeof L[0][F]!=d?L[0]:null}r&&r[F](decodeURIComponent(G))}else if(r=document[v])typeof r[F]!=d&&r[F](G)}this.toString=
function(){return"[class SWFAddress]"};this.addEventListener=function(e,v){if(typeof A[e]==d)A[e]=[];A[e].push(v)};this.removeEventListener=function(e,v){if(typeof A[e]!=d){for(var r=0,G;G=A[e][r];r++)if(G==v)break;A[e].splice(r,1)}};this.dispatchEvent=function(e){if(typeof A[e.type]!=d&&A[e.type].length){e.target=this;for(var v=0,r;r=A[e.type][v];v++)r(e);return true}return false};this.hasEventListener=function(e){return typeof A[e]!=d&&A[e].length>0};this.href=function(e,v){v=typeof v!=d?v:"_self";
if(v=="_self")self.location.href=e;else if(v=="_top")u.href=e;else if(v=="_blank")window.open(e);else l.frames[v].location.href=e};this.popup=function(e,v,r,G){try{var F=window.open(e,v,eval(r));typeof G!=d&&eval(G)}catch(H){}p=arguments};this.getIds=function(){return B};this.getId=function(e){return B[0]};this.setId=function(e){B[0]=e};this.addId=function(e){this.removeId(e);B.push(e)};this.removeId=function(e){for(var v=0;v<B.length;v++)if(e==B[v]){B.splice(v,1);break}};this.setValue=function(e){B.length>
0!=0&&x.Browser.isFirefox()&&navigator.userAgent.indexOf("Mac")!=-1?setTimeout(function(){o.setValue.call(SWFAddress,e)},500):o.setValue.call(this,e)};o.addEventListener("init",g.bind(m,this));o.addEventListener("change",g.bind(J,this));(function(){var e;if(typeof FlashObject!=d)SWFObject=FlashObject;if(typeof SWFObject!=d&&SWFObject.prototype&&SWFObject.prototype.write){var v=SWFObject.prototype.write;SWFObject.prototype.write=function(){e=arguments;if(this.getAttribute("version").major<8){this.addVariable("$swfaddress",
SWFAddress.getValue());(typeof e[0]=="string"?document.getElementById(e[0]):e[0]).so=this}var M;if(M=v.apply(this,e))z.addId(this.getAttribute("id"));return M}}if(typeof swfobject!=d){var r=swfobject.registerObject;swfobject.registerObject=function(){e=arguments;r.apply(this,e);z.addId(e[0])};var G=swfobject.createSWF;swfobject.createSWF=function(){e=arguments;G.apply(this,e);z.addId(e[0].id)};var F=swfobject.embedSWF;swfobject.embedSWF=function(){e=arguments;F.apply(this,e);z.addId(e[8].id)}}if(typeof UFO!=
d){var H=UFO.create;UFO.create=function(){e=arguments;H.apply(this,e);z.addId(e[0].id)}}if(typeof AC_FL_RunContent!=d){var L=AC_FL_RunContent;AC_FL_RunContent=function(){e=arguments;L.apply(this,e);for(var M=0,j=e.length;M<j;M++)e[M]=="id"&&z.addId(e[M+1])}}})()});


/**
*	swffit v2.3.3 (11/23/2009) <http://swffit.millermedeiros.com/>
*	Copyright (c) 2009 Miller Medeiros <http://www.millermedeiros.com/>
*	This software is released under the MIT License <http://www.opensource.org/licenses/mit-license.php>
*
*	@requires swfobject 2.1 or higher <http://code.google.com/p/swfobject>
*/
var swffit = function(){
	var win = window,
		doc = document,
		html = doc.getElementsByTagName('html')[0],
		AGENT = navigator.userAgent.toLowerCase(),
		WK = /webkit/.test(AGENT),
		IE = /msie/.test(AGENT) && !win.opera,
		FF = /firefox/.test(AGENT) && !win.opera,
		UNDEF = 'undefined',
		_ft, //{Element} object element (flash movie)
		_re, //{Boolean} has resize event listener
		_t, //{String} object id
		_mw, //{int} min width
		_mh, //{int} min height
		_xw, //{int} max width
		_xh, //{int} max height
		_hc, //{Boolean} horizontal centered
		_vc, //{Boolean} vertical centered
		_ow, //{int} object width
		_oh; //{int} object height
	swfobject.createCSS('object', 'position:absolute; outline:none'); //outline none fixes bug #4 (FF3.6b)
	/**
	* Set the object that will be resized and configure the desired size
	* @param {String} t Flash ID
	* @param {Number} [mw] Minimum Width (Optional - Default value is the flash object width)
	* @param {Number} [mh] Minimum Height (Optional - Default value is the flash object height)
	* @param {Number} [xw] Maximum Width (Optional - Default value is null)
	* @param {Number} [xh] Maximum Height (Optional - Default value is null)
	* @param {Boolean} [hc] Horizontal Centered (Optional - Default value is true)
	* @param {Boolean} [vc] Vertical Centered (Optional - Default value is true)
	*/
	function fit(t, mw, mh, xw, xh, hc, vc){
		mw = mw || _ow;
		mh = mh || _oh;
		xw = xw || null;
		xh = xh || null;
		hc = (hc || hc == null);
		vc = (vc || vc == null);
		configure({target: t, minWid: mw, minHei: mh, maxWid: xw, maxHei: xh, hCenter: hc, vCenter: vc});
	}
	/**
	* Configure the desired properties values (you can change as many properties as you want at the same time)
	* @param {Object} o	Object containing the desired properties that needs to be changed { target, minWid, minHei, maxWid, maxHei, hCenter, vCenter }
	*	Properties:
	*		[target] {String} Flash ID
	*		[minWid] {Number} Minimum Width
	*		[minHei] {Number} Minimum Height
	*		[maxWid] {Number} Maximum Width
	*		[maxHei] {Number} Maximum Height
	*		[hCenter] {Boolean} Horizontal Centered
	*		[vCenter] {Boolean} Vertical Centered
	* @example configure({target: 'my_flash', minWid: 800, minHei:400, maxWid: 1000, maxHei: 550, hCenter: true, vCenter: false});
	*/
	function configure(o){
		//checks if value changed and return correct value
		var evalNum = function(v, p){
				return (typeof o[p] != UNDEF)? o[p] : v;
			},
			evalBool = function(v, p){
				return (o[p] || (v && typeof o[p] == UNDEF));
			};
		_mw = evalNum(_mw, 'minWid');
		_mh = evalNum(_mh, 'minHei');
		_xw = evalNum(_xw, 'maxWid');
		_xh = evalNum(_xh, 'maxHei');
		_hc = evalBool(_hc, 'hCenter');
		_vc = evalBool(_vc, 'vCenter');
		if (o.target && (o.target != _t)){
			_t = o.target;
			swfobject.addDomLoadEvent(initFit);
			if(IE){ swfobject.addLoadEvent(initFit); } //fix conflict with swfaddress 2.3 and IE8 (in some browser modes)
		} else {
			startFit();
		}
	}
	/** 
	* Set the initial parameters 
	* @private
	*/
	function initFit(){
		if(!html.style.overflowX){ controlScroll(0,0); }
		if(!html.style.overflowY){ controlScroll(0,1); }
		html.style.height = doc.body.style.height = '100%';
		doc.body.style.margin = doc.body.style.padding = 0;
		var st = 'width:100%; height:100%';
		st += (IE)? '; overflow:hidden' : ''; //fix IE8
		swfobject.createCSS('#'+_t, st);
		_ft = doc.getElementById(_t);
		_ft = (_ft != UNDEF && FF && /object/.test(_ft.innerHTML))? doc.getElementById(_t).getElementsByTagName('object')[0] : _ft; //required for static publishing on Firefox
		_ow = _ft.width;
		_oh = _ft.height;
		_mw = _mw || _ow;
		_mh = _mh || _oh;
		startFit();
	}
	/**
	* Start fitting the flash movie
	*/
	function startFit(){
		setSize();
		if(!_re){
			swffit.addResizeEvent(setSize);
			_re = 1;
		}
	}
	/**
	* Stop fitting the flash movie
	* @param {Number|String|null} [w] Width (Default value is '100%')
	* @param {Number|String|null} [h] Height (Default value is '100%')
	*/
	function stopFit(w,h){
		if(_re){
			swffit.removeResizeEvent(setSize);
			_re = 0;
			setStyle('top', 'auto');
			setStyle('left', 'auto');
			setStyle('marginTop', 0);
			setStyle('marginLeft', 0);
			w = w || '100%';
			h = h || '100%';
			setWidth(w);
			setHeight(h);
			forceRedraw();
		}
	}
	/**
	 * Force browser redraw
	 * @private
	 */
	function forceRedraw(){
		if(WK){ html.focus(); }
	}
	/**
	 * Add/Remove resize event listeners (Based on Peter-Paul Koch solution: http://www.quirksmode.org/js/eventSimple.html)
	 * @param {Boolean} a Is Add
	 * @param {Function} fn Function that will be added/removed from the onresize event queue
	 * @private
	 */
	function controlResizeEvent(a,fn){
		var p = (a)? ['addEventListener', 'attachEvent'] : ['removeEventListener', 'detachEvent'];
		if(win[p[0]]){
			win[p[0]]('resize',fn,false);
		}else if(win[p[1]]){
			win[p[1]]('onresize',fn);
		}
	}
	/**
	* Sets the width of the swf
	* @param {Number|String} w Width
	* @private
	*/
	function setWidth(w){
		var v = (isNaN(w))? w : w+'px';
		setStyle('width', v);
	}
	/**
	* Sets the height of the swf
	* @param {Number|String} h Height
	* @private
	*/
	function setHeight(h){
		var v = (isNaN(h))? h : h+'px';
		setStyle('height', v);
	}
	/**
	 * Set style of the object
	 * @param {String} p Property
	 * @param {String|Number} v Value
	 * @private
	 */
	function setStyle(p,v){
		_ft.style[p] = v;
	}
	/**
	* Update the flash movie size
	* @private
	*/
	function setSize(){
		var iw = (win.innerWidth)? win.innerWidth : ((doc.documentElement.clientWidth)? doc.documentElement.clientWidth : doc.body.clientWidth),
			ih = (win.innerHeight)? win.innerHeight : ((doc.documentElement.clientHeight)? doc.documentElement.clientHeight : doc.body.clientHeight);
		//fix window innerSize difference when scrollbar is visible
		iw -= (!IE && ih <= _mh)? 18 : 0;
		ih -= (!IE && iw <= _mw)? 18 : 0;
		//sets width
		if (_xw && iw >= _xw){
			setWidth(_xw);
			setPosition(0,1);
		} else {
			if (iw > _mw && (iw < _xw || !_xw)) {
				setWidth('100%');
			} else {
				setWidth(_mw);
			}
			setPosition(0,0);
		}
		// sets height
		if (_xh && ih >= _xh){
			setHeight(_xh);
			setPosition(1,1);
		}else{
			if (ih > _mh && (ih < _xh || !_xh)){
				setHeight('100%');
			} else {
				setHeight(_mh);
			}
			setPosition(1,0);
		}
		forceRedraw();
	}
	/**
	* Update the flash movie position
	* @param {Boolean} t Is Top
	* @param {Boolean} x Is Max Size
	* @private
	*/
	function setPosition(t, x){
		var p,
			m;
		if(t){
			p = (x && _vc)? '50%' : 'auto';
			m = (x && _vc)? -(_xh*0.5)+'px' : 0;
			setStyle('top', p);
			setStyle('marginTop', m);
		}else{
			p = (x && _hc)? '50%' : 'auto';
			m = (x && _hc)? -(_xw*0.5)+'px' : 0;
			setStyle('left', p);
			setStyle('marginLeft', m);
		}
	}
	/**
	 * Show/Hide scrollbar 
	 * ALERT: it will make flash file reload!!
	 * @param {Boolean} s Show
	 * @param {Boolean} v Is Vertical
	 * @private
	 */
	function controlScroll(s,v){
		var p = (v)? 'overflowY' : 'overflowX';
		html.style[p] = (s)? 'scroll' : 'auto';
	}
	/**
	* Return the value of the desired property
	* @param {String} p Desired Property
	* @return {String|Number|Boolean} Desired Property Value
	*/
	function getValueOf(p){
		var o = {target:_t, minWid:_mw, minHei:_mh, maxWid:_xw, maxHei:_xh, hCenter:_hc, vCenter:_vc};
		return o[p];
	}
	/**
	* PUBLIC API
	*/
	return{
		fit: fit,
		configure: configure,
		startFit: startFit,
		stopFit: stopFit,
		getValueOf: getValueOf,
		addResizeEvent: function(fn){
			controlResizeEvent(1,fn);
		},
		removeResizeEvent: function(fn){
			controlResizeEvent(0,fn);
		},
		showScrollH: function(){
			controlScroll(1,0);
		},
		showScrollV: function(){
			controlScroll(1,1);
		}
	};
}();
