
// -------------------------------------------------
// flash
// -------------------------------------------------

function FL_CloseFlash() {
   return CL_removePopup();
}

// ------------------------------------------
// contact form
// ------------------------------------------

var cu_children;
var cu_childControls = new Array();
var cu_isPostback = false;

function cu_showHideChildren() {
   var row = MM_findObj(cu_childControls[0]);

   if (cu_children && row) {
      var index = cu_children.selectedIndex;

      for (var i = 1; i < cu_childControls.length; i++) {
         var item = MM_findObj(cu_childControls[i]);
         if (item) {
            var cssClass = item.value == '' && cu_isPostback ? 'textinput2' : 'textinput';
            item.className = index >= i ? cssClass : 'hidden';
         }
      }
      row.className = index > 0 ? '' : 'hidden';
   }
}

function cu_registerChildren(id) {
   cu_children = MM_findObj(id);
}
function cu_BookingRequest(lang) {
    var arrival = $("#Quickanfrage .arrival").val();
    var departure = $("#Quickanfrage .departure").val();
    CL_popupDiv("/pages/onlineBooking.aspx?__language="+lang+"&arrival=" + arrival + "&departure=" + departure, 800, 600, null, 50);

    return null;

}

$(document).ready(function () {

    // -------------------------------------------------
    // booking
    // -------------------------------------------------

    $(".show-box").hover(function () {
        var item = $(this).parent();
        item.find(".box").show();
    });

    $(".box a").click(function () {
        var item = $(this).parent();
        item.hide();
    });

});