$(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();
      }
  });

});


function plus(divID){
        var obj = document.getElementById(divID);
        obj.style.display = 'block';
}

function minus(divID){
        var obj = document.getElementById(divID);
        obj.style.display = 'none';
}