jQuery.noConflict();
var j$ = jQuery;

init_meals = function() {
  j$(".btn_1").colorbox({current:"{current}/{total}", height:"600", inline:true, href:"#ml_1", rel:'meals'});
  j$(".btn_2-1").colorbox({current:"{current}/{total}", height:"600", inline:true, href:"#ml_2-1", rel:'meals'});
  j$(".btn_2-2").colorbox({current:"{current}/{total}", height:"600", inline:true, href:"#ml_2-2", rel:'meals'});
  j$(".btn_3").colorbox({current:"{current}/{total}", height:"600", inline:true, href:"#ml_3", rel:'meals'});
  j$(".btn_4-1").colorbox({current:"{current}/{total}", height:"600", inline:true, href:"#ml_4-1", rel:'meals'});
  j$(".btn_4-2").colorbox({current:"{current}/{total}", height:"600", inline:true, href:"#ml_4-2", rel:'meals'});
  j$(".btn_4-3").colorbox({current:"{current}/{total}", height:"600", inline:true, href:"#ml_4-3", rel:'meals'});
};

init_staff = function() {
  j$(".btn_01").colorbox({current:"{current}/{total}", width:"600", height:"450", inline:true, href:"#staff_01", rel:'staff'});
  j$(".btn_02").colorbox({current:"{current}/{total}", width:"600", height:"450", inline:true, href:"#staff_02", rel:'staff'});
  j$(".btn_03").colorbox({current:"{current}/{total}", width:"600", height:"450", inline:true, href:"#staff_03", rel:'staff'});
  j$(".btn_04").colorbox({current:"{current}/{total}", width:"600", height:"450", inline:true, href:"#staff_04", rel:'staff'});
  j$(".btn_05").colorbox({current:"{current}/{total}", width:"600", height:"450", inline:true, href:"#staff_05", rel:'staff'});
  j$(".btn_06").colorbox({current:"{current}/{total}", width:"600", height:"450", inline:true, href:"#staff_06", rel:'staff'});
  j$(".btn_07").colorbox({current:"{current}/{total}", width:"600", height:"450", inline:true, href:"#staff_07", rel:'staff'});
  j$(".btn_08").colorbox({current:"{current}/{total}", width:"600", height:"450", inline:true, href:"#staff_08", rel:'staff'});
  j$(".btn_09").colorbox({current:"{current}/{total}", width:"600", height:"450", inline:true, href:"#staff_09", rel:'staff'});
  j$(".btn_10").colorbox({current:"{current}/{total}", width:"600", height:"450", inline:true, href:"#staff_10", rel:'staff'});
  j$(".btn_11").colorbox({current:"{current}/{total}", width:"600", height:"450", inline:true, href:"#staff_11", rel:'staff'});
  j$(".btn_12").colorbox({current:"{current}/{total}", width:"600", height:"450", inline:true, href:"#staff_12", rel:'staff'});
  j$(".btn_13").colorbox({current:"{current}/{total}", width:"600", height:"450", inline:true, href:"#staff_13", rel:'staff'});
  j$(".btn_14").colorbox({current:"{current}/{total}", width:"600", height:"450", inline:true, href:"#staff_14", rel:'staff'});
  j$(".btn_15").colorbox({current:"{current}/{total}", width:"600", height:"450", inline:true, href:"#staff_15", rel:'staff'});
  j$(".btn_16").colorbox({current:"{current}/{total}", width:"600", height:"450", inline:true, href:"#staff_16", rel:'staff'});
  j$(".btn_17").colorbox({current:"{current}/{total}", width:"600", height:"450", inline:true, href:"#staff_17", rel:'staff'});
  j$(".btn_18").colorbox({current:"{current}/{total}", width:"600", height:"450", inline:true, href:"#staff_18", rel:'staff'});
  j$(".btn_19").colorbox({current:"{current}/{total}", width:"600", height:"450", inline:true, href:"#staff_19", rel:'staff'});
};

