/* lightbox int */
$(document).ready(function() {
    $(".lightbox").lightBox();
});


/* select style replacement */
$(document).ready(function() {
    $("#findAccomo select").selectBox({css:'select'});
});

$(document).ready(function() {
    $(".selectField select").selectBox({css:'select'});
});



$(document).ready(function(){
      $('#calendar_box table tr .action').hover(function() {
        $(this).addClass('over');
      }, function() {
        $(this).removeClass('over');
      });
      $('#calendar .wrapper div').hover(function() {
        $(this).addClass('over');
      }, function() {
        $(this).removeClass('over');
      });
      
      
      var content_dropyears = $("#dropyears").html();
      $("#dropyears").remove();
      $("body").append(content_dropyears);
      $("#dropyearsul").hide();
      $('#calendar .year').hover(function() {
			var offset = $(this).offset();
			var top_marg = $(this).height() + offset.top;
			$("#dropyearsul").css("top",top_marg).css("left",offset.left).show();
			$('#dropyearsul').hover(function() {
				$("#dropyearsul").show();
			}, function() {
				$("#dropyearsul").hide();
			});

	  }, function() {
           $("#dropyearsul").hide();
      });

      var content_dropmonth = $("#dropmonth").html();
      $("#dropmonth").remove();
      $("body").append(content_dropmonth);
      $("#dropmonthul").hide();
      $('#calendar .month').hover(function() {
			var offset = $(this).offset();
			var top_marg = $(this).height() + offset.top;
			$("#dropmonthul").css("top",top_marg).css("left",offset.left).show();

			$('#dropmonthul').hover(function() {
				$("#dropmonthul").show();
			}, function() {
				$("#dropmonthul").hide();
			});

	  }, function() {
           $("#dropmonthul").hide();
      });

});

