jQuery.noConflict();
var j$ = jQuery;

init_meals = function() {
  j$(".btn_1-1-1").colorbox({current:"{current}/{total}", height:"450", inline:true, href:"#ml_1-1-1", rel:'meals'});
  j$(".btn_1-1-2").colorbox({current:"{current}/{total}", height:"450", inline:true, href:"#ml_1-1-2", rel:'meals'});
  j$(".btn_1-1-3").colorbox({current:"{current}/{total}", height:"450", inline:true, href:"#ml_1-1-3", rel:'meals'});
  j$(".btn_1-2-1").colorbox({current:"{current}/{total}", height:"450", inline:true, href:"#ml_1-2-1", rel:'meals'});
  j$(".btn_1-2-2").colorbox({current:"{current}/{total}", height:"450", inline:true, href:"#ml_1-2-2", rel:'meals'});
  j$(".btn_1-2-3").colorbox({current:"{current}/{total}", height:"450", inline:true, href:"#ml_1-2-3", rel:'meals'});
  j$(".btn_1-3-1").colorbox({current:"{current}/{total}", height:"450", inline:true, href:"#ml_1-3-1", rel:'meals'});
  j$(".btn_1-3-2").colorbox({current:"{current}/{total}", height:"450", inline:true, href:"#ml_1-3-2", rel:'meals'});
  j$(".btn_1-3-3").colorbox({current:"{current}/{total}", height:"450", inline:true, href:"#ml_1-3-3", rel:'meals'});
  j$(".btn_1-4").colorbox({current:"{current}/{total}", height:"450", inline:true, href:"#ml_1-4", rel:'meals'});
  j$(".btn_3-1").colorbox({current:"{current}/{total}", height:"450", inline:true, href:"#ml_3-1", rel:'meals'});
  j$(".btn_3-2").colorbox({current:"{current}/{total}", height:"450", inline:true, href:"#ml_3-2", rel:'meals'});
  j$(".btn_3-3").colorbox({current:"{current}/{total}", height:"450", inline:true, href:"#ml_3-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_desk").colorbox({current:"{current}/{total}", current:"{current}/{total}", height:"600", inline:true, href:"#ph_desk", rel:'ph1'});
  j$(".btn_rooma").colorbox({current:"{current}/{total}", current:"{current}/{total}", height:"600", inline:true, href:"#ph_rooma", rel:'ph1'});
  j$(".btn_roomb").colorbox({current:"{current}/{total}", current:"{current}/{total}", height:"600", inline:true, href:"#ph_roomb", rel:'ph1'});
  j$(".btn_roomc").colorbox({current:"{current}/{total}", current:"{current}/{total}", height:"600", inline:true, href:"#ph_roomc", rel:'ph1'});
  j$(".btn_sink").colorbox({current:"{current}/{total}", current:"{current}/{total}", height:"600", inline:true, href:"#ph_sink", rel:'ph1'});
  j$(".btn_bath_large_mens").colorbox({current:"{current}/{total}", current:"{current}/{total}", height:"600", inline:true, href:"#ph_bath_large_mens", rel:'ph1'});
  j$(".btn_bath_large_womens").colorbox({current:"{current}/{total}", current:"{current}/{total}", height:"600", inline:true, href:"#ph_bath_large_womens", rel:'ph1'});
  j$(".btn_bath_small_mens").colorbox({current:"{current}/{total}", current:"{current}/{total}", height:"600", inline:true, href:"#ph_bath_small_mens", rel:'ph1'});
  j$(".btn_bath_small_womens").colorbox({current:"{current}/{total}", current:"{current}/{total}", height:"600", inline:true, href:"#ph_bath_small_womens", rel:'ph1'});
  j$(".btn_dining").colorbox({current:"{current}/{total}", current:"{current}/{total}", height:"600", inline:true, href:"#ph_dining", rel:'ph1'});
  j$(".btn_washhands").colorbox({current:"{current}/{total}", current:"{current}/{total}", height:"600", inline:true, href:"#ph_washhands", rel:'ph1'});
  j$(".btn_nurses").colorbox({current:"{current}/{total}", current:"{current}/{total}", height:"600", inline:true, href:"#ph_nurses", rel:'ph1'});
  j$(".btn_station").colorbox({current:"{current}/{total}", current:"{current}/{total}", height:"600", inline:true, href:"#ph_station", rel:'ph1'});
  j$(".btn_training").colorbox({current:"{current}/{total}", current:"{current}/{total}", height:"600", inline:true, href:"#ph_training", rel:'ph1'});
  j$(".btn_lib").colorbox({current:"{current}/{total}", current:"{current}/{total}", height:"600", inline:true, href:"#ph_lib", rel:'ph1'});
  j$(".btn_dryingroom").colorbox({current:"{current}/{total}", current:"{current}/{total}", height:"600", inline:true, href:"#ph_dryingroom", rel:'ph1'});
  j$(".btn_shoe").colorbox({current:"{current}/{total}", current:"{current}/{total}", height:"600", inline:true, href:"#ph_shoe", rel:'ph1'});
  j$(".btn_building").colorbox({current:"{current}/{total}", current:"{current}/{total}", height:"600", inline:true, href:"#ph_building", rel:'ph1'});
  j$(".btn_hiroka").colorbox({current:"{current}/{total}", current:"{current}/{total}", height:"600", inline:true, href:"#ph_hiroka", rel:'ph1'});
  j$(".btn_park").colorbox({current:"{current}/{total}", current:"{current}/{total}", height:"600", inline:true, href:"#ph_park", 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(2n+2) td").css({
    "background-color": "#f0f0f0",
    "border-bottom": "0px"
  });

  j$("div#page-calender tr:nth-child(2n+1) td").css({
    "color": "red"
  });

  j$("div#page-calender tr:first-child td").css({
    "color": "black",
    "border": "0px",
    "border-bottom": "1px solid gray"
  });
}

