File: D:/HostingSpaces/SBogers68/resortouddorpduin.nl/wwwroot/brochure_de/files/flash/swfaddress.js
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){for(var c,d=2,e=[];c=arguments[d];d++)e.push(c);return function(){return a.apply(b,e)}}};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<B.length&&(window.open(B[0],B[1],eval(B[2])),typeof B[3]!=f&&eval(B[3])),B=[]},O=function(){for(var a,b,c=0,d=SWFAddress.getValue();a=C[c];c++)if(b=document.getElementById(a))if(b.parentNode&&typeof b.parentNode.so!=f)b.parentNode.so.call("setSWFAddressValue",d);else{b&&typeof b.setSWFAddressValue!=f||(a=b.getElementsByTagName("object"),b=b.getElementsByTagName("embed"),b=a[0]&&typeof a[0].setSWFAddressValue!=f?a[0]:b[0]&&typeof b[0].setSWFAddressValue!=f?b[0]:null);try{b&&b.setSWFAddressValue(d)}catch(e){}}else(b=document[a])&&typeof b.setSWFAddressValue!=f&&b.setSWFAddressValue(d)},N=function(a){this.dispatchEvent(new SWFAddressEvent(a)),a=a.substr(0,1).toUpperCase()+a.substr(1),typeof this["on"+a]==R&&this["on"+a]()},y=function(a){O(),N.call(this,"change"),a?N.call(this,"internalChange"):N.call(this,"externalChange"),J(G.bind(U,this),10)},U=function(){var a=(c.pathname+(/\/$/.test(c.pathname)?"":"/")+this.getValue()).replace(/\/\//,"/").replace(/^\/$/,""),b=n[u.tracker];typeof b==R?b(a):typeof n.pageTracker!=f&&typeof n.pageTracker._trackPageview==R?n.pageTracker._trackPageview(a):typeof n.urchinTracker==R&&n.urchinTracker(a)},$=function(){var a=m.contentWindow.document;a.open(),a.write("<html><head><title>"+h.title+"</title><script>var "+v+' = "'+b()+'";</script></head></html>'),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+='<form id="'+v+'" style="position:absolute;top:-9999px;" method="get"></form>',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('<html><head><meta http-equiv="refresh" content="0;url='+c.href.substr(0,c.href.indexOf("#"))+'" /></head></html>'),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(){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;b<C.length;b++)if(a==C[b]){C.splice(b,1);break}},this.addEventListener=function(a,b){typeof z[a]==f&&(z[a]=[]),z[a].push(b)},this.removeEventListener=function(a,b){if(typeof z[a]!=f){for(var c,d=0;(c=z[a][d])&&c!=b;d++);z[a].splice(d,1)}},this.dispatchEvent=function(a){if(this.hasEventListener(a.type)){a.target=this;for(var b,c=0;b=z[a.type][c];c++)b(a);return r}return!1},this.hasEventListener=function(a){return typeof z[a]!=f&&0<z[a].length},this.getBaseURL=function(){var a=c.href;return-1!=a.indexOf("#")&&(a=a.substr(0,a.indexOf("#"))),"/"==a.substr(a.length-1)&&(a=a.substr(0,a.length-1)),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 h.title},this.setTitle=function(a){return K?void(typeof a!=f&&("null"==a&&(a=""),a=D(a),J(function(){V=h.title=a,ea&&m&&m.contentWindow&&m.contentWindow.document&&(m.contentWindow.document.title=a,ea=!1),!Z&&da&&c.replace(-1!=c.href.indexOf("#")?c.href:c.href+"#"),Z=!1},10))):null},this.getStatus=function(){return n.status},this.setStatus=function(a){if(!K)return null;if(typeof a!=f&&("null"==a&&(a=""),a=D(a),!E)){if(a=e("null"!=a?a:"",r),"/"==a&&(a=""),!/http(s)?:\/\//.test(a)){var b=c.href.indexOf("#");a=(-1==b?c.href:c.href.substr(0,b))+"#"+a}n.status=a}},this.resetStatus=function(){n.status=""},this.getValue=function(){return K?D(e(p(k,!1),!1)):null},this.setValue=function(a){if(!K)return null;if(typeof a!=f&&("null"==a&&(a=""),a=aa(D(e(a,r))),"/"==a&&(a=""),k!=a)){if(Z=r,k=a,Q=r,y.call(SWFAddress,!0),F[A.length]=k,E)if(u.history)if(c[v][c.pathname]=F.toString(),I=A.length+1,418>q)""==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&&b<a.length?a.substr(b+1):void 0},this.getParameter=function(a){var b=this.getValue(),c=b.indexOf("?");if(-1!=c){for(var b=b.substr(c+1),c=b.split("&"),d=c.length,e=[];d--;)b=c[d].split("="),b[0]==a&&e.push(b[1]);if(0!=e.length)return 1!=e.length?e:e[0]}},this.getParameterNames=function(){var a=this.getValue(),b=a.indexOf("?"),c=[];if(-1!=b&&(a=a.substr(b+1),""!=a&&-1!=a.indexOf("=")))for(a=a.split("&"),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),typeof SWFObject!=f&&SWFObject.prototype&&SWFObject.prototype.write){var b=SWFObject.prototype.write;SWFObject.prototype.write=function(){a=arguments,8>this.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])}}}()};