
document.write("<script type=\"text/javascript\" src=\"js_calendar.js\"></script>");
document.write("<script type=\"text/javascript\" src=\"js_calendar-setup.js\"></script>");
document.write("<script type=\"text/javascript\" src=\"js_calendar-define.js\"></script>");
document.write("<script type=\"text/javascript\" src=\"js_calendar-check.js\"></script>");

// Result Option checked

$(document).ready(function(){
 $(".offerTab input:radio:checked").parent().parent().addClass("offerChecked");
 $(".offerTab input:radio").click(function (){
  $(".resultblock").removeClass("offerChecked");
  $(this).parent().parent().addClass("offerChecked");
 });
});

// Object Details

$(document).ready(function(){
  $("a.roomlink").click(function () { 
      $(this).next(".divPosition").children(".details").show();
      return false;
  });
    
  $("a.close").click(function () { 
      $(this).parent(".details").hide();
      return false;
  });
  
$("div.details").each(function () { 
      if($(this).children(".detailsContent").html() == "")
      {
        var parentNode = $(this).parent();
        var aNode = parentNode.prev().prev();
        aNode.replaceWith("<span>" + aNode.text() + "</span>");
        $(this).empty();
      }
  });

});

// Manual Show/Hide

function plus(divID){
        var obj = document.getElementById(divID);
        obj.style.display = 'block';
}

function minus(divID){
        var obj = document.getElementById(divID);
        obj.style.display = 'none';
}
