var niftyOk=(document.getElementById&&document.createElement&&Array.prototype.push);var niftyCss=false;String.prototype.find=function(what){return(this.indexOf(what)>=0?true:false);}
var oldonload=window.onload;if(typeof(NiftyLoad)!='function')NiftyLoad=function(){};if(typeof(oldonload)=='function')
window.onload=function(){oldonload();AddCss();NiftyLoad()};else window.onload=function(){AddCss();NiftyLoad()};function AddCss(){niftyCss=true;var l=CreateEl("link");l.setAttribute("type","text/css");l.setAttribute("rel","stylesheet");l.setAttribute("href","/style/3rdParty/NiftyCorners/niftyCorners.css");l.setAttribute("media","screen");document.getElementsByTagName("head")[0].appendChild(l);}
function Nifty(selector,options){if(niftyOk==false)return;if(niftyCss==false)AddCss();var i,v=selector.split(","),h=0;if(options==null)options="";if(options.find("fixed-height"))
h=getElementsBySelector(v[0])[0].offsetHeight;for(i=0;i<v.length;i++)
Rounded(v[i],options);if(options.find("height"))SameHeight(selector,h);}
function Rounded(selector,options){var i,top="",bottom="",v=new Array();if(options!=""){options=options.replace("left","tl bl");options=options.replace("right","tr br");options=options.replace("top","tr tl");options=options.replace("bottom","br bl");options=options.replace("transparent","alias");if(options.find("tl")){top="both";if(!options.find("tr"))top="left";}
else if(options.find("tr"))top="right";if(options.find("bl")){bottom="both";if(!options.find("br"))bottom="left";}
else if(options.find("br"))bottom="right";}
if(top==""&&bottom==""&&!options.find("none")){top="both";bottom="both";}
v=getElementsBySelector(selector);for(i=0;i<v.length;i++){FixIE(v[i]);if(top!="")AddTop(v[i],top,options);if(bottom!="")AddBottom(v[i],bottom,options);}}
function AddTop(el,side,options){var d=CreateEl("b"),lim=4,border="",p,i,btype="r",bk,color;d.style.marginLeft="-"+getPadding(el,"Left")+"px";d.style.marginRight="-"+getPadding(el,"Right")+"px";if(options.find("alias")||(color=getBk(el))=="transparent"){color="transparent";bk="transparent";border=getParentBk(el);btype="t";}
else{bk=getParentBk(el);border=Mix(color,bk);}
d.style.background=bk;d.className="niftycorners";p=getPadding(el,"Top");if(options.find("small")){d.style.marginBottom=(p-2)+"px";btype+="s";lim=2;}
else if(options.find("big")){d.style.marginBottom=(p-10)+"px";btype+="b";lim=8;}
else d.style.marginBottom=(p-5)+"px";for(i=1;i<=lim;i++)
d.appendChild(CreateStrip(i,side,color,border,btype));el.style.paddingTop="0";el.insertBefore(d,el.firstChild);}
function AddBottom(el,side,options){var d=CreateEl("b"),lim=4,border="",p,i,btype="r",bk,color;d.style.marginLeft="-"+getPadding(el,"Left")+"px";d.style.marginRight="-"+getPadding(el,"Right")+"px";if(options.find("alias")||(color=getBk(el))=="transparent"){color="transparent";bk="transparent";border=getParentBk(el);btype="t";}
else{bk=getParentBk(el);border=Mix(color,bk);}
d.style.background=bk;d.className="niftycorners";p=getPadding(el,"Bottom");if(options.find("small")){d.style.marginTop=(p-2)+"px";btype+="s";lim=2;}
else if(options.find("big")){d.style.marginTop=(p-10)+"px";btype+="b";lim=8;}
else d.style.marginTop=(p-5)+"px";for(i=lim;i>0;i--)
d.appendChild(CreateStrip(i,side,color,border,btype));el.style.paddingBottom=0;el.appendChild(d);}
function CreateStrip(index,side,color,border,btype){var x=CreateEl("b");x.className=btype+index;x.style.backgroundColor=color;x.style.borderColor=border;if(side=="left"){x.style.borderRightWidth="0";x.style.marginRight="0";}
else if(side=="right"){x.style.borderLeftWidth="0";x.style.marginLeft="0";}
return(x);}
function CreateEl(x){return(document.createElement(x));}
function FixIE(el){if(el.currentStyle!=null&&el.currentStyle.hasLayout!=null&&el.currentStyle.hasLayout==false)
el.style.display="inline-block";}
function SameHeight(selector,maxh){var i,v=selector.split(","),t,j,els=[],gap;for(i=0;i<v.length;i++){t=getElementsBySelector(v[i]);els=els.concat(t);}
for(i=0;i<els.length;i++){if(els[i].offsetHeight>maxh)maxh=els[i].offsetHeight;els[i].style.height="auto";}
for(i=0;i<els.length;i++){gap=maxh-els[i].offsetHeight;if(gap>0){t=CreateEl("b");t.className="niftyfill";t.style.height=gap+"px";nc=els[i].lastChild;if(nc.className=="niftycorners")
els[i].insertBefore(t,nc);else els[i].appendChild(t);}}}
function getElementsBySelector(selector){var i,j,selid="",selclass="",tag=selector,tag2="",v2,k,f,a,s=[],objlist=[],c;if(selector.find("#")){if(selector.find(" ")){s=selector.split(" ");var fs=s[0].split("#");if(fs.length==1)return(objlist);f=document.getElementById(fs[1]);if(f){v=f.getElementsByTagName(s[1]);for(i=0;i<v.length;i++)objlist.push(v[i]);}
return(objlist);}
else{s=selector.split("#");tag=s[0];selid=s[1];if(selid!=""){f=document.getElementById(selid);if(f)objlist.push(f);return(objlist);}}}
if(selector.find(".")){s=selector.split(".");tag=s[0];selclass=s[1];if(selclass.find(" ")){s=selclass.split(" ");selclass=s[0];tag2=s[1];}}
var v=document.getElementsByTagName(tag);if(selclass==""){for(i=0;i<v.length;i++)objlist.push(v[i]);return(objlist);}
for(i=0;i<v.length;i++){c=v[i].className.split(" ");for(j=0;j<c.length;j++){if(c[j]==selclass){if(tag2=="")objlist.push(v[i]);else{v2=v[i].getElementsByTagName(tag2);for(k=0;k<v2.length;k++)objlist.push(v2[k]);}}}}
return(objlist);}
function getParentBk(x){var el=x.parentNode,c;while(el.tagName.toUpperCase()!="HTML"&&(c=getBk(el))=="transparent")
el=el.parentNode;if(c=="transparent")c="#FFFFFF";return(c);}
function getBk(x){var c=getStyleProp(x,"backgroundColor");if(c==null||c=="transparent"||c.find("rgba(0, 0, 0, 0)"))
return("transparent");if(c.find("rgb"))c=rgb2hex(c);return(c);}
function getPadding(x,side){var p=getStyleProp(x,"padding"+side);if(p==null||!p.find("px"))return(0);return(parseInt(p));}
function getStyleProp(x,prop){if(x.currentStyle)
return(x.currentStyle[prop]);if(document.defaultView.getComputedStyle)
return(document.defaultView.getComputedStyle(x,'')[prop]);return(null);}
function rgb2hex(value){var hex="",v,h,i;var regexp=/([0-9]+)[, ]+([0-9]+)[, ]+([0-9]+)/;var h=regexp.exec(value);for(i=1;i<4;i++){v=parseInt(h[i]).toString(16);if(v.length==1)hex+="0"+v;else hex+=v;}
return("#"+hex);}
function Mix(c1,c2){var i,step1,step2,x,y,r=new Array(3);if(c1.length==4)step1=1;else step1=2;if(c2.length==4)step2=1;else step2=2;for(i=0;i<3;i++){x=parseInt(c1.substr(1+step1*i,step1),16);if(step1==1)x=16*x+x;y=parseInt(c2.substr(1+step2*i,step2),16);if(step2==1)y=16*y+y;r[i]=Math.floor((x*50+y*50)/100);r[i]=r[i].toString(16);if(r[i].length==1)r[i]="0"+r[i];}
return("#"+r[0]+r[1]+r[2]);};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);}}};function SOAPrequestOfferte()
{document.getElementById('btnReset').disabled='disabled';document.getElementById('btnBerekenPrijs').disabled='disabled';var strPar="AJAX=CARHOTEL&ACTION=SOAPrequestOfferte&";strPar+="PO="+document.getElementById('PO').value+"&";strPar+="Fname="+document.getElementById('txtFirstName').value+"&";strPar+="Name="+document.getElementById('txtName').value+"&";strPar+="Flightnr="+document.getElementById('txtFlightnr').value+"&";strPar+="Destination="+document.getElementById('ddlDestination').value+"&";strPar+="Email="+document.getElementById('txtemail').value+"&";strPar+="Street="+document.getElementById('txtStreet').value+"&";strPar+="StreetNr="+document.getElementById('txtStreetnr').value+"&";strPar+="Zip="+document.getElementById('txtZip').value+"&";strPar+="City="+document.getElementById('txtCity').value+"&";strPar+="Country="+document.getElementById('txtCountry').value+"&";strPar+="Language="+document.getElementById('Language').value+"&";strPar+="InDate="+document.getElementById('chaDag').value+"-"+document.getElementById('chaMaand_Jaar').value.replace('_',"-")+" "+document.getElementById('chaUur').value+":"+document.getElementById('chaMinuut').value+"&";strPar+="OutDate="+document.getElementById('chvDag').value+"-"+document.getElementById('chvMaand_Jaar').value.replace('_',"-")+" "+document.getElementById('chvUur').value+":"+document.getElementById('chvMinuut').value;var objAjax=new Ajax("/phpscripts/ajax.php","POST",strPar,SOAPrequestOfferte_response);objAjax.go();}
function SOAPrequestOfferte_response(xmlRequest)
{var response=xmlRequest.responseText;var arr_resp=response.split('OK|');eval(arr_resp[1]);document.getElementById('TENDER_ID').value=js_array.TENDER_ID;document.getElementById('tenderPrice').innerHTML=js_array.PRICE;document.getElementById('stepOneDiv').style.display='none';document.getElementById('stepTwoDiv').style.display='inline';document.getElementById('stepThreeDiv').style.display='none';document.getElementById('STEP').value='STAP2';document.getElementById('ConfirmfieldName').innerHTML=document.getElementById('txtFirstName').value+" "+document.getElementById('txtName').value+" ("+document.getElementById('Language').value+")";document.getElementById('ConfirmfieldAdres1').innerHTML=document.getElementById('txtStreet').value+" "+document.getElementById('txtStreetnr').value;document.getElementById('ConfirmfieldAdres2').innerHTML=document.getElementById('txtZip').value+" "+document.getElementById('txtCity').value+" ("+document.getElementById('txtCountry').value+")";document.getElementById('ConfirmfieldEmail').innerHTML=document.getElementById('txtemail').value;document.getElementById('ConfirmfieldInDate').innerHTML=document.getElementById('chaDag').value+"-"+document.getElementById('chaMaand_Jaar').value.replace('_',"-")+" "+document.getElementById('chaUur').value+":"+document.getElementById('chaMinuut').value;document.getElementById('ConfirmfieldOutDate').innerHTML=document.getElementById('chvDag').value+"-"+document.getElementById('chvMaand_Jaar').value.replace('_',"-")+" "+document.getElementById('chvUur').value+":"+document.getElementById('chvMinuut').value;document.getElementById('ConfirmfieldDestination').innerHTML=document.getElementById('ddlDestination').value;document.getElementById('ConfirmfieldFlightNr').innerHTML=document.getElementById('txtFlightnr').value;btn_stage_2();backToTop();}
function SOAPPlaceBooking()
{var strPar="AJAX=CARHOTEL&ACTION=SOAPPlaceBooking&";strPar+="TENDER_ID="+document.getElementById('TENDER_ID').value+"&";strPar+="PO="+document.getElementById('PO').value+"&";strPar+="CarPlate="+document.getElementById('txtCarPlate').value+"&";strPar+="CarConstructor="+document.getElementById('txtCarConstructor').value+"&";strPar+="CarType="+document.getElementById('txtCarType').value+"&";strPar+="CarColor="+document.getElementById('txtCarColor').value;var objAjax=new Ajax("/phpscripts/ajax.php","POST",strPar,SOAPPlaceBooking_response);objAjax.go();}
function SOAPPlaceBooking_response(xmlRequest)
{var response=xmlRequest.responseText;var arr_resp=response.split('OK|');eval(arr_resp[1]);document.getElementById('carhotelFinal').innerHTML=js_array.RESPONSE;document.getElementById('stepOneDiv').style.display='none';document.getElementById('stepTwoDiv').style.display='none';document.getElementById('stepThreeDiv').style.display='inline';document.getElementById('STEP').value='STAP3';document.getElementById('btnReset').style.visibility='hidden';document.getElementById('btnBerekenPrijs').style.visibility='hidden';backToTop();}
function backToTop(){var x1=x2=x3=0;var y1=y2=y3=0;if(document.documentElement){x1=document.documentElement.scrollLeft||0;y1=document.documentElement.scrollTop||0;}
if(document.body){x2=document.body.scrollLeft||0;y2=document.body.scrollTop||0;}
x3=window.scrollX||0;y3=window.scrollY||0;var x=Math.max(x1,Math.max(x2,x3));var y=Math.max(y1,Math.max(y2,y3));window.scrollTo(Math.floor(x/2),Math.floor(y/2));if(x>0||y>0){window.setTimeout("backToTop()",25);}}
function loadXMLString(txt)
{try
{xmlDoc=new ActiveXObject("Microsoft.XMLDOM");xmlDoc.async="false";xmlDoc.loadXML(txt);return(xmlDoc);}
catch(e)
{try
{parser=new DOMParser();xmlDoc=parser.parseFromString(txt,"text/xml");return(xmlDoc);}
catch(e){alert(e.message)}}
return(null);}
function popupCall(_type,_lng,_id,_params){var strPar="AJAX=POPUP&POPUPTYPE="+_type+"&";strPar+="LNG="+_lng+"&";strPar+="ID="+_id+"&";strPar+="PARAMS="+_params;var objAjax=new Ajax("/phpscripts/ajax.php","POST",strPar,popupCall_response);objAjax.go();}
function popupCall_response(xmlRequest)
{var response=xmlRequest.responseText;var arr_resp=response.split('OK|');eval(arr_resp[1]);jQueryAlert(js_array.TITEL,js_array.CONTENT);};if(typeof deconcept=="undefined"){var deconcept=new Object();}if(typeof deconcept.util=="undefined"){deconcept.util=new Object();}if(typeof deconcept.SWFObjectUtil=="undefined"){deconcept.SWFObjectUtil=new Object();}deconcept.SWFObject=function(_1,id,w,h,_5,c,_7,_8,_9,_a){if(!document.getElementById){return;}this.DETECT_KEY=_a?_a:"detectflash";this.skipDetect=deconcept.util.getRequestParameter(this.DETECT_KEY);this.params=new Object();this.variables=new Object();this.attributes=new Array();if(_1){this.setAttribute("swf",_1);}if(id){this.setAttribute("id",id);}if(w){this.setAttribute("width",w);}if(h){this.setAttribute("height",h);}if(_5){this.setAttribute("version",new deconcept.PlayerVersion(_5.toString().split(".")));}this.installedVer=deconcept.SWFObjectUtil.getPlayerVersion();if(!window.opera&&document.all&&this.installedVer.major>7){deconcept.SWFObject.doPrepUnload=true;}if(c){this.addParam("bgcolor",c);}var q=_7?_7:"high";this.addParam("quality",q);this.setAttribute("useExpressInstall",false);this.setAttribute("doExpressInstall",false);var _c=(_8)?_8:window.location;this.setAttribute("xiRedirectUrl",_c);this.setAttribute("redirectUrl","");if(_9){this.setAttribute("redirectUrl",_9);}};deconcept.SWFObject.prototype={useExpressInstall:function(_d){this.xiSWFPath=!_d?"expressinstall.swf":_d;this.setAttribute("useExpressInstall",true);},setAttribute:function(_e,_f){this.attributes[_e]=_f;},getAttribute:function(_10){return this.attributes[_10];},addParam:function(_11,_12){this.params[_11]=_12;},getParams:function(){return this.params;},addVariable:function(_13,_14){this.variables[_13]=_14;},getVariable:function(_15){return this.variables[_15];},getVariables:function(){return this.variables;},getVariablePairs:function(){var _16=new Array();var key;var _18=this.getVariables();for(key in _18){_16[_16.length]=key+"="+_18[key];}return _16;},getSWFHTML:function(){var _19="";if(navigator.plugins&&navigator.mimeTypes&&navigator.mimeTypes.length){if(this.getAttribute("doExpressInstall")){this.addVariable("MMplayerType","PlugIn");this.setAttribute("swf",this.xiSWFPath);}_19="<embed type=\"application/x-shockwave-flash\" src=\""+this.getAttribute("swf")+"\" width=\""+this.getAttribute("width")+"\" height=\""+this.getAttribute("height")+"\" style=\""+this.getAttribute("style")+"\"";_19+=" id=\""+this.getAttribute("id")+"\" name=\""+this.getAttribute("id")+"\" ";var _1a=this.getParams();for(var key in _1a){_19+=[key]+"=\""+_1a[key]+"\" ";}var _1c=this.getVariablePairs().join("&");if(_1c.length>0){_19+="flashvars=\""+_1c+"\"";}_19+="/>";}else{if(this.getAttribute("doExpressInstall")){this.addVariable("MMplayerType","ActiveX");this.setAttribute("swf",this.xiSWFPath);}_19="<object id=\""+this.getAttribute("id")+"\" classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" width=\""+this.getAttribute("width")+"\" height=\""+this.getAttribute("height")+"\" style=\""+this.getAttribute("style")+"\">";_19+="<param name=\"movie\" value=\""+this.getAttribute("swf")+"\" />";var _1d=this.getParams();for(var key in _1d){_19+="<param name=\""+key+"\" value=\""+_1d[key]+"\" />";}var _1f=this.getVariablePairs().join("&");if(_1f.length>0){_19+="<param name=\"flashvars\" value=\""+_1f+"\" />";}_19+="</object>";}return _19;},write:function(_20){if(this.getAttribute("useExpressInstall")){var _21=new deconcept.PlayerVersion([6,0,65]);if(this.installedVer.versionIsValid(_21)&&!this.installedVer.versionIsValid(this.getAttribute("version"))){this.setAttribute("doExpressInstall",true);this.addVariable("MMredirectURL",escape(this.getAttribute("xiRedirectUrl")));document.title=document.title.slice(0,47)+" - Flash Player Installation";this.addVariable("MMdoctitle",document.title);}}if(this.skipDetect||this.getAttribute("doExpressInstall")||this.installedVer.versionIsValid(this.getAttribute("version"))){var n=(typeof _20=="string")?document.getElementById(_20):_20;n.innerHTML=this.getSWFHTML();return true;}else{if(this.getAttribute("redirectUrl")!=""){document.location.replace(this.getAttribute("redirectUrl"));}}return false;}};deconcept.SWFObjectUtil.getPlayerVersion=function(){var _23=new deconcept.PlayerVersion([0,0,0]);if(navigator.plugins&&navigator.mimeTypes.length){var x=navigator.plugins["Shockwave Flash"];if(x&&x.description){_23=new deconcept.PlayerVersion(x.description.replace(/([a-zA-Z]|\s)+/,"").replace(/(\s+r|\s+b[0-9]+)/,".").split("."));}}else{if(navigator.userAgent&&navigator.userAgent.indexOf("Windows CE")>=0){var axo=1;var _26=3;while(axo){try{_26++;axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash."+_26);_23=new deconcept.PlayerVersion([_26,0,0]);}catch(e){axo=null;}}}else{try{var axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7");}catch(e){try{var axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");_23=new deconcept.PlayerVersion([6,0,21]);axo.AllowScriptAccess="always";}catch(e){if(_23.major==6){return _23;}}try{axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash");}catch(e){}}if(axo!=null){_23=new deconcept.PlayerVersion(axo.GetVariable("$version").split(" ")[1].split(","));}}}return _23;};deconcept.PlayerVersion=function(_29){this.major=_29[0]!=null?parseInt(_29[0]):0;this.minor=_29[1]!=null?parseInt(_29[1]):0;this.rev=_29[2]!=null?parseInt(_29[2]):0;};deconcept.PlayerVersion.prototype.versionIsValid=function(fv){if(this.major<fv.major){return false;}if(this.major>fv.major){return true;}if(this.minor<fv.minor){return false;}if(this.minor>fv.minor){return true;}if(this.rev<fv.rev){return false;}return true;};deconcept.util={getRequestParameter:function(_2b){var q=document.location.search||document.location.hash;if(_2b==null){return q;}if(q){var _2d=q.substring(1).split("&");for(var i=0;i<_2d.length;i++){if(_2d[i].substring(0,_2d[i].indexOf("="))==_2b){return _2d[i].substring((_2d[i].indexOf("=")+1));}}}return"";}};deconcept.SWFObjectUtil.cleanupSWFs=function(){var _2f=document.getElementsByTagName("OBJECT");for(var i=_2f.length-1;i>=0;i--){_2f[i].style.display="none";for(var x in _2f[i]){if(typeof _2f[i][x]=="function"){_2f[i][x]=function(){};}}}};if(deconcept.SWFObject.doPrepUnload){if(!deconcept.unloadSet){deconcept.SWFObjectUtil.prepUnload=function(){__flash_unloadHandler=function(){};__flash_savedUnloadHandler=function(){};window.attachEvent("onunload",deconcept.SWFObjectUtil.cleanupSWFs);};window.attachEvent("onbeforeunload",deconcept.SWFObjectUtil.prepUnload);deconcept.unloadSet=true;}}if(!document.getElementById&&document.all){document.getElementById=function(id){return document.all[id];};}var getQueryParamValue=deconcept.util.getRequestParameter;var FlashObject=deconcept.SWFObject;var SWFObject=deconcept.SWFObject;;var window_height=0;var IE=document.all?true:false
var tempX=0;var tempY=0;var popup=0;function get_width()
{swidth=document.body.clientWidth;width=swidth-991;put_td(width);}
function put_td(width)
{}
function goto_page(id)
{location.href="./index.php?pageid=22&regio="+id;}
function goto_url(_url)
{location.href=_url;}
function openNewUrl(_url)
{window.open(_url,'','');}
function dum()
{location.href="index.php?pageid=5";}
function getMouseXY(e){}
function LogoInfo(info,logo,what,width)
{if(typeof(width)=="undefined"){var width='500';}
if(what==''){what=0;}
if(info!=''){var obody=document.body;var innerW=document.body.offsetWidth;if(innerW>1024){var innerW=1024;}
if(document.getElementById('logo_info')){var div=document.getElementById('logo_info');obody.removeChild(div);}
var div=document.createElement("div");div.id='logo_info';div.style.position='absolute';div.className='info_button';if(logo!=''&&((logo.indexOf(".gif")!='-1')||(logo.indexOf(".jpg")!='-1'))){var divPic=document.createElement("img");divPic.src=logo;divPic.align='left';}else if(logo!=''){var divSpan=document.createElement("b");divSpan.className='bmt';var divBr=document.createElement("br");var divPic=document.createTextNode(logo+" ");}
arr_info=info.split("<br>");arr_infoL=arr_info.length;var divinfo=new Array();var divinfo1=new Array();for(i=0;i<arr_infoL;i++){divinfo[i]=document.createTextNode(arr_info[i]);divinfo1[i]=document.createElement('br');}
if(logo!=''&&((logo.indexOf(".gif")!='-1')||(logo.indexOf(".jpg")!='-1'))){div.appendChild(divPic);}else if(logo!=''){div.appendChild(divSpan);div.appendChild(divBr);divSpan.appendChild(divPic);}
for(i=0;i<arr_infoL;i++){div.appendChild(divinfo[i]);div.appendChild(divinfo1[i]);}
obody.appendChild(div);if(what=='TC'){document.getElementById('logo_info').style.top=parseFloat(tempY)+20;document.getElementById('logo_info').style.left=0;}else{if(parseFloat(tempY)-20>0){document.getElementById('logo_info').style.top=parseFloat(tempY)-20;}else{document.getElementById('logo_info').style.top=parseFloat(tempY)+20;}
if(innerW>(parseFloat(width)+parseFloat(tempX)+20)){document.getElementById('logo_info').style.left=parseFloat(tempX)+20;}else{if((innerW-150)<=tempX){document.getElementById('logo_info').style.left=parseFloat(tempX)-(parseFloat(width)+parseFloat(20));}else{document.getElementById('logo_info').style.left=parseFloat(tempX)+100-(parseFloat(width)/2);document.getElementById('logo_info').style.top=parseFloat(tempY)+20;}}
document.getElementById('logo_info').style.width=width;document.getElementById('logo_info').style.display='';}}}
function LogoInfo_close()
{if(document.getElementById('logo_info')){document.getElementById('logo_info').style.visibility='hidden';}}
function get_best(el)
{if(el.value!=''){if(el.value.indexOf('D_')!='-1'){location.href='/'+url_bestemming+'/'+filePart_bestemming+'_dest_'+el.value.substr(2)+'.htm';}else{location.href='/'+url_bestemming+'/'+filePart_bestemming+'_regio_'+el.value+'.htm';}}}
function jqDialogPopup(_ID,_lng)
{_lng=parseInt(_lng);switch(_ID)
{case'select_dep-dest':switch(_lng)
{case 1:window.parent.jqDialog.alert('Informatie','Beste klant, <br /><br />Gelieve een bestemming te kiezen.<br /><br /><br />',function(){});break;case 2:window.parent.jqDialog.alert('Information','Chers clients, <br /><br />Veuillez choisir votre destination.<br /><br /><br />',function(){});break;case 3:window.parent.jqDialog.alert('Information','Dear customer, <br /><br />Please choose your destination.<br /><br /><br />',function(){});break;case 4:window.parent.jqDialog.alert('Information','Estimado cliente, <br /><br />Haga su elecci&#250;n.<br /><br /><br />',function(){});break;case 5:window.parent.jqDialog.alert('Information','Sehr geehrter Kunde, <br /><br />Bitte w&#228;hlen Sie Ihren Zielflughafen.<br /><br /><br />',function(){});break;}
break;case'apis_info':switch(_lng)
{case 1:window.parent.jqDialog.alert('APIS: Informatie','Voor vliegreizen naar Aqaba, Cabo Verde, Boa Vista moeten bepaalde paspoort- en andere gegevens van de reizigers worden op voorhand worden doorgegeven.<br /><br />U dient deze gegevens zo spoedig mogelijk en ten laatste 7 dagen vóór vertrek mee te delen via het online invulformulier.<br /><br />Wij danken u alvast voor uw medewerking.',function(){});break;case 2:window.parent.jqDialog.alert('APIS: Information','Pour des voyages vers la Jordanie (Aqaba), les îles Cap-Vert (Sal et Boavista) certains données, e.a. les données de passeport, doivent nous être envoyées en avance.<br /><br />Vous devez communiquer ces données le plus vite possible et au plus tard 7 jours avant le départ, au moyen du formulaire en ligne à compléter.<br /><br />Nous vous remercions d\'avance de votre coopération.',function(){});break;case 3:case 4:case 5:window.parent.jqDialog.alert('APIS: Information','For flights to Jordan (Aqaba), Cape Verde Islands (Sal and Boa Vista) we need certain details and also passport details, well in advance.<br /><br />You need to communicate the required data as soon as possible and at the latest 7 days prior to departure by filling in the completion online form.<br /><br />We sincerely thank you for your cooperation.',function(){});break;}
break;case'carhotel_info':switch(_lng)
{case 1:window.parent.jqDialog.alert('Carhotel: Informatie','De prijs die wordt berekend houdt rekening met volgende zaken:<br /><br /><ul><li>10% korting voor de klant op de tariefprijzen. Deze korting werd reeds verrekend.</li><li>Het vertrek- en aankomstuur bij Car Hotel wordt berekend op basis van de vertrek- en aankomsturen van de vlucht, door er 2u af te trekken bij vertrek en 1u bij te tellen bij aankomst.</li><li>Komt men terug net na middernacht dan wordt er geen volledige dag aangerekend.<br /><br /><table style="width:300px;text-align:center;border:double 3px #6699CC;border-collapse:collapse;"><tr><td style="border-bottom:solid 1px #6699CC;">Tijdstip van vertek</td><td style="border-bottom:solid 1px #6699CC;">Prijs</td></tr><tr><td style="border-right:double 3px #6699CC;">00u00 - 00u59</td><td>&euro; 0</td></tr><tr><td style="border-right:double 3px #6699CC;">01u00 - 01u59</td><td>&euro; 4</td></tr><tr><td style="border-right:double 3px #6699CC;">02u00 - 02u59</td><td>&euro; 6</td></tr><tr><td style="border-right:double 3px #6699CC;">03u00 - 03u59</td><td>&euro; 8</td></tr><tr><td style="border-right:double 3px #6699CC;">04u00 - 23u59</td><td>dagtarief</td></tr></table></li></ul>',function(){});break;case 2:window.parent.jqDialog.alert('Carhotel: Information','Le prix est calcul&#233; compte tenu des &#233;l&#233;ments suivants:<br /><br /><ul><li>Une remise de 10% sur les prix tarifaires est accord&#233;e au client. Cette remise a &#233;t&#233; d&#233;duite.</li><li>Les heures de d&#233;part et d&#039;arriv&#233;e chez Car Hotel sont calcul&#233;es sur base des heures de d&#233;part et d&#039;arriv&#233;e du vol, notamment en d&#233;duisant 2 h du d&#233;part et en ajoutant 1 h &#224; l&#039;arriv&#233;e.</li><li>Si vous revenez juste apr&#232;s minuit, nous ne comptons pas une journ&#233;e compl&#232;te.<br /><br /><table style="width:300px;text-align:center;border:double 3px #6699CC;border-collapse:collapse;"><tr><td style="border-bottom:solid 1px #6699CC;">Moment du d&#233;part</td><td style="border-bottom:solid 1px #6699CC;">Prix</td></tr><tr><td style="border-right:double 3px #6699CC;">00h00 - 00h59</td><td>&euro; 0</td></tr><tr><td style="border-right:double 3px #6699CC;">01h00 - 01h59</td><td>&euro; 4</td></tr><tr><td style="border-right:double 3px #6699CC;">02h00 - 02h59</td><td>&euro; 6</td></tr><tr><td style="border-right:double 3px #6699CC;">03h00 - 03h59</td><td>&euro; 8</td></tr><tr><td style="border-right:double 3px #6699CC;">04h00 - 23h59</td><td>tarif journalier</td></tr></table></li></ul>',function(){});break;case 3:window.parent.jqDialog.alert('Carhotel: Information','When calculating our tariffs, we take into account the following:<br /><br /><ul><li>10% off the normal rate for all our clients. This percentage has already been deducted.</li><li>The departure and arrival times at Car Hotel are calculated according to your flight departure and arrival times: we deduct 2 hours from your departure time, and add 1 hour to your arrival time.</li><li>If you return just after midnight, you will not be charged an extra full day.<br /><br /><table style="width:300px;text-align:center;border:double 3px #6699CC;border-collapse:collapse;"><tr><td style="border-bottom:solid 1px #6699CC;">Departure time</td><td style="border-bottom:solid 1px #6699CC;">Fee</td></tr><tr><td style="border-right:double 3px #6699CC;">00:00am - 00:59am</td><td>&euro; 0</td></tr><tr><td style="border-right:double 3px #6699CC;">01:00am - 01:59am</td><td>&euro; 4</td></tr><tr><td style="border-right:double 3px #6699CC;">02:00am - 02:59am</td><td>&euro; 6</td></tr><tr><td style="border-right:double 3px #6699CC;">03:00am - 03:59am</td><td>&euro; 8</td></tr><tr><td style="border-right:double 3px #6699CC;">04:00am - 11:59pm</td><td>Daily fee</td></tr></table></li></ul>',function(){});break;case 4:window.parent.jqDialog.alert('Carhotel: Information','Las tarifas se calculan tomando en cuenta los siguientes factores:<br /><br /><ul><li>10% de descuento sobre las tarifas normales para nuestros clientes. Este descuento ya ha sido calculado en su precio.</li><li>Los horarios de salida desde y llegada a Car Hotel se calculan en base a sus horarios de vuelos, desde 2 horas antes de la salida de su vuelo de ida, hasta 1 hora despu&#233;s de la llegada de su vuelo de regreso.</li><li>En caso de que usted volviera inmediatamente despu&#233;s de la medianoche, no se le cobrar&#225; un d&#237;a adicional.<br /><br /><table style="width:300px;text-align:center;border:double 3px #6699CC;border-collapse:collapse;"><tr><td style="border-bottom:solid 1px #6699CC;">Hora de salida</td><td style="border-bottom:solid 1px #6699CC;">Tarifa</td></tr><tr><td style="border-right:double 3px #6699CC;">00:00hrs - 00:59hrs</td><td>&euro; 0</td></tr><tr><td style="border-right:double 3px #6699CC;">01:00hrs - 01:59hrs</td><td>&euro; 4</td></tr><tr><td style="border-right:double 3px #6699CC;">02:00hrs - 02:59hrs</td><td>&euro; 6</td></tr><tr><td style="border-right:double 3px #6699CC;">03:00hrs - 03:59hrs</td><td>&euro; 8</td></tr><tr><td style="border-right:double 3px #6699CC;">04:00hrs - 23:59hrs</td><td>Tarifa diaria</td></tr></table></li></ul>',function(){});break;case 5:window.parent.jqDialog.alert('Carhotel: Information','Der Preis wird im Hinblick auf folgende Elemente berechnet:<br /><br /><ul><li>10% Rabatt für den Kunden auf die Preise. Dieser Rabatt wurde bereits verrechnet.</li><li>Die Abfahrt- und Ankunftszeit bei Car Hotel wird aufgrund der Abfahrt- und Ankunftszeiten des Fluges errechnet, indem 2 St bei Abfahrt abgezogen werden und 1 St bei Ankunft hinzugez&#228;hlt wird.</li><li>Kehrt man gleich nach Mitternacht zurück, so wird kein vollst&#228;ndiger Tag in Rechnung gestellt.<br /><br /><table style="width:300px;text-align:center;border:double 3px #6699CC;border-collapse:collapse;"><tr><td style="border-bottom:solid 1px #6699CC;">Abfahrtzeit</td><td style="border-bottom:solid 1px #6699CC;">Preis</td></tr><tr><td style="border-right:double 3px #6699CC;">00.00U - 00.59U</td><td>&euro; 0</td></tr><tr><td style="border-right:double 3px #6699CC;">01.00U - 01.59U</td><td>&euro; 4</td></tr><tr><td style="border-right:double 3px #6699CC;">02.00U - 02.59U</td><td>&euro; 6</td></tr><tr><td style="border-right:double 3px #6699CC;">03.00U - 03.59U</td><td>&euro; 8</td></tr><tr><td style="border-right:double 3px #6699CC;">04.00U - 23.59U</td><td>Tagessatz</td></tr></table></li></ul>',function(){});break;}
case'bb_child':switch(_lng)
{case 1:window.parent.jqDialog.alert('Informatie : 2 tot 12 jaar','Vermeld hier het aantal kinderen, vanaf de leeftijd van 2 tot en met 11 jaar. Houd rekening met de leeftijd van het kind op het ogenblik van de vertrekdatum.',function(){})
break;case 2:window.parent.jqDialog.alert('Information : Enfant','Mentionnez ici le nombre d&#39;enfants, de 2 &#224; 11 ans inclus. Tenez compte de l&#39;&#266;ge de l&#39;enfant au moment de la date du d&#233;part.',function(){});break;case 3:window.parent.jqDialog.alert('Information : 2 - 12 year','Indicate the number of children aged between 2 and 12 here. The age of the child on the date of departure should be considered.',function(){});break;case 4:window.parent.jqDialog.alert('Information :Ni&#241;os','NI&#209;OS Indique el n&#250;mero de ni&#241;os, a partir de los 2 a&#241;os hasta los 11 a&#241;os de edad. Tenga en cuenta la edad del ni&#241;o en el momento de la fecha de salida.',function(){});break;case 5:window.parent.jqDialog.alert('Information : Kinder','Geben Sie hier die Anzahl der Kinder im Alter von 2 bis zu 11 Jahren ein. Ber&#252;cksichtigen Sie das Alter des Kindes zum Abreisedatum.',function(){});break;}
break;case'bb_infant':switch(_lng)
{case 1:window.parent.jqDialog.alert('Informatie : 0 tot 23 maand','Baby&#39;s onder de 2 jaar reizen gratis mee (op de schoot van één van de ouders, zonder eigen vliegtuigplaats). Baby&#39;s betalen wel de luchthaventaksen. Als u met een baby op reis gaat, moet u dit uitdrukkelijk vermelden bij de reservering.',function(){});break;case 2:window.parent.jqDialog.alert('Information : 0 - 23 mois','Les b&#233;b&#233;s de moins de 2 ans voyagent gratuitement (sur les genoux de l&#39;un des parents, sans propre si&#232;ge). Les b&#233;b&#233;s payent cependant les taxes d&#39;a&#233;roport. Si vous voyagez avec un b&#233;b&#233;, vous devez express&#233;ment le mentionner lors de la r&#233;servation.',function(){});break;case 3:window.parent.jqDialog.alert('Information : 0 - 23 m.','BABIES under the age of 2 travel free of charge (on the lap of one of the parents, they do not have their own seat on the aeroplane). Babies do pay airport taxes. If you are travelling with a baby, you should explicitly mention this when making the booking.',function(){});break;case 4:window.parent.jqDialog.alert('Information : 0 - 23 m.','BEB&#201;S Los beb&#233;s menores de 2 a&#241;os de edad viajan gratis (en la falda de uno de los padres, sin derecho a un asiento propio). Los beb&#233;s pagan las tasas de aeropuerto. Si viaja con un beb&#233;, deber&#225; mencionarlo expresamente cuando realice la reserva.',function(){});break;case 5:window.parent.jqDialog.alert('Information : 0 - 23 m.','Babys unter 2 Jahren werden unentgeltlich bef&#246;rdert (auf dem Scho&#223; einer der Eltern – kein eigener Sitzplatz im Flugzeug). F&#252;r Babys m&#252;ssen auch Flughafensteuern bezahlt werden. Falls Sie ein Baby auf die Reise mitnehmen, sollen Sie das bei der Buchung ausdr&#252;cklich mitteilen.',function(){});break;}
break;case'form_thx':switch(_lng)
{case 1:window.parent.jqDialog.alert('Bevestiging','Beste klant, <br /><br /> Uw bericht werd succesvol verstuurd.<br /><br /> Wij zullen u zo spoedig mogelijk contacteren.<br /><br /><br />Met vriendelijke groeten, <br /><br />Het Jetairfly-team',function(){});break;case 2:window.parent.jqDialog.alert('Bevestiging','Beste klant, <br /><br /> Uw bericht werd succesvol verstuurd.<br /><br /> Wij zullen u zo spoedig mogelijk contacteren.<br /><br /><br />Met vriendelijke groeten, <br /><br />Het Jetairfly-team',function(){});break;case 3:window.parent.jqDialog.alert('Bevestiging','Beste klant, <br /><br /> Uw bericht werd succesvol verstuurd.<br /><br /> Wij zullen u zo spoedig mogelijk contacteren.<br /><br /><br />Met vriendelijke groeten, <br /><br />Het Jetairfly-team',function(){});break;case 4:window.parent.jqDialog.alert('Bevestiging','Beste klant, <br /><br /> Uw bericht werd succesvol verstuurd.<br /><br /> Wij zullen u zo spoedig mogelijk contacteren.<br /><br /><br />Met vriendelijke groeten, <br /><br />Het Jetairfly-team',function(){});break;case 5:window.parent.jqDialog.alert('Bevestiging','Beste klant, <br /><br /> Uw bericht werd succesvol verstuurd.<br /><br /> Wij zullen u zo spoedig mogelijk contacteren.<br /><br /><br />Met vriendelijke groeten, <br /><br />Het Jetairfly-team',function(){});break;}
break;case'bb_mir-nbe':switch(_lng)
{case 1:window.parent.jqDialog.alert('Informatie','Beste klant, <br /><br />Vanaf 01/04/10 vliegt Jetairfly.com naar de nieuwe luchthaven Enfidha, 60km ten noorden van Monastir.<br /><br />Wij hebben uw luchthavenkeuze aangepast.<br /><br /><br />Met vriendelijke groeten, <br /><br />Het Jetairfly-team',function(){Zoek();});break;case 2:window.parent.jqDialog.alert('Information','Cher client, ch&#232;re cliente, <br /><br />A partir du 01/04/10 Jetairfly.com dessert le nouvel a&#233;roport d&#39;Enfidha qui se situe &#224; 60 km au nord de Monastir.<br /><br />Nous avons adapt&#233; l&#39;a&#233;roport sélectionn&#233;.<br /><br /><br />Meilleures salutations, <br /><br /> l&#39;&#233;quipe de Jetairfly.com',function(){Zoek();});break;case 3:window.parent.jqDialog.alert('Information','Dear customer, <br /><br />As from 01/04/10 Jetairfly.com flies to the new airport of Enfidha situated 60 km north of Monastir.<br /><br />We adjusted your chosen airport.<br /><br /><br />Best regards, <br /><br />your Jetairfly.com-team',function(){Zoek();});break;case 4:window.parent.jqDialog.alert('Information','Estimado cliente, <br /><br />Desde el 01/04/10 Jetairlfy.com vuela al nuevo aeropuerto de Enfidha, 60 kms al norte de Monastir.<br /><br />Hemos ajustado el aeropuerto elegido.<br /><br /><br />Atentamente, <br /><br />el equipo de Jetairfly.com',function(){Zoek();});break;case 5:window.parent.jqDialog.alert('Information','Sehr geehrter Kunde, <br /><br />Ab dem 01/04/10 fliegt Jetairfly.com nach Enfidha, das sich 60km nörlich von Monastir befindet.<br /><br />Wir haben Ihren Wunschflughafen angepast.<br /><br /><br />Mit freundlichen Gr&#252;ssen, <br /><br />Ihr Jetairfly.com Team',function(){Zoek();});break;}
break;case'bb_ost-bru_mir-nbe':switch(_lng)
{case 1:window.parent.jqDialog.alert('Informatie','Beste klant, <br /><br />Vanaf 01/04/10 vliegt Jetairfly.com naar de nieuwe luchthaven Enfidha, 60km ten noorden van Monastir. Dit enkel vanuit Brussel, Charleroi of Luik.<br /><br />Wij hebben uw luchthavenkeuze aangepast.<br /><br /><br />Met vriendelijke groeten, <br /><br />Het Jetairfly-team',function(){Zoek();});break;case 2:window.parent.jqDialog.alert('Information','Cher client, ch&#232;re cliente, <br /><br />A partir du 01/04/10 Jetairfly.com dessert le nouvel a&#233;roport d&#39;Enfidha qui se situe &#224; 60 km au nord de Monastir. Uniquement &#224; p.d. Bruxelles, Charleroi ou Li&#232;ge.<br /><br />Nous avons adapt&#233; l&#39;a&#233;roport sélectionn&#233;.<br /><br /><br />Meilleures salutations, <br /><br /> l&#39;&#233;quipe de Jetairfly.com',function(){Zoek();});break;case 3:window.parent.jqDialog.alert('Information','Dear customer, <br /><br />As from 01/04/10 Jetairfly.com flies to the new airport of Enfidha situated 60 km north of Monastir. Departures only from Brussels, Charleroi or Li&#232;ge.<br /><br />We adjusted your chosen airport.<br /><br /><br />Best regards, <br /><br />your Jetairfly.com-team',function(){Zoek();});break;case 4:window.parent.jqDialog.alert('Information','Estimado cliente, <br /><br />Desde el 01/04/10 Jetairlfy.com vuela al nuevo aeropuerto de Enfidha, 60 kms al norte de Monastir. S&#243;lo salida desde Bruselas, Charleroi o Lieja.<br /><br />Hemos ajustado el aeropuerto elegido.<br /><br /><br />Atentamente, <br /><br />el equipo de Jetairfly.com',function(){Zoek();});break;case 5:window.parent.jqDialog.alert('Information','Sehr geehrter Kunde, <br /><br />Ab dem 01/04/10 fliegt Jetairfly.com nach Enfidha, das sich 60km nörlich von Monastir befindet. Nur Abreise aus Br&#252;ssel, Charleroi oder L&#252;ttich<br /><br />Wir haben Ihren Wunschflughafen angepast.<br /><br /><br />Mit freundlichen Gr&#252;ssen, <br /><br />Ihr Jetairfly.com Team',function(){Zoek();});break;}
break;}}
function hideOverlay(){var div_overlay1=document.getElementById('errmsg_overlay');var div_overlay2=document.getElementById('errmsg_overlay2');div_overlay1.style.display="none";div_overlay2.style.display="none";selects=document.getElementsByTagName("select");for(i=0;i!=selects.length;i++){selects[i].style.visibility="";}}
function prepareCustomPopup(_ID,_lng)
{_lng=parseInt(_lng);switch(_ID)
{case'apis_info':switch(_lng)
{case 1:showCustomPopup('APIS: Informatie','sluiten','Voor vliegreizen naar Aqaba, Cabo Verde, Boa Vista moeten bepaalde paspoort- en andere gegevens van de reizigers worden op voorhand worden doorgegeven.<br /><br />U dient deze gegevens zo spoedig mogelijk en ten laatste 7 dagen vóór vertrek mee te delen via het online invulformulier.<br /><br />Wij danken u alvast voor uw medewerking.','NOT');break;case 2:showCustomPopup('APIS: Information','fermer','Pour des voyages vers la Jordanie (Aqaba), les îles Cap-Vert (Sal et Boavista) certains données, e.a. les données de passeport, doivent nous être envoyées en avance.<br /><br />Vous devez communiquer ces données le plus vite possible et au plus tard 7 jours avant le départ, au moyen du formulaire en ligne à compléter.<br /><br />Nous vous remercions d\'avance de votre coopération.','NOT');break;case 3:case 4:case 5:showCustomPopup('APIS: Information','close','For flights to Jordan (Aqaba), Cape Verde Islands (Sal and Boa Vista) we need certain details and also passport details, well in advance.<br /><br />You need to communicate the required data as soon as possible and at the latest 7 days prior to departure by filling in the completion online form.<br /><br />We sincerely thank you for your cooperation.','NOT');break;}
break;case'carhotel_info':switch(_lng)
{case 1:showCustomPopup('Carhotel: Informatie','sluiten','De prijs die wordt berekend houdt rekening met volgende zaken:<br /><br /><ul><li>10% korting voor de klant op de tariefprijzen. Deze korting werd reeds verrekend.</li><li>Het vertrek- en aankomstuur bij Car Hotel wordt berekend op basis van de vertrek- en aankomsturen van de vlucht, door er 2u af te trekken bij vertrek en 1u bij te tellen bij aankomst.</li><li>Komt men terug net na middernacht dan wordt er geen volledige dag aangerekend.<br /><br /><table style="width:300px;text-align:center;border:double 3px #6699CC;border-collapse:collapse;"><tr><td style="border-bottom:solid 1px #6699CC;">Tijdstip van vertek</td><td style="border-bottom:solid 1px #6699CC;">Prijs</td></tr><tr><td style="border-right:double 3px #6699CC;">00u00 - 00u59</td><td>&euro; 0</td></tr><tr><td style="border-right:double 3px #6699CC;">01u00 - 01u59</td><td>&euro; 4</td></tr><tr><td style="border-right:double 3px #6699CC;">02u00 - 02u59</td><td>&euro; 6</td></tr><tr><td style="border-right:double 3px #6699CC;">03u00 - 03u59</td><td>&euro; 8</td></tr><tr><td style="border-right:double 3px #6699CC;">04u00 - 23u59</td><td>dagtarief</td></tr></table></li></ul>','NOT');break;case 2:showCustomPopup('Carhotel: Information','fermer','Le prix est calcul&#233; compte tenu des &#233;l&#233;ments suivants:<br /><br /><ul><li>Une remise de 10% sur les prix tarifaires est accord&#233;e au client. Cette remise a &#233;t&#233; d&#233;duite.</li><li>Les heures de d&#233;part et d&#039;arriv&#233;e chez Car Hotel sont calcul&#233;es sur base des heures de d&#233;part et d&#039;arriv&#233;e du vol, notamment en d&#233;duisant 2 h du d&#233;part et en ajoutant 1 h &#224; l&#039;arriv&#233;e.</li><li>Si vous revenez juste apr&#232;s minuit, nous ne comptons pas une journ&#233;e compl&#232;te.<br /><br /><table style="width:300px;text-align:center;border:double 3px #6699CC;border-collapse:collapse;"><tr><td style="border-bottom:solid 1px #6699CC;">Moment du d&#233;part</td><td style="border-bottom:solid 1px #6699CC;">Prix</td></tr><tr><td style="border-right:double 3px #6699CC;">00h00 - 00h59</td><td>&euro; 0</td></tr><tr><td style="border-right:double 3px #6699CC;">01h00 - 01h59</td><td>&euro; 4</td></tr><tr><td style="border-right:double 3px #6699CC;">02h00 - 02h59</td><td>&euro; 6</td></tr><tr><td style="border-right:double 3px #6699CC;">03h00 - 03h59</td><td>&euro; 8</td></tr><tr><td style="border-right:double 3px #6699CC;">04h00 - 23h59</td><td>tarif journalier</td></tr></table></li></ul>','NOT');break;case 3:showCustomPopup('Carhotel: Information','close','When calculating our tariffs, we take into account the following:<br /><br /><ul><li>10% off the normal rate for all our clients. This percentage has already been deducted.</li><li>The departure and arrival times at Car Hotel are calculated according to your flight departure and arrival times: we deduct 2 hours from your departure time, and add 1 hour to your arrival time.</li><li>If you return just after midnight, you will not be charged an extra full day.<br /><br /><table style="width:300px;text-align:center;border:double 3px #6699CC;border-collapse:collapse;"><tr><td style="border-bottom:solid 1px #6699CC;">Departure time</td><td style="border-bottom:solid 1px #6699CC;">Fee</td></tr><tr><td style="border-right:double 3px #6699CC;">00:00am - 00:59am</td><td>&euro; 0</td></tr><tr><td style="border-right:double 3px #6699CC;">01:00am - 01:59am</td><td>&euro; 4</td></tr><tr><td style="border-right:double 3px #6699CC;">02:00am - 02:59am</td><td>&euro; 6</td></tr><tr><td style="border-right:double 3px #6699CC;">03:00am - 03:59am</td><td>&euro; 8</td></tr><tr><td style="border-right:double 3px #6699CC;">04:00am - 11:59pm</td><td>Daily fee</td></tr></table></li></ul>','NOT');break;case 4:showCustomPopup('Carhotel: Information','close','Las tarifas se calculan tomando en cuenta los siguientes factores:<br /><br /><ul><li>10% de descuento sobre las tarifas normales para nuestros clientes. Este descuento ya ha sido calculado en su precio.</li><li>Los horarios de salida desde y llegada a Car Hotel se calculan en base a sus horarios de vuelos, desde 2 horas antes de la salida de su vuelo de ida, hasta 1 hora despu&#233;s de la llegada de su vuelo de regreso.</li><li>En caso de que usted volviera inmediatamente despu&#233;s de la medianoche, no se le cobrar&#225; un d&#237;a adicional.<br /><br /><table style="width:300px;text-align:center;border:double 3px #6699CC;border-collapse:collapse;"><tr><td style="border-bottom:solid 1px #6699CC;">Hora de salida</td><td style="border-bottom:solid 1px #6699CC;">Tarifa</td></tr><tr><td style="border-right:double 3px #6699CC;">00:00hrs - 00:59hrs</td><td>&euro; 0</td></tr><tr><td style="border-right:double 3px #6699CC;">01:00hrs - 01:59hrs</td><td>&euro; 4</td></tr><tr><td style="border-right:double 3px #6699CC;">02:00hrs - 02:59hrs</td><td>&euro; 6</td></tr><tr><td style="border-right:double 3px #6699CC;">03:00hrs - 03:59hrs</td><td>&euro; 8</td></tr><tr><td style="border-right:double 3px #6699CC;">04:00hrs - 23:59hrs</td><td>Tarifa diaria</td></tr></table></li></ul>','NOT');break;case 5:showCustomPopup('Carhotel: Information','close','Der Preis wird im Hinblick auf folgende Elemente berechnet:<br /><br /><ul><li>10% Rabatt für den Kunden auf die Preise. Dieser Rabatt wurde bereits verrechnet.</li><li>Die Abfahrt- und Ankunftszeit bei Car Hotel wird aufgrund der Abfahrt- und Ankunftszeiten des Fluges errechnet, indem 2 St bei Abfahrt abgezogen werden und 1 St bei Ankunft hinzugez&#228;hlt wird.</li><li>Kehrt man gleich nach Mitternacht zurück, so wird kein vollst&#228;ndiger Tag in Rechnung gestellt.<br /><br /><table style="width:300px;text-align:center;border:double 3px #6699CC;border-collapse:collapse;"><tr><td style="border-bottom:solid 1px #6699CC;">Abfahrtzeit</td><td style="border-bottom:solid 1px #6699CC;">Preis</td></tr><tr><td style="border-right:double 3px #6699CC;">00.00U - 00.59U</td><td>&euro; 0</td></tr><tr><td style="border-right:double 3px #6699CC;">01.00U - 01.59U</td><td>&euro; 4</td></tr><tr><td style="border-right:double 3px #6699CC;">02.00U - 02.59U</td><td>&euro; 6</td></tr><tr><td style="border-right:double 3px #6699CC;">03.00U - 03.59U</td><td>&euro; 8</td></tr><tr><td style="border-right:double 3px #6699CC;">04.00U - 23.59U</td><td>Tagessatz</td></tr></table></li></ul>','NOT');break;}
case'bb_child':switch(_lng)
{case 1:showCustomPopup('Informatie : 2 tot 11 jaar','sluiten','Vermeld hier het aantal kinderen, vanaf de leeftijd van 2 tot en met 11 jaar. Houd rekening met de leeftijd van het kind op het ogenblik van de vertrekdatum.','NOT');break;case 2:showCustomPopup('Information : Enfant','fermer','Mentionnez ici le nombre d&#39;enfants, de 2 &#224; 11 ans inclus. Tenez compte de l&#39;&#266;ge de l&#39;enfant au moment de la date du d&#233;part.','NOT');break;case 3:showCustomPopup('Information : 2 - 11 year','close','Indicate the number of children aged between 2 and 12 here. The age of the child on the date of departure should be considered.','NOT');break;case 4:showCustomPopup('Information :Ni&#241;os','close','NI&#209;OS Indique el n&#250;mero de ni&#241;os, a partir de los 2 a&#241;os hasta los 11 a&#241;os de edad. Tenga en cuenta la edad del ni&#241;o en el momento de la fecha de salida.','NOT');break;case 5:showCustomPopup('Information : Kinder','close','Geben Sie hier die Anzahl der Kinder im Alter von 2 bis zu 11 Jahren ein. Ber&#252;cksichtigen Sie das Alter des Kindes zum Abreisedatum.','NOT');break;}
break;case'bb_infant':switch(_lng)
{case 1:showCustomPopup('Informatie : 0 tot 23 maand','sluiten','Baby&#39;s onder de 2 jaar reizen gratis mee (op de schoot van één van de ouders, zonder eigen vliegtuigplaats). Baby&#39;s betalen wel de luchthaventaksen. Als u met een baby op reis gaat, moet u dit uitdrukkelijk vermelden bij de reservering.','NOT');break;case 2:showCustomPopup('Information : 0 - 23 mois','fermer','Les b&#233;b&#233;s de moins de 2 ans voyagent gratuitement (sur les genoux de l&#39;un des parents, sans propre si&#232;ge). Les b&#233;b&#233;s payent cependant les taxes d&#39;a&#233;roport. Si vous voyagez avec un b&#233;b&#233;, vous devez express&#233;ment le mentionner lors de la r&#233;servation.','NOT');break;case 3:showCustomPopup('Information : 0 - 23 m.','close','BABIES under the age of 2 travel free of charge (on the lap of one of the parents, they do not have their own seat on the aeroplane). Babies do pay airport taxes. If you are travelling with a baby, you should explicitly mention this when making the booking.','NOT');break;case 4:showCustomPopup('Information : 0 - 23 m.','close','BEB&#201;S Los beb&#233;s menores de 2 a&#241;os de edad viajan gratis (en la falda de uno de los padres, sin derecho a un asiento propio). Los beb&#233;s pagan las tasas de aeropuerto. Si viaja con un beb&#233;, deber&#225; mencionarlo expresamente cuando realice la reserva.','NOT');break;case 5:showCustomPopup('Information : 0 - 23 m.','close','Babys unter 2 Jahren werden unentgeltlich bef&#246;rdert (auf dem Scho&#223; einer der Eltern – kein eigener Sitzplatz im Flugzeug). F&#252;r Babys m&#252;ssen auch Flughafensteuern bezahlt werden. Falls Sie ein Baby auf die Reise mitnehmen, sollen Sie das bei der Buchung ausdr&#252;cklich mitteilen.','NOT');break;}
break;case'form_thx':switch(_lng)
{case 1:showCustomPopup('Bevestiging','sluiten','Beste klant, <br /><br /> Uw bericht werd succesvol verstuurd.<br /><br /> Wij zullen u zo spoedig mogelijk contacteren.<br /><br /><br />Met vriendelijke groeten, <br /><br />Het Jetairfly-team','NOT');break;case 2:showCustomPopup('Bevestiging','fermer','Beste klant, <br /><br /> Uw bericht werd succesvol verstuurd.<br /><br /> Wij zullen u zo spoedig mogelijk contacteren.<br /><br /><br />Met vriendelijke groeten, <br /><br />Het Jetairfly-team','NOT');break;case 3:showCustomPopup('Bevestiging','close','Beste klant, <br /><br /> Uw bericht werd succesvol verstuurd.<br /><br /> Wij zullen u zo spoedig mogelijk contacteren.<br /><br /><br />Met vriendelijke groeten, <br /><br />Het Jetairfly-team','NOT');break;case 4:showCustomPopup('Bevestiging','close','Beste klant, <br /><br /> Uw bericht werd succesvol verstuurd.<br /><br /> Wij zullen u zo spoedig mogelijk contacteren.<br /><br /><br />Met vriendelijke groeten, <br /><br />Het Jetairfly-team','NOT');break;case 5:showCustomPopup('Bevestiging','close','Beste klant, <br /><br /> Uw bericht werd succesvol verstuurd.<br /><br /> Wij zullen u zo spoedig mogelijk contacteren.<br /><br /><br />Met vriendelijke groeten, <br /><br />Het Jetairfly-team','NOT');break;}
break;}}
function showCustomPopup(_title,_close,_message,_type)
{document.getElementById('CustomPopup').style.display='block';document.getElementById('CustomPopup').style.position='absolute';document.getElementById('CustomPopup').style.zIndex='997';document.getElementById('CustomPopup').style.left=((screen.availWidth-600)/2)+'px';switch(_type)
{case'NOT':document.getElementById('Title').innerHTML=('<div style="float:right;cursor:pointer;" onclick="closeCustomPopup()"><span style="text-decoration:underline;font-size:10px;color:#3366cc;">'+_close+'</span>&nbsp;<img src="/swimages/icons/close.gif" alt="'+_close+'" /></div>'+_title);document.getElementById('Message').innerHTML=_message;break;case'CON':break;}}
function closeCustomPopup()
{document.getElementById('Title').innerHTML="";document.getElementById('Message').innerHTML="";document.getElementById('CustomPopup').style.display='none';}
function FlashInsert(FlashIDName,FlashFileName,FlashWidth,FlashHeight,DNSSetting,WMODESetting,FlashBGColor,QSetting,FlashAlign)
{document.write('<OBJECT CLASSID="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"');document.write('CODEBASE="http://fpdownload.macromedia.com/get/flashplayer/current/swflash.cab#version=6,0,61,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>');}
function isMouseLeaveOrEnter(e,handler){if(e.type!='mouseout'&&e.type!='mouseover')return false;var reltg=e.relatedTarget?e.relatedTarget:e.type=='mouseout'?e.toElement:e.fromElement;while(reltg&&reltg!=handler)reltg=reltg.parentNode;return(reltg!=handler);}
function resetClass(_event,_element,_class){if(isMouseLeaveOrEnter(_event,_element)){if(_element.className!='selectedItem'){_element.className=_class;}}}
function highlight(_event,_element){if(isMouseLeaveOrEnter(_event,_element)){if(_element.className!='selectedItem'){_element.className='highlighted';}}}
function highlight(_event,_element){if(isMouseLeaveOrEnter(_event,_element)){if(_element.className!='selectedItem'){_element.className='highlighted';}}}
function setAsSelected(_element){_element.className='selectedItem';}
function hardClassReset(_element,_class){_element.className=_class;}
function setTransparance(_event,_element,_percent){if(isMouseLeaveOrEnter(_event,_element)){_element.style.opacity=(1-(_percent/100));_element.style.filter='alpha(opacity='+(100-_percent)+')';_element.style.mozOpacity=(1-(_percent/100));}}
function setDisplay(_this,_style)
{_this.style.display=_style;}
function setDisplayWPos(_this,_style,_xPos,_yPos)
{_this.style.top=_yPos+'px';_this.style.left=_xPos+'px';_this.style.display=_style;}
function unfoldCountyDestinations(_this,_country)
{var list_elements=document.getElementById("submenu-list").getElementsByTagName("li");for(i=0;i<list_elements.length;i++){if(list_elements[i].id&&list_elements[i].id.match("-country")!=null){var span_elements=document.getElementById(list_elements[i].id).getElementsByTagName("span");for(j=0;j<span_elements.length;j++){if(span_elements[j].id&&span_elements[j].id.match("-countrySpan")!=''){hardClassReset(span_elements[j],'item');}}}
if(list_elements[i].id&&list_elements[i].id.match("-destinations")!=null){setDisplay(document.getElementById(list_elements[i].id),'none');}}
setAsSelected(_country);setDisplay(_this,'inline');}
function findPosX(obj)
{var curleft=0;if(obj.offsetParent)
while(1)
{curleft+=obj.offsetLeft;if(!obj.offsetParent)
break;obj=obj.offsetParent;}
else if(obj.x)
curleft+=obj.x;return curleft;}
function findPosY(obj)
{var curtop=0;if(obj.offsetParent)
while(1)
{curtop+=obj.offsetTop;if(!obj.offsetParent)
break;obj=obj.offsetParent;}
else if(obj.y)
curtop+=obj.y;return curtop;}
function alertIT(str){try{var IP=document.getElementById('jetIT').value;}catch(excp15){var IP=document.getElementById('jetIT').value;}
if(IP=="138.2.64.36"||IP=="10.177.7.5"){alert(str);}}
function resizeCaller(){var dyniframe=new Array()
for(i=0;i<iframeids.length;i++){if(document.getElementById)
resizeIframe(iframeids[i])
if((document.all||document.getElementById)&&iframehide=="no"){var tempobj=document.all?document.all[iframeids[i]]:document.getElementById(iframeids[i])
tempobj.style.display="block"}}
window.scrollTo(0,0);}
function resizeIframe(frameid){var currentfr=document.getElementById(frameid)
if(currentfr.Document&&currentfr.Document.body.scrollHeight){currentfr.height=currentfr.Document.body.scrollHeight;}else if(currentfr.contentDocument&&currentfr.contentDocument.body.offsetHeight){currentfr.height=currentfr.contentDocument.body.offsetHeight+FFextraHeight;}else{if(currentfr.addEventListener){currentfr.addEventListener("load",readjustIframe,false)}else if(currentfr.attachEvent){currentfr.detachEvent("onload",readjustIframe)
currentfr.attachEvent("onload",readjustIframe)}else{}}}
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}
function MM_jumpMenu(targ,selObj,restore){eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");if(restore)selObj.selectedIndex=0;}
function check_preSubscription()
{document.getElementById("frm_newsletter").submit();}
function check_inschrijven()
{document.getElementById("action").value="optin";var txt_email=document.getElementById("txt_email").value;var filter=/^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/;if(filter.test(txt_email))
{document.getElementById("frm_full_newsletter").submit();}
else
{setDisplay(document.getElementById("spa_email"),'block');}}
function check_uitschrijven()
{document.getElementById("action").value="optout";var txt_email=document.getElementById("txt_email").value;var filter=/^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/;if(filter.test(txt_email))
{document.getElementById("frm_full_newsletter").submit();}
else
{setDisplay(document.getElementById("spa_email"),'block');}}
function check_contactForm()
{var txt_name=document.getElementById("txt_naam").value;var txt_phone=document.getElementById("txt_telefoon").value;var txt_email=document.getElementById("txt_email").value;var txt_question=document.getElementById("txt_vraag").value;var clearToSend=document.getElementById("hdn_clearSend");clearToSend.value=='';var filter=/^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/;if(txt_name==''){clearToSend.value+="3,";}
if(txt_phone==''){clearToSend.value+="5,";}
if(!filter.test(txt_email)){clearToSend.value+="7,";}
if(txt_question==''){clearToSend.value+="8,";}
if(clearToSend.value==''){clearToSend.value='send';}
document.getElementById("frm_contact").submit();}
function showPrivacystat(lng_id)
{window.open("/bepages/legal.php?id1=1160&user=1&season=0&close=1&taal="+lng_id,'PS','width=550,height=430,top=100,left=100,scrollbars=no,statusbar=no');}
function validateTA_loginForm()
{var clearToSend=true;if(document.form_ta_login.abta.value==""){alert("Please fill in TA code");document.form_ta-login.abta.focus();clearToSend=false;}
if(document.form_ta_login.reference.value==""){alert("Please fill in reference");document.form_ta-login.reference.focus();clearToSend=false;}
if(document.form_ta_login.password.value==""){alert("Please fill in password");document.form_ta-login.password.focus();clearToSend=false;}
if(clearToSend==true){document.form_ta_login.submit();}}
function TA_Register()
{var url="/phpscripts/ta_registration.php?lng=1";var w=window.open(url,"ta_registration","width=550,toolbar=0,scrollbars=1,statusbar=0,menubar=0,resizable=0");w.focus();window.close();}
function TA_Register_FR()
{var url="/phpscripts/ta_registration.php?lng=2";var w=window.open(url,"ta_registration","width=550,toolbar=0,scrollbars=1,statusbar=0,menubar=0,resizable=0");w.focus();window.close();}
function TA_Register_ES()
{var url="/phpscripts/ta_registration.php?lng=4";var w=window.open(url,"ta_registration","width=550,toolbar=0,scrollbars=1,statusbar=0,menubar=0,resizable=0");w.focus();window.close();}
function validateTA_regForm()
{var clearToSend=document.getElementById("hdn_clearSend");clearToSend.value='send';document.form_ta_reg.submit();}
function getCookie(name){var cname=name+"=";var dc=document.cookie;if(dc.length>0){begin=dc.indexOf(cname);if(begin!=-1){begin+=cname.length;end=dc.indexOf(";",begin);if(end==-1)end=dc.length;return unescape(dc.substring(begin,end));}}
return null;}
function setCookie(name,value){var now=new Date();var then=new Date(now.getTime()+10000000);document.cookie=name+"="+escape(value)+"; expires="+then.toGMTString()+"; path=/";}
function getValue(element){var value=getCookie(element.name);if(value!=null)element.value=value;}
function setValue(element){setCookie(element.name,element.value);}
function GetCsq(_lng){window.open("/csq/beoordelingsform.php?lng="+_lng,"","width=530,height=590,toolbar=0,scrollbars=1,resize=0");}
function goToCarHotel(_lng){document.getElementById('form_myjaf').action='/ticket/carhotel/'+_lng+'/';document.getElementById('form_myjaf').target='_self';document.getElementById('form_myjaf').submit();}
function goToAPIS(){var _po='',_leadname='',_test='';if(document.getElementById('leadname').value!='')
{_leadname=document.getElementById('leadname').value;}
if(document.getElementById('f003').value!='')
{_po=document.getElementById('f003').value;}
var regex=new RegExp("http://www.jetairfly.com");if(!regex.exec(window.location.href))
{_test='tst';}
document.getElementById('form_myjaf').action="https://"+_test+"secured.tui.be/APIS/?po="+_po+"&leadname="+_leadname;document.getElementById('form_myjaf').target='_blank';document.getElementById('form_myjaf').submit();}
function MM_reloadPage(init){if(init==true)with(navigator){if((appName=="Netscape")&&(parseInt(appVersion)==4)){document.MM_pgW=innerWidth;document.MM_pgH=innerHeight;onresize=MM_reloadPage;}}else if(innerWidth!=document.MM_pgW||innerHeight!=document.MM_pgH){location.reload();}}
function MM_findObj(n,d){var p,i,x;if(!d){d=document;}
if((p=n.indexOf("?"))>0&&parent.frames.length){d=parent.frames[n.substring(p+1)].document;n=n.substring(0,p);}
if(!(x=d[n])&&d.all){x=d.all[n];}
for(i=0;!x&&i<d.forms.length;i++){x=d.forms[i][n];}
for(i=0;!x&&d.layers&&i<d.layers.length;i++){x=MM_findObj(n,d.layers[i].document);}
if(!x&&document.getElementById){x=document.getElementById(n);}
return x;}
function MM_showHideLayers(){var i,p,v,obj,args=MM_showHideLayers.arguments;for(i=0;i<(args.length-2);i+=3){if((obj=MM_findObj(args[i]))!=null){v=args[i+2];if(obj.style){obj=obj.style;v=(v=='show')?'visible':(v='hide')?'hidden':v;}
obj.visibility=v;}}}
function MM_goToURL(){var i,args=MM_goToURL.arguments;document.MM_returnValue=false;for(i=0;i<(args.length-1);i+=2){eval(args[i]+".location='"+args[i+1]+"'");}}
function SubmitForm(keuze){document.form_myjaf.Keuze.value=keuze;document.form_myjaf.action='/bepages/inet01.php';switch(keuze){case"T":document.form_myjaf.f001.value="ticketinfo";document.form_myjaf.program.value="html402p";break;default:document.form_myjaf.program.value="htmlbookinfo";break;}
document.form_myjaf.submit();}
function showOverlay(){var div_overlay1=document.getElementById('errmsg_overlay');var div_overlay2=document.getElementById('errmsg_overlay2');var arrayPageSize=getPageSize();var arrayPageScroll=getPageScroll();div_overlay1.style.height=(arrayPageSize[1]+'px');div_overlay1.style.display='block';div_overlay2.style.display='block';hideSelectBoxes();}
function hideSelectBoxes(){selects=document.getElementsByTagName("select");for(i=0;i!=selects.length;i++){selects[i].style.visibility="hidden";}}
function hideOverlay(){var div_overlay1=document.getElementById('errmsg_overlay');var div_overlay2=document.getElementById('errmsg_overlay2');div_overlay1.style.display="none";div_overlay2.style.display="none";selects=document.getElementsByTagName("select");for(i=0;i!=selects.length;i++){selects[i].style.visibility="";}}
function getPageSize(){var xScroll,yScroll;if(window.innerHeight&&window.scrollMaxY){xScroll=document.body.scrollWidth;yScroll=window.innerHeight+window.scrollMaxY;}else if(document.body.scrollHeight>document.body.offsetHeight){xScroll=document.body.scrollWidth;yScroll=document.body.scrollHeight;}else{xScroll=document.body.offsetWidth;yScroll=document.body.offsetHeight;}
var windowWidth,windowHeight;if(self.innerHeight){windowWidth=self.innerWidth;windowHeight=self.innerHeight;}else if(document.documentElement&&document.documentElement.clientHeight){windowWidth=document.documentElement.clientWidth;windowHeight=document.documentElement.clientHeight;}else if(document.body){windowWidth=document.body.clientWidth;windowHeight=document.body.clientHeight;}
if(yScroll<windowHeight){pageHeight=windowHeight;}else{pageHeight=yScroll;}
if(xScroll<windowWidth){pageWidth=windowWidth;}else{pageWidth=xScroll;}
arrayPageSize=new Array(pageWidth,pageHeight,windowWidth,windowHeight)
return arrayPageSize;}
function getPageScroll(){var yScroll;if(self.pageYOffset){yScroll=self.pageYOffset;}else if(document.documentElement&&document.documentElement.scrollTop){yScroll=document.documentElement.scrollTop;}else if(document.body){yScroll=document.body.scrollTop;}
arrayPageScroll=new Array('',yScroll)
return arrayPageScroll;}
function jQueryAlert(_title,_message){document.getElementById('alert-title').innerHTML=_title;document.getElementById('alert-message').innerHTML=_message;$('#alertBox').jOverlay({bgClickToClose:false,autoHide:false});}
function loadScript(set_callback)
{var callback="&callback="+set_callback;var lng=(document.getElementById('siteLng').value=='nl')?1:2;var script=document.createElement("script");var api_key=document.getElementById('api_key').value;script.setAttribute("src","http://maps.google.com/maps?file=api&v=2.x&key="+api_key+"&async=2"+callback+"&hl="+((lng==1)?"nl":"fr"));script.setAttribute("type","text/javascript");document.documentElement.firstChild.appendChild(script);}
function start_map_loading(map_div)
{var obj_md=document.getElementById(map_div);var div=document.createElement('div');div.id="map_loader";div.style.position="absolute";div.style.top="0";div.style.left="0";div.style.height="100%"
div.style.width="100%"
div.style.background="white";div.style.background="url(/swimages/general/gm_loading.gif) center center no-repeat";obj_md.innerHTML="";obj_md.appendChild(div);}
var logo;function dest_loadmap()
{var map=new GMap2(document.getElementById("gm_map"));var izoom=centerpoint['GEO_CENTER_ZOOM'];var lat=centerpoint['GEO_CENTER_LAT'];var lon=centerpoint['GEO_CENTER_LON'];var img=document.getElementById('gm_img').value;map.setMapType(G_NORMAL_MAP);map.addControl(new GLargeMapControl());map.addControl(new GMapTypeControl());map.addControl(new GScaleControl());map.setCenter(new GLatLng(lat,lon),parseFloat(izoom));for(i=0;i<poiAirports.length;i++){try{var poiLat=poiAirports[i]['POI_LAT'];var poiLong=poiAirports[i]['POI_LONG'];var poiImg=document.getElementById('gm_img').value;logo=new GIcon();logo.image="/images/gm_logo_airport.png";logo.iconSize=new GSize(70,45);logo.shadowSize=new GSize(40,36);logo.iconAnchor=new GPoint(35,40);logo.infoWindowAnchor=new GPoint(13,1);map.addOverlay(set_marker(poiLat,poiLong,"alicante",poiImg));}catch(excp){}}}
function set_marker(lat,lon,name,photo)
{var point=new GLatLng(lat,lon);var marker=new GMarker(point,logo);return marker;};function finalyzeFlightPlan(){$("select[name=flightplan_select2]").attr("disabled","disabled");$("select[name=flightplan_select3]").attr("disabled","disabled");$("select[name^=flightplan_select][name!=flightplan_select3]").click(function(){if($(this).attr("value")!=""){$().jOverlay({imgLoading:'/images/ajax-loader.gif',color:'white',opacity:0.2,bgClickToClose:false,autoHide:false});$("div[id=fp_result]").empty();$("div[name=searchButton]").css("disabled ","true");var int_length=$("select[name^=flightplan_select]").size();var limit=parseInt($(this).attr("id").substr($(this).attr("id").length-1,1),10);for(l=int_length;l>limit;l--){$("select[name=flightplan_select"+l+"]").empty();$("select[name=flightplan_select"+l+"]").attr("disabled","disabled");}
$("div[id=searchButton]").addClass("ui-state-disabled");$("div[id=searchButton]").unbind('click');flightplan_requestSubs($(this).val(),$("#siteLng").val());}});$("select[name=flightplan_select3]").click(function(){$("div[id=searchButton]").removeClass("ui-state-disabled");$("div[id=searchButton]").click(function(){$("div[id=searchButton]").unbind('click');$().jOverlay({imgLoading:'/images/ajax-loader.gif',color:'white',opacity:0.2,bgClickToClose:false,autoHide:false});print_flightplan($("#siteLng").val());});});$("div[id=searchButton]").addClass("ui-state-disabled");$("div[id=searchButton]").unbind('click');};function flightplan_requestSubs(_id,_lng){var nextBox=$("select[name^=flightplan_select]:empty").attr("id");var idPrefix=$("select[name=flightplan_select"+(parseInt(nextBox.substr(nextBox.length-1,1),10)-1)+"]").val();if(_id=='DAY'){var _sort='false';}else{var _sort='true';}
$.post("/phpscripts/ajax.php",{"AJAX":"FLIGHTPLAN","ACTION":"REQUESTSUBS","LNG":_lng,"ID":_id,"SORT":_sort},function(data){$('#'+nextBox).attr("disabled","");$.each(data,function(key,value){$('#'+nextBox).append($('<option></option>').val(idPrefix+"_"+key).html(value));});$.closeOverlay();},"json");}
function print_flightplan(_lng){if(!$("div[id=searchButton]").hasClass("ui-state-disabled")){$("div[id=fp_result]").empty();if($("select[name^=flightplan_select3]")){var arrParts=$("[name^=flightplan_select3]").val().split("_");}else if($("input[name^=flightplan_select3]")){var arrParts=$("[name^=flightplan_select3]").val().split("_");}else{return false;}
$.post("/phpscripts/ajax.php",{"AJAX":"FLIGHTPLAN","ACTION":"LOADROUTES","LNG":_lng,"FILTER1":arrParts[0],"FILTER2":arrParts[1],"FILTER3":arrParts[2]},function(data){reworked=new Array();var i=0;$.each(data,function(key,value){if($("table[id=fpres_"+value.DEP_IATA+value.DEST_IATA+"]").length==0){reworked[value.DEP_IATA+value.DEST_IATA]=new Array();create_fp_info(value);}
if(jQuery.inArray(value.REALSTART,reworked[value.DEP_IATA+value.DEST_IATA])<0){reworked[value.DEP_IATA+value.DEST_IATA][i++]=value.REALSTART;}
if(jQuery.inArray(value.REALEND,reworked[value.DEP_IATA+value.DEST_IATA])<0){reworked[value.DEP_IATA+value.DEST_IATA][i++]=value.REALEND;}});for(route in reworked){reworked[route].sort();for(realstart in reworked[route]){if(reworked[route][parseInt(realstart)+1]){var startDate=new Date(reworked[route][realstart]);var endDate=new Date(reworked[route][parseInt(realstart)+1]);endDate.setDate(endDate.getDate()-1);if(endDate>new Date()&&endDate>startDate){if((""+startDate.getDate()).length<2){startDay=""+0+startDate.getDate();}else{startDay=startDate.getDate();}
if((""+(parseInt(startDate.getMonth())+1)).length<2){startMonth=""+0+(parseInt(startDate.getMonth())+1);}else{startMonth=(parseInt(startDate.getMonth())+1);}
startYear=startDate.getFullYear();idStart=startYear+"/"+startMonth+"/"+startDay;startDate=startDay+"/"+startMonth+"/"+startYear;if((""+endDate.getDate()).length<2){endDay=""+0+endDate.getDate();}else{endDay=endDate.getDate();}
if((""+(parseInt(endDate.getMonth())+1)).length<2){endMonth=""+0+(parseInt(endDate.getMonth())+1);}else{endMonth=(parseInt(endDate.getMonth())+1);}
endYear=endDate.getFullYear();idEnd=endYear+"/"+endMonth+"/"+endDay;endDate=endDay+"/"+endMonth+"/"+endYear;var flightdayHtml="<img src=\"/swimages/icons/red_bar.png\" alt=\"no-flight\"/>";$("table[id=fpres_"+route+"]").append("<tr class=\"dataRow\"><td id='"+idStart+"_"+idEnd+"' class=\"dateRange\">"+startDate+" -> "+endDate+" </td><td class=\"flightday day_1\">"+flightdayHtml+"</td><td class=\"flightday day_2\">"+flightdayHtml+"</td><td class=\"flightday day_3\">"+flightdayHtml+"</td><td class=\"flightday day_4\">"+flightdayHtml+"</td><td class=\"flightday day_5\">"+flightdayHtml+"</td><td class=\"flightday day_6\">"+flightdayHtml+"</td><td class=\"flightday day_7\">"+flightdayHtml+"</td></tr>");}}}}
$.each(data,function(key,value){$("table[id=fpres_"+value.DEP_IATA+value.DEST_IATA+"]").children("tbody").children("tr").each(function(){if($(this).children("td:first").html()!=null){var str_id=$(this).children("td:first").attr("id");arr_dates=str_id.split("_");var dt_from=arr_dates[0];var dt_to=arr_dates[1];if(value.REALSTART<=dt_from&&value.REALEND>=dt_to){$(this).children("td.day_"+value.FLIGHTDAY+"").html("<img src=\"/swimages/icons/tick.png\" alt=\"flight\"/>");}}});});$.closeOverlay();},"json");}}
function create_fp_info(infObject){$("div[id=fp_result]").append("<table id=\"fpres_"+infObject.DEP_IATA+infObject.DEST_IATA+"\" class=\"fpresTable\"><tr class=\"routeInfo\"><th colspan=\"8\">"+infObject.DEPARTURE+" ("+infObject.DEP_IATA+")"+" -> "+infObject.DESTINATION+", "+infObject.COUNTRY+" ("+infObject.DEST_IATA+")"+"</th></tr></table><br /><br />");switch($("#siteLng").val()){case'nl':case 1:$("table[id=fpres_"+infObject.DEP_IATA+infObject.DEST_IATA+"]").append("<tr><td class=\"dates\">&nbsp;</td><th class=\"flightday day_1\">Ma</th><th class=\"flightday day_2\">Di</th><th class=\"flightday day_3\">Wo</th><th class=\"flightday day_4\">Do</th><th class=\"flightday day_5\">Vr</th><th class=\"flightday day_6\">Za</th><th class=\"flightday day_7\">Zo</th></tr>");break;case'fr':case 2:$("table[id=fpres_"+infObject.DEP_IATA+infObject.DEST_IATA+"]").append("<tr><td class=\"dates\">&nbsp;</td><th class=\"flightday day_1\">Lu</th><th class=\"flightday day_2\">Ma</th><th class=\"flightday day_3\">Me</th><th class=\"flightday day_4\">Je</th><th class=\"flightday day_5\">Ve</th><th class=\"flightday day_6\">Sa</th><th class=\"flightday day_7\">Di</th></tr>");break;case'es':case 4:$("table[id=fpres_"+infObject.DEP_IATA+infObject.DEST_IATA+"]").append("<tr><td class=\"dates\">&nbsp;</td><th class=\"flightday day_1\">Lu</th><th class=\"flightday day_2\">Ma</th><th class=\"flightday day_3\">Mi</th><th class=\"flightday day_4\">Ju</th><th class=\"flightday day_5\">Vi</th><th class=\"flightday day_6\">S&#225;</th><th class=\"flightday day_7\">Do</th></tr>");break;case'de':case 5:$("table[id=fpres_"+infObject.DEP_IATA+infObject.DEST_IATA+"]").append("<tr><td class=\"dates\">&nbsp;</td><th class=\"flightday day_1\">Mo</th><th class=\"flightday day_2\">Di</th><th class=\"flightday day_3\">Mi</th><th class=\"flightday day_4\">Do</th><th class=\"flightday day_5\">Fr</th><th class=\"flightday day_6\">Sa</th><th class=\"flightday day_7\">So</th></tr>");break;default:$("table[id=fpres_"+infObject.DEP_IATA+infObject.DEST_IATA+"]").append("<tr><td class=\"dates\">&nbsp;</td><th class=\"flightday day_1\">Mo</th><th class=\"flightday day_2\">Tu</th><th class=\"flightday day_3\">We</th><th class=\"flightday day_4\">Th</th><th class=\"flightday day_5\">Fr</th><th class=\"flightday day_6\">Sa</th><th class=\"flightday day_7\">Su</th></tr>");break;}}