// Banner var delay=55; var speed=1; var x=0; var x2=1100; var imageBannerWidth = 0; var posLeft = 0; function move_banner() { if (speed != 0) { document.getElementById("imageBanner1").style.left = x + "px";; document.getElementById("imageBanner2").style.left = x2 + "px";; x-=speed; x2-=speed; if(x2==0) x = posLeft; if(x ==0) x2 = posLeft; setTimeout("move_banner()", delay); } } function start_banner() { if (document.getElementById("imageBanner1")) { imageBannerWidth = document.getElementById("imageBanner1").style.width.substr(0,document.getElementById("imageBanner1").style.width.length-2); document.getElementById("imageBanner2").innerHTML = document.getElementById("imageBanner1").innerHTML document.getElementById("imageBanner1").style.left = "0"; posLeft = imageBannerWidth; if (speed < 0) { posLeft = -1 * imageBannerWidth; } x2 = posLeft; document.getElementById("imageBanner2").style.left = posLeft + "px"; document.getElementById("imageBanner2").style.width = imageBannerWidth + "px"; move_banner(); } } var lastSearchResult = false; function set_redLine_menuPointer() { var topMenu = top.document.getElementById('active_topMenu'); var subMenu = top.document.getElementById('active_subMenu'); if (topMenu || subMenu) { top.document.getElementById('redLine_top_area').style.backgroundImage = "url('../templates/default/images/redStatusLine_top.gif')"; top.document.getElementById('redLine_left_area').style.backgroundImage = "url('../templates/default/images/redStatusLine_arrowLeft.gif')"; if (topMenu) { top.document.getElementById('redLine_area').style.visibility = "visible"; var selectedTopMenuWidth = topMenu.offsetWidth; var selectedTopMenuLeft = topMenu.offsetLeft - top.document.getElementById("redLine_area").offsetLeft; top.document.getElementById("redLine_top_area").style.left = selectedTopMenuLeft + Math.floor(selectedTopMenuWidth/2) + "px"; } if (subMenu) { top.document.getElementById('subMenu_area').style.visibility = "visible"; var selectedSubMenuHeight = subMenu.offsetHeight; var selectedSubMenuTop = top.document.getElementById("left_area").offsetTop + top.document.getElementById("subMenu_area").offsetTop + subMenu.offsetTop - top.document.getElementById("redLine_area").offsetTop; top.document.getElementById("redLine_left_area").style.top = selectedSubMenuTop + Math.ceil(selectedSubMenuHeight/2) - 4 + "px"; } else { if (top.document.getElementById('subMenu_area')) { top.document.getElementById("redLine_left_area").style.top = 45 + "px"; } else { top.document.getElementById('redLine_area').style.visibility = "hidden"; } } } else { top.document.getElementById('redLine_area').style.visibility = "visible"; top.document.getElementById('redLine_top_area').style.backgroundImage = "url('../templates/default/images/blank.gif')"; top.document.getElementById("redLine_top_area").style.left = "15px"; top.document.getElementById('redLine_left_area').style.backgroundImage = "url('../templates/default/images/blank.gif')"; top.document.getElementById('redLine_left_area').style.top = "14px"; if (top.document.getElementById('subMenu_area')) { top.document.getElementById('subMenu_area').style.visibility = "hidden"; } // top.document.getElementById('redLine_area').style.visibility = "hidden"; // if (top.document.getElementById('subMenu_area')) { // top.document.getElementById('subMenu_area').style.visibility = "hidden"; // } } } function setLinkEvents() { var maxTargets = document.links.length; for (var i = 0; i < maxTargets; i++) { if (document.links[i].target=="publicDocumentFrame") { $(document.links[i]).addEvent('click',function(event){ show_pleaseWait() }); } } } function show_content() { if (this.name == "publicDocumentFrame") { if (parent.document.getElementById('content_area').scrollTop) { parent.document.getElementById('content_area').scrollTop = 0; } if (parent.document.getElementById("left_area") && document.getElementById("left_area")) { parent.document.getElementById("left_area").innerHTML = document.getElementById("left_area").innerHTML; } if (parent.document.getElementById("topMenu_area") && document.getElementById("topMenu_area")) { parent.document.getElementById("topMenu_area").innerHTML = document.getElementById("topMenu_area").innerHTML; } if (parent.document.getElementById("bottomMenu_area") && document.getElementById("bottomMenu_area")) { parent.document.getElementById("bottomMenu_area").innerHTML = document.getElementById("bottomMenu_area").innerHTML; } if (parent.document.getElementById("content_area") && document.getElementById("content_area")) { parent.document.getElementById("content_area").innerHTML = document.getElementById("content_area").innerHTML; } if (parent.document.getElementById("icons") && document.getElementById("icons")) { parent.document.getElementById("icons").innerHTML = document.getElementById("icons").innerHTML; } if (top.document.getElementById("pageTop")) { top.document.getElementById("pageTop").focus(); } top.setLightBox(); if (top.document.getElementById("pleaseWait")) { top.setLinkEvents(); top.document.getElementById("pleaseWait").style.top = "-500px"; top.document.getElementById("pleaseWait").style.left = ""; top.document.getElementById("pleaseWait").style.right = ""; top.document.getElementById("pleaseWait").style.bottom = ""; top.document.getElementById("pleaseWait").style.visibility = "hidden"; top.document.getElementById("pleaseWaitIMG").style.top = "-500px"; top.document.getElementById("pleaseWaitIMG").style.visibility = "hidden"; } } } function show_pleaseWait() { if (/Edge\/\d./i.test(navigator.userAgent)){ // This is Microsoft Edge // window.alert('Microsoft Edge'); } else { if (parent.document.getElementById("pleaseWait")) { top.document.getElementById("pleaseWait").style.top = "95px"; top.document.getElementById("pleaseWait").style.left = "150px"; top.document.getElementById("pleaseWait").style.right = "0"; top.document.getElementById("pleaseWait").style.bottom = "27px"; top.document.getElementById("pleaseWait").style.visibility = "visible"; top.document.getElementById("pleaseWaitIMG").style.top = "40%"; top.document.getElementById("pleaseWaitIMG").style.visibility = "visible"; } } } function setSearchHeight() { if (top.document.getElementById('travelSearchArea') && document.getElementById('travelSearchArea')) { var maxHeightSearch = 0; var fullRowFormElementsGet = new Array('itemsCountries','itemsRegions','itemsCities','itemsCategories'); for (var i=0;i < fullRowFormElementsGet.length;i++) { if (maxHeightSearch < top.document.getElementById(fullRowFormElementsGet[i]).offsetHeight) { maxHeightSearch = top.document.getElementById(fullRowFormElementsGet[i]).offsetHeight; } } var fullRowFormElementsSet = new Array('searchCountry','searchRegion','searchCity','searchCategory'); for (var i=0;i < fullRowFormElementsSet.length;i++) { top.document.getElementById(fullRowFormElementsSet[i]).style.height = maxHeightSearch + 110 + "px"; } } } function goBackList() { } function checkData() { var formElementID = "firstname"; var formElement = "formData[" + formElementID + "]"; var alertText = "Bitte geben Sie Ihren Vornamen ein."; if (top.document.getElementById(formElementID)) { if (top.document.reservationForm.elements[formElement].value == "") { alert(alertText); top.document.reservationForm.elements[formElement].focus(); return false; } } formElementID = "lastname"; formElement = "formData[" + formElementID + "]"; alertText = "Bitte geben Sie Ihren Nachnamen ein."; if (top.document.getElementById(formElementID)) { if (top.document.reservationForm.elements[formElement].value == "") { alert(alertText); top.document.reservationForm.elements[formElement].focus(); return false; } } formElementID = "telefon"; formElement = "formData[" + formElementID + "]"; alertText = "Bitte geben Ihre Telefonnummer ein."; if (top.document.getElementById(formElementID)) { if (top.document.reservationForm.elements[formElement].value == "") { alert(alertText); top.document.reservationForm.elements[formElement].focus(); return false; } } formElementID = "email"; formElement = "formData[email]"; alertText = "Bitte geben Ihre E-Mailadresse ein."; if (top.document.getElementById(formElementID)) { if (top.document.reservationForm.elements[formElement].value == "") { alert(alertText); top.document.reservationForm.elements[formElement].focus(); return false; } } formElementID = "street"; formElement = "formData[street]"; alertText = "Bitte geben Sie Ihre Straße ein."; if (top.document.getElementById(formElementID)) { if (top.document.reservationForm.elements[formElement].value == "") { alert(alertText); top.document.reservationForm.elements[formElement].focus(); return false; } } formElementID = "plz"; formElement = "formData[plz]"; alertText = "Bitte geben Sie Ihre Postleitzahl ein."; if (top.document.getElementById(formElementID)) { if (top.document.reservationForm.elements[formElement].value == "") { alert(alertText); top.document.reservationForm.elements[formElement].focus(); return false; } } formElementID = "city"; formElement = "formData[city]"; alertText = "Bitte geben Sie einen Ort ein."; if (top.document.getElementById(formElementID)) { if (top.document.reservationForm.elements[formElement].value == "") { alert(alertText); top.document.reservationForm.elements[formElement].focus(); return false; } } formElementID = "subject"; formElement = "formData[subject]"; alertText = "Bitte geben Sie ein Betreff ein."; if (top.document.getElementById(formElementID)) { if (top.document.reservationForm.elements[formElement].value == "") { alert(alertText); top.document.reservationForm.elements[formElement].focus(); return false; } } /* formElementID = "accept"; formElement = "formData[" + formElementID + "]"; alertText = "Sie müssen die Reisebedingungen bestätigen um eine Buchungsanfrage stellen zu k´┐Żnnen."; if (top.document.getElementById(formElementID)) { if (top.document.reservationForm.elements[formElement].checked == false) { alert(alertText); top.document.reservationForm.elements[formElement].focus(); return false; } } */ return true; } function setDate(formDate) { top.top.document.reservationForm.elements['formData[von]'].value = formDate.substring(0,10); top.top.document.reservationForm.elements['formData[bis]'].value = formDate.substring(11,22); } function open_gallery(type,gID,jID) { // var gallerWin = window.open("./gallery/?type=" + type + "&gID=" + gID + "&iID=" + iID,"GalleryWindow","dependent=yes,left=0,top=0,location=no,menubar=no,resizable=yes,fullscreen=yes"); // var gallerWin = window.open("./gallery/?type=" + type + "&gID=" + gID + "&iID=" + iID,"GalleryWindow","width=" + screen.availWidth + ",height=" + screen.availHeight + ",dependent=yes,left=0,top=0,location=no,menubar=no,resizable=yes,fullscreen=yes"); // var gallerWin = window.open("./gallery/?type=" + type + "&gID=" + gID + "&iID=" + iID,"GalleryWindow",""); var galleryWin = window.open("./gallery/?type=" + type + "&gID=" + gID + "&jID=" + jID,"GalleryWindow","width=1024,height=768,dependent=yes,left=0,top=0,location=no,menubar=no,resizable=yes,fullscreen=no"); } function open_ARB() { var arbWin = window.open("./?cTpl=content&cID=6431c3b93576a00717dd8626167169be&print=1","ARBWin","width=760,dependent=yes,location=no,scrollbars=yes,menubar=yes,resizable=yes,fullscreen=no"); // top.window.focus(); } function showFormElement(elemntNo) { top.document.getElementById('formLine_' + top.document.forms[0].elements[elemntNo].value).style.position = 'static'; top.document.getElementById('formLine_' + top.document.forms[0].elements[elemntNo].value).style.height = 'auto'; top.document.getElementById('formLine_' + top.document.forms[0].elements[elemntNo].value).style.overflow = 'visible'; top.document.getElementById('formLine_' + top.document.forms[0].elements[elemntNo].value).style.marginTtop = '2px'; top.document.getElementById('formLine_' + top.document.forms[0].elements[elemntNo].value).style.marginBottom = '6px'; } function hideFormElement(elemntNo) { top.document.getElementById('formLine_' + top.document.forms[0].elements[elemntNo].value).style.position = 'absolute'; top.document.getElementById('formLine_' + top.document.forms[0].elements[elemntNo].value).style.height = '0px'; top.document.getElementById('formLine_' + top.document.forms[0].elements[elemntNo].value).style.overflow = 'hidden'; top.document.getElementById('formLine_' + top.document.forms[0].elements[elemntNo].value).style.marginTtop = '0px'; top.document.getElementById('formLine_' + top.document.forms[0].elements[elemntNo].value).style.marginBottom = '0px'; } function selectChar(table,selectedChar) { for (var i=0;i < top.document.forms[0].elements.length;i++) { if (top.document.forms[0].elements[i].name.substr(0,10) == table.substr(0,10)) { if(top.document.getElementById('itemName_' + top.document.forms[0].elements[i].value).innerHTML.substr(0,1) == selectedChar) { showFormElement(i); } else { hideFormElement(i); } } } setSearchHeight(); } function showSelected(showRegions,showCities) { var noCities = 0; var noRegions = 0; for (var i=0;i < top.document.forms[0].elements.length;i++) { if (top.document.forms[0].elements[i].name.substr(0,12) == "selectRegion"&& showRegions) { if(top.document.forms[0].elements[i].checked) { showFormElement(i); noRegions++; } else { hideFormElement(i); } } if (top.document.forms[0].elements[i].name.substr(0,10) == "selectCity" && showCities) { if(top.document.forms[0].elements[i].checked) { showFormElement(i); noCities++; } else { hideFormElement(i); } } } setSearchHeight(); } function showFirst(showRegions,showCities,maxItems) { var noCities = 0; var noRegions = 0; for (var i=0;i < top.document.forms[0].elements.length;i++) { if (top.document.forms[0].elements[i].name.substr(0,12) == "selectRegion" && showRegions) { if((top.document.forms[0].elements[i].defaultChecked && (noRegions < maxItems)) || top.document.forms[0].elements[i].checked) { showFormElement(i); noRegions++; } else { hideFormElement(i); } } if (top.document.forms[0].elements[i].name.substr(0,10) == "selectCity" && showCities) { if(top.document.forms[0].elements[i].defaultChecked && (noCities < maxItems)) { showFormElement(i); noCities++; } else { hideFormElement(i); } } } setSearchHeight(); } function showObject(object) { var Ausgabe = ""; for (var Eigenschaft in object) Ausgabe = Ausgabe + "#" + Eigenschaft + ": " + object[Eigenschaft] + "###"; alert(Ausgabe); // document.write(Ausgabe); } function checkForm_newsletter() { if (!document.forms["formNewsletter"].elements["formNewsletter[name]"].value) { alert("Bitte geben Sie Ihren Namen ein."); document.forms["formNewsletter"].elements["formNewsletter[name]"].focus(); return false; } if (!document.forms["formNewsletter"].elements["formNewsletter[email]"].value) { alert("Bitte geben Sie Ihre E-Mail Adresse ein."); document.forms["formNewsletter"].elements["formNewsletter[email]"].focus(); return false; } return true; }