var swfobject=function(){var b="undefined",Q="object",n="Shockwave Flash",p="ShockwaveFlash.ShockwaveFlash",P="application/x-shockwave-flash",m="SWFObjectExprInst",j=window,K=document,T=navigator,o=[],N=[],i=[],d=[],J,Z=null,M=null,l=null,e=false,A=false;var h=function(){var v=typeof K.getElementById!=b&&typeof K.getElementsByTagName!=b&&typeof K.createElement!=b,AC=[0,0,0],x=null;if(typeof T.plugins!=b&&typeof T.plugins[n]==Q){x=T.plugins[n].description;if(x&&!(typeof T.mimeTypes!=b&&T.mimeTypes[P]&&!T.mimeTypes[P].enabledPlugin)){x=x.replace(/^.*\s+(\S+\s+\S+$)/,"$1");AC[0]=parseInt(x.replace(/^(.*)\..*$/,"$1"),10);AC[1]=parseInt(x.replace(/^.*\.(.*)\s.*$/,"$1"),10);AC[2]=/r/.test(x)?parseInt(x.replace(/^.*r(.*)$/,"$1"),10):0}}else{if(typeof j.ActiveXObject!=b){var y=null,AB=false;try{y=new ActiveXObject(p+".7")}catch(t){try{y=new ActiveXObject(p+".6");AC=[6,0,21];y.AllowScriptAccess="always"}catch(t){if(AC[0]==6){AB=true}}if(!AB){try{y=new ActiveXObject(p)}catch(t){}}}if(!AB&&y){try{x=y.GetVariable("$version");if(x){x=x.split(" ")[1].split(",");AC=[parseInt(x[0],10),parseInt(x[1],10),parseInt(x[2],10)]}}catch(t){}}}}var AD=T.userAgent.toLowerCase(),r=T.platform.toLowerCase(),AA=/webkit/.test(AD)?parseFloat(AD.replace(/^.*webkit\/(\d+(\.\d+)?).*$/,"$1")):false,q=false,z=r?/win/.test(r):/win/.test(AD),w=r?/mac/.test(r):/mac/.test(AD);
/*@cc_on q=true;@if(@_win32)z=true;@elif(@_mac)w=true;@end@*/
return{w3cdom:v,pv:AC,webkit:AA,ie:q,win:z,mac:w}}();var L=function(){if(!h.w3cdom){return}f(H);if(h.ie&&h.win){try{K.write("<script id=__ie_ondomload defer=true src=//:><\/script>");J=C("__ie_ondomload");if(J){I(J,"onreadystatechange",S)}}catch(q){}}if(h.webkit&&typeof K.readyState!=b){Z=setInterval(function(){if(/loaded|complete/.test(K.readyState)){E()}},10)}if(typeof K.addEventListener!=b){K.addEventListener("DOMContentLoaded",E,null)}R(E)}();function S(){if(J.readyState=="complete"){J.parentNode.removeChild(J);E()}}function E(){if(e){return}if(h.ie&&h.win){var v=a("span");try{var u=K.getElementsByTagName("body")[0].appendChild(v);u.parentNode.removeChild(u)}catch(w){return}}e=true;if(Z){clearInterval(Z);Z=null}var q=o.length;for(var r=0;r<q;r++){o[r]()}}function f(q){if(e){q()}else{o[o.length]=q}}function R(r){if(typeof j.addEventListener!=b){j.addEventListener("load",r,false)}else{if(typeof K.addEventListener!=b){K.addEventListener("load",r,false)}else{if(typeof j.attachEvent!=b){I(j,"onload",r)}else{if(typeof j.onload=="function"){var q=j.onload;j.onload=function(){q();r()}}else{j.onload=r}}}}}function H(){var t=N.length;for(var q=0;q<t;q++){var u=N[q].id;if(h.pv[0]>0){var r=C(u);if(r){N[q].width=r.getAttribute("width")?r.getAttribute("width"):"0";N[q].height=r.getAttribute("height")?r.getAttribute("height"):"0";if(c(N[q].swfVersion)){if(h.webkit&&h.webkit<312){Y(r)}W(u,true)}else{if(N[q].expressInstall&&!A&&c("6.0.65")&&(h.win||h.mac)){k(N[q])}else{O(r)}}}}else{W(u,true)}}}function Y(t){var q=t.getElementsByTagName(Q)[0];if(q){var w=a("embed"),y=q.attributes;if(y){var v=y.length;for(var u=0;u<v;u++){if(y[u].nodeName=="DATA"){w.setAttribute("src",y[u].nodeValue)}else{w.setAttribute(y[u].nodeName,y[u].nodeValue)}}}var x=q.childNodes;if(x){var z=x.length;for(var r=0;r<z;r++){if(x[r].nodeType==1&&x[r].nodeName=="PARAM"){w.setAttribute(x[r].getAttribute("name"),x[r].getAttribute("value"))}}}t.parentNode.replaceChild(w,t)}}function k(w){A=true;var u=C(w.id);if(u){if(w.altContentId){var y=C(w.altContentId);if(y){M=y;l=w.altContentId}}else{M=G(u)}if(!(/%$/.test(w.width))&&parseInt(w.width,10)<310){w.width="310"}if(!(/%$/.test(w.height))&&parseInt(w.height,10)<137){w.height="137"}K.title=K.title.slice(0,47)+" - Flash Player Installation";var z=h.ie&&h.win?"ActiveX":"PlugIn",q=K.title,r="MMredirectURL="+j.location+"&MMplayerType="+z+"&MMdoctitle="+q,x=w.id;if(h.ie&&h.win&&u.readyState!=4){var t=a("div");x+="SWFObjectNew";t.setAttribute("id",x);u.parentNode.insertBefore(t,u);u.style.display="none";var v=function(){u.parentNode.removeChild(u)};I(j,"onload",v)}U({data:w.expressInstall,id:m,width:w.width,height:w.height},{flashvars:r},x)}}function O(t){if(h.ie&&h.win&&t.readyState!=4){var r=a("div");t.parentNode.insertBefore(r,t);r.parentNode.replaceChild(G(t),r);t.style.display="none";var q=function(){t.parentNode.removeChild(t)};I(j,"onload",q)}else{t.parentNode.replaceChild(G(t),t)}}function G(v){var u=a("div");if(h.win&&h.ie){u.innerHTML=v.innerHTML}else{var r=v.getElementsByTagName(Q)[0];if(r){var w=r.childNodes;if(w){var q=w.length;for(var t=0;t<q;t++){if(!(w[t].nodeType==1&&w[t].nodeName=="PARAM")&&!(w[t].nodeType==8)){u.appendChild(w[t].cloneNode(true))}}}}}return u}function U(AG,AE,t){var q,v=C(t);if(v){if(typeof AG.id==b){AG.id=t}if(h.ie&&h.win){var AF="";for(var AB in AG){if(AG[AB]!=Object.prototype[AB]){if(AB.toLowerCase()=="data"){AE.movie=AG[AB]}else{if(AB.toLowerCase()=="styleclass"){AF+=' class="'+AG[AB]+'"'}else{if(AB.toLowerCase()!="classid"){AF+=" "+AB+'="'+AG[AB]+'"'}}}}}var AD="";for(var AA in AE){if(AE[AA]!=Object.prototype[AA]){AD+='<param name="'+AA+'" value="'+AE[AA]+'" />'}}v.outerHTML='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"'+AF+">"+AD+"</object>";i[i.length]=AG.id;q=C(AG.id)}else{if(h.webkit&&h.webkit<312){var AC=a("embed");AC.setAttribute("type",P);for(var z in AG){if(AG[z]!=Object.prototype[z]){if(z.toLowerCase()=="data"){AC.setAttribute("src",AG[z])}else{if(z.toLowerCase()=="styleclass"){AC.setAttribute("class",AG[z])}else{if(z.toLowerCase()!="classid"){AC.setAttribute(z,AG[z])}}}}}for(var y in AE){if(AE[y]!=Object.prototype[y]){if(y.toLowerCase()!="movie"){AC.setAttribute(y,AE[y])}}}v.parentNode.replaceChild(AC,v);q=AC}else{var u=a(Q);u.setAttribute("type",P);for(var x in AG){if(AG[x]!=Object.prototype[x]){if(x.toLowerCase()=="styleclass"){u.setAttribute("class",AG[x])}else{if(x.toLowerCase()!="classid"){u.setAttribute(x,AG[x])}}}}for(var w in AE){if(AE[w]!=Object.prototype[w]&&w.toLowerCase()!="movie"){F(u,w,AE[w])}}v.parentNode.replaceChild(u,v);q=u}}}return q}function F(t,q,r){var u=a("param");u.setAttribute("name",q);u.setAttribute("value",r);t.appendChild(u)}function X(r){var q=C(r);if(q&&(q.nodeName=="OBJECT"||q.nodeName=="EMBED")){if(h.ie&&h.win){if(q.readyState==4){B(r)}else{j.attachEvent("onload",function(){B(r)})}}else{q.parentNode.removeChild(q)}}}function B(t){var r=C(t);if(r){for(var q in r){if(typeof r[q]=="function"){r[q]=null}}r.parentNode.removeChild(r)}}function C(t){var q=null;try{q=K.getElementById(t)}catch(r){}return q}function a(q){return K.createElement(q)}function I(t,q,r){t.attachEvent(q,r);d[d.length]=[t,q,r]}function c(t){var r=h.pv,q=t.split(".");q[0]=parseInt(q[0],10);q[1]=parseInt(q[1],10)||0;q[2]=parseInt(q[2],10)||0;return(r[0]>q[0]||(r[0]==q[0]&&r[1]>q[1])||(r[0]==q[0]&&r[1]==q[1]&&r[2]>=q[2]))?true:false}function V(v,r){if(h.ie&&h.mac){return}var u=K.getElementsByTagName("head")[0],t=a("style");t.setAttribute("type","text/css");t.setAttribute("media","screen");if(!(h.ie&&h.win)&&typeof K.createTextNode!=b){t.appendChild(K.createTextNode(v+" {"+r+"}"))}u.appendChild(t);if(h.ie&&h.win&&typeof K.styleSheets!=b&&K.styleSheets.length>0){var q=K.styleSheets[K.styleSheets.length-1];if(typeof q.addRule==Q){q.addRule(v,r)}}}function W(t,q){var r=q?"visible":"hidden";if(e&&C(t)){C(t).style.visibility=r}else{V("#"+t,"visibility:"+r)}}function g(s){var r=/[\\\"<>\.;]/;var q=r.exec(s)!=null;return q?encodeURIComponent(s):s}var D=function(){if(h.ie&&h.win){window.attachEvent("onunload",function(){var w=d.length;for(var v=0;v<w;v++){d[v][0].detachEvent(d[v][1],d[v][2])}var t=i.length;for(var u=0;u<t;u++){X(i[u])}for(var r in h){h[r]=null}h=null;for(var q in swfobject){swfobject[q]=null}swfobject=null})}}();return{registerObject:function(u,q,t){if(!h.w3cdom||!u||!q){return}var r={};r.id=u;r.swfVersion=q;r.expressInstall=t?t:false;N[N.length]=r;W(u,false)},getObjectById:function(v){var q=null;if(h.w3cdom){var t=C(v);if(t){var u=t.getElementsByTagName(Q)[0];if(!u||(u&&typeof t.SetVariable!=b)){q=t}else{if(typeof u.SetVariable!=b){q=u}}}}return q},embedSWF:function(x,AE,AB,AD,q,w,r,z,AC){if(!h.w3cdom||!x||!AE||!AB||!AD||!q){return}AB+="";AD+="";if(c(q)){W(AE,false);var AA={};if(AC&&typeof AC===Q){for(var v in AC){if(AC[v]!=Object.prototype[v]){AA[v]=AC[v]}}}AA.data=x;AA.width=AB;AA.height=AD;var y={};if(z&&typeof z===Q){for(var u in z){if(z[u]!=Object.prototype[u]){y[u]=z[u]}}}if(r&&typeof r===Q){for(var t in r){if(r[t]!=Object.prototype[t]){if(typeof y.flashvars!=b){y.flashvars+="&"+t+"="+r[t]}else{y.flashvars=t+"="+r[t]}}}}f(function(){U(AA,y,AE);if(AA.id==AE){W(AE,true)}})}else{if(w&&!A&&c("6.0.65")&&(h.win||h.mac)){A=true;W(AE,false);f(function(){var AF={};AF.id=AF.altContentId=AE;AF.width=AB;AF.height=AD;AF.expressInstall=w;k(AF)})}}},getFlashPlayerVersion:function(){return{major:h.pv[0],minor:h.pv[1],release:h.pv[2]}},hasFlashPlayerVersion:c,createSWF:function(t,r,q){if(h.w3cdom){return U(t,r,q)}else{return undefined}},removeSWF:function(q){if(h.w3cdom){X(q)}},createCSS:function(r,q){if(h.w3cdom){V(r,q)}},addDomLoadEvent:f,addLoadEvent:R,getQueryParamValue:function(v){var u=K.location.search||K.location.hash;if(v==null){return g(u)}if(u){var t=u.substring(1).split("&");for(var r=0;r<t.length;r++){if(t[r].substring(0,t[r].indexOf("="))==v){return g(t[r].substring((t[r].indexOf("=")+1)))}}}return""},expressInstallCallback:function(){if(A&&M){var q=C(m);if(q){q.parentNode.replaceChild(M,q);if(l){W(l,true);if(h.ie&&h.win){M.style.display="block"}}M=null;l=null;A=false}}}}}();var HollandCom=HollandCom||{};$(function(){HollandCom.initializeObjects(document.documentElement)});HollandCom.initializeObjects=function(){$(".sub-nav.toggleable").each(function(){new HollandCom.SubNavigation(this)})};HollandCom.FauxDropdown=(function(){var f=function(){$(".faux-dropdown").each(function(){h(this)});$("body").click(function(){var n=$("#mapOpacityLayer").get(0);var m=true;if(n){m=($(n).css("display")=="none")}if(m){$(".faux-dropdown").each(function(){j(this)})}})};var h=function(m){c(m);if($(m).is("#category-selector")){b(m);$("#category").hide();e(m)}};var b=function(r){var n=new Array();var o=new Array();$(r).find("li").each(function(){n.push(this)});n[0].style.styleFloat="none";n[0].style.cssFloat="none";o.push(n.shift());var m=Math.ceil(n.length/2);for(p=0;p<m;p++){o.push(n[p]);o.push(n[p+m])}var q=$("ul",r);q.empty();for(var p=0;o[p]!=undefined;p++){q.append(o[p])}};var c=function(m){$(m).find(".select").click(function(){g(this);return false});$(m).find(".options a").focus(function(){k(this)});$(m).find("li:last-child a").blur(function(){j(this)});$(".poi-search").submit(function(r){$(".poi-search").unbind();var n=$("#category")[0];var p=$(n).val();if(typeof p!=="undefined"&&p!=""&&p!="all"){$(this).attr("action",$(this).attr("action").replace(/^(.*)\/(.*)\/([^\/]+)$/,"$1/$2/"+p+".jsp"))}if(typeof(pageTracker)!=="undefined"){var t=$("#keyword")[0];var o=$(t).val();var w=$("#region")[0];var x=$(w).val();var s=$("#city")[0];var q=$(s).val();var v=$("form.poi-search div#refinesearch input:checkbox:checked").serializeArray();var u=$("form.poi-search div#refinesearch select[value!='']").serializeArray();if(v.length>0||u.length>0){pageTracker._trackPageview(root+"/functions/search_advanced/");if(p!=""){pageTracker._trackPageview(root+"/functions/search_advanced/category/"+p)}if(o!=""){pageTracker._trackPageview(root+"/functions/search_advanced/keyword/"+o)}if(x!=""){pageTracker._trackPageview(root+"/functions/search_advanced/region/"+x)}if(q!=""){pageTracker._trackPageview(root+"/functions/search_advanced/city/"+q)}jQuery.each(v,function(y,z){pageTracker._trackPageview(root+"/functions/search_advanced/"+z.name+"/"+z.value)});jQuery.each(u,function(y,z){pageTracker._trackPageview(root+"/functions/search_advanced/"+z.name+"/"+z.value)})}else{pageTracker._trackPageview(root+"/functions/search_simple/");if(p!=""){pageTracker._trackPageview(root+"/functions/search_simple/category/"+p)}if(o!=""){pageTracker._trackPageview(root+"/functions/search_simple/keyword/"+o)}if(x!=""){pageTracker._trackPageview(root+"/functions/search_simple/region/"+x)}if(q!=""){pageTracker._trackPageview(root+"/functions/search_simple/city/"+q)}}}})};var e=function(m){$(m).show().find(".options a").click(function(n){a(this);$(m).trigger("change");n.preventDefault();$("#refinesearch").hide();$("#inthisregion").hide();return false})};var d=function(m){return $(m).parents(".faux-dropdown").andSelf()[0]};var g=function(m){if($(d(m)).hasClass("expand")){j(m)}else{k(m)}};var k=function(m){$(d(m)).addClass("expand");if($.browser.msie&&$.browser.version<=7){$(m).parents("form").find("select").css("visibility","hidden")}};var j=function(m){$(d(m)).removeClass("expand");if($.browser.msie&&$.browser.version<=7){$(m).parents("form").find("select").css("visibility","visible")}};var a=function(p){var m=$(d(p));m.find(".selected").removeClass("selected");$(p).addClass("selected");var o=$.trim($(p).attr("rel"));var n=$.trim($(p).text());if(o=="evenement"){$(".eventdates").show()}else{$(".eventdates").hide();$("#startdate").val("");$("#enddate").val("")}m.find(".select span").text(n).attr("title",n);if(m.is("#category-selector")){$("#category").val(o);$("#keyword").focus()}j(p)};var i=function(t,n){if(typeof(n)!=="undefined"&&n.length>0){var m=$('<div class="faux-dropdown" id="'+t+'"></div>');var q=$('<a href="#'+t+'-options" class="select"><span></span></a>');var o=$('<div class="options"><ul></ul></div>');var s=$("ul",o);var r=null;for(var p=0;n[p]!==undefined;p++){s.append($('<li><a href="#'+n[p].value+'">'+n[p].label+"</a></li>"))}m.append(q,o);e(m);a($("a",s).get(0));return m}};var l=function(){$(document).ready(function(){f()})};return{init:l,generate:i,setupDropDown:h}})();HollandCom.FauxDropdown.init();$(document).ready(function(){this.lightboxController=new HollandCom.LightboxController();$(function d(){$(".accordion h3").append('<span class="open">open</span>');$(".accordion h3 + div").hide();$(".accordion h3").click(function(){$(".accordion :header + div").hide().removeClass().prev().removeClass();$(this).next().toggle().addClass("opened");$(this).addClass("active")}).css("cursor","pointer");$(".accordion .innerpanel h4 + div").hide();$(".accordion .innerpanel h4").click(function(){$(".accordion .innerpanel h4").removeClass().css("cursor","pointer");$(".accordion .innerpanel h4 + div").hide();$(this).addClass("active").next().toggle().addClass("opened");$(this).addClass("active").css("cursor","text")}).css("cursor","pointer")});$(".searchfilter :header + div").hide();$(".searchfilter h3:first").next().show();$(".searchfilter :header").click(function(){$(this).next().toggle();$(this).toggleClass("open")}).css("cursor","pointer");function g(l){return(l!=null&&l<10&&l>=0?"0":"")+l}$(function b(){if(typeof $("#from-year").datepick=="function"){function o(p){$("#from-month").val(p.length?g(p[0].getMonth()+1):"");$("#from-day").val(p.length?g(p[0].getDate()):"");$("#from-year").val(p.length?p[0].getFullYear():"");if(typeof(setCheckinDate)=="function"){setCheckinDate()}}function m(p){$("#to-month").val(p.length?g(p[0].getMonth()+1):"");$("#to-day").val(p.length?g(p[0].getDate()):"");$("#to-year").val(p.length?p[0].getFullYear():"");if(typeof(setCheckoutDate)=="function"){setCheckoutDate()}}function l(p){$("#from-month-hotels").val(p.length?g(p[0].getMonth()+1):"");$("#from-day-hotels").val(p.length?g(p[0].getDate()):"");$("#from-year-hotels").val(p.length?p[0].getFullYear():"");if(typeof(setCheckinDate)=="function"){setCheckinDate()}}function n(p){$("#to-month-hotels").val(p.length?g(p[0].getMonth()+1):"");$("#to-day-hotels").val(p.length?g(p[0].getDate()):"");$("#to-year-hotels").val(p.length?p[0].getFullYear():"");if(typeof(setCheckoutDate)=="function"){setCheckoutDate()}}$("#from-month, #from-day").datepick({onSelect:o});$("#from-year").datepick({onSelect:o,showTrigger:'<span class="cal-from-popup"></span>'});$("#to-month, #to-day").datepick({onSelect:m});$("#to-year").datepick({onSelect:m,showTrigger:'<span class="cal-to-popup"></span>'});$("#from-month-hotels, #from-day-hotels").datepick({onSelect:l});$("#from-year-hotels").datepick({onSelect:l,showTrigger:'<span class="cal-from-popup"></span>'});$("#to-month-hotels, #to-day-hotels").datepick({onSelect:n});$("#to-year-hotels").datepick({onSelect:n,showTrigger:'<span class="cal-to-popup"></span>'})}});$(function f(){$(".book-now .booking-panel").hide();$(".book-now .btn-orange").click(function(){$(".book-now .booking-panel").slideDown("fast")})});$(function h(){var m=$(".photo_viewer li").size();var l=1;$(".photo_viewer").append('<span class="photo_controls"><a href="#" class="photo_prev">&lt;</a><a href="#" class="photo_next"><span class="count">'+(l)+'</span>/<span class="total">'+m+'</span> <span class="arr-next">&gt;</span></a></span>');$(".photo_viewer li").css("display","none");$(".photo_viewer li:first-child").css("display","block");$(".photo_controls .photo_next").click(function(){$(".photo_viewer li").css("display","none");if(l==m){l=0}l++;$(".photo_viewer li:nth-child("+(l)+")").css("display","block");$(".photo_next .count").replaceWith('<span class="count">'+(l)+"</span>");return false});$(".photo_controls .photo_prev").click(function(){l--;if(l<1){l=m}if(l==(m+1)){l--}$(".photo_viewer li").css("display","none");$(".photo_viewer li:nth-child("+(l)+")").css("display","block");$(".photo_next .count").replaceWith('<span class="count">'+(l)+"</span>");return false})});$(function c(){if(jQuery.isFunction(jQuery.jcarousel)){jQuery(".carousel").jcarousel({wrap:"circular"})}});$(function i(){$(".map-destinations-ankeiler").click(function(){var m=$(this).attr("href");var l=$(this).parent().next(".map-layover");$(l).fadeIn("600");$(l).append('<iframe width="940" height="600" src="'+m+'" frameBorder="0" />');$(".close-layover").click(function(){$(".layover, .map-layover").fadeOut("600");$(l).remove('<iframe width="940" height="600" src="'+m+'" frameBorder="0" />');return false});return false})});$(function k(){$(".brochure-ankeiler").click(function(){var l=$(this).attr("href");$(".layover, .brochure-layover").fadeIn("600");$(".brochure-layover").append('<iframe width="100" height="100" src="'+l+'" frameBorder="0" />');$(".close-layover").click(function(){$(".layover, .brochure-layover").fadeOut("600");return false});return false})});$(function e(){$(".brochure-jotform").click(function(){var l=this.form.action;var m=[];$('form input[type="checkbox"]:checked').each(function(){m.push($(this).val())});var o=m.join(",");if(o==null||o==""){$(this).parent().children(".validationsummary").text("Select one or more brochures").show();return false}$(this).parent().children(".validationsummary").hide();var n="?hidden="+o;l=l+n;if(typeof(pageTracker)!=="undefined"){}window.location=l;return false})});$(function a(){$(".video-ankeiler").click(function(){$(".layover, .video-layover").fadeIn("600");$(".close-layover").click(function(){$(".layover, .video-layover").fadeOut("600");return false});return false})});$(function j(){$(".map-detail-ankeiler").click(function(){$(".layover, .map-layover").fadeIn("600");$(".close-layover").click(function(){$(".layover, .map-layover").fadeOut("600");return false});return false})})});HollandCom.VideoOverLay=function(c,b,a){this.div_overlay=c||$('<div class="overlay" id="video-overlay"><div id="player" class="player"></div></div>');this.div_overlay_id=$(b)||$("video-overlay");this.playerid="player";this.left="center";this.element=a;this.init()};HollandCom.VideoOverLay.prototype={init:function(){},addOverLay:function(){try{if(this.div_overlay_id.length==0){this.div_overlay.hide();$("body").append(this.div_overlay)}this.element.overlay({expose:{color:"#333",loadSpeed:200,opacity:0.5},left:this.left,closeOnClick:true,target:this.div_overlay,onClose:function(c){var b=window.document.player;if(b&&b.sendEvent){b.sendEvent("STOP")}},onBeforeLoad:function(j){var b=this.getTrigger();var g=b.attr("rel");var d=b.attr("rev");if(!d){d="3"}var c="player";if(swfobject.hasFlashPlayerVersion("9.0.0")){var f={data:"/static/globalpresentation/flash/player.swf",width:"560",height:"340"};var i={flashvars:"file="+g+"&skin=/static/globalpresentation/flash/stylish.swf&plugin.activeitem="+d+"&plugin.title=Videoplayer&plugins=/static/globalpresentation/flash/plugin.swf&autostart=true",allowfullscreen:true};var h=swfobject.createSWF(f,i,c)}}})}catch(a){}}};HollandCom.DestinationMap=function(a){this.obj=a;this.map=null;this.data=null;this.bounds=null;this.cityPage=false;this.zoom=8;this.gMarkers=[];this.toolTips=false;this.init()};HollandCom.DestinationMap.prototype={init:function(){if(google&&google.maps&&typeof googlemapsdata!=="undefined"&&GBrowserIsCompatible()){this.data=googlemapsdata;if(this.data.categories.length==1){this.cityPage=true}if(typeof Tooltip==="function"){this.toolTips=true}this.map=new google.maps.Map2(this.obj);var a=new google.maps.LatLng(52.2,5);this.map.setCenter(a,this.zoom);this.map.setMapType(G_PHYSICAL_MAP);this.map.addControl(new GLargeMapControl3D(),new GControlPosition(G_ANCHOR_TOP_LEFT,new GSize(250,10)));this.map.enableScrollWheelZoom();this.addMarkersMenu();if(this.cityPage===true&&this.bounds!=="null"){this.map.setCenter(this.bounds.getCenter(),this.map.getBoundsZoomLevel(this.bounds)-1)}}else{$(this.obj).hide()}},addMarkersMenu:function(){var b=this;var a=$('<div id="map-menu"></div>');$(this.obj).after(a);$.each(this.data.categories,function(c,d){if(d&&d.items.length>0){b.gMarkers[c]=[];a.append('<h2><a href="#">'+d.title+'</a></h2><ol style="display: none;"></ol>');$.each(d.items,function(f,g){if(g&&typeof g.point!=="undefined"){var e=f+1;a.find("ol:last").append('<li><a href="#"><span class="num">'+e+'</span><span class="title">'+g.title+"</span</a></li>");b.addMarker(g,e,c)}})}});this.toggleMarkers(0);$("#map-menu h2").each(function(c){$(this).children("a").click(function(){b.toggleMarkers(c);return false});$(this).next("ol").find("li").each(function(d){if(typeof b.gMarkers[c][d]!=="undefined"){$(this).hover(function(){if($(this).parent("ol").not(":animated").length==1){GEvent.trigger(b.gMarkers[c][d],"mouseover")}},function(){GEvent.trigger(b.gMarkers[c][d],"mouseout")});$(this).bind("click",function(){$(this).addClass("active");$("#map-menu > ol > li.active").removeClass("active");GEvent.trigger(b.gMarkers[c][d],"click");return false})}})})},addMarker:function(g,d,c){var h=this;var e=new GIcon();e.image=imagerootfolder+"/gfx/markers/numbers/orange/orange"+d+".png";e.shadow=imagerootfolder+"/gfx/markers/numbers/shadow.png";e.iconSize=new GSize(27,27);e.shadowSize=new GSize(41,27);e.iconAnchor=new GPoint(13,27);e.infoWindowAnchor=new GPoint(23,13);var a=new google.maps.LatLng(g.point.lat,g.point.lng);var b=new GMarker(a,e);b.hoverImage=new Image();b.hoverImage.src=imagerootfolder+"/gfx/markers/numbers/blue/blue"+d+".png";this.map.addOverlay(b);GEvent.addListener(b,"click",function(){var i='<div id="infowindow"><h2>'+g.title+"</h2>";if(g.description!=""&&g.image!=""){i+='<div class="description"><div class="figure shadow"><img src="'+g.image+'" style="width: 144px; height: 90px;" alt="" /></div>'+g.description+"</div>"}else{if(g.description!=""){i+='<div class="description">'+g.description+"</div"}else{if(g.image!=""){i+='<div class="figure shadow"><img src="'+g.image+'" style="width: 144px; height: 90px;" alt="" /></div>'}}}if(g.link!=""){i+='<a class="more" target="_top" href="'+g.link+'"> '+g.linktext+"<span> </span></a>"}h.map.openInfoWindowHtml(a,i,{maxWidth:400})});if(this.toolTips){var f=new Tooltip(b,g.title,1);b.tooltip=f;this.map.addOverlay(f);GEvent.addListener(b,"mouseover",function(){this.setImage(this.hoverImage.src);this.tooltip.show()});GEvent.addListener(b,"mouseout",function(){this.setImage(e.image);this.tooltip.hide()})}else{GEvent.addListener(b,"mouseover",function(){this.setImage(this.hoverImage.src)});GEvent.addListener(b,"mouseout",function(){this.setImage(e.image)})}this.gMarkers[c].push(b)},toggleMarkers:function(a){var d=this,c=$("#map-menu > ol").eq(a),b=$("#map-menu > h2").eq(a);$("#map-menu > h2.active").removeClass("active");b.addClass("active");c.slideDown("fast").siblings("ol:visible").slideUp("fast");this.map.getInfoWindow().hide();this.bounds=new GLatLngBounds();$.each(this.gMarkers,function(e,f){if(typeof f!=="undefined"){$.each(f,function(h,g){if(typeof g!=="undefined"){if(e==a){d.bounds.extend(g.getPoint());g.show()}else{g.hide()}}})}});this.map.setCenter(this.bounds.getCenter(),this.map.getBoundsZoomLevel(this.bounds)-1)}};HollandCom.POIMap=function(c,b,a){this.obj=c;this.width=b||940;this.height=a||480;this.map=null;this.bounds=null;this.zoom=8;this.gMarkers=[];this.photos=null;this.centreHolland=new GLatLng(52.2,5);this.currentObject=null;this.currentObjectMarker=null;this.toolTips=false;this.gControl=new GLargeMapControl3D();this.init()};HollandCom.POIMap.prototype={init:function(){if(typeof googlemapsdata!=="undefined"&&google&&google.maps&&GBrowserIsCompatible()){var g=this;this.doResize=false;if(typeof Tooltip==="function"){this.toolTips=true}this.data=googlemapsdata;this.addMap();var d=true;$.each(this.data.categories,function(l,m){if(!d&&m.items.length>0){g.gMarkers[l]=[];var j=$('<input type="checkbox" name="cat-'+m.title+'" id="cat-'+m.title+'"></input>');var k=$('<label for="cat-'+m.title+'" >'+m.displaytitle+"</label>");var h=$("<li></li>");var n=$('<div class="'+m.color+'"></div>');$("#map-categories").append(h.append(j,n,k));$.each(m.items,function(o,p){var i=p.isCurrentObject;g.addMarker(p,l,i);if(i){g.currentObject=p}})}if(d&&m.items.length>0){d=false;g.gMarkers[l]=[];$("#map-categories").append("<h3>"+m.displaytitle+"</h3>");var j=$('<input type="hidden" name="cat-'+m.title+'" id="cat-'+m.title+'"></input>');$("#map-categories").append(j);$.each(m.items,function(o,p){var i=p.isCurrentObject;g.addMarker(p,l,i);if(i){g.currentObject=p}})}});this.mapZoomCenter();this.addEventHandlers();var a=$("#showDetail").get(0);if(a){$(a).bind("click",{tab:a},function(h){g.showDetail(h,g.doResize)})}var b=$("#showRoute").get(0);if(b){$(b).bind("click",{tab:b},function(h){g.showRoute(h)})}var f=$("#closeRoute").get(0);if(f){$(f).bind("click",{tab:f},function(h){g.showDetail(h,g.doResize)})}var e=$("form#routeStart").get(0);var c=$("form#routeStartPoint").get(0);$("#mapRouteSubmit").bind("click",{form:e},function(h){g.showDirections(h)});$("#mapRouteSubmitPoint").bind("click",{form:c},function(h){g.showDirections(h)});this.gdir=new GDirections(this.map,document.getElementById("directions"));GEvent.addListener(this.gdir,"load",function(){g.onGDirectionsLoad()});GEvent.addListener(this.gdir,"error",function(){g.handleErrors()});$("#mapPrint").bind("click",function(h){window.print();return false});$(a).trigger("click");this.doResize=true}else{$(this.obj).hide()}},mapResize:function(){this.map.checkResize()},addMap:function(){var b={size:new GSize(this.width,this.height)};this.map=new google.maps.Map2(this.obj,b);this.map.setMapType(G_PHYSICAL_MAP);this.map.addControl(this.gControl,new GControlPosition(G_ANCHOR_TOP_LEFT,new GSize(250,10)));this.map.disableScrollWheelZoom();var a=new google.maps.LatLng(52.2,5);this.map.setCenter(a,this.zoom)},addMarker:function(a,i,h){var e=this;if(a&&typeof(a.point)!=="undefined"){if(h=="true"){a.showOnLoad=h}var b=this.data.categories[i].icon;var g=a.showOnLoad||"false";var f=new GIcon();if(g=="true"){f.image=imagerootfolder+"/gfx/markers/poi/blue/"+b+".png"}else{f.image=imagerootfolder+"/gfx/markers/poi/orange/"+b+".png"}f.shadow=imagerootfolder+"static/gfx/markers/poi/shadow.png";f.iconSize=new GSize(32,37);f.shadowSize=new GSize(51,37);f.iconAnchor=new GPoint(16,37);f.infoWindowAnchor=new GPoint(16,18);var d=new GLatLng(a.point.lat,a.point.lng);var c=new GMarker(d,f);c.hoverImage=new Image();if(g=="true"){c.hoverImage.src=imagerootfolder+"/gfx/markers/poi/orange/"+b+".png"}else{c.hoverImage.src=imagerootfolder+"/gfx/markers/poi/blue/"+b+".png"}c.showOnLoad=g;this.map.addOverlay(c);if(c.showOnLoad=="false"&&!h){c.hide()}if(h){this.currentObjectMarker=c}GEvent.addListener(c,"click",function(){var k='<div id="infowindow"><h2>'+a.title+"</h2>";if(a.description!=""&&a.image!=""){k+='<div class="description"><div class="figure shadow"><img src="'+a.image+'" style="width: 100px; height: 70px;" alt="" /></div>'+a.description+"</div>"}else{if(a.description!=""){k+='<div class="description">'+a.description+"</div>"}else{if(a.image!=""){k+='<div class="figure shadow"><img src="'+a.image+'" style="width: 144px; height: 90px;" alt="" /></div>'}}}if(a.link!=""){k+='<a class="more" href="'+a.link+'">'+a.linktext+"<span></span></a>"}k+="</div>";e.map.openInfoWindowHtml(d,k,{maxWidth:300});if(typeof pageTracker!=="undefined"){pageTracker._trackPageview(root+"/functions/maps/landmark"+a.id)}});if(this.toolTips){var j=new Tooltip(c,a.title,1);c.tooltip=j;this.map.addOverlay(j);GEvent.addListener(c,"mouseover",function(){this.setImage(this.hoverImage.src);this.tooltip.show()});GEvent.addListener(c,"mouseout",function(){this.setImage(f.image);this.tooltip.hide()})}else{GEvent.addListener(c,"mouseover",function(){this.setImage(this.hoverImage.src)});GEvent.addListener(c,"mouseout",function(){this.setImage(f.image)})}this.gMarkers[i].push(c)}},toggleMarkers:function(b,a){var d=this;this.map.getInfoWindow().hide();var c=this.gMarkers[b];$.each(c,function(f,e){if(typeof e!=="undefined"){if(a===true){d.bounds.extend(e.getPoint());e.show()}else{if(e.showOnLoad=="false"){e.hide()}}}});this.mapZoomCenter()},mapZoomCenter:function(){var b=this;this.bounds=new GLatLngBounds();$.each(this.gMarkers,function(c,d){if(typeof d!=="undefined"){$.each(d,function(f,e){if(typeof e!=="undefined"){if(e.isHidden()===false){b.bounds.extend(e.getPoint())}}})}});var a=this.map.getBoundsZoomLevel(this.bounds);if(a>18){a=18}this.map.setCenter(this.bounds.getCenter(),a)},addEventHandlers:function(){var a=this;$("#show-photos").click(function(){a.togglePhotos($(this).attr("checked"))});$("#map-categories input").each(function(b){$(this).click(function(){a.toggleMarkers(b,$(this).attr("checked"))})})},togglePhotos:function(a){if(a===true&&this.photos===null){this.photos=new GLayer("com.panoramio.all");this.map.addOverlay(this.photos)}else{if(a===true){this.photos.show()}else{if(this.photos!==null){this.photos.hide()}}}},showDetail:function(b,a){if(this.currentObjectMarker){this.currentObjectMarker.show()}HollandCom.preventDefault(b);this.map.setMapType(G_NORMAL_MAP);$("#route-menu").hide();$("#directions").hide();$("#map-menu").show();$("#showRoute").show();if(a===true){this.mapResizeToFull()}this.activateTab(b.data.tab);this.mapZoomCenter();this.resetPhotosAndPOIs();return false},mapResizeToHalf:function(a){$("#map-poi").css("left","490px");$("#map-poi").width(470);this.map.removeControl(this.gControl);this.map.addControl(this.gControl,new GControlPosition(G_ANCHOR_TOP_LEFT,new GSize(10,10)));this.mapResize()},mapResizeToFull:function(a){$("#map-poi").css("left","20px");$("#map-poi").width(940);this.map.removeControl(this.gControl);this.map.addControl(this.gControl,new GControlPosition(G_ANCHOR_TOP_LEFT,new GSize(250,10)));this.mapResize()},showRoute:function(b,a){HollandCom.preventDefault(b);if(this.currentObject!=null){$("#route-menu").show();$("#directions").show();$("#map-menu").hide();$("#showRoute").hide();this.mapResizeToHalf();this.mapZoomCenter();this.activateTab(b.data.tab)}return false},resetPhotosAndPOIs:function(a){this.togglePhotos($("#show-photos").attr("checked"));var b=this;$("#map-categories input").each(function(c){b.toggleMarkers(c,$(this).attr("checked"))})},activateTab:function(b){var a=$(b).parents("ul").get(0);if(a){$("a.active",a).removeClass("active")}$(b).addClass("active");if(this.gdir!=="undefined"){this.gdir.clear();$("#directions").hide();$("#routeSummary").html("");$("#routeSummary").hide();$("#routeError").html("");$("#routeError").hide()}},setDirections:function(a,b){this.gdir.load("from: "+a+" to: "+b,{locale:this.data.directionLocale})},showDirections:function(c){HollandCom.preventDefault(c);var b=c.data.form;var a="";$("#routeError").html("");$("#routeError").hide();var f=this.currentObject.point.lat+","+this.currentObject.point.lng;f=$("#poiName").text()+" - "+$("#poiAddress").text()+" - "+$("#poiCity").text()+"@"+f;if(b.id=="routeStart"){var d=b.country.options[b.country.selectedIndex].value;if(d==""){d=b.country.options[b.country.selectedIndex].text}if(b.address.value!=""){a=b.address.value+", "}if(b.city.value!=""){a+=b.city.value+", "}a+=d;$("#mapairports").val("")}else{if(b.airports.selectedIndex!=0){a=b.airports.options[b.airports.selectedIndex].text+"@"+b.airports.value}}if(a!=""){$(b).addClass("spinnerOn");this.setDirections(a,f)}return false},handleErrors:function(){var a="";switch(this.gdir.getStatus().code){case G_GEO_BAD_REQUEST:a=MAP_TECHNICAL_ERROR;break;case G_GEO_SERVER_ERROR:a=MAP_TECHNICAL_ERROR;break;case G_GEO_MISSING_QUERY:a=MAP_TECHNICAL_ERROR;break;case G_GEO_UNKNOWN_ADDRESS:a=MAP_UNKNOWN_ADDRESS;break;case G_GEO_UNAVAILABLE_ADDRESS:a=MAP_UNAVAILABLE_ADDRESS;break;case G_GEO_UNKNOWN_DIRECTIONS:a=MAP_UNKNOWN_DIRECTIONS;break;case G_GEO_BAD_KEY:a=MAP_TECHNICAL_ERROR;break;case G_GEO_BAD_KEY:a=MAP_TECHNICAL_ERROR;break;default:a=MAP_TECHNICAL_ERROR}a+="<!-- ERRORCODE: "+this.gdir.getStatus().code+"-->";$("#routeError").show();$("#routeError").html(a);$("#route-menu form").removeClass("spinnerOn")},onGDirectionsLoad:function(){if(this.photos){this.photos.hide()}$.each(this.gMarkers,function(a,b){if(typeof b!=="undefined"){$.each(b,function(d,c){if(typeof c!=="undefined"){c.hide()}})}});$("#directions").show();$("#route-menu").hide()}};HollandCom.SearchMap=function(c,b,a){this.obj=c;this.width=b||940;this.height=a||480;this.map=null;this.bounds=null;this.zoom=8;this.gMarkers=[];this.photos=null;this.centreHolland=new GLatLng(52.2,5);this.currentObject=null;this.currentObjectMarker=null;this.toolTips=false;this.gControl=new GLargeMapControl3D();this.init()};HollandCom.SearchMap.prototype={init:function(){if(typeof googlemapsdata!=="undefined"&&google&&google.maps&&GBrowserIsCompatible()){var b=this;googlemapsdata=jQuery.parseJSON(googlemapsdata.replace(/\'/g,'"'));this.doResize=false;if(typeof Tooltip==="function"){this.toolTips=true}this.data=googlemapsdata;this.addMap();$.each(this.data.categories,function(g,h){if(h.items.length>0){$("#map-menu").append("<h4>Start</h4>");var d=false;if(h.icon==="article"){d=true}$("#map-menu").append("<h4>Continue</h4>");b.gMarkers[g]=[];if(d){$("#map-menu").append('<h4 class="current-article" >'+h.displaytitle+"</h4>")}else{var e=$('<input type="checkbox" name="cat-'+h.title+'" id="cat-'+h.title+'" />');var f=$('<label for="cat-'+h.title+'" >'+h.displaytitle+"</label>");var c=$("<li></li>");var j=$('<div class="'+h.color+'"></div>');$("#map-categories").append(c.append(e,j,f))}$.each(h.items,function(k,l){var i=l.isCurrentObject;b.addMarker(l,g,i);if(i){b.currentObject=l}})}});this.mapZoomCenter();var a=$("#showDetail").get(0);if(a){$(a).bind("click",{tab:a},function(c){b.showDetail(c,b.doResize)})}$("#mapPrint").bind("click",function(c){window.print();return false});$(a).trigger("click");this.doResize=true}else{$(this.obj).hide()}},mapResize:function(){this.map.checkResize()},addMap:function(){var b={size:new GSize(this.width,this.height)};this.map=new google.maps.Map2(this.obj,b);this.map.setMapType(G_PHYSICAL_MAP);this.map.addControl(this.gControl,new GControlPosition(G_ANCHOR_TOP_LEFT,new GSize(10,10)));this.map.disableScrollWheelZoom();var a=new google.maps.LatLng(52.2,5);this.map.setCenter(a,this.zoom)},addMarker:function(a,i,h){var e=this;if(a&&typeof(a.point)!=="undefined"){if(h=="true"){a.showOnLoad=h}var b=this.data.categories[i].icon;var g=a.showOnLoad||"false";var f=new GIcon();if(g=="true"){f.image=imagerootfolder+"/gfx/markers/poi/blue/"+b+".png"}else{f.image=imagerootfolder+"/gfx/markers/poi/orange/"+b+".png"}f.shadow=imagerootfolder+"static/gfx/markers/poi/shadow.png";f.iconSize=new GSize(32,37);f.shadowSize=new GSize(51,37);f.iconAnchor=new GPoint(16,37);f.infoWindowAnchor=new GPoint(16,18);var d=new GLatLng(a.point.lat,a.point.lng);var c=new GMarker(d,f);c.hoverImage=new Image();if(g=="true"){c.hoverImage.src=imagerootfolder+"/gfx/markers/poi/orange/"+b+".png"}else{c.hoverImage.src=imagerootfolder+"/gfx/markers/poi/blue/"+b+".png"}c.showOnLoad=g;this.map.addOverlay(c);if(c.showOnLoad=="false"&&!h){c.hide()}if(h){this.currentObjectMarker=c}GEvent.addListener(c,"click",function(){var k='<div id="infowindow"><h2>'+a.title+"</h2>";if(a.description!=""&&a.image!=""){k+='<div class="description"><div class="figure shadow"><img src="'+a.image+'" style="width: 100px; height: 70px;" alt="" /></div>'+a.description+"</div>"}else{if(a.description!=""){k+='<div class="description">'+a.description+"</div>"}else{if(a.image!=""){k+='<div class="figure shadow"><img src="'+a.image+'" style="width: 144px; height: 90px;" alt="" /></div>'}}}if(a.link!=""){k+='<a class="more" href="'+a.link+'">'+a.linktext+"<span></span></a>"}k+="</div>";e.map.openInfoWindowHtml(d,k,{maxWidth:300});if(typeof pageTracker!=="undefined"){pageTracker._trackPageview(root+"/functions/maps/landmark"+a.id)}});if(this.toolTips){var j=new Tooltip(c,a.title,1);c.tooltip=j;this.map.addOverlay(j);GEvent.addListener(c,"mouseover",function(){this.setImage(this.hoverImage.src);this.tooltip.show()});GEvent.addListener(c,"mouseout",function(){this.setImage(f.image);this.tooltip.hide()})}else{GEvent.addListener(c,"mouseover",function(){this.setImage(this.hoverImage.src)});GEvent.addListener(c,"mouseout",function(){this.setImage(f.image)})}this.gMarkers[i].push(c)}},toggleMarkers:function(b,a){var d=this;this.map.getInfoWindow().hide();var c=this.gMarkers[b];$.each(c,function(f,e){if(typeof e!=="undefined"){if(a===true){d.bounds.extend(e.getPoint());e.show()}else{if(e.showOnLoad=="false"){e.hide()}}}});this.mapZoomCenter()},mapZoomCenter:function(){var a=this;this.bounds=new GLatLngBounds();$.each(this.gMarkers,function(b,c){if(typeof c!=="undefined"){$.each(c,function(e,d){if(typeof d!=="undefined"){if(d.isHidden()===false){a.bounds.extend(d.getPoint())}}})}});this.map.setCenter(this.bounds.getCenter(),this.map.getBoundsZoomLevel(this.bounds))},togglePhotos:function(a){if(a===true&&this.photos===null){this.photos=new GLayer("com.panoramio.all");this.map.addOverlay(this.photos)}else{if(a===true){this.photos.show()}else{if(this.photos!==null){this.photos.hide()}}}},showDetail:function(b,a){if(this.currentObjectMarker){this.currentObjectMarker.show()}HollandCom.preventDefault(b);this.map.setMapType(G_NORMAL_MAP);$("#route-menu").hide();$("#directions").hide();$("#map-menu").show();$("#showRoute").show();if(a===true){this.mapResizeToFull()}this.activateTab(b.data.tab);this.mapZoomCenter();this.resetPhotosAndPOIs();return false},mapResizeToFull:function(a){$("#map-poi").css("left","20px");$("#map-poi").width(940);this.map.removeControl(this.gControl);this.map.addControl(this.gControl,new GControlPosition(G_ANCHOR_TOP_LEFT,new GSize(10,10)));this.mapResize()},resetPhotosAndPOIs:function(a){this.togglePhotos($("#show-photos").attr("checked"));var b=this;$("#map-categories input").each(function(c){b.toggleMarkers(c,$(this).attr("checked"))})},activateTab:function(b){var a=$(b).parents("ul").get(0);if(a){$("a.active",a).removeClass("active")}$(b).addClass("active");if(this.gdir!=="undefined"){this.gdir.clear();$("#directions").hide();$("#routeSummary").html("");$("#routeSummary").hide();$("#routeError").html("");$("#routeError").hide()}},handleErrors:function(){var a="";switch(this.gdir.getStatus().code){case G_GEO_BAD_REQUEST:a=MAP_TECHNICAL_ERROR;break;case G_GEO_SERVER_ERROR:a=MAP_TECHNICAL_ERROR;break;case G_GEO_MISSING_QUERY:a=MAP_TECHNICAL_ERROR;break;case G_GEO_UNKNOWN_ADDRESS:a=MAP_UNKNOWN_ADDRESS;break;case G_GEO_UNAVAILABLE_ADDRESS:a=MAP_UNAVAILABLE_ADDRESS;break;case G_GEO_UNKNOWN_DIRECTIONS:a=MAP_UNKNOWN_DIRECTIONS;break;case G_GEO_BAD_KEY:a=MAP_TECHNICAL_ERROR;break;case G_GEO_BAD_KEY:a=MAP_TECHNICAL_ERROR;break;default:a=MAP_TECHNICAL_ERROR}a+="<!-- ERRORCODE: "+this.gdir.getStatus().code+"-->";$("#routeError").show();$("#routeError").html(a);$("#route-menu form").removeClass("spinnerOn")}};HollandCom.preventDefault=function(a){if(a.preventDefault){a.preventDefault()}else{a.cancelBubble=true}};$(document).ready(function(){if(document.getElementById("map-destinations")){new HollandCom.DestinationMap(document.getElementById("map-destinations"))}if(document.getElementById("map-poi")){new HollandCom.POIMap(document.getElementById("map-poi"))}if(document.getElementById("map-search")){new HollandCom.SearchMap(document.getElementById("map-search"))}if($("a.video")){var a=$("a.video");var c=$('<div class="overlay" id="video-overlay"><div id="player" class="player"></div></div>');var b=new HollandCom.VideoOverLay(c,"video-overlay",a);b.addOverLay()}if($(".video a")){var a=$(".video a");var c=$('<div class="overlay" id="video-overlay"></div><div id="player" class="player"></div>');var b=new HollandCom.VideoOverLay(c,"video-overlay",a);b.addOverLay()}});HollandCom.LightboxController=function(){this.lightboxTriggers=$(".lightbox-trigger");if(this.lightboxTriggers.length>0){this.initiateLightbox()}};HollandCom.LightboxController.prototype.initiateLightbox=function(){var a=this;this.lightboxTriggers.each(function(){$(this).bind("click",$.proxy(a.setupLightbox,a))});$("body").append('<div id="lightbox"></div><div id="lightbox-container"><a class="closeButton" href="#">Sluiten</a></div>')};HollandCom.LightboxController.prototype.setupLightbox=function(c){c.stopPropagation();this.contentContainer=this.returnContent($(c.currentTarget).data("type"));if(this.contentContainer){this.lightboxContainer=$("#lightbox-container");this.lightboxContainer.append(this.contentContainer);this.lightbox=$("#lightbox");this.closeLightboxButton=$(".closeButton");this.showLightbox(c);var b=this.contentContainer.innerWidth()-40;var d=this.contentContainer.innerHeight()-40;var a=b/2;this.contentContainer.css("width",b);this.contentContainer.css("height",d);this.lightboxContainer.css("margin-left",-a);this.closeLightboxButton.bind("click",$.proxy(this.closeLightbox,this))}};HollandCom.LightboxController.prototype.returnContent=function(a){var b=$("#"+a);if(b.length>0){return b}else{return null}};HollandCom.LightboxController.prototype.closeLightbox=function(){this.closeLightboxButton.unbind("click");this.lightboxContainer.hide();this.lightbox.hide();this.contentContainer.hide();this.contentContainer.css("visibility","hidden")};HollandCom.LightboxController.prototype.showLightbox=function(a){a.preventDefault();this.lightbox.show();this.lightboxContainer.show();this.contentContainer.show();this.contentContainer.css("visibility","visible")};HollandCom.SubNavigation=function(b){var a=this;this.element=$(b);this.activeItem=false;this.visibleItem=false;this.activeItem=$(" > li.active",b);if(this.activeItem.size()==0){this.activeItem=$(" > li:first-child",b);this.activeItem.addClass("active");if(this.activeItem.size()==0){this.activeItem=false}}this.visibleItem=this.activeItem;$("> li > ul",b).hide();$("> ul",this.activeItem).show();$("> li > a",b).click(function(){if($(this).next("ul").size()==0){return}if($(this).attr("href")!="#"&&this.parentNode!=a.activeItem[0]){return}if(a.activeItem===false||this.parentNode==a.activeItem[0]){return false}if(a.visibleItem!==false&&this.parentNode==a.visibleItem[0]){$("ul",this.parentNode).slideUp(500);a.visibleItem=false;return false}if(a.visibleItem!==false&&a.visibleItem[0]!=a.activeItem[0]){$("ul",a.visibleItem).slideUp(500)}$("ul",this.parentNode).slideDown(500);a.visibleItem=$(this.parentNode);return false})};var initial=true;var selected="";var facetSearchInitial=false;var facetSearchCurrentPage=0;var facetSearchPageNumbersVisible=11;var facetSearchNumRows=0;var facetSearchNumPages=10;var facetSearchNumPerPage=2;var SEARCHFIELDID="search-search";var SORTBYID="sortby-select";var NUMBEROFITEMSID="nrOfItemsPerPage";var CURRENTPAGEID="currentPage";var searchKeyword="";$(document).ready(function(){$("#searchform").submit(formProcess);search("initial");$("a.moreLink").live("click",function(){myId=$(this).attr("id");visible=$("#div"+myId).css("display");if(visible=="none"){$("#div"+myId).show("blind");$(this).html("Less")}else{$("#div"+myId).hide("blind");$(this).html("More")}return false});$("a.next").bind("click",function(a){if(facetSearchCurrentPage<(facetSearchNumPages-1)){facetSearchCurrentPage++;search()}return false});$("span.previous").hide();$("span.next").hide();$("a.previous").bind("click",function(a){if(facetSearchCurrentPage>0){facetSearchCurrentPage--;search()}return false});$("#solrSearchFacetsAdvanced input[type='submit']").click(function(){search("",$(this).val());return false})});function bindSearchEvents(a){$("#"+SEARCHFIELDID).autocomplete($("#autocompleteurl").attr("value")+"&"+$("#"+SEARCHFIELDID).val(),{delay:10,width:260,selectFirst:true,scroll:false,formatItem:function(c){return c[0]+" "+c[1]}});$("#submitSearch").bind("click",function(){search("")});$("#"+SEARCHFIELDID).bind("keyup",function(c){if(c.keyCode=="13"){c.preventDefault();getPage(0)}return true});$("input.facet").bind("click",searchFacet);$("input.removeFacet").bind("click",removeFacet);$("#"+SORTBYID).bind("change",searchFacet);var b=false;$(".facet_wrapper").each(function(){if($(this).find(".facetvalue_wrapper").length>=8){$(this).find(".facetvalue_wrapper:gt(4)").hide();b=true}});if(b){$(".facetvalue_toggle").show()}else{$(".facetvalue_toggle").hide()}$(".map-search-ankeiler").click(function(){if(document.getElementById("map-search")){$.ajax({url:a+"&action=mapsjson",success:function(c){if(document.getElementById("map-search")){googlemapsdata=c;new HollandCom.SearchMap(document.getElementById("map-search"))}}})}$(".layover, .map-layover").fadeIn("600");$(".close-layover").click(function(){$(".layover, .map-layover").fadeOut("600");return false});return false})}function showAllFacetValues(){$(".facetvalue_wrapper").show()}function removeFacet(){$("#choosenFiltersHidden input.removeFacet[facet='"+$(this).attr("facet")+"']").parent("div.name").remove();search("",$(this).val())}function getParameterByName(b){b=b.replace(/[\[]/,"\\[").replace(/[\]]/,"\\]");var a="[\\?&]"+b+"=([^&#]*)";var d=new RegExp(a);var c=d.exec(window.location.href);if(c==null){return""}else{return decodeURIComponent(c[1].replace(/\+/g," "))}}function getKeyword(a,b){if(b!=undefined&&getParameterByName(b)!=""){if($("#"+a).length!=0){if($("#"+a).val()!=""){return encodeURI($("#"+a).val())}}return getParameterByName(b)}if($("#"+a).length!=0){return encodeURI($("#"+a).val())}return""}function formProcess(a){a.preventDefault();search("");return false}function getPage(a){$("#"+CURRENTPAGEID).val(a);search("")}function getCurrentStart(){var a=getKeyword(NUMBEROFITEMSID);var b=getKeyword(CURRENTPAGEID);return b*a}function search(d,c){var a="";if($("#ajaxcall").length>0){base=$("#ajaxcall").attr("href");var b=$("#"+SORTBYID).val();if(b===undefined){b="score"}var e=getCurrentStart();if(searchKeyword!=getKeyword(SEARCHFIELDID,"keyword")){$("#choosenFiltersHidden div.name").remove();$("#choosenFilters").html("")}searchKeyword=getKeyword(SEARCHFIELDID,"keyword");base+="&start="+e;base+="&query="+searchKeyword;base+="&queryOr="+getKeyword("queryOr");base+="&queryNot="+getKeyword("queryNot");base+="&queryFrom="+getKeyword("queryFrom");base+="&queryTo="+getKeyword("queryTo");base+="&numberofitemsperpage="+getKeyword(NUMBEROFITEMSID);base+="&numberofsnippets="+$("#nrSnippets").val();base+="&snippetlength="+$("#snippetLength").val();base+="&timelimitSearch="+$("#timelimitSearch").val();base+="&facets="+$("#facets").val();base+="&defaultfilterfacets="+$("#defaultfilterfacets").val();base+="&displayonpagelabel="+$("#displayonpagelabel").val();base+="&displayonpagelabelpoi="+$("#displayonpagelabelpoi").val();base+="&languagecode="+$("#languagecode").val();if(getKeyword("action")!=""){base+="&action="+getKeyword("action")}base+="&orderby="+b;base+="&"+$("#filters").val();if(d!="initial"){$("input.facetdef").each(function(){if($(this).val()!=c){base+="&facets="+$(this).val()}});$("#choosenFiltersHidden input.removeFacet").each(function(){var f=$(this);if(f.attr("facet")!=c){base+="&"+$(f).attr("facet")+"="+escape($(f).attr("value"))}$("#messageFilter").hide()})}if(typeof c!="undefined"){a=base+"&retrieve=facets&currentFacet="+c}else{a=base+"&retrieve=all"}a+="&elementId="+$("#searchElementId").val();$.ajax({url:a,dataType:"html",async:true,success:function(f){$("#searchresult").html(f);$("#choosenFilters").html($("#choosenFiltersHidden").html());if($("#choosenFilters input.removeFacet").length==0){$("#messageFilter").show()}else{$("#messageFilter").hide()}bindSearchEvents(a);$("#"+SORTBYID).val(b)}})}}function searchFacet(){if($(this).hasClass("facet")){$("#choosenFiltersHidden input.removeFacet[facet='"+$(this).attr("facet")+"']").parent("div.name").remove();var a="";a="<div class='name'><input id='"+$(this).attr("facet")+"' facet='"+$(this).attr("facet")+"' value='"+$(this).attr("value")+"' type='checkbox' class='removeFacet' /><label for='"+$(this).attr("facet")+"'>"+$(this).attr("label")+"</label></div>";$("#choosenFiltersHidden").append(a);$("#messageFilter").hide()}getPage(0)}function fillKeyword(a){$("#"+SEARCHFIELDID).val(a);getPage(0)}function showURL(c,e,d,a){var b;b=top.open(c,e,"toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=yes,resizable=yes,height="+a+",width="+d);if(b==null){return null}b.opener=window;return b}var requiredVersion=5;var useRedirect=false;var flash2Installed=false;var flash3Installed=false;var flash4Installed=false;var flash5Installed=false;var flash6Installed=false;var flash7Installed=false;var flash8Installed=false;var flash9Installed=false;var flash10Installed=false;var maxVersion=10;var actualVersion=0;var hasRightVersion=false;var jsVersion=1;var isIE=(navigator.appVersion.indexOf("MSIE")!=-1)?true:false;var isWin=(navigator.appVersion.indexOf("Windows")!=-1)?true:false;if(isIE&&isWin){document.write("<SCRIPT LANGUAGE=VBScript> \n");document.write("on error resume next \n");document.write('flash2Installed = (IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.2"))) \n');document.write('flash3Installed = (IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.3"))) \n');document.write('flash4Installed = (IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.4"))) \n');document.write('flash5Installed = (IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.5"))) \n');document.write('flash6Installed = (IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.6"))) \n');document.write('flash7Installed = (IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.7"))) \n');document.write('flash8Installed = (IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.8"))) \n');document.write('flash9Installed = (IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.9"))) \n');document.write('flash10Installed = (IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.10"))) \n');document.write("</SCRIPT> \n")}jsVersion=1.1;detectFlash=function(){if(navigator.plugins){if(navigator.plugins["Shockwave Flash 2.0"]||navigator.plugins["Shockwave Flash"]){var isVersion2=navigator.plugins["Shockwave Flash 2.0"]?" 2.0":"";var flashDescription=navigator.plugins["Shockwave Flash"+isVersion2].description;var flashVersion=parseInt(flashDescription.charAt(flashDescription.indexOf(".")-1));flash2Installed=flashVersion==2;flash3Installed=flashVersion==3;flash4Installed=flashVersion==4;flash5Installed=flashVersion==5;flash6Installed=flashVersion==6;flash7Installed=flashVersion==7;flash8Installed=flashVersion==8;flash9Installed=flashVersion==9;flash10Installed=flashVersion==0}}for(var i=2;i<=maxVersion;i++){if(eval("flash"+i+"Installed")==true){actualVersion=i}}if(navigator.userAgent.indexOf("WebTV")!=-1){actualVersion=2}if(actualVersion>=requiredVersion){hasRightVersion=true;if(useRedirect){if(jsVersion>1){window.location.replace(flashPage)}else{window.location=flashPage}}}else{if(useRedirect){if(jsVersion>1){window.location.replace((actualVersion>=2)?upgradePage:noFlashPage)}else{window.location=(actualVersion>=2)?upgradePage:noFlashPage}}}};writeFlash=function(f,c,e,b,i,j){if(typeof i=="undefined"){i=null}if(typeof j=="undefined"){j=null}var d=b;if(d==""){d='Voor deze site heeft u <a target="_blank" href="http://www.microsoft.com/download/">Microsoft Internet Explorer</a> versie 5.5 (of hoger) en de <a target="_blank" href="http://www.macromedia.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash&P5_Language=English">Macromedia Flash plugin</a> versie '+requiredVersion+" (of hoger) nodig."}var g='<OBJECT CLASSID="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" WIDTH="'+c+'" HEIGHT="'+e+'" CODEBASE="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab" WMODE="transparent"><PARAM NAME="MOVIE" VALUE="'+f+'"><PARAM NAME="PLAY" VALUE="true"><PARAM NAME="LOOP" VALUE="false"><PARAM NAME="QUALITY" VALUE="high">';if(i!=null){g+='<PARAM NAME="wmode" VALUE="'+i+'">'}g+='<PARAM NAME="MENU" VALUE="false"><EMBED SRC="'+f+'" ';if(i!=null){g+=' WMODE="'+i+'" '}g+='WIDTH="'+c+'" HEIGHT="'+e+'" PLAY="true" LOOP="false" QUALITY="high" MENU="false" TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"></EMBED><NOEMBED>'+d+"</NOEMBED></OBJECT>";if(hasRightVersion){if(j!=null){j.innerHTML=g}else{document.write(g)}}else{if(j!=null){j.innerHTML=d}else{document.write(d)}}};var WebmanagerFormStateRegistry={};$(document).ready(function(d){$(".hide").each(function(){$(this).addClass("displayNone")});$(".wmpform").find(":input").change(function(){var g=$(this).parents("form:first").attr("id");if(g!="undefined"&&g!=""){var f=WebmanagerFormStateRegistry[g];if(typeof f!="undefined"&&f!=""){attr=$(this).attr("name");if(typeof attr!="undefined"&&attr!=""){var e=new Array();c(f,$(this),e)}}}});$(".wmpform").find(":input:radio").click(function(){$(this).change()});$(".wmpform").submit(function(i){var e=false;var j=$(this).attr("id");$("#clientsideRouting").val("false");if(j!="undefined"&&j!=""){var h=WebmanagerFormStateRegistry[j];if(typeof h!="undefined"&&h!=""){var g=new Array();var f=$(this);$(":input",$(this)).each(function(){var l=$(this).attr("name");if($(this).attr("type")!="hidden"&&!g.contains(l)){g.push(l);if(a($(this))){var p=$("#error_"+l.replace(".","_"));if(p.length>0){var o="";var n=b($(this));var k=h.validateAndReturnMessage(l,n);for(var m in k){e=true;o+="<li>"+k[m]+"</li>"}if(o!=""){o="<ul>"+o+"</ul>"}p.html(o);p.show()}}else{switch(this.type){case"password":case"select-multiple":case"select-one":case"text":case"textarea":$(this).val("");break;case"checkbox":case"radio":$("input[name="+$(this).attr("name")+"]").removeAttr("checked");f.append('<input type="hidden" name="'+l+'" value="" />')}}}});if(e){i.preventDefault()}}}});function b(g){var f=g.val();if(g.attr("type")=="radio"){f=$("input[name="+g.attr("name")+"]:checked").val()}if(g.attr("type")=="checkbox"){var e=$("input:checkbox[name="+g.attr("name")+"]:checked");f=new Array();e.each(function(){f.push($(this).val())})}return f}function c(f,h,g){var e=b(h);g.push(h.attr("id"));var m=f.setFragmentValue(h.attr("name"),e);for(var j=0;j<m.length;j++){var l=m[j];var k=l.identifier.replace(".","_");if(l.value=="show"){$("#"+k).removeClass("displayNone")}else{$("#"+k).addClass("displayNone")}var n=$("input:[name="+l.identifier+"],select:[name="+l.identifier+"],textarea:[name="+l.identifier+"]");if(n.length>0){if(n.attr("id")!=""&&!g.contains(n.attr("id"))){c(f,n,g)}}}}function a(e){var f=true;e.parents().each(function(){if($(this).hasClass("displayNone")){f=false;return false}});return f}});
