var hotelRatingValues=['0','0','0','0','25','30','35','45','50','55','60'];var defaultHotelRatingSlider=0;var defaultHotelRatingValue=hotelRatingValues[defaultHotelRatingSlider];var optDauer=["Alle keuzes;6_1-23","1 week;6_7-7","2 weken;6_14-14","3 weken;6_21-21","1 - 4 Nachten;6_1-4","5 - 8 Nachten;6_5-8","9 - 12 Nachten;6_9-12","13 - 15 Nachten;6_13-15","16 - 22 Nachten;6_16-22","> 22 Nachten;13"];var optDauerErde=["Alle keuzes;-1","1 week;6_7-7","2 weken;6_14-14","3 weken;6_21-21","1 - 4 Nachten;6_1-4","5 - 8 Nachten;6_5-8","9 - 12 Nachten;6_9-12","13 - 15 Nachten;6_13-15","16 - 22 Nachten;6_16-22","&gt; 22 Nachten;13"];var optKategorie=["Alle keuzes;-1","2 Sterren of meer;0","3 Sterren of meer;1","4 Sterren of meer;2","5 Sterren of meer;3"];var optVerpflegung=["Alle keuzes;-1","Logies;0","Logies met ontbijt;1","Halfpension;2","Volpension;3","All Inclusive;4"];var optZimmer=["Alle keuzes;-1","1 persoonskamer;5","2 persoonskamer;6","Familiekamer;2","Bungalow;0","Appartement;7"];var optZimmerFW=["beliebig;-1","Haus;0","Ferienhaus;1","Anlage;2","Ferienwohnung;3"];var optPreis=["Alle keuzes;-1","tot € 300;1","tot € 500;2","tot € 750;3","tot € 1000;4"];var optHbfges=["Alle keuzes;0","Score v.a. ong. 5;30","Score v.a. ong. 6;35","Score v.a. ong. 7;45","Score v.a. ong. 8;50","Score v.a. ong. 9;55","Score ong. 10;60"];function write_quickSearch(actPort,actLine,actJumper){var fillDIV;fillDIV='<h3>'+TTDynSearchTabConfig.headline.tlabel+'</h3>';fillDIV+='<div class="qsm_tabs_wrapper">';fillDIV+='    <span class="qsm_tab '+TTDynSearchTabConfig.tab1.tclass+'"><a href="'+t3url+'?'+TTDynSearchTabConfig.tab1.t3id+'" class="active">'+TTDynSearchTabConfig.tab1.tlabel+'</a></span>';fillDIV+='    <span class="qsm_tab '+TTDynSearchTabConfig.tab2.tclass+'"><a href="'+t3url+'?'+TTDynSearchTabConfig.tab2.t3id+'">'+TTDynSearchTabConfig.tab2.tlabel+'</a></span>';fillDIV+='    <span class="qsm_tab '+TTDynSearchTabConfig.tab3.tclass+'"><a href="'+t3url+'?'+TTDynSearchTabConfig.tab3.t3id+'">'+TTDynSearchTabConfig.tab3.tlabel+'</a></span>';fillDIV+='    <span class="qsm_tab '+TTDynSearchTabConfig.tab4.tclass+'"><a href="'+t3url+'?'+TTDynSearchTabConfig.tab4.t3id+'">'+TTDynSearchTabConfig.tab4.tlabel+'</a></span>';fillDIV+='</div>';fillDIV+='<div class="form_wrapper_top"></div>';fillDIV+='<div class="form_wrapper first_tab">';fillDIV+='    <div class="form_extended_container">';fillDIV+='        <form name="bengine" method="post" action="" id="bengine">';fillDIV+='            <div style="height:0;">';fillDIV+='                <fieldset class="form_column_left">';fillDIV+='                    <p>';fillDIV+='                        <label for="tt_countries">Land</label>';fillDIV+='                        <select id="tt_countries" name="tt_countries" onchange="IBE_lami.RZC(1);"><option value="-1">Alle keuzes</option></select>';fillDIV+='                    </p>';fillDIV+='                    <p>';fillDIV+='                        <label for="tt_region">Gebied</label>';fillDIV+='                        <select id="tt_region" name="tt_region" onchange="IBE_lami.REGC();"><option value="-1">Alle keuzes</option></select>';fillDIV+='                    </p>';fillDIV+='                    <p>';fillDIV+='                        <label for="abflughafen">Kies vertrekluchthaven</label>';fillDIV+='                        <select id="abflughafen" name="abflughafen"><option value="-1">Alle keuzes</option></select>';fillDIV+='                    </p>';fillDIV+='                </fieldset>';fillDIV+='                <fieldset class="form_column_middle">';fillDIV+='                    <p>';fillDIV+='                        <label class="fieldset" for="idCalFrom">Vertrek vanaf</label>';fillDIV+='                        <input id="idCalFrom" name="dateFrom" readonly="true" class="calendar" style="cursor:pointer;">';fillDIV+='                    </p>';fillDIV+='                    <p>';fillDIV+='                        <label class="fieldset" for="idCalTo">Uiterste retourdatum</label>';fillDIV+='                        <input id="idCalTo" name="dateTo" readonly="true" class="calendar" style="cursor:pointer;">';fillDIV+='                    </p>';fillDIV+='                    <p>';fillDIV+='                        <label for="dauer">Reisduur</label>';fillDIV+='                        <select name="dauer" id="dauer"></select>';fillDIV+='                    </p>';fillDIV+='                </fieldset>';fillDIV+='                <fieldset class="form_column_right">';fillDIV+='                    <p>';fillDIV+='                        <label for="">Volwassenen</label>';fillDIV+='                    </p>';fillDIV+='                    <div class="adult_num" >';fillDIV+='                        <a class="normal" href="javascript:void(0);">1</a>';fillDIV+='                        <a class="active" href="javascript:void(0);">2</a>';fillDIV+='                        <a class="normal" href="javascript:void(0);">3</a>';fillDIV+='                        <a class="normal" href="javascript:void(0);">4</a>';fillDIV+='                    </div>';fillDIV+='                    <span class="amount_adults"><span id="amountAdultsValue">2</span> Volwassenen</span>';fillDIV+='                    <input type="hidden" name="volwassenen" id="amountAdults" value="2">';fillDIV+='                    <p></p>';fillDIV+='                    <p>';fillDIV+='                        <label for="">Kinderen onder de 17 jr. <small>(dag van vertrek)</small></label>';fillDIV+='                        <select id="alter1" name="alter1" class="children">';fillDIV+='                            <option value="-1"> --- </option><option value="1">&lt; 2 j.</option><option value="2">2 j.</option><option value="3">3 j.</option><option value="4">4 j.</option><option value="5">5 j.</option><option value="6">6 j.</option><option value="7">7 j.</option><option value="8">8 j.</option><option value="9">9 j.</option><option value="10">10 j.</option><option value="11">11 j.</option><option value="12">12 j.</option><option value="13">13 j.</option><option value="14">14 j.</option><option value="15">15 j.</option><option value="16">16 j.</option>';fillDIV+='                        </select>';fillDIV+='                        <select id="alter2" name="alter2" class="children">';fillDIV+='                            <option value="-1"> --- </option><option value="1">&lt; 2 j.</option><option value="2">2 j.</option><option value="3">3 j.</option><option value="4">4 j.</option><option value="5">5 j.</option><option value="6">6 j.</option><option value="7">7 j.</option><option value="8">8 j.</option><option value="9">9 j.</option><option value="10">10 j.</option><option value="11">11 j.</option><option value="12">12 j.</option><option value="13">13 j.</option><option value="14">14 j.</option><option value="15">15 j.</option><option value="16">16 j.</option>';fillDIV+='                        </select>';fillDIV+='                        <select id="alter3" name="alter3" class="children">';fillDIV+='                            <option value="-1"> --- </option><option value="1">&lt; 2 j.</option><option value="2">2 j.</option><option value="3">3 j.</option><option value="4">4 j.</option><option value="5">5 j.</option><option value="6">6 j.</option><option value="7">7 j.</option><option value="8">8 j.</option><option value="9">9 j.</option><option value="10">10 j.</option><option value="11">11 j.</option><option value="12">12 j.</option><option value="13">13 j.</option><option value="14">14 j.</option><option value="15">15 j.</option><option value="16">16 j.</option>';fillDIV+='                        </select>';fillDIV+='                    </p>';fillDIV+='                    <p>';fillDIV+='                        <label>Budget</label>';fillDIV+='                    </p>';fillDIV+='                    <div class="slider_range_bar"><div id="sliderRange">';fillDIV+='                            <span id="BudgetsliderRule1">&nbsp;</span>';fillDIV+='                            <span id="BudgetsliderRule2">&nbsp;</span>';fillDIV+='                            <span id="BudgetsliderRule3">&nbsp;</span>';fillDIV+='                            <span id="BudgetsliderRule4">&nbsp;</span>';fillDIV+='                            <span id="BudgetsliderRule5">&nbsp;</span>';fillDIV+='                            <span id="BudgetsliderRule6">&nbsp;</span>';fillDIV+='                            <span id="BudgetsliderRule7">&nbsp;</span>';fillDIV+='                            <span id="BudgetsliderRule8">&nbsp;</span>';fillDIV+='                            <span id="BudgetsliderRule9">&nbsp;</span>';fillDIV+='                            <span id="BudgetsliderRule10">&nbsp;</span>';fillDIV+='                            <span id="BudgetsliderRule11">&nbsp;</span>';fillDIV+='                        </div></div>';fillDIV+='                    <input type="hidden" value="0" id="budgetMinValue" name="budgetMinValue">';fillDIV+='                    <input type="hidden" value="600" id="budgetMaxValue" name="budgetMaxValue">';fillDIV+='                    <span class="budgetRangeValue budget_range_value" id="budgetRangeValue">&euro; 0 - alle </span>';fillDIV+='                </fieldset>';fillDIV+='            </div>';fillDIV+='            <div class="qsm_extended">';fillDIV+='                <fieldset class="form_extended_column_left">';fillDIV+='                    <p>';fillDIV+='                        <label for="zimmer">Kamertype</label>';fillDIV+='                        <select name="zimmer" id="zimmer">';fillDIV+='                            <option value="-1">Alle keuzes</option>';fillDIV+='                            <option value="5">1 persoonskamer</option>';fillDIV+='                            <option value="6">2 persoonskamer</option>';fillDIV+='                            <option value="2">Familiekamer</option>';fillDIV+='                            <option value="0">Bungalow</option>';fillDIV+='                            <option value="7">Appartement</option>';fillDIV+='                        </select>';fillDIV+='                    </p>';fillDIV+='                    <p>';fillDIV+='                        <label for="">Hotel categorie</label>';fillDIV+='                    </p>';fillDIV+='                        <div class="star_rating_bar">';fillDIV+='                            <input type="button" onfocus="blur();" class="minus">';fillDIV+='                                <div class="stars">';fillDIV+='                                    <div class="star star_active"></div>';fillDIV+='                                    <div class="star star_normal"></div>';fillDIV+='                                    <div class="star star_normal"></div>';fillDIV+='                                    <div class="star star_normal"></div>';fillDIV+='                                    <div class="star star_normal"></div>';fillDIV+='                                </div>';fillDIV+='                                <input type="button" onfocus="blur();" class="plus">';fillDIV+='                            </div>';fillDIV+='                        <input type="hidden" value="1" id="starRatingValue" name="hotel-categorie">';fillDIV+='                    </fieldset>';fillDIV+='                    <fieldset class="form_extended_column_middle">';fillDIV+='                        <p>';fillDIV+='                            <label for="verpflegung">Verzorging</label>';fillDIV+='                            <select id="verpflegung" name="verpflegung"></select>';fillDIV+='                        </p>';fillDIV+='                        <p>';fillDIV+='                            <label for="">Klantbeoordeling</label>';fillDIV+='                        </p>';fillDIV+='                        <div id="sliderRangeMin">';fillDIV+='                            <div class="slider-steps"></div>';fillDIV+='                            <span id="sliderRangeMinRule1">&nbsp;</span>';fillDIV+='                            <span id="sliderRangeMinRule2">&nbsp;</span>';fillDIV+='                            <span id="sliderRangeMinRule3">&nbsp;</span>';fillDIV+='                            <span id="sliderRangeMinRule4">&nbsp;</span>';fillDIV+='                            <span id="sliderRangeMinRule5">&nbsp;</span>';fillDIV+='                            <span id="sliderRangeMinRule6">&nbsp;</span>';fillDIV+='                            <span id="sliderRangeMinRule7">&nbsp;</span>';fillDIV+='                        </div>';fillDIV+='                        <input type="hidden" value="8" id="customerRatingValue" name="klantbeoordeling">';fillDIV+='                        <span class="customer_rating_value" id="customerRating">alle</span>';fillDIV+='                        </fieldset>';fillDIV+='                        <fieldset class="form_extended_column_right">';fillDIV+='                            <p>';fillDIV+='                                <input type="checkbox" id="familie_kinder" class="checkbox" name="familie_kinder" value="yes">';fillDIV+='                                <label class="lbl_checkbox" for="familie_kinder">Speciaal voor kinderen</label>';fillDIV+='                            </p>';fillDIV+='                            <p>';fillDIV+='                                <input type="checkbox" id="strand" class="checkbox" name="strand" value="yes">';fillDIV+='                                <label class="lbl_checkbox" for="strand">Direct aan het strand</label>';fillDIV+='                            </p>';fillDIV+='                            <p>';fillDIV+='                                <input type="checkbox" id="wellness" class="checkbox" name="wellness" value="yes">';fillDIV+='                                <label class="lbl_checkbox" for="wellness">Wellness-fitness</label>';fillDIV+='                            </p>';fillDIV+='                        </fieldset>';fillDIV+='                    </div>';fillDIV+='                    <div class="form_extended_bottom_content">';fillDIV+='                        <div class="options_link">';fillDIV+='                            <a class="icon_arrow" id="toggleArrowIcon" href="javascript:void(0);">Minder opties</a>';fillDIV+='                        </div>';fillDIV+='                        <div class="accomodation_name">';fillDIV+='                            <div class="acco_name" id="accomodation">';fillDIV+='                                <p>';fillDIV+='                                    <label for="">Zoek accomodatie</label>';fillDIV+='                                    <input type="text" onblur="if (this.value==\'\') { this.value=\'Type hier de naam...\'; }" onfocus="this.value=\'\';" value="Type hier de naam..." name="shotel" id="shotel">';fillDIV+='                                </p>';fillDIV+='                            </div>';fillDIV+='                        </div>';fillDIV+='                        <div class="form_submit">';fillDIV+='                            <div class="qsm_submit_button" value="Bekijk" id="bekijkbutton" onclick="subIBEform(\'IBE_lami\');return false;">Bekijk</div>';fillDIV+='                        </div>';fillDIV+='                    </div>';fillDIV+='                </form>';fillDIV+='            </div>';fillDIV+='        </div>';fillDIV+='    </div>';fillDIV+='</div>';document.getElementById('qsm_wrapper').innerHTML=fillDIV;jQueryInit()}function subIBEform(framejump){var bform=document.forms['bengine'];var termin='';if(typeof bform.idCalFrom!='undefined'){termin=jQuery("#idCalFrom").attr("date").split("-");termin=new Date(termin[0]*1,termin[1]*1-1,termin[2]*1);termin=termin.getTime()/1000}var ruecktermin='';if(typeof bform.idCalTo!='undefined'){ruecktermin=jQuery("#idCalTo").attr("date").split("-");ruecktermin=new Date(ruecktermin[0]*1,ruecktermin[1]*1-1,ruecktermin[2]*1);ruecktermin=ruecktermin.getTime()/1000}var req_dauer='';if(typeof(bform.dauer)!='undefined'&&bform.dauer.value!='-1'){req_dauer='&dauer='+bform.dauer.value}var req_abflughafen='';if(typeof bform.abflughafen!='undefined'&&bform.abflughafen.value!='-1'){req_abflughafen='&abflughafen='+bform.abflughafen.value}var kategorie=jQuery("#qsm_wrapper .star_active").length*1-2;var req_kategorie='&kategorie=';if(kategorie<0){kategorie="-1"}req_kategorie+=kategorie;var verpflegung='';var req_verpflegung='';if(typeof bform.verpflegung!='undefined'){if(showVerpflegung=='1'){verpflegung=bform.verpflegung.value}else if(showVerpflegung=='2'){for(m=0;m<bform.verpflegung.length;m++){if(bform.verpflegung[m].checked==true){verpflegung=bform.verpflegung[m].value}}}}if(verpflegung!=''&&verpflegung!='-1'){req_verpflegung='&verpflegung='+verpflegung}var zimmer='';var req_zimmer='';if(typeof bform.zimmer!='undefined'){if(showZimmer=='1'){zimmer=bform.zimmer.value}else if(showZimmer=='2'){for(m=0;m<bform.zimmer.length;m++){if(bform.zimmer[m].checked==true){zimmer=bform.zimmer[m].value}}}}if(zimmer!=''&&zimmer!='-1'){req_zimmer='&zimmer='+zimmer}var strand='';if(typeof(bform.strand)!='undefined'&&bform.strand.checked==true){strand='&strand=0'}var wellness='';if(typeof(bform.wellness)!='undefined'&&bform.wellness.checked==true){wellness='&wellness=0'}var familie_kinder='';if(typeof(bform.familie_kinder)!='undefined'&&bform.familie_kinder.checked==true){familie_kinder='&familie_kinder=0'}var req_marke='';var req_shotel='';if(typeof(bform.shotel)!='undefined'&&bform.shotel.value!=''&&bform.shotel.value!='Type hier de naam...'){req_shotel='&shotel='+bform.shotel.value}var req_preis='&preis='+'15_';var priceFrom=jQuery("#sliderRange").slider('values')[0]*1;var priceTo=jQuery("#sliderRange").slider('values')[1]*1;if(priceTo>=1500){priceTo=10000}req_preis+=priceFrom+'-'+priceTo;var req_topRegion="";var req_flugdauer="";var req_sel_ttregion="";var detail="region";var topRegion="";var selCountryIdx=bform.tt_countries.selectedIndex;var selRegionIdx=bform.tt_region.selectedIndex;var selCountry='';var selRegion='';if(selCountryIdx>0&&selRegionIdx>0){selRegion=bform.tt_region.options[selRegionIdx].value.split('|');topRegion=selRegion[2]}else if(selCountryIdx>0){selCountry=bform.tt_countries.options[selCountryIdx].value.split(',');topRegion=selCountry[0]}if(topRegion!=''){req_topRegion='&topRegion='+topRegion;detail='hotel'}var anzErw=jQuery('#qsm_wrapper .adult_num a.active').text()*1;var personen='';for(var p=0;p<anzErw;p++){if(p>0){personen+=';'}personen+='25'}var alterkinder="";if(typeof bform.alter1!='undefined'){for(var ki=1;ki<=3;ki++){if(bform["alter"+ki]&&bform["alter"+ki].value!="-1"){alterkinder+=bform["alter"+ki].value+";"}}if(alterkinder!=""){personen=personen+";"+alterkinder}}var req_hbfges='';var hbf_ges=jQuery('#sliderRangeMin').slider('value');req_hbfges='&hbfges='+hotelRatingValues[hbf_ges];jsq_quick="";var params="";var prefix="";tmp_TTDynSearchCFormActionID=TTDynSearchTabConfig.formsubmit.t3id;tmp_TTDynSearchCURLIFFFilter=TTDynSearchLURLIFFFilter;tmp_TTDynSearchCURLTO=TTDynSearchLURLTO;var tmp_iffOrt='',tmp_s_ort='',tmp_iffFilter='',tmp_marke='',tmp_addurlp='';tmp_addurlp=tmp_iffOrt+tmp_s_ort+tmp_iffFilter+tmp_marke;switch(jsq_jump){case"IBE_lami":params='id='+tmp_TTDynSearchCFormActionID+'#detail='+detail+'&KID='+KID+'&formular=4&showresult=1'+req_hbfges+familie_kinder+wellness+strand+req_abflughafen+req_verpflegung+req_topRegion+req_flugdauer+req_sel_ttregion+req_zimmer+req_kategorie+req_dauer+req_marke+req_shotel+req_preis+'&personen='+personen+''+jsq_quick+'&termin='+termin+'&ruecktermin='+ruecktermin+TTAddVal+tmp_addurlp;prefix='index.php?';break;case"IBE_lamipa":params='id='+tmp_TTDynSearchCFormActionID+'#detail='+detail+'&KID='+KID+'&formular=4&engine=pauschal&showresult=1'+req_hbfges+detail+req_abflughafen+req_verpflegung+req_topRegion+req_flugdauer+req_sel_ttregion+req_zimmer+req_kategorie+req_dauer+req_marke+req_shotel+req_preis+'&personen='+personen+''+jsq_quick+'&termin='+termin+'&ruecktermin='+ruecktermin+TTAddVal+tmp_addurlp;prefix='index.php?';break;case"IBE_pauschal":params='id='+tmp_TTDynSearchCFormActionID+'#detail='+detail+'&KID='+KID+'&formular=4&engine=pauschal&showresult=1'+req_hbfges+detail+req_abflughafen+req_verpflegung+req_topRegion+req_flugdauer+req_sel_ttregion+req_zimmer+req_kategorie+req_dauer+req_marke+req_shotel+req_preis+'&personen='+personen+''+jsq_quick+'&termin='+termin+'&ruecktermin='+ruecktermin+TTAddVal+tmp_addurlp;prefix='index.php?';break;case"IBE_flug":params='id='+tmp_TTDynSearchCFormActionID+'#detail=zielgebiet'+detail+'&KID='+KID+'&formular=3&nurflug=1&showresult=1'+req_hbfges+req_abflughafen+req_flugdauer+req_dauer+req_marke+req_preis+'&personen='+personen+''+jsq_quick+'&termin='+termin+'&ruecktermin='+ruecktermin+TTAddVal+tmp_addurlp;prefix='index.php?';break;case"IBE_erde":params='id='+tmp_TTDynSearchCFormActionID+'#detail='+detail+'&KID='+KID+'&formular=4&engine=erde&showresult=1'+req_hbfges+req_verpflegung+req_zimmer+req_topRegion+req_flugdauer+req_sel_ttregion+req_kategorie+req_dauer+req_marke+req_shotel+req_preis+'&personen='+personen+''+jsq_quick+'&termin='+termin+'&ruecktermin='+ruecktermin+TTAddVal+tmp_addurlp;prefix='index.php?';break;case"IBE_fewo":params='id='+tmp_TTDynSearchCFormActionID+'#detail='+detail+'&KID='+KID+'&formular=4&engine=fewo&showresult=1'+req_hbfges+req_verpflegung+req_topRegion+req_flugdauer+req_zimmer+req_kategorie+req_dauer+req_marke+req_shotel+req_preis+'&personen='+personen+''+jsq_quick+'&termin='+termin+'&ruecktermin='+ruecktermin+TTAddVal+tmp_TTDynSearchCFormActionID+tmp_iffFilter+tmp_marke+tmp_iffOrt;prefix='index.php?';break}if(frameurl==1&&framejump!=''){jsq_target=searchurl+framejump+params}else{jsq_target=searchurl+prefix+params}if(jsq_popup!=0){var popupme=window.open(jsq_target,ordner_name,"scrollbars=yes,menubar=yes,toolbar=yes,resizable=yes");popupme.focus()}else{var s,link;link=document.getElementById("bekijkbutton");s=s_gi(window['s_account']);s.linkTrackVars="events";s.events="event1";s.tl(link,'e','QSM-Home-Bekijk-Button');window.location.href=jsq_target}}function dynpsCalendarDay(date,id){var aDate=date.split('-');var oDate=new Date(aDate[0],parseFloat(aDate[1])-1,aDate[2]);var previousDepartureDate=jQuery('#qsm_wrapper_termin').val();var newDepartureDate=oDate.getTime()/1000;var change=newDepartureDate-previousDepartureDate;var numSecondsADay=86400;var numSecondsAMonth=numSecondsADay*30;var changeDays=Math.round(change/numSecondsADay);change=changeDays*numSecondsADay;jQuery('#qsm_wrapper_termin').val(newDepartureDate);var greaterOneMonth=false;if((change>0&&change>numSecondsAMonth)||(change<0&&change<-numSecondsAMonth)){change=numSecondsAMonth;greaterOneMonth=true}var currentReturnDate=jQuery('#qsm_wrapper_termin').val();if(currentReturnDate<=newDepartureDate){currentReturnDate=newDepartureDate}var newReturnDateCalendar;if(greaterOneMonth){newReturnDateCalendar=parseInt(newDepartureDate)+change+(numSecondsADay/2)}else{newReturnDateCalendar=parseInt(currentReturnDate)+change+(numSecondsADay/2)}terminHin=newDepartureDate;terminRueck=newReturnDateCalendar;jQuery('#qsm_wrapper_ruecktermin').val(newReturnDateCalendar);pCalenderTo.setDate(newReturnDateCalendar)}function dynpsCalendarReturnDate(date,id){var aDate=date.split('-');var oDate=new Date(aDate[0],parseFloat(aDate[1])-1,aDate[2]);var newReturnDate=oDate.getTime()/1000;jQuery('#qsm_wrapper_ruecktermin').val(newReturnDate);terminRueck=newReturnDate}function jQueryInit(){var defaultAdultNum=1;jQuery("#qsm_wrapper .qsm_extended").hide();jQuery("#qsm_wrapper #accomodation").hide();jQuery("#qsm_wrapper #toggleArrowIcon").text("Uitgebreid zoeken");jQuery("#qsm_wrapper .icon-arrow").css('font-size',"12px");jQuery("#qsm_wrapper .accomodation_name").css("width",190+"px");jQuery("#sliderRange").slider({range:true,min:0,max:1500,step:150,values:[0,1500],slide:function(event,ui){var uiMin,uiMax;uiMin=ui.values[0];uiMax=ui.values[1];jQuery("#budgetMinValue").val(uiMin);jQuery("#budgetMaxValue").val(uiMax);if(uiMax==1500){uiMax="alle"}jQuery("#budgetRangeValue").html("&euro; "+uiMin+" - "+uiMax)},stop:function(){}});jQuery('#sliderRangeMin').slider({value:defaultHotelRatingSlider,min:4,max:10,step:1,slide:function(event,ui){jQuery("#customerRatingValue").val(ui.value);if(ui.value>4){jQuery("#customerRating").html("&plusmn; "+ui.value)}else{jQuery("#customerRating").html("alle")}},stop:function(){}});terminHin=termin_min_654;jQuery("#qsm_wrapper_termin").val(terminHin);pCalenderFrom=new TTCalendar({idFrom:'idCalFrom',callback:'dynpsCalendarDay',idConnectedCal:'idCalTo',dateFromMin:termin_min_654,dateFromMax:termin_max_654,curDate:terminHin});pCalenderFrom.setFormat('dd.mm.yy');pCalenderFrom.setWeekNames(weekNames);pCalenderFrom.setMonthNames(monthNames);pCalenderFrom.show();terminRueck=new Date(terminHin*1000);terminRueck=new Date(terminRueck.getFullYear(),terminRueck.getMonth()*1+1,terminRueck.getDate());terminRueck=terminRueck.getTime()/1000;jQuery("#qsm_wrapper_ruecktermin").val(terminRueck);pCalenderTo=new TTCalendar({idFrom:'idCalTo',callback:'dynpsCalendarReturnDate',dateFromMin:termin_min_654,dateFromMax:termin_max_654,curDate:terminRueck});pCalenderTo.setFormat('dd.mm.yy');pCalenderTo.setWeekNames(weekNames);pCalenderTo.setMonthNames(monthNames);pCalenderTo.show();jQuery("#qsm_wrapper .minus").mousedown(function(){jQuery(this).removeClass("minus");jQuery(this).addClass("press_minus")}).mouseup(function(){jQuery(this).removeClass("press_minus");jQuery(this).addClass("minus")});jQuery("#qsm_wrapper .plus").mousedown(function(){jQuery(this).removeClass("plus");jQuery(this).addClass("press_plus")}).mouseup(function(){jQuery(this).removeClass("press_plus");jQuery(this).addClass("plus")});jQuery("#qsm_wrapper .minus").click(function(){var last_selected_star=jQuery("#qsm_wrapper .star_active").length-1;if(last_selected_star==0){return}jQuery("#qsm_wrapper .star_active").eq(last_selected_star).removeClass("star_active").addClass("star_normal");jQuery("#starRatingValue").val(jQuery("#qsm_wrapper .star_active").length);if(jQuery("#qsm_wrapper .star_active").length==0){jQuery("#starRatingValue").val("all")}});jQuery("#qsm_wrapper .plus").click(function(){var last_selected_star=jQuery("#qsm_wrapper .star_active").length;jQuery(".star").eq(last_selected_star).addClass("star_active");jQuery("#starRatingValue").val(jQuery("#qsm_wrapper .star_active").length)});jQuery("#qsm_wrapper .adult_num a").click(function(){jQuery("#qsm_wrapper .adult_num a").eq(defaultAdultNum).removeClass("active");jQuery(this).addClass("active");defaultAdultNum=jQuery("#qsm_wrapper .adult_num a").index(this);jQuery("#amountAdultsValue").text(defaultAdultNum+1);jQuery("#amountAdults").val(defaultAdultNum+1)});jQuery("#toggleArrowIcon").click(function(){var defaultText=jQuery("#toggleArrowIcon").text();if(defaultText!="Minder opties"){jQuery("#qsm_wrapper .form_wrapper").addClass("ie7extended")}jQuery("#qsm_wrapper .qsm_extended").slideToggle(500,function(){var defaultText=jQuery("#toggleArrowIcon").text();if(defaultText!="Minder opties"){jQuery("#qsm_wrapper .form_wrapper.ie7extended").removeClass("ie7extended")}});if(jQuery("#toggleArrowIcon").text()=="Minder opties"){jQuery("#accomodation").fadeOut("slow");jQuery("#toggleArrowIcon").text("Uitgebreid zoeken");jQuery(".icon-arrow").css('font-size',"12px");jQuery(".accomodation_name").animate({width:"190px"},"slow")}else{jQuery("#accomodation").fadeIn("slow");jQuery("#toggleArrowIcon").text("Minder opties");jQuery('.icon-arrow').css('font-size',"11px");jQuery(".accomodation_name").animate({width:"220px"},"slow")}});jQuery("#qsm_wrapper .star").click(function(){jQuery(this).nextAll().removeClass("star_active").addClass("star_normal");jQuery(this).prevAll().removeClass("star_normal").addClass("star_active");jQuery(this).removeClass("star_normal").addClass("star_active");jQuery("#starRatingValue").val(jQuery("#qsm_wrapper .star_active").length);if(jQuery("#qsm_wrapper .star_active").length==0){jQuery("#starRatingValue").val("all")}})}var newOptLaender654;var weekNames=['Zo.','Ma.','Di.','Wo.','Do.','Vr.','Za.'];var monthNames=['jan.','feb.','maart','april','mei','juni','juli','aug.','sept.','okt.','nov.','dec.'];var terminHin;var terminRueck;var pCalenderFrom;var pCalenderTo;var split_cus=TTCustomer.split("|");var ordner_name=split_cus[0];var KID=split_cus[1];var jsq_quick=split_cus[2];var jsq_popup=split_cus[3];var frameurl=split_cus[4];var searchurl=split_cus[5];var cacheurl="http://images.traveltainment.de/";var main_url="http://www2.vidado.com/";if(typeof(TTMainUrl)!='undefined'&&TTMainUrl!=''){main_url=TTMainUrl}if(typeof(TTCacheUrl)!='undefined'&&TTCacheUrl!=''){cacheurl=TTCacheUrl}if(typeof(TTAddVal)=='undefined'){var TTAddVal=''}if(typeof(TTImgUrl)=='undefined'){var TTImgUrl='http://www2.vidado.com/kunden_parameter/'}if(typeof(ibeDIR)=='undefined'){var ibeDIR='booking'}if(typeof(afhkenner)=='undefined'){var afhkenner=''}if(typeof(lang)=='undefined'){var lang=''}document.write('<div>');document.write('<div id="qsm_wrapper">&nbsp;loading...</div>');document.write('<div id="qsm_wrapper_bottom">');document.write('    <img src="'+pfad_images+'/qsm-wrapper-bottom.jpg" width="716" height="19" alt="">');document.write('</div>');document.write('<div style="display:none;" id="qsm_wrapper_termin" value="0"></div>');document.write('<div style="display:none;" id="qsm_wrapper_ruecktermin" value="0"></div>');document.write('</div>');document.write('<div style="clear:both;"></div>');var split_lines=TTLines.split("|");if(typeof(TTJumpMarks)!='undefined'&&TTJumpMarks!=''){var split_jumper=TTJumpMarks.split("|")}var jsq_jump='IBE_lami';var tmpx_split_lines=split_lines[0].split(",");var splitx_lines_type=tmpx_split_lines[0].split("#");switch(splitx_lines_type[0]){case'651':jsq_jump='IBE_pauschal';break;case'652':jsq_jump='IBE_flug';break;case'653':jsq_jump='IBE_erde';break;case'654':if(typeof(splitx_lines_type[1])!='undefined'&&splitx_lines_type[1]=='1'){jsq_jump='IBE_lamipa'}break;case'655':jsq_jump='IBE_fewo';break}var IBE_typ=jsq_jump;var jsq_art='';var jsFiles=[main_url+ibeDIR+'/thomascook_nl/js/ttafh'+afhkenner+'.js',main_url+ibeDIR+'/jslib/core/datehelper.js',main_url+ibeDIR+'/jslib/core/zeitraum.js',main_url+ibeDIR+'/jslib/core/reisende.js',main_url+ibeDIR+'/jslib/formulare/terminauswahl.js',main_url+ibeDIR+'/jslib/formulare/'+lang+'/formbase.js'];var defPersOptTxt={erw:["Volw.","Volw."],erw_short:["Volw.","Volw."],pers:["Volw.","Volw."],kinder:["j.","j."]};var setJSFiles='0';var typo3_termin;var typo3_ruecktermin;for(var p=0;p<split_lines.length;p++){var tmp_split_lines=split_lines[p].split(",");var split_lines_type=tmp_split_lines[0].split("#");typo3_termin='';typo3_ruecktermin='';if(p==0){if(TTDynSearchLDepartureTStamp!=''){typo3_termin=TTDynSearchLDepartureTStamp}if(TTDynSearchLReturnTStamp!=''){typo3_ruecktermin=TTDynSearchLReturnTStamp}}else if(p==1&&(TTDynSearchSliderCount==2)){if(TTDynSearchRDepartureTStamp!=''){typo3_termin=TTDynSearchRDepartureTStamp}if(TTDynSearchRReturnTStamp!=''){typo3_ruecktermin=TTDynSearchRReturnTStamp}}if(split_lines_type[0]=='654'){if(typeof(split_lines_type[1])!='undefined'&&split_lines_type[1]=='1'){var IBE_lamipa=new TTIBE("IBE_lamipa",654,"bengine");var req={flugdauer:'',zielgebiets_kenner:'',topRegion:'','nurflug':'','formular':'4',termin:typo3_termin,ruecktermin:typo3_ruecktermin,personen:'25;25'};IBE_lamipa.lineName='lamipa';IBE_lamipa.jumper='';if(frameurl==1&&typeof(split_jumper)!='undefined'&&split_jumper[p]!=''){IBE_lamipa.jumper=split_jumper[p]}IBE_lamipa.req=req;IBE_lamipa.req['engine']='pauschal';if(tmp_split_lines[2]!='0'){IBE_lamipa.req['kategorie']='-1'}if(tmp_split_lines[3]!='0'){IBE_lamipa.req['verpflegung']='-1'}if(tmp_split_lines[4]!='0'){IBE_lamipa.req['zimmer']='-1'}if(tmp_split_lines[5]!='0'){IBE_lamipa.req['marke']=''}if(tmp_split_lines[6]!='0'){IBE_lamipa.req['shotel']=''}if(tmp_split_lines[7]!='0'){IBE_lamipa.req['preis']=''}if(setJSFiles=='1'){IBE_lamipa.jsFiles=[]}else{IBE_lamipa.jsFiles=jsFiles;setJSFiles='1'}}else{var IBE_lami=new TTIBE("IBE_lami",654,"bengine");var trueck=parseInt((new Date()).getTime()/1000);trueck=trueck+(50*86400);if(typo3_ruecktermin!=''){trueck=typo3_ruecktermin}var req={flugdauer:'',zielgebiets_kenner:'',topRegion:'','nurflug':'','abflughafen':'AMS','dauer':'6_7-7','formular':'4',termin:typo3_termin,ruecktermin:trueck,personen:'25;25'};IBE_lami.lineName='lami';IBE_lami.jumper='';if(frameurl==1&&typeof(split_jumper)!='undefined'&&split_jumper[p]!=''){IBE_lami.jumper=split_jumper[p]}IBE_lami.req=req;IBE_lami.req['engine']='';if(tmp_split_lines[2]!='0'){IBE_lami.req['kategorie']='-1'}if(tmp_split_lines[3]!='0'){IBE_lami.req['verpflegung']='-1'}if(tmp_split_lines[4]!='0'){IBE_lami.req['zimmer']='-1'}if(tmp_split_lines[5]!='0'){IBE_lami.req['marke']=''}if(tmp_split_lines[6]!='0'){IBE_lami.req['shotel']=''}if(tmp_split_lines[7]!='0'){IBE_lami.req['preis']=''}if(setJSFiles=='1'){IBE_lami.jsFiles=[]}else{IBE_lami.jsFiles=jsFiles;setJSFiles='1'}}}if(split_lines_type[0]=='651'){var IBE_pauschal=new TTIBE("IBE_pauschal",651,"bengine");var req_pa={flugdauer:'',zielgebiets_kenner:'',topRegion:'','nurflug':'','formular':'4','engine':'pauschal',termin:typo3_termin,ruecktermin:typo3_ruecktermin,personen:'25;25'};IBE_pauschal.lineName='pauschal';IBE_pauschal.jumper='';if(frameurl==1&&typeof(split_jumper)!='undefined'&&split_jumper[p]!=''){IBE_pauschal.jumper=split_jumper[p]}IBE_pauschal.req=req_pa;if(tmp_split_lines[2]!='0'){IBE_pauschal.req['kategorie']='-1'}if(tmp_split_lines[3]!='0'){IBE_pauschal.req['verpflegung']='-1'}if(tmp_split_lines[4]!='0'){IBE_pauschal.req['zimmer']='-1'}if(tmp_split_lines[5]!='0'){IBE_pauschal.req['marke']=''}if(tmp_split_lines[6]!='0'){IBE_pauschal.req['shotel']=''}if(tmp_split_lines[7]!='0'){IBE_pauschal.req['preis']=''}if(setJSFiles=='1'){IBE_pauschal.jsFiles=[]}else{IBE_pauschal.jsFiles=jsFiles;setJSFiles='1'}}if(split_lines_type[0]=='652'){var IBE_flug=new TTIBE("IBE_flug",652,"bengine");var req_fl={flugdauer:'',zielgebiets_kenner:'',topRegion:'','nurflug':'1','formular':'3','engine':'',termin:typo3_termin,ruecktermin:typo3_ruecktermin,personen:'25;25',dauer:'6_7-7'};IBE_flug.lineName='flug';IBE_flug.jumper='';if(frameurl==1&&typeof(split_jumper)!='undefined'&&split_jumper[p]!=''){IBE_flug.jumper=split_jumper[p]}IBE_flug.req=req_fl;if(tmp_split_lines[5]!='0'){IBE_flug.req['marke']=''}if(tmp_split_lines[7]!='0'){IBE_flug.req['preis']=''}if(setJSFiles=='1'){IBE_flug.jsFiles=[]}else{IBE_flug.jsFiles=jsFiles;setJSFiles='1'}}if(split_lines_type[0]=='653'){var IBE_erde=new TTIBE("IBE_erde",653,"bengine");var trueck=parseInt((new Date()).getTime()/1000);trueck=trueck+(50*86400);if(typo3_ruecktermin!=''){trueck=typo3_ruecktermin}var req_er={flugdauer:'',zielgebiets_kenner:'',topRegion:'','nurflug':'','formular':'4','engine':'erde',termin:typo3_termin,ruecktermin:trueck,personen:'25;25',dauer:'-1'};IBE_erde.lineName='erde';IBE_erde.jumper='';if(frameurl==1&&typeof(split_jumper)!='undefined'&&split_jumper[p]!=''){IBE_erde.jumper=split_jumper[p]}IBE_erde.req=req_er;if(tmp_split_lines[2]!='0'){IBE_erde.req['kategorie']='-1'}if(tmp_split_lines[3]!='0'){IBE_erde.req['verpflegung']='-1'}if(tmp_split_lines[4]!='0'){IBE_erde.req['zimmer']='-1'}if(tmp_split_lines[5]!='0'){IBE_erde.req['marke']=''}if(tmp_split_lines[6]!='0'){IBE_erde.req['shotel']=''}if(tmp_split_lines[7]!='0'){IBE_erde.req['preis']=''}if(setJSFiles=='1'){IBE_erde.jsFiles=[]}else{IBE_erde.jsFiles=jsFiles;setJSFiles='1'}}if(split_lines_type[0]=='655'){var IBE_fewo=new TTIBE("IBE_fewo",655,"bengine");var req_fw={flugdauer:'',zielgebiets_kenner:'',topRegion:'','nurflug':'','formular':'4','engine':'fewo',termin:typo3_termin,ruecktermin:typo3_ruecktermin,personen:'25;25;25;25'};IBE_fewo.lineName='fewo';IBE_fewo.jumper='';if(frameurl==1&&typeof(split_jumper)!='undefined'&&split_jumper[p]!=''){IBE_fewo.jumper=split_jumper[p]}IBE_fewo.req=req_fw;if(tmp_split_lines[4]!='0'){IBE_fewo.req['zimmer']='-1'}if(tmp_split_lines[5]!='0'){IBE_fewo.req['marke']=''}if(tmp_split_lines[6]!='0'){IBE_fewo.req['shotel']=''}if(tmp_split_lines[7]!='0'){IBE_fewo.req['preis']=''}if(setJSFiles=='1'){IBE_fewo.jsFiles=[]}else{IBE_fewo.jsFiles=jsFiles;setJSFiles='1'}}}var showReiseziel='0';var showKategorie='0';var showVerpflegung='0';var showZimmer='0';var showMarke='0';var showShotel='0';var showPreis='0';function initOnLoad(){for(var p=0;p<split_lines.length;p++){var tmp_split_lines=split_lines[p].split(",");var split_lines_type=tmp_split_lines[0].split("#");if(split_lines_type[0]==this.port){showReiseziel=tmp_split_lines[1];showKategorie=tmp_split_lines[2];showVerpflegung=tmp_split_lines[3];showZimmer=tmp_split_lines[4];showMarke=tmp_split_lines[5];showShotel=tmp_split_lines[6];showPreis=tmp_split_lines[7];p=split_lines.length}}var mustHave=['DateHelperLoaded','termin_min_'+this.port,'termin_max_'+this.port,'Zeitraum','Terminauswahl','Reisende'];if(showReiseziel==2&&typeof(newOptLaender654)!='undefined'&&this.port==654){mustHave=mustHave.concat(['Zielauswahl','TTREGS_'+this.port])}else if(showReiseziel==2&&typeof(optLaender653)!='undefined'&&this.port==653){mustHave=mustHave.concat(['Zielauswahl','TTREGS_'+this.port])}if(this.port==651||this.port==652||this.port==654){mustHave.push('TTAFH')}if(this.port!=652){mustHave.push('TTREGS_'+this.port)}if(this.port==652){}if(this.port!=652&&this.port!=653){mustHave.push('optDauer')}if(showMarke=='1'){mustHave.push('arrMarke_'+this.port)}var injObj={Zeitraum:[],Reisende:[this.req['personen']]};for(var i in mustHave){if(typeof(window[mustHave[i]])=='undefined'){if(this.port==654){if(this.lineName=='lami'){window.setTimeout("IBE_lami.initOnLoad()",50)}else if(this.lineName=='lamipa'){window.setTimeout("IBE_lamipa.initOnLoad()",50)}}else if(this.port==651){window.setTimeout("IBE_pauschal.initOnLoad()",50)}else if(this.port==652){window.setTimeout("IBE_flug.initOnLoad()",50)}else if(this.port==653){window.setTimeout("IBE_erde.initOnLoad()",50)}else if(this.port==655){window.setTimeout("IBE_fewo.initOnLoad()",50)}return}}newOptLaender654=getCountryOptionsLamiPlus();newOptLaender654.sort();this.inject(injObj);this.init()}function RegGruppe(label,zk,fd,tr,port){this.label=label;this.zielgebiet=zk;this.ziel=fd;this.topregion=tr;this.tt_region=[];for(var x=0;x<window["TTREGS_"+port].length;x++){var ttziel=window["TTREGS_"+port][x].split('|');if(ttziel[3]!=ttziel[2]&&ttziel[2]==this.ziel)this.tt_region.push(window["TTREGS_"+port][x])}this.tt_region.sort()}function fillSelFromArray(selname,arrdata){var sb=document.getElementsByName(selname)[0]||0;if(!sb||sb.type!='select-one')return;var sel='';for(var i=0;i<arrdata.length;i++){var lbl=arrdata[i].split(';')[0];var val=arrdata[i].split(';')[1];if(selname=='marke'&&val=='VTO')lbl=this.req['klabelmarke'];sb.options[sb.options.length]=new Option(lbl,val);if(val==sel)sb.options[sb.options.length-1].selected=true}}function fillReiseziele(port){var regSelect=document.getElementById('qsm_wrapper').tt_region;if(port==652){for(t=0;t<window["TTFDRZ"].length;t++){var ttf=window["TTFDRZ"][t].split(';');regSelect.options[regSelect.options.length]=new Option(ttf[0],ttf[1])}}else{if(showReiseziel=='1'){if(this.port==654&&typeof(TTREGGROUPS_654)!='undefined'){var TTREGGROUPS=TTREGGROUPS_654}else if(this.port==651&&typeof(TTREGGROUPS_651)!='undefined'){var TTREGGROUPS=TTREGGROUPS_651}else if(this.port==653&&typeof(TTREGGROUPS_653)!='undefined'){var TTREGGROUPS=TTREGGROUPS_653}else if(this.port==655&&typeof(TTREGGROUPS_655)!='undefined'){var TTREGGROUPS=TTREGGROUPS_655}else{var TTREGGROUPS=[];for(var t=0;t<window["TTREGS_"+port].length;t++){var ziel=window["TTREGS_"+port][t].split('|');if(ziel[2]==ziel[3]){TTREGGROUPS[TTREGGROUPS.length]=new RegGruppe(ziel[0],ziel[1],ziel[2],ziel[3],port)}}if(this.port==654){var TTREGGROUPS_654=TTREGGROUPS}else if(this.port==651){var TTREGGROUPS_651=TTREGGROUPS}else if(this.port==653){var TTREGGROUPS_653=TTREGGROUPS}else if(this.port==655){var TTREGGROUPS_655=TTREGGROUPS}}for(t=0;t<TTREGGROUPS.length;t++){regSelect.options[regSelect.options.length]=new Option(TTREGGROUPS[t].label,TTREGGROUPS[t].zielgebiet+'|'+TTREGGROUPS[t].ziel+'|'+TTREGGROUPS[t].topregion);for(j=0;j<TTREGGROUPS[t].tt_region.length;j++){var ziel=TTREGGROUPS[t].tt_region[j].split('|');regSelect.options[regSelect.options.length]=new Option(String.fromCharCode(160,160,160)+ziel[0],ziel[1]+'|'+ziel[2]+'|'+ziel[3])}}}else if(showReiseziel=='2'&&(typeof(newOptLaender654)!='undefined'||typeof(optLaender653)!='undefined')){if(this.port==654){fillSelFromArray('tt_countries',newOptLaender654);IBE_lami.RZC()}else if(this.port==653){fillSelFromArray('tt_countries',optLaender653);IBE_erde.RZC()}}else{for(var t=0;t<window["TTREGS_"+port].length;t++){var ziel=window["TTREGS_"+port][t].split('|');regSelect.options[regSelect.options.length]=new Option(ziel[0],ziel[1]+'|'+ziel[2]+'|'+ziel[3])}}}}for(var p=0;p<split_lines.length;p++){var tmp_split_lines=split_lines[p].split(",");var split_lines_type=tmp_split_lines[0].split("#");if(split_lines_type[0]=='654'){if(typeof(split_lines_type[1])!='undefined'&&split_lines_type[1]=='1'){IBE_lamipa.initOnLoad=initOnLoad;IBE_lamipa.fillSelFromArray=fillSelFromArray;IBE_lamipa.fillReiseziele=fillReiseziele}else{IBE_lami.initOnLoad=initOnLoad;IBE_lami.fillSelFromArray=fillSelFromArray;IBE_lami.fillReiseziele=fillReiseziele}}if(split_lines_type[0]=='653'){IBE_erde.initOnLoad=initOnLoad;IBE_erde.fillSelFromArray=fillSelFromArray;IBE_erde.fillReiseziele=fillReiseziele}if(split_lines_type[0]=='652'){IBE_flug.initOnLoad=initOnLoad;IBE_flug.fillSelFromArray=fillSelFromArray;IBE_flug.fillReiseziele=fillReiseziele}if(split_lines_type[0]=='651'){IBE_pauschal.initOnLoad=initOnLoad;IBE_pauschal.fillSelFromArray=fillSelFromArray;IBE_pauschal.fillReiseziele=fillReiseziele}if(split_lines_type[0]=='655'){IBE_fewo.initOnLoad=initOnLoad;IBE_fewo.fillSelFromArray=fillSelFromArray;IBE_fewo.fillReiseziele=fillReiseziele}}function init(){if(typeof(FormBase)!='undefined'){this.monNames=["jan.","feb.","maart","april","mei","juni","juli","aug.","sept.","okt.","nov.","dec."];FormBase.apply(this);Terminauswahl.apply(this);if(showReiseziel=='2'&&(typeof(newOptLaender654)!='undefined'||typeof(optLaender653)!='undefined')){Zielauswahl.apply(this,[])}if(typeof(write_quickSearch)!='undefined'){write_quickSearch(this.port,this.lineName,this.jumper)}else{window.setTimeout(this.name+".init()",100);return}with(this){if(this.port==652){dauert()}else{if(this.port==653)fillSelFromArray('dauer',optDauerErde);else fillSelFromArray('dauer',optDauer)}if(this.port!=653){fillSelFromArray('abflughafen',TTAFH)}fillReiseziele(this.port);if(showVerpflegung=='2'){setRadios(['verpflegung'])}else if(showVerpflegung=='1'){fillSelFromArray('verpflegung',optVerpflegung)}}}else{window.setTimeout(this.name+".init()",100)}}function clearSelects(formular,arNamen){for(var i=0;i<arNamen.length;i++){var selname=arNamen[i];var sb=document.getElementById('jsq_formula')[selname]||0;if(!sb||sb.type!='select-one')continue;var stop=selname=="tt_region"?1:0;for(var j=sb.options.length;j>stop;j--){sb.options[j-1]=null}}}function getCountryOptionsLamiPlus(){var countryOptionsLamiPlus,counter,countryOptions,i,j,countryRegions,topRegionName,newCountryOptionElem;countryOptionsLamiPlus=[];try{if(optLaender654){counter=0;for(i=0;i<optLaender654.length;i++){countryOptions=optLaender654[i].split(';');if(countryOptions.length>0){if(countryOptions[1]){countryRegions=countryOptions[1].split(',');if(countryRegions.length>0){for(j=0;j<countryRegions.length;j++){topRegionName=getTopRegionNameByTopRegion(countryRegions[j]);if(topRegionName.length>0){newCountryOptionElem=topRegionName+';'+countryRegions[j];countryOptionsLamiPlus[counter]=newCountryOptionElem;counter++}}}}}}}}catch(e){alert("An error occured ("+e+")\n\nPlease reload the page.")}return countryOptionsLamiPlus}function getTopRegionNameByTopRegion(topRegion){var topRegionName='';if(TTREGS_654){for(var i=0;i<TTREGS_654.length;i++){var regions=TTREGS_654[i].split('|');if(regions[3]==topRegion){topRegionName=regions[0];break}}}return topRegionName}jQuery(document).ready(function(){var setInitStat='0';for(var p=0;p<split_lines.length;p++){var tmp_split_lines=split_lines[p].split(",");var split_lines_type=tmp_split_lines[0].split("#");if(split_lines_type[0]=='654'){if(typeof(split_lines_type[1])!='undefined'&&split_lines_type[1]=='1'){IBE_lamipa.init=init;IBE_lamipa.includeFiles();if(setInitStat=='0'){IBE_lamipa.initOnLoad();setInitStat='1'}}else{IBE_lami.init=init;IBE_lami.includeFiles();if(setInitStat=='0'){IBE_lami.initOnLoad();setInitStat='1'}}}if(split_lines_type[0]=='653'){IBE_erde.init=init;IBE_erde.includeFiles();if(setInitStat=='0'){IBE_erde.initOnLoad();setInitStat='1'}}if(split_lines_type[0]=='652'){IBE_flug.init=init;IBE_flug.includeFiles();if(setInitStat=='0'){IBE_flug.initOnLoad();setInitStat='1'}}if(split_lines_type[0]=='651'){IBE_pauschal.init=init;IBE_pauschal.includeFiles();if(setInitStat=='0'){IBE_pauschal.initOnLoad();setInitStat='1'}}if(split_lines_type[0]=='655'){IBE_fewo.init=init;IBE_fewo.includeFiles();if(setInitStat=='0'){IBE_fewo.initOnLoad();setInitStat='1'}}}});