﻿if(typeof asual=="undefined"){var asual=new Object();}if(typeof asual.util=="undefined"){asual.util=new Object();}asual.util.Browser=new function(){var _1=navigator.userAgent;this.supported=false;this.ie=false;this.gecko=false;this.safari=false;this.opera=false;if(/MSIE/.test(_1)){this.ie=true;this.supported=parseFloat(_1.substring(_1.indexOf("MSIE")+4))>=6;}else{if(/AppleWebKit/.test(_1)){this.safari=true;this.supported=parseFloat(_1.substring(_1.indexOf("Safari")+7))>=312;}else{if(/Opera/.test(_1)){this.opera=true;this.supported=parseFloat(navigator.appVersion)>=9.02;}else{if(/Firefox/.test(_1)){this.gecko=true;this.supported=parseFloat(_1.substring(_1.indexOf("Firefox")+8))>=1;}else{if(/Camino/.test(_1)){this.gecko=true;this.supported=parseFloat(_1.substring(_1.indexOf("Camino")+7))>=1;}else{if(/Netscape/.test(_1)){this.gecko=true;this.supported=parseFloat(_1.substring(_1.indexOf("Netscape")+9))>=8;}else{if(/Mozilla/.test(_1)&&/rv:/.test(_1)){this.gecko=true;this.supported=parseFloat(_1.substring(_1.indexOf("rv:")+3))>=1.8;}}}}}}}if(!this.supported&&top.location.href.indexOf("#")!=-1){document.write("<meta http-equiv=\"refresh\" content=\"0;url="+top.location.href.substr(0,top.location.href.indexOf("#"))+"\" />");}};asual.util.Cookie=new function(){this.write=function(_2){var _3=new Date();_3.setTime(_3.getTime()+(3*8640000));var _4="; expires="+_3.toGMTString();document.cookie="swfaddress="+_2+_4+"; path="+top.location.pathname;};this.read=function(){var _5="swfaddress=";var _6=document.cookie.split(";");for(var i=0,c;c=_6[i];i++){while(c.charAt(0)==" "){c=c.substring(1);}if(c.indexOf(_5)==0){return c.substring(_5.length);}}};};asual.util.Functions=new function(){this.extend=function(_9,_a){function inheritance(){}inheritance.prototype=_9.prototype;_a.prototype=new inheritance();_a.prototype.constructor=_a;_a.superConstructor=_9;_a.superClass=_9.prototype;return _a;};this.bindAsListener=function(_b,_c,_d){return function(_e){return _b.call(_c,_e||((_d)?_d.event:window.event));};};};asual.util.Events=new function(){var _f=new Array();this.addListener=function(obj,_11,_12){if(obj.addEventListener){obj.addEventListener(_11,_12,false);}else{if(obj.attachEvent){obj.attachEvent("on"+_11,_12);}else{obj["on"+_11]=_12;}}_f.push({o:obj,t:_11,l:_12});};this.removeListener=function(obj,_14,_15){if(obj.removeEventListener){obj.removeEventListener(_14,_15,false);}else{if(obj.detachEvent){obj.detachEvent("on"+_14,_15);}else{obj["on"+_14]=_15;}}};var _16=function(){for(var i=0,evt;evt=_f[i];i++){asual.util.Events.removeListener(evt.o,evt.t,evt.l);}};if(asual.util.Browser.ie||asual.util.Browser.safari){this.addListener(window,"unload",asual.util.Functions.bindAsListener(_16,this));}};asual.SWFAddress=new function(){var _19,_1a,_1b;var _1c,_1d;var _1e=document.title;var _1f=history.length;var _20=new Array();var js="swfaddress.js";var _22="swfaddress.html";var _23=function(){var _24=top.location.href.indexOf("#");if(_24!=-1){return top.location.href.substring(_24);}return "";};var _25=_23();var _26=function(){if(asual.util.Browser.safari){if(_1f!=history.length){_1f=history.length;if(typeof _20[_1f-1]!="undefined"){_25=_20[_1f-1];}_27();}}else{if(asual.util.Browser.ie){if(_25!=_23()){asual.SWFAddress.setValue(_23().replace(/#/g,""));}if(document.title!=_1e){asual.SWFAddress.setTitle(_1e);}}else{if(_25!=top.location.hash){_25=top.location.hash;_27();}}}};var _27=function(){var _28=_25.replace(/#/g,"");if(_28!=_1c){_1c=_28;var obj=document[_1d]||document.getElementById(_1d);if(obj){obj.setSWFAddressValue(_28);}}};var _2a=function(){if(_19.contentWindow&&_19.contentWindow.location){var win=_19.contentWindow;win.document.title=top.document.title=_1e;var src=win.location.href;if(src.indexOf("?")>-1){_25="#"+src.substring(src.indexOf("?")+1);}else{_25="#";}if(_25!=_23()){_27();top.location.hash=_25;}}};var _2d=function(){if(asual.util.Browser.ie||asual.util.Browser.safari){var _2e=document.createElement("div");_2e.id="swfaddress";var _2f=document.getElementsByTagName("script");for(var i=0,s;s=_2f[i];i++){if(s.src.indexOf(js)>-1){_22=(new String(s.src)).replace(js,_22);}}_2e.innerHTML="<iframe id=\"swfaddress-iframe\" src=\""+_22+_23().replace(/#/g,"?")+"\" frameborder=\"no\" scrolling=\"no\"></iframe>";document.body.appendChild(_2e);_2e.style.position="absolute";_2e.style.left=_2e.style.top="-9999px";_19=_2e.getElementsByTagName("iframe")[0];}if(asual.util.Browser.ie){asual.util.Events.addListener(_19,"load",asual.util.Functions.bindAsListener(_2a,this));}if(asual.util.Browser.safari){_1a=document.createElement("form");_1a.id="swfaddress-form";_1a.method="get";_1a.innerHTML+="<textarea id=\"swfaddress-textarea\"></textarea>";_2e.appendChild(_1a);_1b=_1a.getElementsByTagName("textarea")[0];var _32=asual.util.Cookie.read();if(_1b.value!=""){_20=_1b.value.split(",");}else{if(typeof _32!="undefined"){_20=_32.split(",");}}}};var _33=function(){if(typeof urchinTracker!="undefined"){var _34=top.location.pathname+this.getValue();_34=_34.replace(/\/\//,"/");_34=_34.replace(/^\/$/,"");urchinTracker(_34);}};this.getId=function(){if(!asual.util.Browser.supported){return null;}return _1d;};this.setId=function(id){if(!asual.util.Browser.supported){return null;}_1d=id;};this.getTitle=function(){if(!asual.util.Browser.supported){return null;}return _1e;};this.setTitle=function(_36){if(!asual.util.Browser.supported){return null;}if(_36=="null"){_36="";}if(typeof _36!="undefined"){_1e=_36;top.document.title=_1e;}};this.getValue=function(){if(!asual.util.Browser.supported){return null;}var _37=_25.replace(/#/gi,"");return _37;};this.setValue=function(_38){if(!asual.util.Browser.supported){return null;}if(_38=="null"){_38="";}if(_1c==_38){return;}var _39;var obj=document[_1d]||document.getElementById(_1d);if(obj){_39=obj.getSWFAddressValue();if(_39=="null"){_39="";}}_25="#"+_38;if(_39==_38){_1c=_38;_27();}else{_27();_1c=_38;}if(asual.util.Browser.safari){_1a.action=_25;_20[history.length]=_25;_1b.value=_20;asual.util.Cookie.write(_20);_1f=history.length+1;_1a.submit();}else{top.location.hash=_25;}if(asual.util.Browser.ie){var win=_19.contentWindow;var _3c="?"+_23().substring(_25.indexOf("#")+1);win.location.assign(win.location.pathname+_3c);}_33.call(this);};if(!asual.util.Browser.supported){return;}if(asual.util.Browser.safari){for(var i=1;i<_1f;i++){_20.push("");}_20.push(top.location.hash);}if(asual.util.Browser.ie){if(_25==""){top.location.hash="#";}else{top.location.hash=_23();}}setInterval(_26,50);asual.util.Events.addListener(window,"load",asual.util.Functions.bindAsListener(_2d,this));_1c=this.getValue();_33.call(this);_27.call(this);};if(typeof deconcept!="undefined"&&deconcept.SWFObject){asual.SWFAddressObject=asual.util.Functions.extend(deconcept.SWFObject,function(swf,id,w,h,ver,c,_44,_45,_46,_47){asual.SWFAddressObject.superConstructor.apply(this,arguments);asual.SWFAddress.setId(id);});SWFObject=deconcept.SWFObject=asual.SWFAddressObject;}SWFAddress=asual.SWFAddress;

