(function(){var aa="_gat",ba="_gaq",s=true,v=false,w=undefined,ca="4.5.7",y="length",z="cookie",A="location",C="&",D="=",E="__utma=",F="__utmb=",H="__utmc=",da="__utmk=",I="__utmv=",K="__utmz=",L="__utmx=",M="GASO=";var N=function(g){return w==g||"-"==g||""==g},ea=function(g){return g[y]>0&&" \n\r\t".indexOf(g)>-1},Q=function(g,i,b){var k="-",c;if(!N(g)&&!N(i)&&!N(b)){c=g.indexOf(i);if(c>-1){b=g.indexOf(b,c);if(b<0)b=g[y];k=P(g,c+i.indexOf(D)+1,b)}}return k},S=function(g){var i=v,b=0,k,c;if(!N(g)){i=s;for(k=0;k<g[y];k++){c=g.charAt(k);b+="."==c?1:0;i=i&&b<=1&&(0==k&&"-"==c||".0123456789".indexOf(c)>-1)}}return i},T=function(g,i){var b=encodeURIComponent;return b instanceof Function?i?encodeURI(g):b(g):escape(g)},U=function(g,i){var b=decodeURIComponent,k;g=g.split("+").join(" ");if(b instanceof Function)try{k=i?decodeURI(g):b(g)}catch(c){k=unescape(g)}else k=unescape(g);return k},V=function(g,i){return g.indexOf(i)>-1},W=function(g,i){g[g[y]]=i},X=function(g){return g.toLowerCase()},Y=function(g,i){return g.split(i)},ga=function(g,i){return g.indexOf(i)},P=function(g,i,b){b=w==b?g[y]:b;return g.substring(i,b)},ha=function(g,i){return g.join(i)},ia=function(g){var i=1,b=0,k;if(!N(g)){i=0;for(k=g[y]-1;k>=0;k--){b=g.charCodeAt(k);i=(i<<6&268435455)+b+(b<<14);b=i&266338304;i=b!=0?i^b>>21:i}}return i},ja=function(){var g=window,i=w;if(g&&g.gaGlobal&&g.gaGlobal.hid)i=g.gaGlobal.hid;else{i=Z();g.gaGlobal=g.gaGlobal?g.gaGlobal:{};g.gaGlobal.hid=i}return i},Z=function(){return Math.round(Math.random()*2147483647)},$={Fa:function(g,i){this.$a=g;this.lb=i},t:63072000000,gb:v,_gasoDomain:w,_gasoCPath:w};$.Fb=function(){var g=this,i=$.Fa;function b(c){return new i(c[0],c[1])}function k(c){var p=[];c=c.split(",");var n;for(n=0;n<c.length;++n)p.push(b(c[n].split(":")));return p}g.Ga="utm_campaign";g.Ha="utm_content";g.Ia="utm_id";g.Ja="utm_medium";g.Ka="utm_nooverride";g.La="utm_source";g.Ma="utm_term";g.Na="gclid";g.$=0;g.z=0;g.Wa="15768000";g.qb="1800";g.qa=[];g.ta=[];g.nc="cse";g.oc="q";g.mb=5;g.ra=k("images.google:q,google:q,yahoo:p,msn:q,bing:q,aol:query,aol:encquery,lycos:query,ask:q,altavista:q,netscape:query,cnn:query,looksmart:qt,about:terms,mamma:query,alltheweb:q,gigablast:q,voila:rdata,virgilio:qs,live:q,baidu:wd,alice:qs,yandex:text,najdi:q,aol:q,club-internet:query,mama:query,seznam:q,search:q,wp:szukaj,onet:qt,netsprint:q,google.interia:q,szukacz:q,yam:k,pchome:q,kvasir:q,sesam:q,ozu:q,terra:query,nostrum:query,mynet:q,ekolay:q,search.ilse:search_for,rambler:words");g.u=w;g.jb=v;g.h="/";g.T=100;g.la="/__utm.gif";g.da=1;g.ea=1;g.v="|";g.ca=1;g.aa=1;g.Pa=1;g.c="auto";g.I=1;g.oa=1000;g.Ic=10;g.Pb=10;g.Jc=0.2;g.o=w;g.a=document;g.b=window};$.Gb=function(g){var i=this,b=g;i.r=(new Date).getTime();var k=[E,F,H,K,I,L,M];function c(j,m,q,a){var d="",l=0;d=Q(j,"2"+m,";");if(!N(d)){j=d.indexOf("^"+q+".");if(j<0)return["",0];d=P(d,j+q[y]+2);if(d.indexOf("^")>0)d=d.split("^")[0];q=d.split(":");d=q[1];l=parseInt(q[0],10);if(!a&&l<i.r)d=""}if(N(d))d="";return[d,l]}i.k=function(){var j=b.a[z];return b.o?i.Wb(j,b.o):j};i.Wb=function(j,m){var q=[],a,d;for(a=0;a<k[y];a++){d=c(j,k[a],m)[0];N(d)||(q[q[y]]=k[a]+d+";")}return q.join("")};i.l=function(j,m,q){var a=q>0?h(q):"";if(b.o){m=i.lc(b.a[z],j,b.o,m,q);j="2"+j;a=e(q)}r(j+m,a)};i.lc=function(j,m,q,a,d){var l="";d=p(d);a=n([a,i.r+d*1],q);l=Q(j,"2"+m,";");if(!N(l)){j=n(c(j,m,q,s),q);l=ha(l.split(j),"");return l=a+l}return a};function p(j){return j||$.t}function n(j,m){return"^"+ha([[m,j[1]].join("."),j[0]],":")}function r(j,m){b.a[z]=j+"; path="+b.h+"; "+m+i.db()}i.db=function(){return N(b.c)?"":"domain="+b.c+";"};function e(j){return j>0?f():""}function f(){return h($.t)}function h(j){var m=new Date;j=new Date(m.getTime()+j);return"expires="+j.toGMTString()+"; "}};$.Z=function(g){var i,b,k,c,p,n,r,e=this,f,h=g;e.j=new $.Gb(g);function j(a){a=a instanceof Array?a.join("."):"";return N(a)?"-":a}function m(a,d){var l=[];if(!N(a)){l=a.split(".");if(d)for(a=0;a<l[y];a++)S(l[a])||(l[a]="-")}return l}function q(a,d,l){var t=e.M,o,u;for(o=0;o<t[y];o++){u=t[o][0];u+=N(d)?d:d+t[o][4];t[o][2](Q(a,u,l))}}e.ib=function(){return w==f||f==e.P()};e.k=function(){return e.j.k()};e.ja=function(){return p?p:"-"};e.tb=function(a){p=a};e.xa=function(a){f=S(a)?a*1:"-"};e.ia=function(){return j(n)};e.ya=function(a){n=m(a)};e.Vb=function(){e.j.l(I,"",-1)};e.mc=function(){return f?f:"-"};e.db=function(){return N(h.c)?"":"domain="+h.c+";"};e.ga=function(){return j(i)};e.rb=function(a){i=m(a,1)};e.C=function(){return j(b)};e.wa=function(a){b=m(a,1)};e.ha=function(){return j(k)};e.sb=function(a){k=m(a,1)};e.ka=function(){return j(c)};e.ub=function(a){c=m(a);for(a=0;a<c[y];a++)if(a<4&&!S(c[a]))c[a]="-"};e.gc=function(){return r};e.Dc=function(a){r=a};e.Sb=function(){i=[];b=[];k=[];c=[];p=w;n=[];f=w};e.P=function(){var a="",d;for(d=0;d<e.M[y];d++)a+=e.M[d][1]();return ia(a)};e.sa=function(a){var d=e.k(),l=v;if(d){q(d,a,";");e.xa(e.P());l=s}return l};e.zc=function(a){q(a,"",C);e.xa(Q(a,da,C))};e.Gc=function(){var a=e.M,d=[],l;for(l=0;l<a[y];l++)W(d,a[l][0]+a[l][1]());W(d,da+e.P());return d.join(C)};e.Mc=function(a,d){var l=e.M,t=h.h;e.sa(a);h.h=d;for(a=0;a<l[y];a++)N(l[a][1]())||l[a][3]();h.h=t};e.Bb=function(){e.j.l(E,e.ga(),$.t)};e.Ca=function(){e.j.l(F,e.C(),h.qb*1000)};e.Cb=function(){e.j.l(H,e.ha(),0)};e.Ea=function(){e.j.l(K,e.ka(),h.Wa*1000)};e.Db=function(){e.j.l(L,e.ja(),$.t)};e.Da=function(){e.j.l(I,e.ia(),$.t)};e.Nc=function(){e.j.l(M,e.gc(),0)};e.M=[[E,e.ga,e.rb,e.Bb,"."],[F,e.C,e.wa,e.Ca,""],[H,e.ha,e.sb,e.Cb,""],[L,e.ja,e.tb,e.Db,""],[K,e.ka,e.ub,e.Ea,"."],[I,e.ia,e.ya,e.Da,"."]]};$.Jb=function(g){var i=this,b=g,k=new $.Z(b),c=function(){},p=function(n){var r=(new Date).getTime(),e;e=(r-n[3])*(b.Jc/1000);if(e>=1){n[2]=Math.min(Math.floor(n[2]*1+e),b.Pb);n[3]=r}return n};i.H=function(n,r,e,f,h,j){var m,q=b.I,a=b.a[A];k.sa(e);m=Y(k.C(),".");if(m[1]<500||f){if(h)m=p(m);if(f||!h||m[2]>=1){if(!f&&h)m[2]=m[2]*1-1;m[1]=m[1]*1+1;n="?utmwv="+ca+"&utmn="+Z()+(N(a.hostname)?"":"&utmhn="+T(a.hostname))+(b.T==100?"":"&utmsp="+T(b.T))+n;if(0==q||2==q){f=2==q?c:j||c;i.Ya(b.la+n,f)}if(1==q||2==q){n=("https:"==a.protocol?"https://ssl.google-analytics.com/__utm.gif":"http://www.google-analytics.com/__utm.gif")+n+"&utmac="+r+"&utmcc="+i.ac(e);if(ka)n+="&gaq=1";i.Ya(n,j)}}}k.wa(m.join("."));k.Ca()};i.Ya=function(n,r){var e=new Image(1,1);e.src=n;e.onload=function(){e.onload=null;(r||c)()}};i.ac=function(n){var r=[],e=[E,K,I,L],f,h=k.k(),j;for(f=0;f<e[y];f++){j=Q(h,e[f]+n,";");if(!N(j)){if(e[f]==I){j=Y(j.split(n+".")[1],"|")[0];if(N(j))continue;j=n+"."+j}W(r,e[f]+j+";")}}return T(r.join("+"))}};$.n=function(){var g=this;g.X=[];g.fb=function(i){var b,k=g.X,c;for(c=0;c<k.length;c++)b=i==k[c].q?k[c]:b;return b};g.Ob=function(i,b,k,c,p,n,r,e){var f=g.fb(i);if(w==f){f=new $.n.Mb(i,b,k,c,p,n,r,e);W(g.X,f)}else{f.Oa=b;f.zb=k;f.yb=c;f.vb=p;f.Ua=n;f.xb=r;f.Xa=e}return f}};$.n.Lb=function(g,i,b,k,c,p){var n=this;n.Ab=g;n.za=i;n.D=b;n.Sa=k;n.nb=c;n.ob=p;n.Aa=function(){return"&"+["utmt=item","tid="+T(n.Ab),"ipc="+T(n.za),"ipn="+T(n.D),"iva="+T(n.Sa),"ipr="+T(n.nb),"iqt="+T(n.ob)].join("&utm")}};$.n.Mb=function(g,i,b,k,c,p,n,r){var e=this;e.q=g;e.Oa=i;e.zb=b;e.yb=k;e.vb=c;e.Ua=p;e.xb=n;e.Xa=r;e.R=[];e.Nb=function(f,h,j,m,q){var a=e.hc(f),d=e.q;if(w==a)W(e.R,new $.n.Lb(d,f,h,j,m,q));else{a.Ab=d;a.za=f;a.D=h;a.Sa=j;a.nb=m;a.ob=q}};e.hc=function(f){var h,j=e.R,m;for(m=0;m<j.length;m++)h=f==j[m].za?j[m]:h;return h};e.Aa=function(){return"&"+["utmt=tran","id="+T(e.q),"st="+T(e.Oa),"to="+T(e.zb),"tx="+T(e.yb),"sp="+T(e.vb),"ci="+T(e.Ua),"rg="+T(e.xb),"co="+T(e.Xa)].join("&utmt")}};$.Eb=function(g){var i=g,b=i.b,k=this,c="-";k.U=b.screen;k.Qa=!k.U&&b.java?java.awt.Toolkit.getDefaultToolkit():w;k.e=b.navigator;k.V=c;k.va=c;k.Ta=c;k.na=c;k.ma=1;k.cb=c;function p(){var n,r,e;r="ShockwaveFlash";var f="$version",h=k.e?k.e.plugins:w;if(h&&h[y]>0)for(n=0;n<h[y]&&!e;n++){r=h[n];if(V(r.name,"Shockwave Flash"))e=r.description.split("Shockwave Flash ")[1]}else{r=r+"."+r;try{n=new ActiveXObject(r+".7");e=n.GetVariable(f)}catch(j){}if(!e)try{n=new ActiveXObject(r+".6");e="WIN 6,0,21,0";n.AllowScriptAccess="always";e=n.GetVariable(f)}catch(m){}if(!e)try{n=new ActiveXObject(r);e=n.GetVariable(f)}catch(q){}if(e){e=Y(e.split(" ")[1],",");e=e[0]+"."+e[1]+" r"+e[2]}}return e?e:c}k.bc=function(){var n;if(b.screen){k.V=k.U.width+"x"+k.U.height;k.va=k.U.colorDepth+"-bit"}else if(k.Qa)try{n=k.Qa.getScreenSize();k.V=n.width+"x"+n.height}catch(r){}k.na=X(k.e&&k.e.language?k.e.language:k.e&&k.e.browserLanguage?k.e.browserLanguage:c);k.ma=k.e&&k.e.javaEnabled()?1:0;k.cb=i.ea?p():c;k.Ta=T(i.a.characterSet?i.a.characterSet:i.a.charset?i.a.charset:c)};k.Hc=function(){return C+"utm"+["cs="+T(k.Ta),"sr="+k.V,"sc="+k.va,"ul="+k.na,"je="+k.ma,"fl="+T(k.cb)].join("&utm")};k.$b=function(){var n=i.a,r=b.history[y];n=k.e.appName+k.e.version+k.na+k.e.platform+k.e.userAgent+k.ma+k.V+k.va+(n[z]?n[z]:"")+(n.referrer?n.referrer:"");for(var e=n[y];r>0;)n+=r--^e++;return ia(n)}};$.m=function(g,i,b,k){var c=k,p=this;p.d=g;p.pb=i;p.r=b;function n(f){return N(f)||"0"==f||!V(f,"://")}function r(f){var h="";f=X(f.split("://")[1]);if(V(f,"/")){f=f.split("/")[1];if(V(f,"?"))h=f.split("?")[0]}return h}function e(f){var h="";h=X(f.split("://")[1]);if(V(h,"/"))h=h.split("/")[0];return h}p.jc=function(f){var h=p.eb();return new $.m.w(Q(f,c.Ia+D,C),Q(f,c.La+D,C),Q(f,c.Na+D,C),p.Q(f,c.Ga,"(not set)"),p.Q(f,c.Ja,"(not set)"),p.Q(f,c.Ma,h&&!N(h.K)?U(h.K):w),p.Q(f,c.Ha,w))};p.hb=function(f){var h=e(f),j=r(f);if(V(h,"google")){f=f.split("?").join(C);if(V(f,C+c.oc+D))if(j==c.nc)return s}return v};p.eb=function(){var f,h=p.pb,j,m,q=c.ra;if(!(n(h)||p.hb(h))){f=e(h);for(j=0;j<q[y];j++){m=q[j];if(V(f,X(m.$a))){h=h.split("?").join(C);if(V(h,C+m.lb+D)){f=h.split(C+m.lb+D)[1];if(V(f,C))f=f.split(C)[0];return new $.m.w(w,m.$a,w,"(organic)","organic",f,w)}}}}};p.Q=function(f,h,j){f=Q(f,h+D,C);return j=!N(f)?U(f):!N(j)?j:"-"};p.uc=function(f){var h=c.qa,j=v,m;if(f&&"organic"==f.S){f=X(U(f.K));for(m=0;m<h[y];m++)j=j||X(h[m])==f}return j};p.ic=function(){var f="",h="";f=p.pb;if(!(n(f)||p.hb(f))){f=f.split("://")[1];if(V(f,"/")){h=P(f,f.indexOf("/"));h=h.split("?")[0];f=X(f.split("/")[0])}if(0==f.indexOf("www."))f=P(f,4);return new $.m.w(w,f,w,"(referral)","referral",w,h)}};p.Xb=function(f){var h="";if(c.$){h=f&&f.hash?f.href.substring(f.href.indexOf("#")):"";h=""!=h?h+C:h}h+=f.search;return h};p.ec=function(){return new $.m.w(w,"(direct)",w,"(direct)","(none)",w,w)};p.vc=function(f){var h=v,j,m=c.ta;if(f&&"referral"==f.S){f=X(T(f.W));for(j=0;j<m[y];j++)h=h||V(f,X(m[j]))}return h};p.L=function(f){return w!=f&&f.kb()};p.cc=function(f,h){var j="",m="-",q,a=0,d,l,t=p.d;if(!f)return"";l=f.k();j=p.Xb(c.a[A]);if(c.z&&f.ib()){m=f.ka();if(!N(m)&&!V(m,";")){f.Ea();return""}}m=Q(l,K+t+".",";");q=p.jc(j);if(p.L(q)){j=Q(j,c.Ka+D,C);if("1"==j&&!N(m))return""}if(!p.L(q)){q=p.eb();if(!N(m)&&p.uc(q))return""}if(!p.L(q)&&h){q=p.ic();if(!N(m)&&p.vc(q))return""}if(!p.L(q))if(N(m)&&h)q=p.ec();if(!p.L(q))return"";if(!N(m)){a=m.split(".");d=new $.m.w;d.Zb(a.slice(4).join("."));d=X(d.Ba())==X(q.Ba());a=a[3]*1}if(!d||h){h=Q(l,E+t+".",";");l=h.lastIndexOf(".");h=l>9?P(h,l+1)*1:0;a++;h=0==h?1:h;f.ub([t,p.r,h,a,q.Ba()].join("."));f.Ea();return C+"utmcn=1"}else return C+"utmcr=1"}};$.m.w=function(g,i,b,k,c,p,n){var r=this;r.q=g;r.W=i;r.ba=b;r.D=k;r.S=c;r.K=p;r.Va=n;r.Ba=function(){var e=[],f=[["cid",r.q],["csr",r.W],["gclid",r.ba],["ccn",r.D],["cmd",r.S],["ctr",r.K],["cct",r.Va]],h,j;if(r.kb())for(h=0;h<f[y];h++)if(!N(f[h][1])){j=f[h][1].split("+").join("%20");j=j.split(" ").join("%20");W(e,"utm"+f[h][0]+D+j)}return e.join("|")};r.kb=function(){return!(N(r.q)&&N(r.W)&&N(r.ba))};r.Zb=function(e){var f=function(h){return U(Q(e,"utm"+h+D,"|"))};r.q=f("cid");r.W=f("csr");r.ba=f("gclid");r.D=f("ccn");r.S=f("cmd");r.K=f("ctr");r.Va=f("cct")}};$.Hb=function(g,i,b,k){var c=this,p=i,n=D,r=g,e=k;c.O=b;c.pa="";c.p={};c.tc=function(){var h;h=Y(Q(c.O.k(),I+p+".",";"),p+".")[1];if(!N(h)){h=h.split("|");f(1,c.p,h[1]);c.pa=h[0];c.Y()}};c.Y=function(){c.Qb();var h=c.pa,j,m,q="";for(j in c.p)if((m=c.p[j])&&1===m[2])q+=j+n+m[0]+n+m[1]+n+1+",";N(q)||(h+="|"+q);if(N(h))c.O.Vb();else{c.O.ya(p+"."+h);c.O.Da()}};c.Ec=function(h){c.pa=h;c.Y()};c.Cc=function(h,j,m,q){if(1!=q&&2!=q&&3!=q)q=3;var a=v;if(j&&m&&h>0&&h<=r.mb){j=T(j);m=T(m);if(j[y]+m[y]<=64){c.p[h]=[j,m,q];c.Y();a=s}}return a};c.dc=function(h){if(h=c.p[h])return{value:h[1],scope:h[2]}};c.Ub=function(h){var j=c.p;if(j[h]){delete j[h];c.Y()}};c.Qb=function(){e._clearKey(8);e._clearKey(9);e._clearKey(11);var h=c.p,j,m;for(m in h)if(j=h[m]){e._setKey(8,m,j[0]);e._setKey(9,m,j[1]);j=j[2];3!=j&&e._setKey(11,m,j.toString())}};function f(h,j,m){var q;if(!N(m)){m=m.split(",");for(var a=0;a<m[y];a++){q=m[a];if(!N(q)){q=q.split(n);if(q[y]==4)j[q[0]]=[q[1],q[2],h]}}}}};$.N=function(){var g=this,i={},b="k",k="v",c=[b,k],p="(",n=")",r="*",e="!",f="'",h={};h[f]="'0";h[n]="'1";h[r]="'2";h[e]="'3";var j=1;function m(o,u,x,B){if(w==i[o])i[o]={};if(w==i[o][u])i[o][u]=[];i[o][u][x]=B}function q(o,u,x){return w!=i[o]&&w!=i[o][u]?i[o][u][x]:w}function a(o,u){if(w!=i[o]&&w!=i[o][u]){i[o][u]=w;u=s;var x;for(x=0;x<c[y];x++)if(w!=i[o][c[x]]){u=v;break}if(u)i[o]=w}}function d(o){var u="",x=v,B,O;for(B=0;B<c[y];B++){O=o[c[B]];if(w!=O){if(x)u+=c[B];u+=l(O);x=v}else x=s}return u}
function l(o){var u=[],x,B;for(B=0;B<o[y];B++)if(w!=o[B]){x="";if(B!=j&&w==o[B-1])x+=B.toString()+e;x+=t(o[B]);W(u,x)}return p+u.join(r)+n}function t(o){var u="",x,B,O;for(x=0;x<o[y];x++){B=o.charAt(x);O=h[B];u+=w!=O?O:B}return u}g.qc=function(o){return w!=i[o]};g.G=function(){var o="",u;for(u in i)if(w!=i[u])o+=u.toString()+d(i[u]);return o};g.Ac=function(o){if(o==w)return g.G();var u=o.G(),x;for(x in i)if(w!=i[x]&&!o.qc(x))u+=x.toString()+d(i[x]);return u};g._setKey=function(o,u,x){if(typeof x!="string")return v;m(o,b,u,x);return s};g._setValue=function(o,u,x){if(typeof x!="number"&&(w==Number||!(x instanceof Number))||Math.round(x)!=x||x==NaN||x==Infinity)return v;m(o,k,u,x.toString());return s};g._getKey=function(o,u){return q(o,b,u)};g._getValue=function(o,u){return q(o,k,u)};g._clearKey=function(o){a(o,b)};g._clearValue=function(o){a(o,k)}};$.Ib=function(g,i){var b=this;b.Pc=i;b.xc=g;b._trackEvent=function(k,c,p){return i._trackEvent(b.xc,k,c,p)}};$.Kb=function(g,i){var b=this,k=w,c=new $.Fb,p=v,n=w;b.b=window;b.r=Math.round((new Date).getTime()/1000);b.s=g||"UA-XXXXX-X";b.Za=c.a.referrer;b.fa=w;b.f=w;b.B=w;b.F=v;b.A=w;b.Ra="";b.g=w;b.ab=w;b.d=w;b.i=w;c.o=i?T(i):w;function r(){if("auto"==c.c){var a=c.a.domain;if("www."==P(a,0,4))a=P(a,4);c.c=a}c.c=X(c.c)}function e(){var a=c.c,d=a.indexOf("www.google.")*a.indexOf(".google.")*a.indexOf("google.");return d||"/"!=c.h||a.indexOf("google.org")>-1}function f(a,d,l){if(N(a)||N(d)||N(l))return"-";a=Q(a,E+b.d+".",d);if(!N(a)){a=a.split(".");a[5]=a[5]?a[5]*1+1:1;a[3]=a[4];a[4]=l;a=a.join(".")}return a}function h(){return"file:"!=c.a[A].protocol&&e()}function j(a){if(!a||""==a)return"";for(;ea(a.charAt(0));)a=P(a,1);for(;ea(a.charAt(a[y]-1));)a=P(a,0,a[y]-1);return a}function m(a,d,l,t){if(!N(a())){d(t?U(a()):a());V(a(),";")||l()}}function q(a){var d,l=""!=a&&c.a[A].host!=a;if(l)for(d=0;d<c.u[y];d++)l=l&&ga(X(a),X(c.u[d]))==-1;return l}b.wc=function(){var a=v;if(b.B)a=b.B.match(/^[0-9a-z-_.]{10,1200}$/i);return a};b.kc=function(){return Z()^b.A.$b()&2147483647};b.fc=function(){if(!c.c||""==c.c||"none"==c.c){c.c="";return 1}r();return c.Pa?ia(c.c):1};b.Yb=function(a,d){if(N(a))a="-";else{d+=c.h&&"/"!=c.h?c.h:"";d=a.indexOf(d);a=d>=0&&d<=8?"0":"["==a.charAt(0)&&"]"==a.charAt(a[y]-1)?"-":a}return a};b.ua=function(a){var d="",l=c.a;d+=c.ca?b.A.Hc():"";d+=c.aa?b.Ra:"";d+=c.da&&!N(l.title)?"&utmdt="+T(l.title):"";d+="&utmhid="+ja()+"&utmr="+T(b.fa)+"&utmp="+T(b.Bc(a));return d};b.Bc=function(a){var d=c.a[A];return a=w!=a&&""!=a?T(a,s):T(d.pathname+d.search,s)};b.Kc=function(a){if(b.J()){var d="";if(b.g!=w&&b.g.G()[y]>0)d+="&utme="+T(b.g.G());d+=b.ua(a);k.H(d,b.s,b.d)}};b.Tb=function(){var a=new $.Z(c);return a.sa(b.d)?a.Gc():w};b._getLinkerUrl=function(a,d){var l=a.split("#"),t=a,o=b.Tb();if(o)if(d&&1>=l[y])t+="#"+o;else if(!d||1>=l[y])if(1>=l[y])t+=(V(a,"?")?C:"?")+o;else t=l[0]+(V(a,"?")?C:"?")+o+"#"+l[1];return t};b.wb=function(){var a;if(b.wc()){b.i.Dc(b.B);b.i.Nc();$._gasoDomain=c.c;$._gasoCPath=c.h;a=c.a.createElement("script");a.type="text/javascript";a.id="_gasojs";a.src="https://www.google.com/analytics/reporting/overlay_js?gaso="+b.B+C+Z();c.a.getElementsByTagName("head")[0].appendChild(a)}};b.pc=function(){var a=b.r,d=b.i,l=d.k(),t=b.d+"",o=c.b,u=o?o.gaGlobal:w,x,B=V(l,E+t+"."),O=V(l,F+t),la=V(l,H+t),G,J=[],R="",fa=v;l=N(l)?"":l;if(c.z){x=c.a[A]&&c.a[A].hash?c.a[A].href.substring(c.a[A].href.indexOf("#")):"";if(c.$&&!N(x))R=x+C;R+=c.a[A].search;if(!N(R)&&V(R,E)){d.zc(R);d.ib()||d.Sb();G=d.ga()}m(d.ja,d.tb,d.Db,true);m(d.ia,d.ya,d.Da)}if(N(G))if(B)if(!O||!la){G=f(l,";",a);b.F=s}else{G=Q(l,E+t+".",";");J=Y(Q(l,F+t,";"),".")}else{G=ha([t,b.kc(),a,a,a,1],".");fa=b.F=s}else if(N(d.C())||N(d.ha())){G=f(R,C,a);b.F=s}else{J=Y(d.C(),".");t=J[0]}G=G.split(".");if(o&&u&&u.dh==t&&!c.o){G[4]=u.sid?u.sid:G[4];if(fa){G[3]=u.sid?u.sid:G[4];if(u.vid){a=u.vid.split(".");G[1]=a[0];G[2]=a[1]}}}d.rb(G.join("."));J[0]=t;J[1]=J[1]?J[1]:0;J[2]=w!=J[2]?J[2]:c.Ic;J[3]=J[3]?J[3]:G[4];d.wa(J.join("."));d.sb(t);N(d.mc())||d.xa(d.P());d.Bb();d.Ca();d.Cb()};b.rc=function(){k=new $.Jb(c)};b._initData=function(){var a;if(!p){if(!b.A){b.A=new $.Eb(c);b.A.bc()}b.d=b.fc();b.i=new $.Z(c);b.g=new $.N;n=new $.Hb(c,b.d,b.i,b.g);b.rc()}if(h()){b.pc();n.tc()}if(!p){if(h()){b.fa=b.Yb(b.Za,c.a.domain);if(c.aa){a=new $.m(b.d,b.fa,b.r,c);b.Ra=a.cc(b.i,b.F)}}b.ab=new $.N;p=s}$.gb||b.sc()};b._visitCode=function(){b._initData();var a=Q(b.i.k(),E+b.d+".",";");a=a.split(".");return a[y]<4?"":a[1]};b._cookiePathCopy=function(a){b._initData();b.i&&b.i.Mc(b.d,a)};b.sc=function(){var a=c.a[A].hash;if(a&&1==a.indexOf("gaso="))a=Q(a,"gaso=",C);else a=(a=c.b.name)&&0<=a.indexOf("gaso=")?Q(a,"gaso=",C):Q(b.i.k(),M,";");if(a[y]>=10){b.B=a;c.b.addEventListener?c.b.addEventListener("load",b.wb,v):c.b.attachEvent("onload",b.wb)}$.gb=s};b.J=function(){return b._visitCode()%10000<c.T*100};b.Fc=function(){var a,d,l=c.a.links;if(!c.jb){a=c.a.domain;if("www."==P(a,0,4))a=P(a,4);c.u.push("."+a)}for(a=0;a<l[y]&&(c.oa==-1||a<c.oa);a++){d=l[a];if(q(d.host))if(!d.gatcOnclick){d.gatcOnclick=d.onclick?d.onclick:b.yc;d.onclick=function(t){var o=!this.target||this.target=="_self"||this.target=="_top"||this.target=="_parent";o=o&&!b.Rb(t);b.Lc(t,this,o);return o?v:this.gatcOnclick?this.gatcOnclick(t):s}}}};b.yc=function(){};b._trackPageview=function(a){if(h()){b._initData();c.u&&b.Fc();b.Kc(a);b.F=v}};b._trackTrans=function(){var a=b.d,d=[],l,t,o;b._initData();if(b.f&&b.J()){for(l=0;l<b.f.X[y];l++){t=b.f.X[l];W(d,t.Aa());for(o=0;o<t.R[y];o++)W(d,t.R[o].Aa())}for(l=0;l<d[y];l++)k.H(d[l],b.s,a,s)}};b._setTrans=function(){var a=c.a,d,l,t;a=a.getElementById?a.getElementById("utmtrans"):a.utmform&&a.utmform.utmtrans?a.utmform.utmtrans:w;b._initData();if(a&&a.value){b.f=new $.n;t=a.value.split("UTM:");c.v=!c.v||""==c.v?"|":c.v;for(a=0;a<t[y];a++){t[a]=j(t[a]);d=t[a].split(c.v);for(l=0;l<d[y];l++)d[l]=j(d[l]);if("T"==d[0])b._addTrans(d[1],d[2],d[3],d[4],d[5],d[6],d[7],d[8]);else"I"==d[0]&&b._addItem(d[1],d[2],d[3],d[4],d[5],d[6])}}};b._addTrans=function(a,d,l,t,o,u,x,B){b.f=b.f?b.f:new $.n;return b.f.Ob(a,d,l,t,o,u,x,B)};b._addItem=function(a,d,l,t,o,u){var x;b.f=b.f?b.f:new $.n;(x=b.f.fb(a))||(x=b._addTrans(a,"","","","","","",""));x.Nb(d,l,t,o,u)};b._setVar=function(a){if(a&&""!=a&&e()){b._initData();n.Ec(T(a));b.J()&&k.H("&utmt=var",b.s,b.d)}};b._setCustomVar=function(a,d,l,t){b._initData();return n.Cc(a,d,l,t)};b._deleteCustomVar=function(a){b._initData();n.Ub(a)};b._getCustomVar=function(a){b.initData();n.dc(a)};b._setMaxCustomVariables=function(a){c.mb=a};b._link=function(a,d){if(c.z&&a){b._initData();c.a[A].href=b._getLinkerUrl(a,d)}};b._linkByPost=function(a,d){if(c.z&&a&&a.action){b._initData();a.action=b._getLinkerUrl(a.action,d)}};b._setXKey=function(a,d,l){b.g._setKey(a,d,l)};b._setXValue=function(a,d,l){b.g._setValue(a,d,l)};b._getXKey=function(a,d){return b.g._getKey(a,d)};b._getXValue=function(a,d){return b.g.getValue(a,d)};b._clearXKey=function(a){b.g._clearKey(a)};b._clearXValue=function(a){b.g._clearValue(a)};b._createXObj=function(){b._initData();return new $.N};b._sendXEvent=function(a){var d="";b._initData();if(b.J()){d+="&utmt=event&utme="+T(b.g.Ac(a))+b.ua();k.H(d,b.s,b.d,v,s)}};b._createEventTracker=function(a){b._initData();return new $.Ib(a,b)};b._trackEvent=function(a,d,l,t){var o=b.ab;if(w!=a&&w!=d&&""!=a&&""!=d){o._clearKey(5);o._clearValue(5);(a=o._setKey(5,1,a)&&o._setKey(5,2,d)&&(w==l||o._setKey(5,3,l))&&(w==t||o._setValue(5,1,t)))&&b._sendXEvent(o)}else a=v;return a};b.Lc=function(a,d,l){b._initData();if(b.J()){var t=new $.N;t._setKey(6,1,d.href);var o=l?function(){b.bb(a,d)}:w;k.H("&utmt=event&utme="+T(t.G())+b.ua(),b.s,b.d,v,s,o);if(l){var u=this;c.b.setTimeout(function(){u.bb(a,d)},500)}}};b.bb=function(a,d){if(!a)a=c.b.event;var l=s;if(d.gatcOnclick)l=d.gatcOnclick(a);if(l||typeof l=="undefined")if(!d.target||d.target=="_self")c.b[A]=d.href;else if(d.target=="_top")c.b.top.document[A]=d.href;else if(d.target=="_parent")c.b.parent.document[A]=d.href};b.Rb=function(a){if(!a)a=c.b.event;var d=a.shiftKey||a.ctrlKey||a.altKey;if(!d)if(a.modifiers&&c.b.Event)d=a.modifiers&c.b.Event.CONTROL_MASK||a.modifiers&c.b.Event.SHIFT_MASK||a.modifiers&c.b.Event.ALT_MASK;return d};b.Oc=function(){return c};b._setDomainName=function(a){c.c=a};b._addOrganic=function(a,d){c.ra.splice(0,0,new $.Fa(a,d))};b._clearOrganic=function(){c.ra=[]};b._addIgnoredOrganic=function(a){W(c.qa,a)};b._clearIgnoredOrganic=function(){c.qa=[]};b._addIgnoredRef=function(a){W(c.ta,a)};b._clearIgnoredRef=function(){c.ta=[]};b._setAllowHash=function(a){c.Pa=a?1:0};b._setCampaignTrack=function(a){c.aa=a?1:0};b._setClientInfo=function(a){c.ca=a?1:0};b._getClientInfo=function(){return c.ca};b._setCookiePath=function(a){c.h=a};b._setTransactionDelim=function(a){c.v=a};b._setCookieTimeout=function(a){c.Wa=a};b._setDetectFlash=function(a){c.ea=a?1:0};b._getDetectFlash=function(){return c.ea};b._setDetectTitle=function(a){c.da=a?1:0};b._getDetectTitle=function(){return c.da};b._setLocalGifPath=function(a){c.la=a};b._getLocalGifPath=function(){return c.la};b._setLocalServerMode=function(){c.I=0};b._setRemoteServerMode=function(){c.I=1};b._setLocalRemoteServerMode=function(){c.I=2};b._getServiceMode=function(){return c.I};b._setSampleRate=function(a){c.T=a};b._setSessionTimeout=function(a){c.qb=a};b._setAllowLinker=function(a){c.z=a?1:0};b._setAllowAnchor=function(a){c.$=a?1:0};b._setCampNameKey=function(a){c.Ga=a};b._setCampContentKey=function(a){c.Ha=a};b._setCampIdKey=function(a){c.Ia=a};b._setCampMediumKey=function(a){c.Ja=a};b._setCampNOKey=function(a){c.Ka=a};b._setCampSourceKey=function(a){c.La=a};b._setCampTermKey=function(a){c.Ma=a};b._setCampCIdKey=function(a){c.Na=a};b._getAccount=function(){return b.s};b._setAccount=function(a){b.s=a};b._setNamespace=function(a){c.o=a?T(a):w};b._getVersion=function(){return ca};b._setAutoTrackOutbound=function(a){c.u=[];if(a)c.u=a};b._setTrackOutboundSubdomains=function(a){c.jb=a};b._setHrefExamineLimit=function(a){c.oa=a};b._setReferrerOverride=function(a){b.Za=a};b._setCookiePersistence=function(a){$.t=a}};$._getTracker=function(g,i){return new $.Kb(g,i)};window[aa]=$;var ka=window[ba];})();var window_height=0;var obj_lm=new Object;obj_lm.id='';var IE=document.all?true:false;document.onmousemove=getMouseXY;var show_hidden=0;var tempX=0
var tempY=0
var popup=0
var loaded=0;var elem=new Array();var interval="";var TimeOut="";function calcWidth(){}
function back()
{interval=setInterval('Bestemmingen.back()',500);}
function next()
{interval=setInterval('Bestemmingen.next()',500);}
function Cinterval()
{clearInterval(interval);}
function change_pic_jpg(el)
{var name=el.src;arr_name=name.split("/");arrlen=arr_name.length-1;arr_pic_name=arr_name[arrlen].split("\.");arr_what=arr_pic_name[0].split("_");arrWlen=arr_what.length-1;pic_name=arr_pic_name[0];new_name=(arr_what[arrWlen]=='h')?arr_pic_name[0].replace("_h","",pic_name):arr_pic_name[0].replace(arr_what[arrWlen],arr_what[arrWlen]+"_h");picture=name.replace(pic_name,new_name);el.src=picture;}
function run_goto_item()
{try{if(document.getElementById('site_part')){if(document.getElementById('site_part').value.indexOf('/redactie/')=='-1'){if(document.getElementById('item')){var item=document.getElementById('item').value;if(item==''){item=1;}
goto_item(item);}}}}catch(excp1){}}
function show_meteo_info(info,id)
{if(info!=''){var el_arr=document.getElementById('left_'+id);var elem=document.getElementById('weatherInfo');document.getElementById('meteo_arrow').style.display='';document.getElementById('meteo_arrow').style.top=(elem.offsetTop-13);document.getElementById('meteo_arrow').style.left=(el_arr.offsetLeft+35);document.getElementById('weatherInfo').innerHTML=info;}else{document.getElementById('meteo_arrow').style.display='none';document.getElementById('weatherInfo').innerHTML=info;}}
function resizeCaller(){var dyniframe=new Array()
if(typeof(iframeids)!='undefined'){for(i=0;i<iframeids.length;i++){if(document.getElementById(iframeids[i])){try{resizeIframe(iframeids[i]);}catch(excp2){}
if((document.all||document.getElementById)&&iframehide=="no"){var tempobj=document.all?document.all[iframeids[i]]:document.getElementById(iframeids[i]);tempobj.style.display="block";}}}}
(location.href.indexOf("cgi")!='-1')?window.scrollTo(0,0):"";}
function resizeIframe(frameid){var currentfr=document.getElementById(frameid)
var bookfr=document.getElementById('MAIN_BOOK')
var mainfr=document.getElementById('MAIN_CENTER')
if(currentfr.contentDocument&&currentfr.contentDocument.body.offsetHeight){currentfr.height=parseFloat(currentfr.contentDocument.body.scrollHeight+FFextraHeight)+50;bookfr.style.height=currentfr.height;if(mainfr){mainfr.style.height=parseFloat(currentfr.height)+50;}}else if(currentfr.Document&&currentfr.Document.body.offsetHeight){if(currentfr.Document.body.scrollHeight<750){currentfr.style.height=750;bookfr.style.height=750;if(mainfr){mainfr.style.height=800;}
window_height=750;}else{currentfr.style.height=620;currentfr.style.height=currentfr.Document.body.scrollHeight;bookfr.style.height=currentfr.height;mainfr.style.height=parseFloat(currentfr.style.height)+35;window_height=currentfr.Document.body.scrollHeight;}}else{try{if(currentfr.contentDocument.body.offsetHeight+FFextraHeight<800&&currentfr.contentDocument.body.offsetHeight+FFextraHeight>600){currentfr.height=800;bookfr.style.height=800;if(mainfr){mainfr.style.height=850;}
window_height=800;}else if(currentfr.contentDocument.body.offsetHeight+FFextraHeight<100){document.getElementById('main').style.height=parseFloat(document.body.scrollHeight)-150;bookfr.style.height=document.body.scrollHeight;if(mainfr){mainfr.style.height=document.body.scrollHeight;}
window_height=parseFloat(document.body.scrollHeight)-150;}else{currentfr.height=parseFloat(currentfr.contentDocument.body.offsetHeight+FFextraHeight)+50;bookfr.style.height=currentfr.height;if(mainfr){mainfr.style.height=parseFloat(currentfr.height)+50;}
window_height=currentfr.contentDocument.body.offsetHeight+FFextraHeight;}}catch(excp3){}}
if(currentfr.addEventListener)
currentfr.addEventListener("load",readjustIframe,false)
else if(currentfr.attachEvent){currentfr.detachEvent("onload",readjustIframe)
currentfr.attachEvent("onload",readjustIframe)}
if(top.document){if(top.document.getElementById('error_div')){top.document.getElementById('error_div').style.height=parseFloat(currentfr.height)+232;}}}
function readjustIframe(loadevt){var crossevt=(window.event)?event:loadevt
var iframeroot=(crossevt.currentTarget)?crossevt.currentTarget:crossevt.srcElement
if(iframeroot)resizeIframe(iframeroot.id);}
function loadintoIframe(iframeid,url){if(document.getElementById)
document.getElementById(iframeid).src=url}
if(window.name=='Hotelinfo')
{if(document.getElementById('last_td'))document.getElementById('last_td').style.height='200';}
function openwindow()
{location.href='index.php?inethotelinfo=<?=$inethotelinfo?> X&boek=<?=$boek?>&gal=1<?=$vr_add2?>&jil=<?=$jil?>';}
function chk_error()
{if(top.document.getElementById('error')){if(top.document.getElementById('error').value!=''&&typeof(top.document.getElementById('error').value)!='undefined'){setTimeout("SetGlobalError(top.document.getElementById('error').value,'3')",'100');}}}
function change_back(){}
function change_pic(picture,omschrijving,foto,dir,sync)
{if(document.getElementById('foto').style.backgroundImage){document.getElementById('foto').style.backgroundImage='url("'+picture+'")';}else{document.getElementById('foto').src=picture;}
document.form_addTocart.dir.value=dir;document.form_addTocart.picture.value=foto;document.form_addTocart.sync.value=sync;document.getElementById('omschrijving').value=omschrijving;}
function openpicture(dir,picture,omschr){myFeatures="titlebar=no,toolbar=no,resizeable=no,status=no,scrollbars=no";url="/phpscripts/glob_foto.php?dir=";url+=dir;url+="&foto=";url+=picture;url+=".JPG";url+="&omschrijving=";url+=omschr;window.open(url,'foto',myFeatures);}
function add_hotel(code)
{document.form_addTocart.add_item.value='1';document.form_addTocart.code_add.value=code;document.form_addTocart.submit();}
function popUpBrochure(URL)
{window.open(URL,'Virtuele_Brochure','width=800,height=600,top=10,left=10,scrollbars=yes,statusbar=no');}
function item_close(what)
{eval("document.getElementById('"+what+"').style.visibility='hidden';");}
var set_logo="";function LogoInfo(info,logo,width,close)
{try{var obj_doc=parent.document;var lng=obj_doc.getElementById('lng').value;}catch(excp){var obj_doc=document;var lng=obj_doc.getElementById('lng').value;}
var width=(typeof(width)=='undefined')?"":width;var set_width=(width!='')?width:"300";var set_window_width=document.body.clientWidth;LogoInfo_close();window.clearTimeout(set_logo);try{var set_top=tempY+((location.href.indexOf('links.php')!='-1')?250:15);var set_left=tempX+((location.href.indexOf('links.php')!='-1')?(set_width/4):15);var ori_left=set_left
set_left=(parseFloat(set_left)+parseFloat(set_width)>set_window_width)?(parseFloat(set_left)-parseFloat(set_width)):set_left;set_left=(set_left<0)?ori_left:set_left;elem['LI']=obj_doc.createElement('div');elem['LI'].id="LI";elem['LI'].style.width=set_width;elem['LI'].style.top=set_top;elem['LI'].style.left=set_left;elem['LI'].onmouseover=function(){window.clearTimeout(set_logo);};elem['LI'].onmouseout=function(){set_logo=setTimeout("LogoInfo_close()",3000);};var set_html=(logo.indexOf(".gif")!='-1')?"<img src='"+logo+"' align='left'>":"";set_html+=info;elem['LI'].innerHTML=set_html;elem['LIC']=obj_doc.createElement('div');elem['LIC'].id="LI_close";elem['LIC'].innerHTML=((lng==1)?"sluiten":"fermez")+" <b>X</b>";set_logo=setTimeout("LogoInfo_close()",3000);obj_doc.body.appendChild(elem['LI']);}catch(excp){}}
function LogoInfo_close()
{try{var obj_doc=parent.document;obj_doc.body.removeChild(obj_doc.getElementById('LI'));}catch(excp5){try{var obj_doc=document;obj_doc.body.removeChild(obj_doc.getElementById('LI'));}catch(excp){}}}
function getMouseXY(e){if(IE){tempX=event.clientX+document.body.scrollLeft
tempY=event.clientY+document.body.scrollTop}else{tempX=e.pageX
tempY=e.pageY}
if(tempX<0){tempX=0}
if(tempY<0){tempY=0}
if(typeof(set_drag)!='undefined'&&set_drag!=''){obj=set_drag.offsetParent;obj=obj.offsetParent.offsetParent;posX=obj.offsetLeft;posY=obj.offsetTop;sizeX=tempX-posX;sizeY=tempY-posY;if(sizeX>max_width){sizeX=max_width;}
set_drag.style.width=sizeX;set_drag.style.height=sizeY;document.getElementById(set_drag.id+"_size").value=sizeX+"X"+sizeY;}
try{if(drag!=''){dragTop=(dragTop==0)?(parseFloat(tempY)-parseFloat(document.getElementById(drag).offsetTop)):dragTop;dragLeft=(dragLeft==0)?(parseFloat(tempX)-parseFloat(document.getElementById(drag).offsetLeft)):dragLeft;var top=parseFloat(tempY)-parseFloat(dragTop);var left=parseFloat(tempX)-parseFloat(dragLeft);document.getElementById(drag).style.top=top;document.getElementById(drag).style.left=left;if(drag=='redactie_div'){createCookie("RT_TOP",top,365);createCookie("RT_LEFT",left,365);}}else{dragTop=0;dragLeft=0;}}catch(excp7){}
if(popup=='1'){document.getElementById('wedstrijd_popup').style.top=(tempY-150);document.getElementById('wedstrijd_popup').style.left=(tempX-20);}}
function change_but(el,what)
{var name=el.id;el.src=(what=='2')?"/images/GD/"+name+".png":"/images/GD/"+name+"_over.png";}
function weer_Show(code,where)
{if(typeof(where)!="undefined"){if(where=='intro'){position=",top=300,left=550";}else if(where=='fiche'){position=",top=321,left=597";}}else{position=",top=10,left=10";}
var URL="/phpscripts/meteo/meteo.php?code="+code;window.open(URL,'meteo','width=300,height=320'+position+',scrollbars=yes,statusbar=no');}
function sendToParent(US,hotelcode){try{parent.vulin.open_BE(parent.vulin.document.getElementById('BE_open'));}catch(excp8){}
try{var vulinFrm=window.opener.top.vulin;}catch(expc){var vulinFrm=((parent.vulin)?parent.vulin:top.vulin);}
vulinFrm.set_promo(hotelcode,"","","","","",vulinFrm.document.form.User.value);}
function Goto_Tekst()
{var inetinfo=document.getElementById('inetinfo').value;location.href="index.php?inetinfo="+inetinfo;}
function add_zero(str,min)
{str+='';var len=str.length;var add_zero="";if(len<min&&str!=''){teller=min-len;for(i=0;i<teller;i++){add_zero+="0";}
str=add_zero+str;}
return str;}
function promo(hotelcode,day,month,year,airport,dur)
{try{var lng=document.form_lm.lng.value;}catch(excp){}
try{var lng=document.form.lng.value;}catch(excp){}
try{if(parent.vulin&&(parent.location.href.indexOf("jetair")!="-1"||parent.location.href.indexOf("beltravel")!="-1"||parent.location.href.indexOf("jetnet")!="-1")){try{parent.document.getElementById('vulin').style.height=parent.vulin.document.getElementById('BE_open').title;}catch(excp9){}
try{if(parent.vulin.document.form.Brochure.value!='1'&&parent.vulin.document.form.Brochure.value!='9'){parent.vulin.location.href='/bepages/vliegvakantie_vulin.php';}}catch(excp10){}
var objPFRM=parent.vulin.document.form;var outdate=new Date(year,(parseFloat(month)-1),parseFloat(day)+parseFloat(dur)-1);if(location.href.indexOf('lm_search')!='-1'){objPFRM.Hotelcode.value=hotelcode;objPFRM.DepartDay.value=add_zero(day,'2');objPFRM.DepartMonth.value=add_zero(month,'2');objPFRM.DepartYear.value=year;objPFRM.Duration.value=dur;parent.vulin.set_date_fld("in");objPFRM.DepartDay2.value=add_zero(outdate.getDate(),'2');objPFRM.DepartMonth2.value=add_zero((outdate.getMonth()+1),'2');objPFRM.DepartYear2.value=outdate.getFullYear();parent.vulin.set_date_fld("out");objPFRM.LM.value="Y";parent.vulin.set_season();airport=(airport=='')?"BRX":airport;objPFRM.luchthaven.value=airport;objPFRM.Airport.value=airport;objPFRM.Pax.value=((getcookie('Pax')=='')?"2":getcookie('Pax'));objPFRM.Child.value=((getcookie('Child')=='')?"0":getcookie('Child'));objPFRM.Infant.value=((getcookie('Infant')=='')?"0":getcookie('Infant'));parent.vulin.Zoek();}else{var arr_loc=location.href.split("\/");airport=(airport=='')?"BRX":airport;location.href='/'+arr_loc[3]+'/?hcode='+hotelcode+'&dd='+add_zero(day,'2')+'&mm='+add_zero(month,'2')+'&yy='+year+'&dd2='+add_zero(outdate.getDate(),'2')+'&mm2='+add_zero((outdate.getMonth()+1),'2')+'&yy2='+outdate.getFullYear()+"&air="+airport+'&dur='+dur+'&Pax='+((getcookie('Pax')=='')?"2":getcookie('Pax'))+'&Child='+((getcookie('Child')=='')?"0":getcookie('Child'))+'&Infant='+((getcookie('Infant')=='')?"0":getcookie('Infant'));}}else{window.open("/bepages/"+((lng==1)?"nl":"fr")+"/criteria.php?hcode="+hotelcode+"&dd="+day+"&mm="+month+"&yy="+year+"&dur="+dur+"&Airport="+airport,"booking");}}catch(excp10){window.open("/bepages/"+((lng==1)?"nl":"fr")+"/criteria.php?hcode="+hotelcode+"&dd="+day+"&mm="+month+"&yy="+year+"&dur="+dur+"&Airport="+airport,"booking");}}
function get_steden(dest,resort,resort_code,user,season)
{show_iframe();parent.resultaat.document.location.href='/phpscripts/search_engine.php?User='+user+'&Season='+season+'&region='+resort+'&destination='+dest+'&deel=auto';}
function incl_resize(divId)
{if(typeof("divId")!='undefined'){height=document.getElementById(divId).offsetHeight;height=(height<620)?620:height;bottomH=height+160;parent.document.getElementById('bottom').style.top=bottomH;document.getElementById("main_booking").style.height=bottomH;document.getElementById("main_table").style.height=bottomH;}else{height=document.body.scrollHeight;height=(height<620)?620:height;bottomH=height+20;parent.document.getElementById('bottom').style.top=bottomH;document.getElementById("main_booking").style.height=bottomH;document.getElementById("main_table").style.height=bottomH;}}
function show_iframe()
{if(parent.document.getElementById('emergency_popup')){setTimeout("display_id('emergency_popup','none')",100);}
if(parent.document.getElementById('MAIN_CENTER')){setTimeout("display_id('MAIN_CENTER','none')",100);}
if(parent.document.getElementById('MAIN_CENTER1')){setTimeout("display_id('MAIN_CENTER1','none')",100);}
if(parent.document.getElementById('MAIN_RIGHT')){setTimeout("display_id('MAIN_RIGHT','none')",100);}
if(parent.document.getElementById('MAIN_BOOK')){setTimeout("display_id('MAIN_BOOK','')",100);}}
function hide_iframe()
{if(parent.document.getElementById('emergency_popup')){setTimeout("display_id('emergency_popup','')",100);}
if(parent.document.getElementById('MAIN_CENTER')){setTimeout("display_id('MAIN_CENTER','')",100);}
if(parent.document.getElementById('MAIN_CENTER1')){setTimeout("display_id('MAIN_CENTER1','')",100);}
if(parent.document.getElementById('MAIN_RIGHT')){setTimeout("display_id('MAIN_RIGHT','')",100);}
if(parent.document.getElementById('MAIN_BOOK')){setTimeout("display_id('MAIN_BOOK','none')",100);}}
function display_id(id,what)
{parent.document.getElementById(id).style.display=what;}
function Rclick(what,deel,extra)
{location.href='index.php?deel='+deel+'&what='+what+'&item='+extra;}
String.prototype.replaceAll=function(oldvalue,newvalue)
{var tmp=this;var result='';var index=tmp.indexOf(oldvalue);if(index==-1){return tmp;}
while(index!=-1){result+=tmp.substr(0,index);result+=newvalue;tmp=tmp.substr(index+oldvalue.length);index=tmp.indexOf(oldvalue);}
return result+tmp;};function show_hotel(param)
{parent.resultaat.document.location.href='/phpscripts/unitext_display_auto/index.php?inethotelinfo='+param;show_iframe();}
function framePage(link)
{show_iframe();parent.resultaat.document.location.href=link;setTimeout("parent.resizeCaller()",100);}
function autofitIframe(id){document.getElementById(id).height=530;if(self.innerHeight){h=self.innerHeight;}else{if(document.documentElement.clientHeight!=0){h=document.documentElement.clientHeight;}else{h=document.body.clientHeight;}}
var the_height=document.getElementById(id).contentWindow.document.body.scrollHeight;document.getElementById(id).height=the_height+"px";if(the_height<h){the_height=h;}
document.body.style.height=the_height+"px";}
function get_xtr_info()
{var lng=document.getElementById('lng').value;po=document.form.f003.value;po_1=po.substr(0,2);refno=/[a-zA-Z]{2,}/;if(refno.test(po_1)){document.form.action='index.php';document.form.glob_b.value='2';document.form.submit();}else{leadname=document.form.leadname.value;name=leadname.replace("'",".");name=leadname.replace(" ","+");url="/phpscripts/tussen_reservering.php?po=";url+=document.form.f003.value;url+="&leadname=";url+=name;url+="&Info=V";url+="&lng="+((lng==1)?"N":"F");url+="&Language="+((lng==1)?"N":"F");window.open(url,'Mjetair');}}
function Twijzigen_callback(xml_req)
{var response=xml_req.responseText;var arr_HTML=response.split("<html");}
function get_Bagage(lng)
{if(lng=='1'){window.open("http://www.worldtracer.aero/cgi-bin/fileframe.exe?tran=XXXtbXXXXXl1=neCB=Y","bagage");}else{window.open("http://www.worldtracer.aero/cgi-bin/fileframe.exe?tran=XXXtbXXXXXl1=frCB=Y","bagage");}}
function trim(str)
{return str.replace(/^\s*|\s*$/g,"");}
function str_replace(search,replace,subject){return subject.split(search).join(replace);}
function SetGlobalError(error,what,surplus)
{if(top.document.getElementById('deel')){var surplus=top;var fromTop='50%';}else{var surplus=self;var fromTop='400';}
try{l=window.parent.document.getElementById('lng').value;}catch(excp11){l=document.forms[0].lng.value;}
var obody=surplus.document.body;if(surplus.document.getElementById('error_div')){var odiv=surplus.document.getElementById('error_div');var odiv2=surplus.document.getElementById('error_div2');}
var height=surplus.document.body.scrollHeight;var div=surplus.document.createElement("div");div.id='error_div';if(window_height>0){div.style.height=window_height;}else{div.style.height='100%';}
div.style.width='100%';div.onclick=function(){SetGlobalError('','2');};var men_div=surplus.document.createElement("div");men_div.id='error_header';var header_nfo=((l==1)?"Waarschuwing":"Avertissement");header_nfo+="<div style='position:absolute;right:5px;cursor:pointer'>X</div>"
men_div.innerHTML=header_nfo;var err_div=surplus.document.createElement("div");err_div.id='error_div2';err_div.style.top=fromTop;err_div.onclick=function(){SetGlobalError('','2');};var err_nfo=surplus.document.createElement("div");err_nfo.className=(what==1)?'error_Ediv_red':'error_Ediv_blue';err_nfo.innerHTML=error;if(what==1||what==3){obody.appendChild(div);err_div.appendChild(men_div);err_div.appendChild(err_nfo);obody.appendChild(err_div);obody.focus();}else if(what==2){if(odiv){obody.removeChild(odiv);obody.removeChild(odiv2);}}}
function opvragen(what,xtr){if(typeof(xtr)=='undefined'||xtr==''){var deel="vlieg";}else{var deel=xtr;}
var lng=document.getElementById('lng').value;location.href='index.php?deel='+deel+'&info=info_page&name='+what+"&lng="+lng;}
function showPromo(who,rest){for(i=2;i<rest;i++){if(document.getElementById("promoT_"+i)){document.getElementById("promoT_"+i).style.display='none';document.getElementById("promoF_"+i).src='/images/home/page.gif';}}
document.getElementById("promoF_"+who).src='/images/home/on_page.gif';document.getElementById("promoT_"+who).style.display='';}
function showLijnvlucht(link){show_iframe();setTimeout("display_id('main_booking','none')",100);setTimeout("display_id('main_lijn','')",100);if(parent.lijnvluchten){parent.lijnvluchten.location.href=link;parent.document.getElementById('lijnvluchten').style.height='713';}else{lijnvluchten.location.href=link;document.getElementById('lijnvluchten').style.height='713';}}
function highlightCountry(land){if(document.kaart){document.kaart.SetVariable("landTonen",land);}}
function highlightRegio(regio){if(document.kaart){document.kaart.SetVariable("regioTonen",regio);}}
function showCountry(land,code){if(parent.resultaat.location.href=="about:blank"){parent.location.href="bestemming_"+land+"_"+code+".htm";}else{d=parent.vulin.document.form.deel.value;parent.resultaat.location.href="../best.php?code="+code+"&deel="+d;}}
function showRegio(code_land,code_regio,regio_naam_nl,regio_naam_fr){if(location.href.indexOf('best.php')!='-1'||location.href.indexOf('auto_regio.php')!='-1'){set_dest_res(code_land,code_regio);}else{var deel=parent.vulin.document.form.deel.value;var url_dest=top.document.getElementById('site_part').value.split("/");var lando=top.document.getElementById('lando').value;top.location.href="/"+url_dest[1]+'/'+lando+'/'+RS(regio_naam_nl)+'/';}}
function searchSkiRegion(str_steden){parent.vulin.document.form.Hotelcode.value=str_steden.replace("|","'");parent.vulin.Zoek_hotel();}
function RS(str)
{str=str.replace("\/","-");return str;}
function RSPC(str)
{str=str.replace(/ /g,"-");return str;}
function reset_zebra(table,class1,class2,start,end)
{if(table&&table.rows.length>0){start=start||0;if((start<0)||(start>table.rows.length-1))start=0;end=end||table.rows.length-1;if((end<0)||(end<start)||(end>table.rows.length-1))end=table.rows.length-1;var sw=true;for(var i=start;i<=end;i++){table.rows[i].className=(sw=!sw)?class1:class2;}}}
function zoekGegarandeerdeBestemming(){value=document.form_zoekg.bestemming.value;l=document.getElementById("lng").value;if(value.indexOf("&")!=-1){while(value.indexOf("&")!=-1){value=value.replace("&","amp");}}
if(document.form_zoekg.bestemming.selectedIndex!=0&&((document.form_zoekg.bestemming.options.length-1)==document.form_zoekg.max_b.value)){var parameters="bestemming="+value+"&lng="+l;var ajax=new Ajax("/phpscripts/gegarandeerde/gegarandeerd_zoeken.php","POST",parameters,vulDatums);ajax.go();}
if(document.form_zoekg.vertrekdatum.selectedIndex==0&&document.form_zoekg.bestemming.selectedIndex==0){var parameters="bestemming=all&lng="+l;var ajax=new Ajax("/phpscripts/gegarandeerde/gegarandeerd_zoeken.php","POST",parameters,vulDatums);ajax.go();}}
function vulDatums(xml_req){var response=eval("("+xml_req.responseText+")");vertrekData=response.bestemming;arr_vertrekData=vertrekData.split(",");for(i=document.form_zoekg.vertrekdatum.options.length-1;i>=1;i--){document.form_zoekg.vertrekdatum.remove(i);}
for(v=0;v<arr_vertrekData.length;v++){vertrekDate=arr_vertrekData[v];vertrekDate=arr_vertrekData[v].substring(8,10)+"-"+arr_vertrekData[v].substring(5,7)+"-"+arr_vertrekData[v].substring(0,4);var optn=document.createElement("option");optn.text=vertrekDate;optn.value=vertrekDate;document.form_zoekg.vertrekdatum.options.add(optn);}
if(arr_vertrekData.length<30){document.form_zoekg.vertrekdatum.selectedIndex=1;}}
function zoekGegarandeerdeVertrekdatum(){value=document.form_zoekg.vertrekdatum.value;lng=document.getElementById("lng").value;if(document.form_zoekg.vertrekdatum.selectedIndex!=0&&((document.form_zoekg.vertrekdatum.options.length-1)==document.form_zoekg.max_d.value)){var parameters="vertrekdatum="+value+"&lng="+lng;var ajax=new Ajax("/phpscripts/gegarandeerde/gegarandeerd_zoeken.php","POST",parameters,vulBestemming);ajax.go();}
if(document.form_zoekg.vertrekdatum.selectedIndex==0&&document.form_zoekg.bestemming.selectedIndex==0){var parameters="vertrekdatum=all&lng="+lng;var ajax=new Ajax("/phpscripts/gegarandeerde/gegarandeerd_zoeken.php","POST",parameters,vulBestemming);ajax.go();}}
function vulBestemming(xml_req){var response=eval("("+xml_req.responseText+")");bestemmingen=response.vertrekdatum;arr_bestemmingen=bestemmingen.split(",");for(i=document.form_zoekg.bestemming.options.length-1;i>=1;i--){document.form_zoekg.bestemming.remove(i);}
for(b=0;b<arr_bestemmingen.length;b++){bestemmingen=arr_bestemmingen[b];var optn=document.createElement("option");optn.text=bestemmingen;optn.value=bestemmingen;document.form_zoekg.bestemming.options.add(optn);}
if(arr_bestemmingen.length<30){document.form_zoekg.bestemming.selectedIndex=1;}}
function zoekGeg(){document.form_zoekg.target='_self';document.form_zoekg.action='';document.form_zoekg.submit();}
function POPUpHotel(URL)
{window.open(URL,'Excursies','width=800,height=600,top=10,left=10,scrollbars=yes,statusbar=yes');}
function hide_Wpopup()
{var wedstrijd_PC=getcookie('wedstrijd_PC');if(typeof(wedstrijd_PC)!='undefined'){if(wedstrijd_PC!='Y'&&location.href.indexOf("www")){document.getElementById('wedstrijd_popup').style.display='none';createCookie('wedstrijd_PC','Y','');}}}
function print_Waarde(waarde)
{popup=waarde;}
function GTB(el)
{var value=el.value;location.href=value;}
function showLijn(){var date=new Date();maand=date.getMonth();arr_maanden=Array("31","30","31","30","31","30","31","31","30","31","30","31");str_vertr=document.lijnvluchten_be.lijn_vertr.value;str_best=document.lijnvluchten_be.lijn_best.value;str_vertr_dag=document.lijnvluchten_be.lijn_vertr_datum_dag.value;str_vertr_maand=document.lijnvluchten_be.lijn_vertr_datum_maand.value;str_ret_maand=document.lijnvluchten_be.lijn_ter_datum_maand.value;str_ret_date=document.lijnvluchten_be.lijn_ter_datum_dag.value;str_retour_l=document.lijnvluchten_be.lijn_retour.length;for(i=0;i<str_retour_l;i++){if(document.lijnvluchten_be.lijn_retour[i].checked==true){str_retour=document.lijnvluchten_be.lijn_retour[i].value;}}
str_volw=document.lijnvluchten_be.lijn_volw.value;str_kind=document.lijnvluchten_be.lijn_kind.value;str_baby=document.lijnvluchten_be.lijn_baby.value;if(document.lijnvluchten_be.lijn_vertr.value==""){str_vertr="BRU";}
show_iframe();setTimeout("display_id('main_booking','none')",100);setTimeout("display_id('main_lijn','')",100);if(document.getElementById("lng").value=="1"){parent.lijnvluchten.location.href="http://flweb.ypsilon.net/index.phtml?agent=ttc_sirius_nl2&AorK=K&from="+str_vertr+"&Day="+str_vertr_dag+"&month_1="+str_vertr_maand+"&to="+str_best+"&RetDay="+str_ret_date+"&month_2="+str_ret_maand+"&pax="+str_volw+"&pax_chd="+str_kind+"&pax_inf="+str_baby+"&onewayswitch="+str_retour+"&only_vail=Y&lang=nl_BE";}else{parent.lijnvluchten.location.href="http://flweb.ypsilon.net/index.phtml?agent=ttc_sirius_nl2&AorK=K&from="+str_vertr+"&Day="+str_vertr_dag+"&month_1="+str_vertr_maand+"&to="+str_best+"&RetDay="+str_ret_date+"&month_2="+str_ret_maand+"&pax="+str_volw+"&pax_chd="+str_kind+"&pax_inf="+str_baby+"&onewayswitch="+str_retour+"&only_vail=Y&lang=fr_BE";}
parent.document.getElementById('lijnvluchten').style.height='713';parent.vulin.location.href="/phpscripts/vlieg_jc/links.php?deel=vlieg_jc&lijnvluchten=1&filIframe=0";}
var oldNr=0;function openTree(nr)
{if(oldNr==nr){setTree(nr);oldNr=0;}else{setTree(oldNr);setTree(nr);oldNr=nr;}}
function setTree(nr){var mydivs=document.getElementsByTagName("div");if(document.getElementById('pic|'+nr+'|')){document.getElementById('pic|'+nr+'|').src=(document.getElementById('pic|'+nr+'|').src.indexOf('plus')!='-1')?'/swimages/general/min.gif':'/swimages/general/plus.gif';}
for(i=0;i<mydivs.length;i++){if(mydivs.item(i).id.indexOf("div|"+nr+"|")!='-1'){mydivs.item(i).style.display=(mydivs.item(i).style.display=='none')?'':'none';}else if(nr=='all'&&mydivs.item(i).id.indexOf("div|")!='-1'){mydivs.item(i).style.display=(mydivs.item(i).style.display=='none')?'':'none';}}
if(nr=='all'){window.print();}}
function MM_jumpMenu(targ,selObj,restore){eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");if(restore)selObj.selectedIndex=0;}
function hidePopUpWereld(){document.getElementById('th_popup').style.display="none";}
function global_fix_png()
{var arVersion=navigator.appVersion.split("MSIE");var version=parseFloat(arVersion[1]);if((version>=5.5)&&(version<7)&&(document.body.filters)){var src_regex=/^.*\.png$/gi;var images=document.getElementsByTagName("img");for(var i=images.length-1;i>=0;i--){var img=images[i];if(img.src.match(src_regex)){if(!img.complete){img.onload=fix_png}else{fix_png.apply(img);}}}}}
function fix_png()
{var img=this;var span=document.createElement("span");if(img.id)span.id=img.id;if(img.className)span.className=img.className;if(img.onclick)span.onclick=img.onclick;if(img.onmouseover)span.onmouseover=img.onmouseover;if(img.onmouseout)span.onmouseout=img.onmouseout;if(img.onmouseup)span.onmouseup=img.onmouseup;if(img.onmousedown)span.onmousedown=img.onmousedown;span.title=img.title?img.title:img.alt;span.style.width=img.width+"px";span.style.height=img.height+"px";span.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src=\'"+img.src+"\', sizingMethod='scale')";img.id=null;img.parentNode.insertBefore(span,img);img.parentNode.removeChild(img);}
var vulinFrameHeight="450";var LeftHeight="450";function closeItems()
{var Search=document.getElementById('Search');var HSearch=document.getElementById('HSearch');var setD=(Search.style.display=='')?'none':'';Search.style.display=setD;HSearch.style.display=setD;if(Search.style.display!=''){parent.document.getElementById('vulin').style.height=260;parent.document.getElementById('left').style.height=260;}else{parent.document.getElementById('vulin').style.height=vulinFrameHeight;parent.document.getElementById('left').style.height=LeftHeight;}}
function getNode(el,node)
{while(el.nodeName!='INPUT'){el=el.nextSibling;}
return el;}
function getInfo(el,out)
{var doc=document;var body=doc.body;try{var node=el.firstChild;var id=(typeof(node.value)=="undefined")?node.nextSibling.value:node.value;}catch(excp13){}
try{if(!doc.getElementById('infoBox')&&out==''){var pic=jsarr[id]['criteria'];var info="<ul style='margin-left:15px'>"+jsarr[id]['info'].replace(/\/r /g,"<br>").replace(/• /g,"<li>").replace(/- /g,"<li>").replace(/\/ /g,"<li>")+"</ul>";var set_window_width=document.body.clientWidth;var set_width=300;var set_left=tempX+15;var ori_left=set_left
set_left=(parseFloat(set_left)+parseFloat(set_width)>set_window_width)?(parseFloat(set_left)-parseFloat(set_width)):set_left;set_left=(set_left<0)?ori_left:set_left;if(info!=''){var div=new Array();div[10]=doc.createElement("div");div[10].style.position="absolute";div[10].style.zIndex="1";div[10].style.top="0";div[10].style.left="0";div[10].style.width="100%";div[10].style.height="100%";var iframe=doc.createElement("iframe");iframe.id="infoBoxFrame";iframe.width="245";iframe.height="75";div[0]=doc.createElement("div");div[0].style.position='absolute';div[0].id='LI';div[0].style.top=(IE)?(parseFloat(tempY)):(parseFloat(tempY));div[0].style.left=set_left;div[0].style.width=set_width;div[0].style.Minheight='50';div[1]=doc.createElement("div");div[1].id="LI_header";div[1].style.width='300';div[1].style.zIndex="5";if(info!=''){}
div['close']=top.document.createElement("div");div['close'].id="LI_close";div['close'].style.top="4";div['close'].style.right="14";div['close'].style.width="9";div['close'].style.height="9";div['close'].onclick=function(){getInfo('','1');};div['close'].style.background="url(/swimages/icons/close.gif) no-repeat";div[2]=doc.createElement("div");div[2].id="LI_nfo";if(info!=''){div[2].innerHTML=info;}
div[10].appendChild(iframe);div[0].appendChild(div[2]);body.appendChild(div[0]);}}else if(doc.getElementById('infoBox')){body.removeChild(doc.getElementById('infoBox'));}
doc.getElementById('infoBoxFrame').style.height=(parseFloat(doc.getElementById('infoBox').clientHeight)-5);}catch(excp14){}}
function streekinfo_show(page)
{location.href=page;}
function alertIT(str)
{try{var IP=document.form.IP.value;}catch(excp15){var IP=parent.vulin.document.form.IP.value;}
(IP.substr(0,9)=="10.177.5")?alert(str):"";}
function resizeWindow()
{focus();try{parent.streekinfo.resizeTo(788,200);body=top.window.document.body;subbody=window.document.body;parent.document.getElementById('streekinfo').style.height=(subbody.scrollHeight<subbody.offsetHeight)?subbody.offsetHeight:subbody.scrollHeight;try{top.resizeCaller();}catch(excp16){}}catch(excp17){}}
function chechDate(date)
{var arr_date=date.split("-");var year=arr_date[0];var month=parseFloat(arr_date[1])-1;var day=arr_date[2];today=new Date()
var depart=new Date(year,month,day)
if(today.getMonth()==11&&today.getDate()>25)
depart.setFullYear(depart.getFullYear()+1)
var one_day=1000*60*60*24
return Math.ceil((depart.getTime()-today.getTime())/(one_day));}
function setfontSize(size)
{createCookie("font-size",size,"365");location.href=location.href;}
var order=new Array();var Lsort="";function set_sort(el)
{}
function set_sirius(from,to,Day,month_1,RetDay,month_2,pax,airline_restrict)
{var arr_M1=month_1.split("-");var arr_M2=month_2.split("-");try{document.form_sirius.from.value=from;document.form_sirius.to.value=to;document.form_sirius.Day.value=parseFloat(Day);document.form_sirius.RetDay.value=parseFloat(RetDay);document.form_sirius.month_1.value=parseFloat(arr_M1[0])+"-"+arr_M1[1];document.form_sirius.month_2.value=parseFloat(arr_M2[0])+"-"+arr_M2[1];document.form_sirius.pax.value=pax;document.form_sirius.airline_restrict.value=airline_restrict;show_result();}catch(excp18){var main=window.document.body;var arr_input=new Array();var setForm=document.createElement('form');setForm.action="http://flweb.ypsilon.net/index.phtml";setForm.name="form_sirius";setForm.method="POST";setForm.target="resultaat";arr_input['from']=document.createElement('input');arr_input['from'].type='hidden';arr_input['from'].name='from';arr_input['from'].value=from;arr_input['to']=document.createElement('input');arr_input['to'].type='hidden';arr_input['to'].name='to';arr_input['to'].value=to;arr_input['Day']=document.createElement('input');arr_input['Day'].type='hidden';arr_input['Day'].name='Day';arr_input['Day'].value=parseFloat(Day);arr_input['RetDay']=document.createElement('input');arr_input['RetDay'].type='hidden';arr_input['RetDay'].name='RetDay';arr_input['RetDay'].value=parseFloat(RetDay);arr_input['month_1']=document.createElement('input');arr_input['month_1'].type='hidden';arr_input['month_1'].name='month_1';arr_input['month_1'].value=parseFloat(arr_M1[0])+"-"+arr_M1[1];arr_input['month_2']=document.createElement('input');arr_input['month_2'].type='hidden';arr_input['month_2'].name='month_2';arr_input['month_2'].value=parseFloat(arr_M2[0])+"-"+arr_M2[1];arr_input['pax']=document.createElement('input');arr_input['pax'].type='hidden';arr_input['pax'].name='pax';arr_input['pax'].value=pax;arr_input['agent']=document.createElement('input');arr_input['agent'].type='hidden';arr_input['agent'].name='agent';arr_input['agent'].value='ttc_sirius_nl2';arr_input['lang']=document.createElement('input');arr_input['lang'].type='hidden';arr_input['lang'].name='lang';if(lng=='N'){arr_input['lang'].value='nl_BE';}else{arr_input['lang'].value='fr_BE';}
arr_input['airline_restrict']=document.createElement('input');arr_input['airline_restrict'].type='hidden';arr_input['airline_restrict'].name='airline_restrict';arr_input['airline_restrict'].value=airline_restrict;setForm.appendChild(arr_input['agent']);setForm.appendChild(arr_input['lang']);setForm.appendChild(arr_input['from']);setForm.appendChild(arr_input['to']);setForm.appendChild(arr_input['Day']);setForm.appendChild(arr_input['RetDay']);setForm.appendChild(arr_input['month_1']);setForm.appendChild(arr_input['month_2']);setForm.appendChild(arr_input['pax']);setForm.appendChild(arr_input['airline_restrict']);main.appendChild(setForm);show_iframe();setTimeout("parent.resizeCaller()",100);parent.document.getElementById('lijnvluchten').style.height='713';setForm.submit();}}
function set_email()
{var email=document.getElementById('email').value;var lng=document.getElementById('lng').value;location.href=(lng==1)?"/newsletter_page?email="+email:"/newsletter_page_fr?email="+email;}
function ajax_save(value,regio_code,land_code,what)
{var arr_value=value.split("/");var arr_len=arr_value.length;var taal=(document.getElementById('lng').value==1)?"nl":"fr";switch(what){case"1":var where="videotour";break;case"2":var where="hotellist";break;case"3":var where="hotelfiche";break;}
var paramstring="video="+value.replace(".wmv","")+".wmv&reis=video&REGIO="+regio_code+"&ajax=video";var ajax=new Ajax("/phpscripts/film_list.php","POST",paramstring,ajax_save_callback);ajax.go();}
function ajax_save_callback(xml_req)
{var response=xml_req.responseText;var response_array=response.split("#");if(response_array[0].indexOf("ga_door")!='-1'){location.href=response_array[1];}}
var div=new Array();var warning="";function set_error()
{var body=document.body;div['fade']=document.createElement('div');div['fade'].className="PA fade";div['fade'].id="fade";div['fade'].onclick=function(){drop_error();};div['error']=document.createElement('div');div['error'].id="ERR";div['error'].style.position="absolute";div['error'].style.top="200";div['error'].style.left="50%";div['error'].style.marginLeft="-150";div['error'].style.width="300";div['error'].style.height="100";div['error'].style.borderLeft="2px outset #D4D0C8";div['error'].style.borderTop="2px outset #D4D0C8";div['error'].style.borderRight="2px outset #808080";div['error'].style.borderBottom="2px outset #808080";div['error'].style.background="#FFFFFF";div['error'].style.zIndex="2";div['errtitle']=document.createElement('div');div['errtitle'].style.position="relative";div['errtitle'].style.background="#5979AE";div['errtitle'].style.height="18";div['errtitle'].style.width="100%";div['errtitle'].style.font="0.9em verdana";div['errtitle'].style.fontWeight="bolder";div['errtitle'].style.color="#FFFFFF";div['errtitle'].innerHTML="<div style='padding:2'>Warning</div>";div['info']=document.createElement('div');div['info'].id="error_info";if(warning=="1"){div['info'].style.paddingTop="20px";div['info'].style.paddingLeft="10px";div['info'].style.font="1.4em verdana";div['info'].style.fontWeight="bolder";div['info'].style.color="#FF7D00";}
div['close']=document.createElement('div');div['close'].style.position="absolute";div['close'].style.right="2";div['close'].style.top="1";div['close'].style.width="17";div['close'].style.height="17";div['close'].style.cursor="pointer";div['close'].style.background="url('/swimages/icons/close.png') no-repeat";div['close'].onclick=function(){drop_error();};div['errtitle'].appendChild(div['close']);div['error'].appendChild(div['errtitle']);div['error'].appendChild(div['info']);body.appendChild(div['error']);body.appendChild(div['fade']);}
function drop_error()
{var body=document.body;body.removeChild(document.getElementById('fade'));body.removeChild(document.getElementById('ERR'));}
function SCTRL(el,what)
{var lng=document.getElementById('lng').value;if(what==0&&el.value.indexOf("code")!='-1'){el.value="";}
if(what==1&&el.value==''){el.value=(lng=='1')?"hotel/code/regio":"hôtel/code/region";try{parent.vulin.document.form.Hotelcode.value="";}catch(excp){}}}
function SDATA()
{try{var lng=document.getElementById('lng').value;if(location.href.indexOf('route')!='-1'){try{calcRoute();}catch(excp){}
return;}
if(document.getElementById('search_data').value.indexOf("\/")=='-1'&&document.getElementById('search_data').value!=''&&location.href.indexOf('route')=='-1'){parent.vulin.document.form.Hotelcode.value=document.getElementById('search_data').value;parent.vulin.Zoek();return;}}catch(excp){}}
var oTidyBrowser;function oTidyBrowser()
{}
var pic_time;function full_pic(el,what)
{if(what==0){pic_time=setTimeout("show_full_pic("+what+")",200);}else{show_full_pic(what);window.clearTimeout(pic_time);}}
function show_full_pic(what)
{document.getElementById('inl').style.zIndex=(what==0)?99:1;document.getElementById('accom').style.zIndex=(what==0)?1:2;}
function display_info(el)
{var what=el.id.replace("_but","");var info_div=document.getElementsByTagName('div');if(what.indexOf("accom")!='-1'){document.getElementById('extra_data').style.display='';document.getElementById('accom_data').style.width='568';document.getElementById('accom_transparent').style.display='';}else{document.getElementById('extra_data').style.display='none';document.getElementById('accom_data').style.width='770';document.getElementById('accom_transparent').style.display='none';}
for(i=0;i<info_div.length;i++){if(info_div[i].id.indexOf('_info')!='-1'&&info_div[i].id==what+"_info"){try{info_div[i].style.display="";document.getElementById(info_div[i].id.replace("_info","_but")).className="PR FL Amenu_bottom";}catch(expc){}}else if(info_div[i].id.indexOf('_info')!='-1'&&info_div[i].id.indexOf('RT_info')=='-1'){try{info_div[i].style.display="none";document.getElementById(info_div[i].id.replace("_info","_but")).className="PR FL NAmenu_bottom";}catch(expc){}}}
if(what=='prijs'){}}
function show_hotel_list(lng,where)
{if(typeof(where)=="undefined"){var where="hotelfiche";}
var hotel_list=document.getElementById('hotellist').style.display;var deel=document.getElementById('deel').value;var hotelcode=document.getElementById('hotelcode').value;var taal=(lng==1)?"nl":"fr";var ss_param=taal+"."+deel+"."+where+"."+hotelcode+".hotel_list";if(hotel_list=='none'){document.getElementById('hotellist').style.display='';}else{document.getElementById('hotellist').style.display='none';}
try{parent.resizeCaller();}catch(excp){}
setTimeout("location.href='#hotels';",500);}
var json_cat;var json_resort;var json_datum;var json_dur;var json_airport;var json_meal;var json_A_min;function set_lastmins()
{try{var arr_lm={"meal":{"fld":"meal","name1":"Maaltijdkeuze","name2":"Choix de repas"},"A_min":{"fld":"A_min","name1":"Prijs","name2":"Prix"},"cat":{"fld":"cat","name1":"Sterren","name2":"Classification"},"resort":{"fld":"resort","name1":"Vakantieplaats","name2":"Lieu de vacances"},"datum":{"fld":"datum","name1":"Vertrekdatum","name2":"Date de d&eacute;part"},"dur":{"fld":"dur","name1":"Verblijfsduur","name2":"Dur&eacute;e de s&eacute;jour"},"air":{"fld":"airport","name1":"Vertrekluchthaven","name2":"Aéroport de d&eacute;part"}};var obj_doc=document;var lng=obj_doc.getElementById('lng').value;var obj_lm=obj_doc.getElementById('zoekopties');obj_lm.innerHTML="<H6>"+((lng==1)?"<img src='/images/GD/temp/14_verfijn_uw_keuze_94294.png' >":"<img src='/images/GD/temp/14_affinez_votre_choix_94294.png' >")+"</H6><div id='HR' style='margin-bottom:-15px'></div>";var count=0;for(var l in arr_lm){count=0;eval("var js_arr      = json_"+arr_lm[l]['fld']+";");elem['title']=obj_doc.createElement("div");elem['title'].id=arr_lm[l]['fld']+"#";elem['title'].className="ZO_TIT";elem['title'].innerHTML="<span onmouseover='strike_what(this.parentNode);' onmouseout='strike_what(obj_lm);'>"+arr_lm[l]['name'+lng]+"</span>";elem['title'].onclick=function(){set_lm(this);};obj_lm.appendChild(elem['title']);for(var j in js_arr){elem['chk']=obj_doc.createElement("div");elem['chk'].className="CB";elem['chk_t']=obj_doc.createElement("div");elem['chk_t'].className="ZO_TXT";elem['chk_t'].id=arr_lm[l]['fld']+"#"+js_arr[j]['O'];elem['chk_t'].style.width=(IE)?"165":"155";elem['chk_t'].style.display="block";elem['chk_t'].style.marginTop="3";var set_html="";set_html=set_html+"<ul><li>"+((arr_lm[l]['fld']=='cat')?set_stars(js_arr[j]['V']):js_arr[j]['V'])+"</li></ul>";elem['chk_t'].innerHTML=set_html;elem['chk_t'].onclick=function(){set_lm(this);};elem['chk'].appendChild(elem['chk_t']);if(js_arr[j]['V']!=null){if(count==5){elem['more']=obj_doc.createElement("div");elem['more'].id="more_"+arr_lm[l]['fld'];elem['more'].style.display="none";obj_lm.appendChild(elem['more']);}
if(count<5){obj_lm.appendChild(elem['chk']);}else{elem['more'].appendChild(elem['chk']);}
count++;}}
if(count>5){elem['moret']=obj_doc.createElement("div");elem['moret'].id=arr_lm[l]['fld'];elem['moret'].className="ZO_MORE";elem['moret'].innerHTML=(lng==1)?"meer":"plus";elem['moret'].onclick=function(){var more=document.getElementById("more_"+this.id);this.innerHTML=((more.style.display=="none")?((lng==1)?"minder":"moins"):((lng==1)?"meer":"plus"));more.style.display=((more.style.display=="none")?"":"none");};obj_lm.appendChild(elem['moret']);}}
obj_lm.className="ZO_DIV";obj_lm.style.display="";}catch(excp){}}
function set_stars(str)
{var star="";if(parseFloat(str)==str){for(s=1;s<=parseFloat(str);s++){star+="<img src='/swimages/general/astar.gif' border='0'>";}
str=star;}
return str;}
function strike_what(el)
{var obj_lmc=document.getElementById('lm_crit');var arr_lmc=obj_lmc.getElementsByTagName('div');for(l=0;l<arr_lmc.length;l++){if(arr_lmc[l].id.indexOf("#")!='-1'&&arr_lmc[l].className=='DS_T P'&&(el.id==arr_lmc[l].id||el.id=="#")){if(arr_lmc[l].id.indexOf('cat')!='-1'){arr_lmc[l].style.background="#FF7D00";}else{arr_lmc[l].style.textDecoration="line-through";}}else if(arr_lmc[l].className=='DS_T P'){if(arr_lmc[l].id.indexOf('cat')!='-1'){arr_lmc[l].style.background="#FFFFFF";}else{arr_lmc[l].style.textDecoration="underline";}}}}
function set_lm(el)
{var arr_data=el.id.split("#");var obj_lmc=document.getElementById('lm_crit').getElementsByTagName('div');var cnt_lmc=0;if(arr_data[1]==""){for(l=0;l<obj_lmc.length;l++){cnt_lmc=(obj_lmc[l].id=='lmc')?(cnt_lmc+1):cnt_lmc;}
if(cnt_lmc==1){document.getElementById('lm_but').click();return;}}
var obj_frm=document.form;for(f=0;f<obj_frm.length;f++){if(obj_frm[f].name==arr_data[0]){obj_frm[f].value=arr_data[1];}}
try{if(el.id.indexOf('resort')!='-1'&&document.form.dest_resort.value!=''&&arr_data[1]==''){document.form.dest_resort.value="";}}catch(excp){}
Searching();}
var js_arr;var zoekopties_set=0;function set_zoekopties()
{try{var obj_zo=document.getElementById('zoekopties');var obj_doc=document;var html="";var teller=0;var count=5;var old_title="";var User=obj_doc.getElementById('User').value;var lng=obj_doc.getElementById('lng').value;var deel=obj_doc.getElementById('deel').value;if(deel=='hotel'){return;}
obj_zo.style.display="";try{var set_dest=obj_doc.getElementById('destination').value;var set_resort=obj_doc.getElementById('resort').value;}catch(excp){var set_dest="";var set_resort="";}
var set_info="";obj_zo.innerHTML="<H6>"+((lng==1)?"<img src='/images/GD/temp/14_verfijn_uw_keuze_94294.png' >":"<img src='/images/GD/temp/14_affinez_votre_choix_94294.png' >")+"</H6><div id='HR' style='margin-bottom:-15px'></div>";if(js_arr.length==0){return;}
for(var j in js_arr){if(js_arr[j]['id'].substr(0,1)=='R'){elem['land_title']=obj_doc.createElement("div");elem['land_title'].className="ZO_TIT";elem['land_title'].innerHTML=(lng=='1')?"Bestemmingen":"Destinations";(teller==0)?obj_zo.appendChild(elem['land_title']):"";teller++;var regio_set=js_arr[j]['id'];elem['land']=obj_doc.createElement("div");elem['land'].className="ZO_TXT";var arr_land=js_arr[j]['title'].split("#");var set_land_html="<u class='P' id='se_land' onclick=\""+((set_dest!='')?"":"set_search('','D"+arr_land[1]+"')")+"\"><a href='#' onclick='return false;' "+((set_dest!='')?"style='color:#FF7D00'":"")+">"+arr_land[0];set_land_html+="</a></u>";set_land_html+=(set_dest==''&&set_resort=='')?"<div style='cursor:pointer;position:absolute;top:2px;margin-top:2px;right:5px;width:9px;height:9px;background:url(/swimages/general/plus.gif) no-repeat' onclick='show_land(this,\""+arr_land[1]+"\")'></div>":"";set_land_html+=((set_dest!='')?" <img src='/swimages/icons/close.gif' class='P' onclick=\"new_search('D',1)\">":"");elem['land'].innerHTML=set_land_html;(old_title!=js_arr[j]['title']&&deel!='city')?obj_zo.appendChild(elem['land']):"";elem['regio']=obj_doc.createElement("div");elem['regio'].className="ZO_TXT ";elem['regio'].id="R_"+arr_land[1];elem['regio'].style.display=((set_dest==''&&set_resort==''&&deel!='city')?"none":"");var set_regio_html="<ul id='se_regio_ul'><li id='se_regio' onclick=\""+((set_resort!='')?"":"set_search('','"+regio_set+"')")+"\"><a href='#' onclick='return false;' "+((set_resort!='')?"style='color:#FF7D00'":"")+">"+js_arr[j]['omschr'];set_regio_html+=((set_resort!='')?" <img src='/swimages/icons/close.gif' class='P' onclick=\"new_search('R',1)\">":"");set_regio_html+="</a></ul>";elem['regio'].innerHTML=set_regio_html;obj_zo.appendChild(elem['regio']);}else{elem['title']=obj_doc.createElement("div");elem['title'].className="ZO_TIT";elem['title'].innerHTML=js_arr[j]['title']+"";elem['chk']=obj_doc.createElement("div");elem['chk'].className="CB";elem['chk_t']=obj_doc.createElement("div");elem['chk_t'].className="ZO_TXT FL";elem['chk_t'].style.display="block";elem['chk_t'].alt=(js_arr[j]['set']==1)?((lng==1)?"verwijderen":"reset"):"";elem['chk_t'].title=(js_arr[j]['set']==1)?((lng==1)?"verwijderen":"reset"):"";elem['chk_t'].id=count+"#"+js_arr[j]['id'];if(js_arr[j]['id'].substr(0,1)=='S'){var set_html="<input type='hidden' name='Sxtr[]' id='set_var_"+count+"' value='"+((js_arr[j]['set']==1)?js_arr[j]['id'].replace("S",""):"")+"'>";}else{var set_html="<input type='hidden' name='var"+count+"' id='set_var_"+count+"' value='"+((js_arr[j]['set']==1)?js_arr[j]['id']:"")+"'>";}
set_html=set_html+"<ul><li id='se_"+count+"'><a href='#' onclick='return false' "+((js_arr[j]['set']=='1')?"style='color:#FF7D00'":"")+">"+replace_zo(js_arr[j]['omschr']);set_html=set_html+((js_arr[j]['set']==1)?" <img src='/swimages/icons/close.gif'>":"");set_html=set_html+"</a></ul>";elem['chk_t'].innerHTML=set_html;elem['chk_t'].onclick=function(){var arr_ci=this.id.split("#");set_search(arr_ci[0],arr_ci[1])};elem['chk'].appendChild(elem['chk_t']);elem['chk_i']=obj_doc.createElement("div");elem['chk_i'].className="ZO_NFO";var set_chk_i="<img src=\"/swimages/icons/information.png\"";set_chk_i+="onclick=\"";set_chk_i+="LogoInfo('"+js_arr[j]['info']+"','"+js_arr[j]['omschr']+"','','200')";set_chk_i+="\">";elem['chk_i'].innerHTML=set_chk_i;set_info+="<div>"+js_arr[j]['info']+"</div><div>"+js_arr[j]['omschr']+"</div>";(js_arr[j]['info']!=''&&js_arr[j]['id'].substr(0,1)!='S')?elem['chk'].appendChild(elem['chk_i']):"";(old_title!=js_arr[j]['title'])?obj_zo.appendChild(elem['title']):"";obj_zo.appendChild(elem['chk']);}
old_title=js_arr[j]['title'];count++;}
obj_zo.className="ZO_DIV";elem['info']=obj_doc.createElement("div");html+="<div class='ZO_LNK'><a href='/"+get_User(User,"url")+"/"+((lng==1)?"zoekopties":"plus_d_options")+".htm' class='CB'><u>"+((lng==1)?"Alle zoekopties":"Toutes les options")+"</u></a></div>";html+="<input type='hidden' name='var_l' value='XXX'>";html+="<input type='hidden' name='Taal' value='"+obj_doc.getElementById('Taal').value+"'>";html+="<input type='hidden' name='lng' value='"+lng+"'>";html+="<input type='hidden' name='User' value='"+obj_doc.getElementById('User').value+"'>";html+="<input type='hidden' name='Season' value='"+obj_doc.getElementById('Season').value+"'>";html+="<input type='hidden' name='destination' id='destination' value='"+set_dest+"'>";html+="<input type='hidden' name='resort' id='resort' value='"+set_resort+"'>";if(document.getElementById('Hotelcode')&&location.href.indexOf("bestemmingsinfo")=='-1'&&location.href.indexOf("info-sur-la-dest")=='-1'){html+="<input type='hidden' name='Hotelcode' id='Hotelcode' value='"+document.getElementById('Hotelcode').value+"'>";}
try{if(document.getElementById('var1').value!=''&&document.getElementById('var1').value!='XXX'){html+="<input type='hidden' name='var1' id='var1' value='"+document.getElementById('var1').value+"'>";}
if(document.getElementById('var2').value!=''&&document.getElementById('var2').value!='XXX'){html+="<input type='hidden' name='var2' id='var2' value='"+document.getElementById('var2').value+"'>";}
if(document.getElementById('var3').value!=''&&document.getElementById('var3').value!='XXX'){html+="<input type='hidden' name='var3' id='var3' value='"+document.getElementById('var3').value+"'>";}
if(document.getElementById('var4').value!=''&&document.getElementById('var4').value!='XXX'){html+="<input type='hidden' name='var4' id='var4' value='"+document.getElementById('var4').value+"'>";}}catch(excp){}
if(document.getElementById('search')){html+="<input type='hidden' name='var12' id='var12' value='"+document.getElementById('search').value+"'>";}
elem['info'].innerHTML=html;obj_zo.appendChild(elem['info']);}catch(excp){}
zoekopties_set=1;}
function replace_zo(str)
{str=str.replace("&lt;br&gt;"," ");str=str.replace("&lt;img","<img");str=str.replace("gif&gt;","gif>");str=str.replace("&lt;sup&gt;","<sup>");str=str.replace("&lt;/sup&gt;","</sup>");return str;}
function set_strike(id,what)
{var SE=document.getElementById(id);var SE_text=SE.innerHTML;if(what==0){SE_text="<STRIKE>"+SE_text+"</STRIKE>";}else{SE_text=SE_text.replace("<STRIKE>","");SE_text=SE_text.replace("</STRIKE>","");SE_text=SE_text.replace("<strike>","");SE_text=SE_text.replace("</strike>","");}
SE.innerHTML=SE_text;}
function show_land(el,land)
{var obj_zo=document.getElementById('zoekopties');var obj_zo_div=obj_zo.getElementsByTagName('div');for(o=0;o<obj_zo_div.length;o++){if(obj_zo_div[o].id.replace("R_","")==land){obj_zo_div[o].style.display=(obj_zo_div[o].style.display=="")?"none":"";el.style.background=(obj_zo_div[o].style.display=="")?"url('/swimages/general/min.gif') no-repeat":"url('/swimages/general/plus.gif')  no-repeat";}}}
function set_search(id,val)
{var lng=document.getElementById('lng').value;var deel=document.getElementById('deel').value;var destination=document.getElementById('destination').value;var resort=document.getElementById('resort').value;if(val.substr(0,1)=='R'){val=(val.substr(0,1)=='R')?val.replace("R",""):val;document.frm_zo.resort.value=val;}else if(val.substr(0,1)=='D'){val=(val.substr(0,1)=='D')?val.replace("D",""):val;document.frm_zo.destination.value=val;}else{if(document.getElementById('set_var_'+id).value==''){}
val=(val.substr(0,1)=='S')?val.replace("S",""):val;document.getElementById('set_var_'+id).value=(document.getElementById('set_var_'+id).value=='')?val:'';}
document.frm_zo.submit();}
function marker_zo(what)
{try{var obj_zo=(document.getElementById('zoekopties'))?document.getElementById('zoekopties'):parent.document.getElementById('zoekopties');obj_zo.style.background=(what==0)?"#FEC380":"#EDE6CE";}catch(expc){}}
function set_marker(what,ById)
{try{if(document.getElementById(ById)){var obj_zo=document.getElementById(ById);}else{var obj_zo=parent.document.getElementById(ById);}
obj_zo.style.background=(what==0)?"#FDE4B1":"#FFFFFF";}catch(expc){}}
function get_img_nfo(el)
{var title=el.title;var dest_banner=document.getElementById('BST_banner').value;if(document.getElementById('BST_NFO_V')){var obj_doc=document.getElementById('BST_NFO_V');}else if(document.getElementById('BST_NFO_A')){var obj_doc=document.getElementById('BST_NFO_A');}else if(document.getElementById('BST_NFO_ALL')){var obj_doc=document.getElementById('BST_NFO_ALL');}else if(document.getElementById('WEER_DIV')){var obj_doc=document.getElementById('WEER_DIV');}else if(document.getElementById('EXC_LST')){var obj_doc=document.getElementById('EXC_LST');}else if(document.getElementById('FILM_DIV')){var obj_doc=document.getElementById('FILM_DIV');}else if(document.getElementById('ROND_LST')){var obj_doc=document.getElementById('ROND_LST');}
var obj_dests=obj_doc.getElementsByTagName("LI");for(d=0;d<obj_dests.length;d++){if(obj_dests[d].id.substr(0,3)==dest_banner){location.href=obj_dests[d].childNodes[0].href;break;}}}
function set_gradient()
{var obj_grad=new Array();var obj_div=document.getElementById('GRAD');for(i=0;i<=210;(i=i+((IE)?1.4:0.7))){var grad=(i>0)?i:0;obj_grad=document.createElement('div');obj_grad.className="GRD_WH";obj_grad.style.background="#FFFFFF";obj_grad.style.opacity=grad/100;obj_grad.style.filter='alpha(opacity='+grad+')';obj_div.appendChild(obj_grad);}}
function set_adres(el,set)
{var taal=(document.getElementById('lng').value==1)?"nl":"fr";var deel=document.getElementById('deel').value;var adres=el.value;var chk_field=(taal=="nl")?"postcode, gemeente":"code postal, commune";var field=(taal=="nl")?"straat + nr, postcode, gemeente":"rue + n°, code postal, commune";if(set==0&&adres.indexOf(chk_field)!='-1'){el.value="";el.style.color="#000000";}else if(set==1&&adres==''){el.value=field;el.style.color="#666666";}else if(set==1&&adres.indexOf(chk_field)=='-1'){}}
function set_calendar_clk()
{var toDate=new Date();var todd=toDate.getDate();var tomm=toDate.getMonth();var toyy=toDate.getFullYear();var startDate=new Date(toyy,parseFloat(tomm)+1,todd);var enddur=parseFloat(parent.vulin.document.form.Duration.value)-1;var endmm=parent.vulin.document.form.DepartMonth[parseFloat(parent.vulin.document.form.DepartMonth.length)-1].value;var endyy=parent.vulin.document.form.DepartYear[parseFloat(parent.vulin.document.form.DepartYear.length)-1].value;var endDate=new Date(endyy,endmm,31-enddur);var obj_calendars=document.getElementById('calendars');var obj_cal=obj_calendars.getElementsByTagName('div');for(c=0;c<obj_cal.length;c++){if(obj_cal[c].id!=''){var dd=obj_cal[c].id.substr(6,2);var mm=obj_cal[c].id.substr(4,2);var yy=obj_cal[c].id.substr(0,4);var chkDate=new Date(yy,parseFloat(mm),dd);if(startDate<=chkDate&&chkDate<=endDate){obj_cal[c].style.cursor='pointer';obj_cal[c].style.textDecoration='underline';obj_cal[c].onclick=function(){parent.vulin.selectDate('DepartDay','DepartMonth','DepartYear',this.id);};}}}}
function set_longstay()
{var lng=document.getElementById('lng').value;var dd=getcookie("dd");var mm=getcookie("mm");var yy=getcookie("yy");var dur=getcookie("dur_vlieg");var retDate=new Date(yy,parseFloat(mm)-1,parseFloat(dd)+parseFloat(dur)-1);var rdd=retDate.getDate();var rmm=retDate.getMonth()+1;var ryy=retDate.getFullYear();var resort=((parent.vulin.document.form.resort.value=='')?document.getElementById('resort').value:parent.vulin.document.form.resort.value);var dest=((parent.vulin.document.form.dest_resort.value==''||parent.vulin.document.form.dest_resort.value=='default')?document.getElementById('Lcode').value:parent.vulin.document.form.dest_resort.value);var dest_resort=((dest.substr(0,2)=="RD")?dest:"RD"+dest+"_"+resort);var parameters="program=inetlongstay&openinprogram=Y&Brochure=1&longstay=Y&Accomodatie=H";parameters+="&Language="+((lng==1)?"N":"F")+"&Taal="+((lng==1)?"nl":"fr");parameters+="&DepartDay="+dd+"&DepartMonth="+mm+"&DepartYear="+yy;parameters+="&Duration="+dur;parameters+="&Pax="+parent.vulin.document.form.Pax.value;parameters+="&Child="+parent.vulin.document.form.Child.value;parameters+="&Infant="+parent.vulin.document.form.Infant.value;parameters+="&Airport="+((getcookie('airport')=='XXX'||getcookie('airport')=='')?"BRX":getcookie('airport'));parameters+="&dest_resort="+dest_resort;parameters+="&resort="+resort;parameters+="&Season="+document.getElementById('Season').value;parameters+="&ReturnDay="+rdd+"&ReturnMonth="+rmm+"&ReturnYear="+ryy;var ajax=new Ajax("/phpscripts/longstay_ajax.php","POST",parameters,callback_longstay);ajax.go();}
function callback_longstay(xml_req)
{var obj_longstay=document.getElementById('longstay_rcds');obj_longstay.innerHTML="";var response=xml_req.responseText;var arr_response=response.split("#");eval(arr_response[0]);var bg="#FFFFFF";var teller=0;var disp=new Array();for(var r in json){var arr_resort=r.split("_");bg=(bg=='#E9F4FF')?"#FFFFFF":"#E9F4FF";elem['rch']=document.createElement('div');elem['rch'].className="PR CB H18 PL5 TAL bmt";elem['rch'].style.width="510px";elem['rch'].style.background=bg;elem['rch'].innerHTML=arr_resort[1];obj_longstay.appendChild(elem['rch']);var region_teller=0;for(var d in json[r]){for(var j in json[r][d]){var arrdep=json[r][d][j]['DEPDATE'].split("\/");var arrret=json[r][d][j]['RETDATE'].split("\/");var depDate=new Date(arrdep[2],parseFloat(arrdep[1])-1,parseFloat(arrdep[0]));var retDate=new Date(arrret[2],parseFloat(arrret[1])-1,parseFloat(arrret[0]));var dep_set=depDate.getDate()+" "+depDate.getMonth()+" "+depDate.getFullYear();var ret_set=retDate.getDate()+" "+retDate.getMonth()+" "+retDate.getFullYear();var setdep=new Date(getcookie("yy"),parseFloat(getcookie("mm"))-1,parseFloat(getcookie("dd")));var setret=new Date(getcookie("yy"),parseFloat(getcookie("mm"))-1,parseFloat(getcookie("dd"))+parseFloat(getcookie("dur_vlieg"))-1);var set_dep=setdep.getDate()+" "+setdep.getMonth()+" "+setdep.getFullYear();var set_ret=setret.getDate()+" "+setret.getMonth()+" "+setret.getFullYear();elem['more']=document.createElement('div');elem['more'].className="PA U P st";elem['more'].id="more_"+arr_resort[0];elem['more'].style.top="90px";elem['more'].style.right="-40px";elem['more'].innerHTML="meer";elem['more'].onclick=function(){show_more_ls(this);};elem['rcd']=document.createElement('div');elem['rcd'].className="PR CB H18 P";elem['rcd'].style.width="510px";elem['rcd'].style.display=(region_teller>4)?((dep_set==set_dep&&ret_set==set_ret)?"":"none"):"";elem['rcd'].style.background=(dep_set==set_dep&&ret_set==set_ret)?"#FFCC66":bg;elem['rcd'].id=json[r][d][j]['DEPDATE']+"/"+arr_response[1]+"/"+arr_response[2]+"/"+arr_resort[0]+"/"+parseFloat(d)+"/"+region_teller+((dep_set==set_dep&&ret_set==set_ret)?"/stay":"");elem['rcd'].onclick=function(){longstay_go(this)};elem['dep']=document.createElement('div');elem['dep'].className="PR FL W145C TAL PL5";elem['dep'].innerHTML=json[r][d][j]['DEPDAG']+" "+json[r][d][j]['DEPDATE'];elem['ret']=document.createElement('div');elem['ret'].className="PR FL W145C PL10 TAL";elem['ret'].innerHTML=json[r][d][j]['RETDAG']+" "+json[r][d][j]['RETDATE'];elem['prc']=document.createElement('div');elem['prc'].className="PR FL TAR W100C";elem['prc'].style.paddingRight="5";elem['prc'].innerHTML=json[r][d][j]['BEDRAG'];elem['dur']=document.createElement('div');elem['dur'].className="PR FL TAR W90C";elem['dur'].style.paddingRight="5";elem['dur'].innerHTML=d;elem['rcd'].appendChild(elem['dep']);elem['rcd'].appendChild(elem['ret']);elem['rcd'].appendChild(elem['prc']);elem['rcd'].appendChild(elem['dur']);if(region_teller==4){elem['rch'].appendChild(elem['more']);}
obj_longstay.appendChild(elem['rcd']);teller++;region_teller++;disp[json[r][d][j]['DEPDATE']+"|"+parseFloat(d)+"|"+parseFloat(json[r][d][j]['BEDRAG'])]="Y";}}}
if(teller==0){obj_longstay.innerHTML="<div class='PR' style='color:red;font-weight:bold;font-size:1em'>"+arr_response[3]+"</div>";}}
function show_more_ls(el)
{var obj_longstay=document.getElementById('longstay_rcds');var obj_ls=obj_longstay.getElementsByTagName('div');var arr_id=el.id.split("_");for(i=0;i<obj_ls.length;i++){var arr_ls=obj_ls[i].id.split("\/");try{if(arr_ls[5].indexOf(arr_id[1])!='-1'&&obj_ls[i].style.display=='none'){obj_ls[i].style.display="";}else if(arr_ls[5].indexOf(arr_id[1])!='-1'&&obj_ls[i].style.display==''&&arr_ls[7]>4&&typeof(arr_ls[8])!=''){obj_ls[i].style.display="none";}}catch(excp){}}}
function longstay_go(el)
{var arr_date=el.id.split("\/");var arr_dest_resort=arr_date[3].split("_");parent.vulin.document.form.DepartDay.value=arr_date[0];parent.vulin.document.form.DepartMonth.value=arr_date[1];parent.vulin.document.form.DepartYear.value=arr_date[2];parent.vulin.document.form.dest_resort.value=(arr_date[3]+((arr_date[4]==''&&arr_date[5]!='')?arr_date[5]:"")).replace("RDD","RD");parent.vulin.document.form.destination.value=arr_dest_resort[0].substr(2);parent.vulin.document.form.resort.value=((arr_date[4]==''&&arr_date[5]!='')?arr_date[5]:arr_date[4]);parent.vulin.document.form.Duration.value=parseFloat(arr_date[6]);createCookie("dd",arr_date[0],"");createCookie("mm",arr_date[1],"");createCookie("yy",arr_date[2],"");createCookie("dur_vlieg",parseFloat(arr_date[6]),"");parent.vulin.Zoek();}
var melt;function melt_ice(what)
{if(what==0){document.getElementById('ice').style.display='';}else{document.getElementById('ice').style.display='none';}}
function show_pakkets(el)
{var id=el.id;var lng=document.getElementById('lng').value;var obj_div=document.getElementsByTagName('li');var set_what=0;for(d=0;d<obj_div.length;d++){var arr_id=obj_div[d].id.split("_");if(obj_div[d].id.indexOf(id+"_")!='-1'&&obj_div[d].style.display=='none'&&arr_id[1]>2){obj_div[d].style.display='';set_what=0;}else if(obj_div[d].id.indexOf(id+"_")!='-1'&&obj_div[d].style.display==''&&arr_id[1]>2){obj_div[d].style.display='none';set_what=1;}}
el.innerHTML=((set_what==1)?((lng==1)?"<u>meer</u>":"<u>plus</u>"):((lng==1)?"<u>minder</u>":"<u>moins</u>"));}
var cur_pic=0;function pic_slide(el)
{var set_photo=(typeof(photo)=='undefined')?0:photo;var lng=document.getElementById('lng').value;var pic_id=0;var obj_next=new Object();obj_next.newProperty="src";var obj_prev=new Object();obj_prev.newProperty="src";try{var el_pic=el.src;}catch(excp){}
try{var el_pic=((typeof(el_pic)!="undefined")?el_pic:el.title);}catch(excp){return;}
work_pic=el_pic.replace(".jpg",".JPG")
work_pic=el_pic.replace("%20"," ")
var arr_pic=work_pic.split(".JPG");var arr_src=arr_pic[0].split("/");var pic_src=arr_src[arr_src.length-1];if(set_photo==0){work_pic=el_pic.replace(".jpg",".JPG")
work_pic=el_pic.replace("%20"," ")
var arr_pic=work_pic.split(".JPG");var arr_src=arr_pic[0].split("/");var pic_src=arr_src[arr_src.length-1];if(typeof(pic_json)=='undefined'){var arr_pics="";}else{var arr_pics=pic_json;for(var p in arr_pics['photo']){if(pic_src==arr_pics['photo'][p]){pic_id=p;}}
var next=((parseFloat(pic_id)+1)>(parseFloat(arr_pics['photo'].length)-1))?0:(parseFloat(pic_id)+1);var prev=((parseFloat(pic_id)-1)<0)?(parseFloat(arr_pics['photo'].length)-1):(parseFloat(pic_id)-1);if(arr_pics['photo'][next].substr(0,3).match("[a-zA-Z]")){var next_src="/beimages/"+arr_pics['photo'][next].substr(0,4)+"/"+arr_pics['photo'][next]+".JPG";var prev_src="/beimages/"+arr_pics['photo'][prev].substr(0,4)+"/"+arr_pics['photo'][prev]+".JPG";}else{var next_src="/beimages/"+arr_pics['photo'][next].substr(0,3)+"00/"+arr_pics['photo'][next].substr(0,5)+"/"+arr_pics['photo'][next]+".JPG";var prev_src="/beimages/"+arr_pics['photo'][prev].substr(0,3)+"00/"+arr_pics['photo'][prev].substr(0,5)+"/"+arr_pics['photo'][prev]+".JPG";}
obj_next.src=next_src;obj_prev.src=prev_src;}}else{var arr_pics=pic_json;var arr_pic=work_pic.split(".JPG");var arr_src=arr_pic[0].split("/");var pic_src=arr_src[arr_src.length-1];var set_p=0;pic_id=0;for(var p in arr_pics['photo']){if(arr_pics['photo'][p].indexOf(pic_src)!='-1'){pic_id=set_p;if(cur_pic==0||(cur_pic==(pic_id+1))||(cur_pic==(pic_id-1))){break;}}
set_p++;}
var next=((parseFloat(pic_id)+1)>(parseFloat(arr_pics['photo'].length)-1))?0:(parseFloat(pic_id)+1);var prev=((parseFloat(pic_id)-1)<0)?(parseFloat(arr_pics['photo'].length)-1):(parseFloat(pic_id)-1);var next_src=arr_pics['photo'][next];var prev_src=arr_pics['photo'][prev];obj_next.src=next_src;obj_prev.src=prev_src;}
if(document.getElementById('pic_slide')){document.body.removeChild(document.getElementById('pic_slide'));var set_filter=0;}else{var filter_bg=document.createElement('div');filter_bg.style.height=((parseFloat(document.body.scrollHeight)>parseFloat(document.body.offsetHeight))?document.body.scrollHeight:document.body.offsetHeight);filter_bg.id="filter_slide";filter_bg.onclick=function(){document.body.removeChild(document.getElementById('filter_slide'));document.body.removeChild(document.getElementById('pic_slide'));};var set_filter=1;}
var pic_div=document.createElement('div');pic_div.style.top=(parseFloat(document.body.scrollTop)+100)+"px";pic_div.id="pic_slide";var pic_nfo=document.createElement('div');pic_nfo.id="pic_nfo";if(typeof(pic_json)=='undefined'){pic_nfo.innerHTML="";}else{pic_nfo.innerHTML="<u title='"+prev_src+"' onclick=\"cur_pic="+pic_id+";pic_slide(this);\" class='P'>"+((lng==1)?"vorige":"précédente")+"</u> "+(parseFloat(pic_id)+1)+"/"+parseFloat(arr_pics['photo'].length)+" <u title='"+next_src+"' onclick=\"cur_pic="+pic_id+";pic_slide(this);\" class='P'>"+((lng==1)?"volgende":"suivant")+"</u>";}
var pic_close=document.createElement('div');pic_close.id="pic_close";pic_close.onclick=function(){document.body.removeChild(document.getElementById('filter_slide'));document.body.removeChild(document.getElementById('pic_slide'));};pic_close.innerHTML=((lng==1)?"sluiten":"fermer")+" <b>X</b>";var pic_next=document.createElement('div');pic_next.id="pic_next";pic_next.innerHTML="<img src='/images/spacer.gif' width='100%' height='100%'>";pic_next.onclick=function(){cur_pic=pic_id;pic_slide(obj_next)}
var pic_prev=document.createElement('div');pic_prev.id="pic_prev";pic_prev.onclick=function(){cur_pic=pic_id;pic_slide(obj_prev)}
pic_prev.innerHTML="<img src='/images/spacer.gif' width='100%' height='100%'>";var pic=document.createElement('img');var str_pic=el_pic.replace("betnails","beimages");str_pic=str_pic.replace("img_thumb","img_large");str_pic=str_pic.replace("_small","");pic.src=str_pic;pic.id="pic";pic_div.appendChild(pic);pic_div.appendChild(pic_nfo);pic_div.appendChild(pic_close);pic_div.appendChild(pic_next);pic_div.appendChild(pic_prev);(set_filter==1)?document.body.appendChild(filter_bg):"";document.body.appendChild(pic_div);setTimeout("check_psh()",400);}
function check_psh()
{document.getElementById('pic_prev').style.height=document.getElementById('pic').height+"px";document.getElementById('pic_next').style.height=document.getElementById('pic').height+"px";}
function set_skimateriaal(what,lng)
{if(what==0){elem['div']=document.createElement('div');elem['div'].id="be_skimateriaal";elem['div'].style.top=parseFloat(tempY)-520;elem['div'].innerHTML="<img src='/images/opties_skimateriaal_"+((lng==1)?"nl":"fr")+".jpg'>";document.body.appendChild(elem['div']);}else{document.body.removeChild(document.getElementById('be_skimateriaal'));}}
function set_info_img(img,what,lng)
{if(what==0){var elem=new Array();elem['div']=document.createElement('div');elem['div'].id="be_info_img";elem['div'].style.top=parseFloat(tempY)-520;elem['div'].innerHTML="<img src='"+img+"'>";document.body.appendChild(elem['div']);}else{document.body.removeChild(document.getElementById('be_info_img'));}}
var arr_fld=new Array();function clear_fld(el,what)
{arr_fld[el.name]=(arr_fld[el.name]==''||typeof(arr_fld[el.name])=='undefined')?el.value:arr_fld[el.name];if(what==0&&el.value==arr_fld[el.name]){el.value="";el.style.color="#000000";}else if(what==0&&el.value!=arr_fld[el.name]){}else if(what==1&&el.value==''){el.value=arr_fld[el.name];el.style.color="#8494AE";}
(el.id=='set_land_regio')?get_land_regio(el):"";}
function get_land_regio(el)
{var lng=document.getElementById('lng').value;if(el.value.length>2){var parameters="set_land_regio="+el.value+"&lng="+lng+"&ajax=get_land_regio";var ajax=new Ajax("/phpscripts/ajax_calls.php","POST",parameters,get_land_regio_callback);ajax.go();}else if(el.value.length<3){}}
function get_User(User,kind)
{var lng=document.getElementById('lng').value;switch(User){case" ":case"X":case"1":if(kind=='url'){return(lng==1)?"vliegvakanties":"vacances_en_avion";}else if(kind=='call'){return(lng==1)?"Vliegvakanties":"Vacances en avion";}else{return"vlieg";}
break;case"S":if(kind=='url'){return(lng==1)?"sneeuwvakanties":"neige";}else if(kind=='call'){return(lng==1)?"Sneeuwvakanties":"Neige";}else{return"sneeuw";}
break;case"A":if(kind=='url'){return(lng==1)?"autovakanties":"vacances_en_voiture";}else if(kind=='call'){return(lng==1)?"Autovakanties":"Vacances en voiture";}else{return"auto";}
break;case"C":if(kind=='url'){return(lng==1)?"citytrips":"citytrips_fr";}else if(kind=='call'){return(lng==1)?"Citytrips":"Citytrips";}else{return"city";}
break;case"K":if(kind=='url'){return(lng==1)?"dichtbijvakanties":"pres_de_chez_vous";}else if(kind=='call'){return(lng==1)?"Dichtbijvakanties":"Pres de chez vous";}else{return"dicht";}
break;default:return User;break;}}
var dest_list="";var json_old="";function get_land_regio_callback(xml_req)
{var response=xml_req.responseText;var lng=document.getElementById('lng').value;var Season=document.getElementById('Season').value;var obj_lr=document.getElementById('set_land_regio').parentNode;eval(response);if(json_nfo.length!=json_old.length){try{obj_lr.removeChild(document.getElementById('dest_list'));}catch(excp){}
var elem=new Array();elem['div']=document.createElement('div');elem['div'].id="dest_list";elem['div'].onmouseover=function(){window.clearTimeout(dest_list);};elem['div'].onmouseout=function(){dest_list=setTimeout("document.getElementById('set_land_regio').parentNode.removeChild(document.getElementById('dest_list'));json_old = '';",3000);};elem['ul']=document.createElement('UL');for(var j in json_nfo){if(json_nfo[j]['STEP']=='LAND'||json_nfo[j]['USER']=='C'){var url="/"+get_User(json_nfo[j]['USER'],"url")+"/"+json_nfo[j]['OMSCHRIJVING'].toLowerCase()+"/"+(((Season%2)==0)?((lng==1)?"zomer":"ete"):((lng==1)?"winter":"hiver"))+"/"+((json_nfo[j]['USER']=='C')?((lng==1)?"stadsinfo.htm":"info-de-la-ville.htm"):((lng==1)?"bestemmingsinfo.htm":"info-sur-la-destination.htm"));}else if(json_nfo[j]['STEP']=='REGIO'){var url="/"+get_User(json_nfo[j]['USER'],"url")+"/"+json_nfo[j]['LAND_OMSCHRIJVING'].toLowerCase()+"/"+(((Season%2)==0)?((lng==1)?"zomer":"ete"):((lng==1)?"winter":"hiver"))+"/"+((lng==1)?"bestemmingsinfo.htm":"info-sur-la-destination.htm");}else if(json_nfo[j]['STEP']=='VILLAGE'){var url="/"+get_User(json_nfo[j]['USER'],"url")+"/"+RSPC(json_nfo[j]['LAND_OMSCHRIJVING'])+"/"+RSPC(json_nfo[j]['REGIO_OMSCHRIJVING'])+"/"+RSPC(json_nfo[j]['OMSCHRIJVING'].toLowerCase())+"/"+(((Season%2)==0)?((lng==1)?"zomer":"ete"):((lng==1)?"winter":"hiver"))+"/";}else{var url="";}
elem['line']=document.createElement('LI');elem['line'].style.position="relative";elem['line'].style.font="0.8em verdana";elem['line'].style.color="#092A5E";elem['line'].innerHTML="<a href=\""+url+"\">"+json_nfo[j]['OMSCHRIJVING']+" "+get_User(json_nfo[j]['USER'],"call")+"</a>";elem['line'].onclick=function(){location.href=url};elem['ul'].appendChild(elem['line']);}
elem['div'].appendChild(elem['ul']);(response.indexOf("null")=='-1')?obj_lr.appendChild(elem['div']):"";}
json_old=json_nfo;}
function set_SIFR()
{}
function set_city_into(el)
{var set_id=el.innerHTML;var obj_info=document.getElementById('city_info').getElementsByTagName('div');var obj_info_len=obj_info.length;var obj_foto=document.getElementById('foto').getElementsByTagName('img');var obj_foto_len=obj_foto.length;var set_foto;for(c=0;c<obj_foto_len;c++){if(set_id==obj_foto[c].id){obj_foto[c].style.display="";set_foto=1;}else{obj_foto[c].style.display="none";}}
(set_foto!=1)?(obj_foto[0].style.display=""):"";for(c=0;c<obj_info_len;c++){obj_info[c].style.display=(set_id==obj_info[c].id)?"":"none";}}
var gaJsHost=(("https:"==document.location.protocol)?"https://ssl.":"http://www.");var pageTracker="";function set_ga()
{try{pageTracker=_gat._getTracker("UA-3358363-"+((location.href.indexOf("jetaircenter")=='-1')?"2":"7"));var set_ga_deel=((document.getElementById('deel').value=='dicht')?"dichtbij":document.getElementById('deel').value);pageTracker._setDomainName(".jetair.be");pageTracker._setAllowLinker(true);pageTracker._setAllowHash(false);pageTracker._trackPageview();try{if(document.getElementById('info').value=='best'&&location.href.indexOf('bestemmingsinfo')=='-1'&&location.href.indexOf('info-sur-la-destination')=='-1'){pageTracker._trackPageview("/bepages/"+set_ga_deel+"_hotels_lijst.htm");}}catch(err){}
var GA_tracker_aggregated=_gat._getTracker("UA-11246276-1");GA_tracker_aggregated._setDomainName(".jetair.be");GA_tracker_aggregated._setAllowLinker(true);GA_tracker_aggregated._setAllowHash(false);GA_tracker_aggregated._trackPageview();try{if(document.getElementById('info').value=='best'&&location.href.indexOf('bestemmingsinfo')=='-1'&&location.href.indexOf('info-sur-la-destination')=='-1'){GA_tracker_aggregated._trackPageview("/bepages/"+set_ga_deel+"_hotels_lijst.htm");}}catch(err){}}catch(err){}}
function set_up_zoekopties()
{if(location.href.indexOf('zoekopties.htm')!='-1'||location.href.indexOf('plus_d_options.htm')!='-1'){var User=document.form.User.value;var set_region=document.form.set_region.value;var set_region_src=document.form.set_region_src.value;var set_dest=document.form.set_dest.value;var set_resort=document.form.set_resort.value;var set_br=document.form.set_br.value;var set_hiddens=document.getElementById('hiddens').value;finishedScriptLoad=true;bootValues();if(document.getElementById('session_seas')){var nu=new Date();var nuMonth=nu.getMonth()+1;var session_seas=document.getElementById('session_seas').value;var deel=document.getElementById('deel').value;var set_zomer=document.getElementById('set_zomer').value;var set_winter=document.getElementById('set_winter').value;if(session_seas.substr(0,1)=='z'){if(eval(deel+"_"+session_seas.substr(0,1).toUpperCase()+".getMonth()")>=nuMonth||deel=='auto'){var set_month=(eval(deel+"_"+session_seas.substr(0,1).toUpperCase()+".getMonth()")<nuMonth)?nuMonth:(eval(deel+"_"+session_seas.substr(0,1).toUpperCase()+".getMonth()")+1);document.form.User.value=set_zomer+"_"+set_month;}}else{if(eval(deel+"_"+session_seas.substr(0,1).toUpperCase()+".getMonth()")>=nuMonth){}else{document.form.User.value=set_winter+"_"+(eval(deel+"_"+session_seas.substr(0,1).toUpperCase()+".getMonth()")+1);}}
changeDestResort();try{change_id();}catch(excp){}}
if(User.length<3&&User!=''){var arr_User=User.split("_");var depMonth=arr_User[1];depMonth=(depMonth==0)?getMonth():depMonth;for(i=0;i<document.form.User.length;i++){if(document.form.User[i].value.indexOf(depMonth)!='-1'){document.form.User[i].selected=true;}}
changeDestResort();try{change_id();}catch(excp){}}
if(set_region!=''){document.form.region.value=set_region;}
if(set_br!=''){document.form.User.value=set_br;changeDestResort();}
if(document.form.User.value=='0'){document.form.User.value=0;}
var str1=document.form.User.value;global_seas=str1.substr(2,1);if(set_region_src!=''){document.form.region.value=set_region_src;}
if(set_dest!=''&&set_resort==''){document.form.destination.value=set_dest;document.form.dest_resort.value="D"+set_resort;}
if(set_dest!=''&&set_resort!=''){document.form.destination.value=set_dest;document.form.resort.value=set_resort;document.form.dest_resort.value="R"+set_dest+"_".$resort;}
for(i=0;i<=set_hiddens;i++){if(document.getElementById("set_var"+i)){document.getElementById("set_var"+i).checked=true;new_zoek=1;}}
if(location.href.indexOf('jil')!='-1'&&document.form.User.value=='0'){var toDay=new Date();var month=toDay.getMonth()+1;for(i=0;i<document.form.User.length;i++){if(document.form.User[i].value.indexOf("_"+month)!='-1'){document.form.User[i].selected=true;}}
changeDestResort();}
set_zo_action();try{check_them();}catch(excp){}
try{SetDisplay(document.getElementById('set_selected').value);}catch(excp){}
change_count();}}
function set_zo_action()
{var User=document.form.User.value;var Taal=document.form.Taal.value;var set_action=document.getElementById('set_action').value;if((User.substr(2,1)%2)==0){set_action=set_action.replace("[seas]",((Taal=="nl")?"zomer":"ete"));}else{set_action=set_action.replace("[seas]",((Taal=="nl")?"winter":"hiver"));}
document.form.action=set_action;}
function get_rc(type)
{createCookie("get_info",'','');var User=document.getElementById('User').value;var Season=document.getElementById('Season').value;var lng=document.getElementById('lng').value;var info=document.getElementById('rc_info').value;var obj_rc=document.getElementById('ROND_LST');var obj_rc_href=obj_rc.getElementsByTagName("A");for(h=0;h<obj_rc_href.length;h++){obj_rc_href[h].style.background="white";}
document.getElementById('set_error').innerHTML="";if(info.length>2){createCookie("get_info",info,'');var parameters="User="+User+"&Season="+Season+"&info="+info+"&type="+type+"&ajax=get_rond_cruise&lng="+lng;var ajax=new Ajax("/phpscripts/ajax_calls.php","POST",parameters,get_js_callback);ajax.go();}}
function get_sun()
{createCookie("get_info",'','');var User=document.getElementById('User').value;var set_month=document.getElementById('set_month').value;var set_temp=document.getElementById('set_temp').value;var obj=document.getElementById('BST_NFO_'+((User==1)?"V":"A"));var obj_chk=obj.getElementsByTagName("LI");for(h=0;h<obj_chk.length;h++){obj_chk[h].childNodes[0].style.background="white";}
document.getElementById('set_error').innerHTML="";if(set_month!=''&&set_temp!=''){var parameters="User="+User+"&set_month="+set_month+"&set_temp="+set_temp+"&ajax=get_sun";var ajax=new Ajax("/phpscripts/ajax_calls.php","POST",parameters,get_js_callback);ajax.go();}}
function get_exc()
{createCookie("get_info",'','');var Season=document.getElementById('Season').value;var lng=document.getElementById('lng').value;var info=document.getElementById('rc_info').value;var obj=document.getElementById('EXC_LST');var obj_chk=obj.getElementsByTagName("A");for(h=0;h<obj_chk.length;h++){obj_chk[h].style.background="white";}
document.getElementById('set_error').innerHTML="";if(info.length>2){createCookie("get_info",info,'');var parameters="Season="+Season+"&info="+info+"&ajax=get_exc&lng="+lng;var ajax=new Ajax("/phpscripts/ajax_calls.php","POST",parameters,get_js_callback);ajax.go();}}
function get_js_callback(xml_req)
{var response=xml_req.responseText;if(document.getElementById('ROND_LST')){var obj=document.getElementById('ROND_LST');var chk="A";}else if(document.getElementById('BST_NFO_V')){var obj=document.getElementById('BST_NFO_V');var chk="LI";}else if(document.getElementById('BST_NFO_A')){var obj=document.getElementById('BST_NFO_A');var chk="LI";}else if(document.getElementById('EXC_LST')){var obj=document.getElementById('EXC_LST');var chk="A";}
var obj_chk=obj.getElementsByTagName(chk);eval(response);if(location.href.indexOf("rond")!='-1'){var set_error="Geen rondreis gevonden!";}else if(location.href.indexOf("cruise")!='-1'){var set_error="Geen cruise gevonden!";}else if(location.href.indexOf("beste")!='-1'){var set_error="Geen bestemming gevonden!";}else if(location.href.indexOf("excur")!='-1'){var set_error="Geen excursie gevonden!";}
if(json_nfo.length==''){document.getElementById('set_error').innerHTML=set_error;}
for(var j in json_nfo){for(h=0;h<obj_chk.length;h++){if(chk=='A'){if(obj_chk[h].href.indexOf(json_nfo[j])!='-1'){obj_chk[h].style.background="#FF8800";}}else if(chk=='LI'){if(obj_chk[h].id.indexOf(json_nfo[j])!='-1'){obj_chk[h].childNodes[0].style.background="#FF8800";}}}}}
function set_dest_res(dest,res)
{parent.vulin.document.form.Hotelcode.value="";if(parent.vulin){if(dest!=''){parent.vulin.document.form.destination.value=dest;parent.vulin.document.form.dest_resort.value="D"+dest;}
parent.vulin.document.form.resort.value=res;for(i=0;i<parent.vulin.document.form.dest_resort.length;i++){if(parent.vulin.document.form.dest_resort[i].value.indexOf(dest+"_"+res)!='-1'){parent.vulin.document.form.dest_resort[i].selected=true;}}
if(parent.vulin.document.form.Airport){parent.vulin.changeAirport();}
parent.vulin.Zoek();}else if(top.parent.vulin){if(dest!=''){top.parent.vulin.document.form.destination.value=dest;top.parent.vulin.document.form.dest_resort.value="D"+dest;}
top.parent.vulin.document.form.resort.value=res;for(i=0;i<parent.vulin.document.form.dest_resort.length;i++){if(parent.vulin.document.form.dest_resort[i].value.indexOf(dest+"_"+res)!='-1'){parent.vulin.document.form.dest_resort[i].selected=true;}}
if(top.parent.vulin.document.form.Airport){top.parent.vulin.changeAirport();}
top.parent.vulin.Zoek();}}
document.onmousedown=function(){LogoInfo_close();try{getInfo('','1');}catch(excp19){}};document.onkeydown=function(event){event=event||window.event;if(event.keyCode==13){alert("test");SDATA();};if(event.keyCode==27){print_Waarde('0');}};;function getcookie(cookiename){var cookiestring=""+document.cookie;var index1=cookiestring.indexOf(cookiename);if(index1==-1||cookiename=="")return"";var index2=cookiestring.indexOf(';',index1);if(index2==-1)index2=cookiestring.length;return unescape(cookiestring.substring(index1+cookiename.length+1,index2));}
function createCookie(name,value,days)
{if(days){var date=new Date();date.setTime(date.getTime()+(days*24*60*60*1000));var expires="; expires="+date.toGMTString();}else{var expires="";}
document.cookie=name+"="+value+expires+"; path=/";}
function getParent(el,type)
{el=el.parentNode;while(el.nodeName.toLowerCase()!=type.toLowerCase()&&el.parentNode){el=el.parentNode;}
return el;};function FlashInsert(FlashIDName,FlashFileName,FlashWidth,FlashHeight,DNSSetting,WMODESetting,FlashBGColor,QSetting,FlashAlign)
{document.write('<OBJECT CLASSID="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"');if(typeof(flash_version)=="undefined"){var flash_version='6';}
document.write('CODEBASE="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version='+flash_version+',0,0,0" ');document.write(' ID="'+FlashIDName+'" WIDTH="'+FlashWidth+'" HEIGHT="'+FlashHeight+'" ALIGN="'+FlashAlign+'">');document.write('<PARAM NAME="movie" VALUE="'+FlashFileName+'">');document.write('<PARAM NAME="quality" VALUE="'+QSetting+'">');document.write('<PARAM NAME="bgcolor" VALUE="'+FlashBGColor+'">');document.write('<PARAM NAME="wmode" VALUE="'+WMODESetting+'">');document.write('<PARAM NAME="allowScriptAccess" VALUE="'+DNSSetting+'">');document.write('<EMBED SRC="'+FlashFileName+'"  NAME="'+FlashIDName+'"');document.write(' WIDTH="'+FlashWidth+'" HEIGHT="'+FlashHeight+'" QUALITY="'+QSetting+'" BGCOLOR="'+FlashBGColor+'"');document.write(' ALLOWSCRIPTACCESS="'+DNSSetting+'" ALIGN="'+FlashAlign+'" WMODE="'+WMODESetting+'" TYPE="application/x-shockwave-flash"');document.write(' PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer" >');document.write('</EMBED>');document.write('</OBJECT>');};var body;var doc;var setX;var setY;var interval;var div=new Array();var okX=0;var okY=0;var okW=0;var okH=0;var info;var url;var titel;var jsarr;var lng;function set_MAF()
{lng=(getcookie('lng')=='')?document.getElementById('lng').value:getcookie('lng');lng=(typeof(document.getElementById('lng').value)!="undefined"!=lng)?document.getElementById('lng').value:lng;setX=tempX;setY=tempY;setW=5;setH=5;try{body=parent.document.body
doc=parent.document;}catch(excp){body=document.body
doc=document;}
if(location.href.indexOf('index.php')!='-1'){body=document.body
doc=document;}
url=doc.location.href.replace(/=/g,"|IS|");url=url.replace(/&/g,"|EN|");var arr_title=doc.title.split("-");title=arr_title[0];window.scrollTo(0,0);div['fade']=doc.createElement('div');div['fade'].id='fade';div['fade'].style.height=body.scrollHeight
div['fade'].className="MAF_FADE";div['fade'].onclick=function(){close_MAF()};div['info']=doc.createElement('div');div['info'].id='maf_info';div['info'].style.top=tempY;div['info'].style.left=tempX;div['info'].className='MAF_INFO';div['shadowL']=doc.createElement('div');div['shadowL'].className='MAF_SHADEL';div['shadowR']=doc.createElement('div');div['shadowR'].className='MAF_SHADER';div['shadowT']=doc.createElement('div');div['shadowT'].className='MAF_SHADET';div['shadowB']=doc.createElement('div');div['shadowB'].className='MAF_SHADEB';div['info'].appendChild(div['shadowL']);div['info'].appendChild(div['shadowR']);div['info'].appendChild(div['shadowT']);div['info'].appendChild(div['shadowB']);body.appendChild(div['info']);body.appendChild(div['fade']);interval=setInterval("set_genie()",10);var parameters="lng="+lng+"&User="+document.getElementById('User').value+"&Season="+document.getElementById('Season').value+"&hotelcode="+document.getElementById('hotelcode').value+"&ajax=info";var ajax=new Ajax("/phpscripts/maf_mail.php","POST",parameters,callback);ajax.go();}
function callback(xml_req)
{var response=xml_req.responseText;eval(response);}
function set_genie()
{info=doc.getElementById('maf_info');var width=(parseFloat(body.scrollWidth)/2)-250;if(setX<=width){setX=width;okX=1;}else{setX=setX-6;setX=(setX<width)?width:setX;}
if(setY<=250){setY=250;okY=1;}else{setY=setY-30;setY=(setY<=250)?250:setY;}
if(setW>=500){setW=500;okW=1;}else{setW=setW+16;setW=(setW>=500)?500:setW;}
if(setH>=400){setH=400;okH=1;}else{setH=setH+16;setH=(setH>=400)?400:setH;}
if(okX!=1||okY!=1||okH!=1||okW!=1){info.style.top=setY;info.style.left=setX;info.style.width=setW;info.style.height=setH;}else{set_DivInfo();clearInterval(interval);okX="";okY="";okW="";okH="";}}
function set_DivInfo()
{div['header']=doc.createElement('div');div['header'].className='MAF_HEADER';div['header_text']=doc.createElement('div');div['header_text'].style.cssFloat='left';div['header_text'].style.styleFloat='left';div['header_text'].style.width='480';div['header_text'].innerHTML=(lng==1)?"<strong>Stuur deze reisinfo door naar een vriend(in)</strong>":"<strong>Envoyer ces informations de voyage à un(e) ami(e)</strong>";div['header_close']=doc.createElement('div');div['header_close'].style.cssFloat='left';div['header_close'].style.styleFloat='left';div['header_close'].style.height='8';div['header_close'].style.width='10';div['header_close'].style.marginTop='4';div['header_close'].style.background="url('/swimages/icons/close.gif') no-repeat";div['header_close'].style.cursor="pointer";div['header_close'].onclick=function(){close_MAF();};div['input']=doc.createElement('div');div['input'].style.paddingLeft='25';div['input'].id='maf_input';div['naam']=doc.createElement('div');div['naam'].style.marginTop='30';div['naam'].className='st';div['naam'].innerHTML=(lng==1)?"* Uw naam":"* Votre nom";div['naamI']=doc.createElement('input');div['naamI'].type='text';div['naamI'].id='name';div['naamI'].style.width='280';div['naamI'].className='MAF_INPUT';div['email']=doc.createElement('div');div['email'].style.marginTop='10';div['email'].className='st';div['email'].innerHTML=(lng==1)?"* Uw e-mailadres":"* Votre adresse e-mail";div['emailI']=doc.createElement('input');div['emailI'].type='text';div['emailI'].id='emailI';div['emailI'].className='MAF_INPUT';div['titel']=doc.createElement('div');div['titel'].style.marginTop='10';div['titel'].className='bmt';div['titel'].innerHTML=(lng==1)?"Sturen naar":"Envoyer à";div['naamV']=doc.createElement('div');div['naamV'].style.marginTop='10';div['naamV'].className='st';div['naamV'].innerHTML=(lng==1)?"* Naam vriend(in)":"* Nom du destinataire";div['naamVI']=doc.createElement('input');div['naamVI'].type='text';div['naamVI'].id='nameV';div['naamVI'].className='MAF_INPUT';div['emailV']=doc.createElement('div');div['emailV'].style.marginTop='10';div['emailV'].className='st';div['emailV'].innerHTML=(lng==1)?"* E-mailadres vriend(in)":"* Adresse e-mail du destinataire";div['emailVI']=doc.createElement('input');div['emailVI'].type='text';div['emailVI'].id='emailVI';div['emailVI'].className='MAF_INPUT';div['boodschap']=doc.createElement('div');div['boodschap'].style.marginTop='10';div['boodschap'].className='st';div['boodschap'].innerHTML=(lng==1)?"Uw persoonlijke boodschap":"Ajoutez un message ici ";div['boodschapI']=doc.createElement('textarea');div['boodschapI'].id='boodschap';div['boodschapI'].style.height='100';div['boodschapI'].className='MAF_INPUT';div['div_send']=doc.createElement('div');div['div_send'].style.position="absolute";div['div_send'].style.bottom="55";div['div_send'].style.right="50";div['verzenden']=doc.createElement('button');div['verzenden'].name='send';div['verzenden'].innerHTML=(lng==1)?"Verzenden":"Envoyer";div['verzenden'].style.width='100';div['verzenden'].id='SET_BUT';div['verzenden'].onclick=function(){send_info();};div['hinfo']=doc.createElement('div');div['hinfo'].style.position="absolute";div['hinfo'].style.top="25";div['hinfo'].style.left="0";var HTML="<H4>"+jsarr[0]['titel']+" "+jsarr[0]['naam']+" "+setStars(jsarr[0]['UNI_CAT'],"")+"</H4>";HTML=(document.getElementById('User').value=='D')?HTML+"Disneyland® Resort Paris":HTML+"<div style='margin-left:15px'>"+jsarr[0]['land']+" | "+jsarr[0]['regio']+" | "+jsarr[0]['plaats']+"</div>";div['hinfo'].innerHTML=HTML;div['hinfoPic']=doc.createElement('div');div['hinfoPic'].style.position="absolute";div['hinfoPic'].style.top="40";div['hinfoPic'].style.right="20";div['hinfoPic'].style.width="160";div['hinfoPic'].style.height="170";div['hinfoPic'].style.className="border_color";var PIC="";try{var arr_pic=jsarr[0]['PHOTO_NAME'].split(",");for(p=0;p<((arr_pic.length>2)?2:arr_pic.length);p++){PIC=PIC+"<div class='border_color CB "+((p>0)?"MT5":"")+"' style='width:154px;'>";PIC=PIC+"<div style=\"width:150px;height:100px;margin:2px;background:url('"+getPic(arr_pic[p])+"') no-repeat;background-position:center center\">";PIC=PIC+"</div>";PIC=PIC+"</div>";}
div['hinfoPic'].innerHTML=PIC;}catch(excp){}
div['xinfo']=doc.createElement('div');div['xinfo'].style.position="absolute";div['xinfo'].style.left="20";div['xinfo'].style.bottom="8";div['xinfo'].innerHTML="<div class='ssst'>"+((lng==1)?"Velden gemarkeerd met een *  zijn verplicht in te vullen":"Les champs signalés par un astérisque* doivent être remplis")+"</div>";div['input'].appendChild(div['naam']);div['input'].appendChild(div['naamI']);div['input'].appendChild(div['email']);div['input'].appendChild(div['emailI']);div['input'].appendChild(div['boodschap']);div['input'].appendChild(div['boodschapI']);div['input'].appendChild(div['titel']);div['input'].appendChild(div['naamV']);div['input'].appendChild(div['naamVI']);div['input'].appendChild(div['emailV']);div['input'].appendChild(div['emailVI']);div['div_send'].appendChild(div['verzenden']);div['input'].appendChild(div['div_send']);div['input'].appendChild(div['hinfo']);div['input'].appendChild(div['hinfoPic']);div['input'].appendChild(div['xinfo']);div['header'].appendChild(div['header_text']);div['header'].appendChild(div['header_close']);info.appendChild(div['header']);info.appendChild(div['input']);return;}
function setStars(str,set_img)
{var star="";if(str.indexOf("H")!='-1'){for(s=0;s<str.length;s++){star=star+((set_img=="N")?"*":"<img src=\"/swimages/general/astar.gif\" border=\"0\">");}}else{star=str;}
return star;}
function getPic(str)
{var dir=str.substr(0,3)+"00";var Sdir=str.substr(0,5);var picDir="/betnails/"+dir+"/"+Sdir+"/"+str+".JPG";return picDir;}
function checkEmail(object)
{var str=object.value;var arr_str=str.split(".");var arr_strLen=arr_str.length;if(str.indexOf('@')=='-1'){object.style.background='#FF7D00';return 1;}
if(arr_str[(arr_strLen-1)].length<2){object.style.background='#FF7D00';return 1;}
object.style.background='#FFFFFF';return 0;}
function send_info()
{var infoDiv=info.getElementsByTagName('input');var infoDivLen=infoDiv.length;var ok=0;for(i=0;i<infoDivLen;i++){if(infoDiv[i].value==''){infoDiv[i].style.background='#FF7D00';ok=1;}else{infoDiv[i].style.background='#FFFFFF';ok=(infoDiv[i].id.indexOf('email')!='-1')?checkEmail(infoDiv[i]):0;}}
if(location.href.indexOf("unitext_display")!='-1'&&location.href.indexOf("inethotelinfo")!='-1'){var arr_href=location.href.split("inethotelinfo=");var server=(location.href.indexOf("tst")!='-1')?"tst":"www";var inet=arr_href[1].substr(0,10);var user=inet.substr(1,2).replace("0","");var lng=(inet.indexOf(".N")!='-1')?"N":"F";if((inet.substr(0,1)%2)==0){var url_seas=(lng=='N')?"zomer":"ete";}else{var url_seas=(lng=='N')?"winter":"hiver";}
switch(user){case"1":var url_deel=(lng=='N')?"vliegvakanties":"vacances_en_avion";break;case"S":var url_deel=(lng=='N')?"sneeuwvakanties":"neige";break;case"A":var url_deel=(lng=='N')?"autovakanties":"vacances_en_voiture";break;case"K":var url_deel=(lng=='N')?"dichtbijvakanties":"pres_de_chez_vous";break
case"C":var url_deel=(lng=='N')?"citytrips":"citytrips_fr";break
case"SG":var url_deel=(lng=='N')?"seagull":"seagull_fr";break
case"G":var url_deel=(lng=='N')?"seagull":"seagull_fr";break
case"D":var url_deel=(lng=='N')?"disneylandresortparijs":"disneylandresortparis";break}
url="http://"+server+".jetair.be/"+url_deel+"/hotel_"+jsarr[0]['naam'].replace("?","")+"_"+url_seas+"_"+inet+".htm";}
if(ok==0){lng=(getcookie('lng')=='')?document.getElementById('lng').value:getcookie('lng');lng=(typeof(document.getElementById('lng').value)!="undefined"!=lng)?document.getElementById('lng').value:lng;var parameters="url="+url+"&naam="+doc.getElementById('name').value+"&email="+doc.getElementById('emailI').value;parameters=parameters+"&naamV="+doc.getElementById('nameV').value+"&emailV="+doc.getElementById('emailVI').value;parameters=parameters+"&boodschap="+doc.getElementById('boodschap').value;parameters=parameters+"&title="+jsarr[0]['titel']+" "+jsarr[0]['naam']+" "+setStars(jsarr[0]['UNI_CAT'],"N")+"&lng="+((lng=="1")?"1":"2")+"&hotelcode="+document.getElementById('hotelcode').value+"&ajax=mail";var ajax=new Ajax("/phpscripts/maf_mail.php","POST",parameters,send_info_callback);ajax.go();}}
function send_info_callback(xml_req){var response=xml_req.responseText;var arr_resp=response.split("#");if(arr_resp[0]=="OK"){div['dank']=doc.createElement('div');div['dank'].style.position='relative';div['dank'].style.top='20';div['dank'].style.width='100%';div['dank'].style.textAlign='center';if(lng==1){div['dank'].innerHTML="Het bericht is succesvol verstuurd.<p><a href='#' onclick='close_MAF();'>sluit</a>";}else{div['dank'].innerHTML="Le message a été envoyé avec succès.<p><a href='#' onclick='close_MAF();'>fermez</a>";}
document.getElementById('maf_input').innerHTML="";document.getElementById('maf_input').appendChild(div['dank']);}}
function close_MAF()
{body.removeChild(doc.getElementById('maf_info'));body.removeChild(doc.getElementById('fade'));clearInterval(interval);};function CreatePopupDiv()
{this.body="";this.title="";this.text="";this.opacity="";this.line="";this.darktext="";this.bgC="";this.bg="";this.start="";this.div="";this.click=0;this.doc="";this.startFrame="";this.back="";this.onload="";this.Top="75";this.marginTop="";this.popupWidth=500;this.noOnclkTXT="";this.type="text";}
CreatePopupDiv.prototype.insertDiv=function()
{var obj_tbl=document.body.getElementsByTagName("iframe")[0];var div=document.createElement('div');div.style.position='relative';div.style.font='1em verdana';div.style.textAlign='left';div.style.color='#FF0000';div.style.background='#FFFFFF';div.style.marginTop='5px';div.style.bottom='5px';div.style.paddingLeft='5px';div.style.paddingTop='8px';div.style.border='1px solid #FF0000';var str_txt=this.text.replace(/#/g,"<br>");str_txt=str_txt.replace(/([0-9])/g,'<b>$1</b>');div.innerHTML="<div style='font-weight:bolder;background:url(/swimages/icons/error.png) no-repeat;padding-left:16px;height:20px;margin-bottom:5px'>"+this.title+"</div>"+str_txt;obj_tbl.parentNode.insertBefore(div,obj_tbl);}
CreatePopupDiv.prototype.CreatDiv=function()
{if(location.href.indexOf(".cgi")!='-1'){window.onload=this.insertDiv.bind(this);}else{if(this.startFrame=="top"){this.body=top.window.document.body;this.doc=top.window.document;}else{this.body=window.document.body;this.doc=window.document;}
this.text=this.text.replace("\n","#");this.text=this.text.replace("\r","#");this.text=this.text.replace("<br>","#");this.tDate=new Date();this.start=this.tDate.getHours()+""+this.tDate.getMinutes()+""+this.tDate.getSeconds();var div=new Array();var text=new Array();var br=new Array();this.arr_text=this.text.split("#");if(this.line==''&&this.darktext==''&&this.bgC==''&&this.bg==''){switch(this.status){case"0":this.line="#3366CC";this.darktext="#3366CC";this.bgC="#E9F4FF";this.bg="#111111";break;case"1":this.line="#FF7D00";this.darktext="#EF0000";this.bgC="#FFCC66";this.bg="#111111";break;default:this.line="#3366CC";this.darktext="#3366CC";this.bgC="#E9F4FF";this.bg="#111111";break;}}
if(this.opacity==''){this.opacity="40";}
div[0]=this.doc.createElement("div");div[0].id='picDiv0';div[0].style.position='absolute';div[0].style.zIndex='100';div[0].style.top='0';div[0].style.left='0';if(this.body.offsetWidth>this.body.scrollWidth){div[0].style.width='100%';}else{div[0].style.width=this.body.scrollWidth;}
if(this.body.offsetHeight>this.body.scrollHeight){if(this.body.offsetHeight<620){div[0].style.height="700px";}else{div[0].style.height=this.body.offsetHeight;}}else{if(this.body.scrollHeight<620){div[0].style.height="700px";}else{div[0].style.height=this.body.scrollHeight;}}
div[0].style.background=this.bg;div[0].style.filter='alpha(opacity='+this.opacity+')';div[0].style.opacity=(parseFloat(this.opacity)/100);div[0].onclick=this.CloseDiv.bind(this);div[1]=this.doc.createElement("div");div[1].id='picDiv1';div[1].style.zIndex='101';div[1].style.position='absolute';div[1].style.top=this.Top;if(this.marginTop!='no'){div[1].style.marginTop='30px';}
div[1].style.left='50%';div[1].style.marginLeft="-"+(parseFloat(this.popupWidth)/2)+'px';div[1].style._height='200px';div[1].style.Minheight='200px';div[1].style.width=this.popupWidth+'px';div[1].style.background='#FFFFFF';div[1].style.border='1px solid '+this.line;if(this.noOnclkTXT==""){div[1].onclick=this.CloseDiv.bind(this);}
div[2]=this.doc.createElement("div");div[2].style.position='relative';div[2].style.clear='both';div[2].style.background='#FFFFFF';div[2].style.width=(parseFloat(this.popupWidth)-10)+"px";div[2].style.font='10px verdana, arial';div[2].style.color='#000000';div[2].style.textAlign='left';div[2].style.padding='5px';div[3]=this.doc.createElement("div");div[3].id='picDiv3';div[3].style.position='absolute';div[3].style.top='-20';div[3].style.right='-1';div[3].style.width=parseFloat(this.popupWidth)+"px";div[3].style.marginLeft='-1';div[3].style.height='19';div[3].style.paddingTop='1';div[3].style.textAlign='left';div[3].style.font='10px verdana, arial';div[3].style.color=this.darktext;div[3].style.lineHeight='17px';div[3].style.backgroundColor=this.bgC;div[3].style.textAlign='right';div[3].style.borderTop='1px solid '+this.line;div[3].style.borderLeft='1px solid '+this.line;div[3].style.borderRight='1px solid '+this.line;div[3].style.fontSize='13';div[3].style.zIndex=10;div[4]=this.doc.createElement("div");div[4].id='picDiv3';div[4].style.position='absolute';div[4].style.top='-20';div[4].style.right='-1';div[4].style.width='20';div[4].style.marginLeft='-1';div[4].style.height='19';div[4].style.paddingTop='1';div[4].style.paddingRight='5';div[4].style.textAlign='right';div[4].style.font='10px verdana, arial';div[4].style.color=this.darktext;div[4].style.fontWeight='bolder';div[4].style.fontSize='13';div[4].style.cursor='pointer';div[4].style.zIndex=11;div[4].style.color=this.darktext;div[4].onclick=this.CloseDiv.bind(this);div[5]=this.doc.createElement("div");div[5].style.position='absolute';div[5].style.top='-20';div[5].style.left='0';div[5].style.width='85%';div[5].style.height='19';div[5].style.paddingTop='1';div[5].style.paddingLeft='5';div[5].style.textAlign='left';div[5].style.font='10px verdana, arial';div[5].style.fontWeight='bolder';div[5].style.color=this.darktext;div[5].style.fontSize='13';div[5].style.cursor='pointer';div[5].style.zIndex=12;var title=this.doc.createTextNode(this.title);var close=this.doc.createTextNode("X");if(this.type=="text"){for(i=0;i<this.arr_text.length;i++){text[i]=this.doc.createTextNode(this.arr_text[i]);br[i]=this.doc.createElement("br");div[2].appendChild(text[i]);div[2].appendChild(br[i]);}}else if(this.type=="html"){div[2].innerHTML=this.text;}
div[4].appendChild(close);div[5].appendChild(title);div[1].appendChild(div[3]);div[1].appendChild(div[2]);div[1].appendChild(div[4]);div[1].appendChild(div[5]);this.div=div;if(typeof(window.onload)=="object"||this.onload=='no'){this.body.appendChild(this.div[0]);this.body.appendChild(this.div[1]);}else{window.onload=this.loading.bind(this);}}};CreatePopupDiv.prototype.loading=function()
{this.body.appendChild(this.div[0]);this.body.appendChild(this.div[1]);try{if(window.parent.vulin.processing){window.parent.vulin.processing.close();}}catch(excp){}};CreatePopupDiv.prototype.CloseDiv=function()
{this.click++;this.tDate=new Date();this.stop=this.tDate.getHours()+""+this.tDate.getMinutes()+""+this.tDate.getSeconds();if((parseFloat(this.stop)-parseFloat(this.start)>1)||this.click>=5){for(i=0;i<2;i++){this.body.removeChild(this.doc.getElementById('picDiv'+i));}}
(this.xtr_js!='')?eval(this.xtr_js):"";if(this.back=='Y'){history.back();}};if(!Function.prototype.bind){Function.prototype.bind=function(object){var __method=this;return function(){return __method.apply(object,arguments);}}}
if(!Function.prototype.bindMore){Function.prototype.bindMore=function(object)
{var __method=this;var __arguments=[];for(var i=1;i<arguments.length;i++){__arguments.push(arguments[i]);}
return function(){return __method.apply(object,__arguments);}};};var AjaxRequestObject={};AjaxRequestObject.create=function Ajax_new_xml_http_request()
{var A=null;try{A=new ActiveXObject("Msxml2.XMLHTTP");}catch(e){try{A=new ActiveXObject("Microsoft.XMLHTTP");}catch(oc){A=null;}}
if(!A&&typeof XMLHttpRequest!="undefined"){A=new XMLHttpRequest();}
return A;}
function Ajax(url,method,params,callback)
{this.url=url;this.method=(method||"post").toUpperCase();if(this.method!="POST"&&this.method!="GET"){this.method="GET";}
this.params=params;this.callback=callback;this.xml_req=AjaxRequestObject.create();if(!this.xml_req)alert("Your browser does not support the XmlHttpRequest object!");}
Ajax.prototype.escape_paramstring=function(paramstring)
{var pieces=paramstring.split("&");var newpieces=new Array();for(var i=0;i<pieces.length;i++){var param=pieces[i].split("=");newpieces[newpieces.length]=escape(param[0])+"="+escape(param[1]);}
return newpieces.join("&");}
Ajax.prototype.go=function()
{this.xml_req.open(this.method,this.url,true);this.xml_req.onreadystatechange=this.onreadystatechange.bind(this);if(this.method=="POST"){this.xml_req.setRequestHeader("Content-Type","application/x-www-form-urlencoded");}
this.xml_req.send(this.escape_paramstring(this.params));}
Ajax.prototype.onreadystatechange=function()
{if(this.xml_req.readyState==4){this.callback(this.xml_req);}}
if(!Function.prototype.bind){Function.prototype.bind=function(object){var __method=this;return function(){return __method.apply(object,arguments);}}}
Ajax.prototype.getResponseText=function()
{return this.xml_req.responseText;};;var whatOld="algemeen";var whatBkp="vakantie_regio";var body=top.document.body;var div=new Array();function showRegioData(what,el)
{if(typeof(what)=='undefined'){what=whatOld;}
try{el.id;}catch(excp){if(document.getElementById('check')){what=document.getElementById('check').value;}}
if(!document.getElementById(what+"_but")){what=whatBkp;}
if(typeof(el)=='undefined'){el=document.getElementById(what+"_but");}
if(whatOld!=''&&whatOld!=what&&document.getElementById(whatOld+"_but")){document.getElementById(whatOld+"_but").className='FCH_BUT';document.getElementById(whatOld).style.display='none';}
try{document.getElementById(what+"_but").className='FCH_ABUT';document.getElementById(what).style.display='';}catch(expc){}
whatOld=what;parent.resizeCaller();}
function IntroLoadData()
{showRegioData();parent.resizeCaller();try{var Season=document.getElementById('Season').value;var User=document.getElementById('User').value;var deel=parent.document.getElementById('deel').value;var lng=parent.document.getElementById('lng').value;var page=document.getElementById('page').value;var gal=document.getElementById('gal').value;if(lng==1){lng='nl';}else{lng='fr';}
page=page.replace(Season,'');page=page.replace('0'+User,'');page=page.substr(0,3);deel=deel.replace('_jc','');if(gal!=1){str_parameters=lng+'.'+deel+'.'+page+'.landing';}else{str_parameters=lng+'.'+deel+'.'+page+'.foto';}
str_parameters=str_parameters.toLowerCase();}catch(excp){}}
function Goto_Tekst()
{var inetinfo=document.getElementById('inetinfo').value;location.href='index.php?inetinfo='+inetinfo;}
function Goto_Excursie()
{var inetinfo=document.getElementById('inetinfo').value;location.href='index.php?inetinfo='+inetinfo+'&excu=1';}
function Goto_Foto()
{var inetinfo=document.getElementById('inetinfo').value;location.href='index.php?inetinfo='+inetinfo+'&Gal=1';}
function show_exc(id)
{if(typeof(id)=='undefined'){id='';}
var aantal=document.getElementById('aantal').value-1;var i;var display;var index_it;for(i=0;i<=aantal;i++){if(i==id&&id!=''){display_back='';display='';display_in='none';class_add='w';class_button='st';}else if(id==''){display_back='none';display='';display_in='';class_add='';class_button='left_menu';}else{display_back='none';display='none';display_in='none';class_add='';class_button='left_menu';}
if(id==''){index_it='';}else{index_it='none';}
document.getElementById('exc_'+i).style.display=display;document.getElementById('exc_'+i+'_1').style.display=display;document.getElementById('exc_'+i+'_2').style.display=display_back;document.getElementById('exc_'+i+'_3').style.display=display_in;}}
function change_picI(picture)
{document.getElementById('picture').style.background="url("+picture+")";document.getElementById('picture').style.backgroundRepeat="no-repeat";document.getElementById('picture').style.backgroundPosition="center";}
function fillin_vulin()
{var landcode=document.getElementById('landcode').value;var regiocode=document.getElementById('regiocode').value.replace("nl","");regiocode=regiocode.replace("fr","");var box=parent.vulin.document.form.dest_resort;for(i=0;i<box.options.length;i++){if('RD'+landcode+'_'+regiocode==box.options[i].value){var data='ok';}}
if(data=='ok'){parent.vulin.document.form.destination.value=landcode;parent.vulin.document.form.dest_resort.value='D'+landcode;if(parent.vulin.document.form.resort.value==''){parent.vulin.document.form.resort.value=regiocode;parent.vulin.document.form.dest_resort.value='RD'+landcode+'_'+regiocode;parent.vulin.changeAirport();}
parent.vulin.Zoek();}else{alert('Uw gekozen bestemming is niet geldig in dit seizoen.');}}
function show_pic(id)
{for(var F in Arr_foto){if(F==id){var set_foto=Arr_foto[F];break;}}
if(typeof(set_foto)=="undefined"){return;}
var foto_data=set_foto.split("#");var lng="1";var Acount=0;var Apointer=0;for(key in Arr_foto){if(key.length==6){Acount++;if(key==id){Apointer=Acount;}}}
try{if(top.location.href.indexOf('agb')!='-1'||top.location.href.indexOf('bepages')!='-1'){var topDoc=document;}else{var topDoc=top.document;}
var fromTop=200;}catch(excp){var topDoc=document;var fromTop=60;}
try{if(body==null||(top.location.href.indexOf('agb')!='-1'||top.location.href.indexOf('bepages')!='-1')){body=topDoc.body;}}catch(excp){}
scroll(0,0);var total=Arr_foto-1;var width=foto_data[1];var height=foto_data[2];var dirPic=foto_data[0];var Mtop='-'+(parseFloat(height)/2);var Mleft='-'+(parseFloat(width)/2);var IdBack=foto_data[3];var IdNext=foto_data[4];if(IdBack<0&&IdBack!=''){IdBack=total;}
if(IdNext>total&&IdNext!=''){IdNext=0;}
try{div[0]=topDoc.createElement("div");}catch(excp){var div=new Array();div[0]=topDoc.createElement("div");}
div[0].id='picDiv0';div[0].style.position='absolute';div[0].style.top='0';div[0].style.left='0';div[0].style.width='100%';if(body.offsetHeight>body.scrollHeight){div[0].style.height='100%';}else{div[0].style.height=body.scrollHeight+"px";}
div[0].style.background='#111111';div[0].style.filter='alpha(opacity=80)';div[0].style.opacity=(60/100);div[0].style.zIndex=10;div[0].onclick=function(){close_picture();};div[1]=topDoc.createElement("div");div[1].id='picDiv1';div[1].style.position='absolute';div[1].style.top=fromTop+'px';div[1].style.left='50%';div[1].style.marginLeft=Mleft+"px";div[1].style.height=height;div[1].style.width=width;div[1].style.background='#FFFFFF';div[1].className='border_color';div[1].style.zIndex=11;div[2]=topDoc.createElement("div");div[2].id='picDiv2';div[2].style.position='absolute';div[2].style.top='-20px';div[2].style.left='0px';div[2].style.width='85px';div[2].style.height='19px';div[2].style.paddingTop='1px';div[2].style.paddingLeft='5px';div[2].style.textAlign='left';div[2].className='bt';div[2].style.fontSize='13px';div[2].style.cursor='pointer';div[2].style.zIndex=12;div[2].onclick=function(){show_pic(IdBack);};div[20]=topDoc.createElement("div");div[20].id='picDivCount';div[20].style.position='absolute';div[20].style.top='-20px';div[20].style.left='60px';div[20].style.width='30px';div[20].style.height='19px';div[20].style.paddingTop='1px';div[20].style.paddingLeft='5px';div[20].style.textAlign='left';div[20].className='bt';div[20].style.fontSize='13px';div[20].style.zIndex=12;div[3]=topDoc.createElement("div");div[3].id='picDiv3';div[3].style.position='absolute';div[3].style.top='-20px';div[3].style.left='95px';div[3].style.width='70px';div[3].style.height='19px';div[3].style.paddingTop='1px';div[3].style.textAlign='right';div[3].className='bt';div[3].style.fontSize='13px';div[3].style.cursor='pointer';div[3].style.zIndex=12;div[3].onclick=function(){show_pic(IdNext);};div[4]=topDoc.createElement("div");div[4].id='picDiv3';div[4].style.position='absolute';div[4].style.top='-20px';div[4].style.right='-1px';if(navigator.appName.indexOf("Netscape")=='-1'){var divW=(parseFloat(width)+2)+"px";}else{var divW=(parseFloat(width)-8)+"px";}
div[4].style.width=divW;div[4].style.marginLeft='-1px';div[4].style.height='19px';div[4].style.paddingTop='1px';div[4].style.paddingRight='3px';div[4].className='item_header';div[4].style.textAlign='right';div[4].style.borderTop='1px solid #3366CC';div[4].style.borderLeft='1px solid #3366CC';div[4].style.borderRight='1px solid #3366CC';div[4].style.fontSize='13px';div[4].style.zIndex=10;div[5]=topDoc.createElement("div");div[5].id='picDiv3';div[5].style.position='absolute';div[5].style.top='-20px';div[5].style.right='-1px';div[5].style.width='20px';div[5].style.marginLeft='-1px';div[5].style.height='19px';div[5].style.paddingTop='1px';div[5].style.paddingRight='5px';div[5].style.textAlign='right';div[5].className='bmt';div[5].style.fontSize='13px';div[5].style.cursor='pointer';div[5].style.zIndex=11;div[5].style.color='#3366CC';div[5].onclick=function(){close_picture();};if(lng=='1'){var back=topDoc.createTextNode(" vorige");var next=topDoc.createTextNode("volgende ");}else{var back=topDoc.createTextNode(" précédent");var next=topDoc.createTextNode("suivant ");}
var close=topDoc.createTextNode("X");if(Apointer!=0){var Tpic=topDoc.createTextNode(Apointer+"/"+Acount);}else{var Tpic=topDoc.createTextNode('');}
var backPic=topDoc.createElement('img');backPic.src='/swimages/general/arrowL.gif';var nextPic=topDoc.createElement('img');nextPic.src='/swimages/general/arrowR.gif';var pic=topDoc.createElement("img");if(dirPic.indexOf("http://www.jetair")!='-1'){pic.src=dirPic;}else{pic.src="http://www.jetair.be/"+dirPic;}
pic.height=height;pic.width=width;if(topDoc.getElementById('picDiv0')){close_picture();}
div[1].appendChild(pic);div[2].appendChild(backPic);div[2].appendChild(back);div[20].appendChild(Tpic);div[3].appendChild(next);div[3].appendChild(nextPic);div[5].appendChild(close);if(IdBack!=''){div[1].appendChild(div[2]);}
div[1].appendChild(div[20]);if(IdNext!=''){div[1].appendChild(div[3]);}
div[1].appendChild(div[4]);div[1].appendChild(div[5]);body.appendChild(div[0]);body.appendChild(div[1]);try{top.vulin.hide_select(3);}catch(excp){}}
function close_picture()
{try{if(top.location.href.indexOf('agb')!='-1'||top.location.href.indexOf('bepages')!='-1'){var topDoc=document;}else{var topDoc=top.document;}}catch(excp){var topDoc=document;}
try{if(body==null||(topDoc.location.href.indexOf('agb')!='-1'||topDoc.location.href.indexOf('bepages')!='-1')){body=topDoc.body;}}catch(excp){}
for(i=0;i<2;i++){body.removeChild(topDoc.getElementById('picDiv'+i));}
try{top.vulin.hide_select();}catch(excp){}}
function display_excursie(i,class_style,first_titel,foto_display,foto_align,tekst)
{document.write("<div class='"+class_style+"' id='exc_"+i+"_2' style='display:none;cursor:pointer;margin-bottom:20' onclick='show_exc()'>");document.write("<img src='/swimages/general/arrowL.gif'> "+back);document.write("</div>");document.write("<div class='"+class_style+"' id='exc_"+i+"'>");document.write("<span class='bt' style='font-size:15;font-weight:bolder'>"+first_titel+"</span>");document.write("</div>");document.write("<div class='"+class_style+"' style='width:760' id='exc_"+i+"_1'>");if(foto_display!=''){var fotoLen=foto_display.length-10;var foto=foto_display.substr(fotoLen,6);document.write("<img src='"+foto_display+"' align='"+foto_align+"'>");document.write(tekst);}else{document.write("<div style='width:600'>"+tekst+"</div>");}
document.write("</div>");document.write("<div class='"+class_style+"' style='width:760' id='exc_"+i+"_3' style='border-bottom:1 solid #3366CC'>");document.write("</div>");}
window.onload=IntroLoadData;