init_facilities = function() {
  j$(".btn_lobby").colorbox({current:"{current}/{total}", current:"{current}/{total}", height:"600", inline:true, href:"#ph_lobby", rel:'ph1'});
  j$(".btn_rooma").colorbox({current:"{current}/{total}", height:"600", inline:true, href:"#ph_rooma", rel:'ph1'});
  j$(".btn_roomb").colorbox({current:"{current}/{total}", height:"600", inline:true, href:"#ph_roomb", rel:'ph1'});
  j$(".btn_roomc").colorbox({current:"{current}/{total}", height:"600", inline:true, href:"#ph_roomc", rel:'ph1'});
  j$(".btn_roomd").colorbox({current:"{current}/{total}", height:"600", inline:true, href:"#ph_roomd", rel:'ph1'});
  j$(".btn_sink").colorbox({current:"{current}/{total}", height:"600", inline:true, href:"#ph_sink", rel:'ph1'});
  j$(".btn_books").colorbox({current:"{current}/{total}", height:"600", inline:true, href:"#ph_books", rel:'ph1'});
  j$(".btn_datsui").colorbox({current:"{current}/{total}", height:"600", inline:true, href:"#ph_datsui", rel:'ph1'});
  j$(".btn_bath").colorbox({current:"{current}/{total}", height:"600", inline:true, href:"#ph_bath", rel:'ph1'});
  j$(".btn_piloti").colorbox({current:"{current}/{total}", height:"600", inline:true, href:"#ph_piloti", rel:'ph1'});
  j$(".btn_meeting").colorbox({current:"{current}/{total}", height:"600", inline:true, href:"#ph_meeting", rel:'ph1'});
  j$(".btn_playhall").colorbox({current:"{current}/{total}", height:"600", inline:true, href:"#ph_playhall", rel:'ph1'});
  j$(".btn_planetarium").colorbox({current:"{current}/{total}", height:"600", inline:true, href:"#ph_planetarium", rel:'ph1'});
  j$(".btn_tent").colorbox({current:"{current}/{total}", height:"600", inline:true, href:"#ph_tent", rel:'ph1'});
  j$(".btn_bungalow").colorbox({current:"{current}/{total}", height:"600", inline:true, href:"#ph_bungalow", rel:'ph1'});
  j$(".btn_cookhouse").colorbox({current:"{current}/{total}", height:"600", inline:true, href:"#ph_cookhouse", rel:'ph1'});
  j$(".btn_dining").colorbox({current:"{current}/{total}", height:"600", inline:true, href:"#ph_dining", rel:'ph1'});
  j$(".btn_fire").colorbox({current:"{current}/{total}", height:"600", inline:true, href:"#ph_fire", rel:'ph1'});
  j$(".btn_space").colorbox({current:"{current}/{total}", height:"600", inline:true, href:"#ph_space", rel:'ph1'});
  j$(".btn_camp").colorbox({current:"{current}/{total}", height:"600", inline:true, href:"#ph_camp", rel:'ph1'});
  j$(".btn_refuge").colorbox({current:"{current}/{total}", height:"600", inline:true, href:"#ph_refuge", rel:'ph1'});
};

init_inquiry = function() {
  j$("a.dis").click(function(){
    j$('div.confirm').toggle();
    j$('div.contactinfo').toggle();
  });
};

init_calendar = function() {
  j$("div#page-calender tr:nth-child(3n+2) td").css("background-color", "#f0f0f0");

  j$("div#page-calender tr:nth-child(3n) td").css({
    "border-bottom": "0px",
    "color": "red"
  });

  j$("div#page-calender tr:nth-child(3n+1) td").css({
    "color": "blue"
  });

  j$("div#page-calender tr:first-child td").css({
    "color": "black",
    "border": "0px",
    "border-bottom": "1px solid gray"
  });

  j$("div#page-calender td:first-child").css({
    "border": "0px",
    "border-right": "1px solid gray",
    "background-color": "white",
    "text-align": "right",
    "padding": "2px 5px"
  });

  j$("div#page-calender tr:first-child td:first-child").css("border", "0px");
}
