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}", height:"600", inline:true, href:"#ph_desk", rel:'ph1'});
  j$(".btn_room10").colorbox({current:"{current}/{total}", height:"600", inline:true, href:"#ph_room10", rel:'ph1'});
  j$(".btn_room20").colorbox({current:"{current}/{total}", height:"600", inline:true, href:"#ph_room20", rel:'ph1'});
  j$(".btn_room_tc1").colorbox({current:"{current}/{total}", height:"600", inline:true, href:"#ph_room_tc1", rel:'ph1'});
  j$(".btn_room_tc2").colorbox({current:"{current}/{total}", height:"600", inline:true, href:"#ph_room_tc2", rel:'ph1'});
  j$(".btn_shirakaba").colorbox({current:"{current}/{total}", height:"600", inline:true, href:"#ph_shirakaba", rel:'ph1'});
  j$(".btn_karamatsu").colorbox({current:"{current}/{total}", height:"600", inline:true, href:"#ph_karamatsu", rel:'ph1'});
  j$(".btn_dining_large").colorbox({current:"{current}/{total}", height:"600", inline:true, href:"#ph_dining_large", rel:'ph1'});
  j$(".btn_dining_small").colorbox({current:"{current}/{total}", height:"600", inline:true, href:"#ph_dining_small", rel:'ph1'});
  j$(".btn_bath_large_mens").colorbox({current:"{current}/{total}", height:"600", inline:true, href:"#ph_bath_large_mens", rel:'ph1'});
  j$(".btn_bath_large_womens").colorbox({current:"{current}/{total}", height:"600", inline:true, href:"#ph_bath_large_womens", rel:'ph1'});
  j$(".btn_bath_small_mens").colorbox({current:"{current}/{total}", height:"600", inline:true, href:"#ph_bath_small_mens", rel:'ph1'});
  j$(".btn_bath_small_womens").colorbox({current:"{current}/{total}", height:"600", inline:true, href:"#ph_bath_small_womens", rel:'ph1'});
  j$(".btn_ph_nurses").colorbox({current:"{current}/{total}", height:"600", inline:true, href:"#ph_nurses", rel:'ph1'});
  j$(".btn_dryingroom").colorbox({current:"{current}/{total}", height:"600", inline:true, href:"#ph_dryingroom", rel:'ph1'});
  j$(".btn_ph_books").colorbox({current:"{current}/{total}", height:"600", inline:true, href:"#ph_books", rel:'ph1'});
  j$(".btn_ph_lounge").colorbox({current:"{current}/{total}", height:"600", inline:true, href:"#ph_lounge", rel:'ph1'});
  j$(".btn_sink").colorbox({current:"{current}/{total}", height:"600", inline:true, href:"#ph_sink", rel:'ph1'});
  j$(".btn_ph_shoe").colorbox({current:"{current}/{total}", height:"600", inline:true, href:"#ph_shoe", rel:'ph1'});

  j$(".btn_fire1").colorbox({current:"{current}/{total}", height:"600", inline:true, href:"#ph_fire1", rel:'ph2'});
  j$(".btn_fire2").colorbox({current:"{current}/{total}", height:"600", inline:true, href:"#ph_fire2", rel:'ph2'});
  j$(".btn_cook1").colorbox({current:"{current}/{total}", height:"600", inline:true, href:"#ph_cook1", rel:'ph2'});
  j$(".btn_cook2").colorbox({current:"{current}/{total}", height:"600", inline:true, href:"#ph_cook2", rel:'ph2'});
  j$(".btn_ground").colorbox({current:"{current}/{total}", height:"600", inline:true, href:"#ph_ground", rel:'ph2'});
  j$(".btn_gym").colorbox({current:"{current}/{total}", height:"600", inline:true, href:"#ph_gym", rel:'ph2'});
  j$(".btn_park").colorbox({current:"{current}/{total}", height:"600", inline:true, href:"#ph_park", rel:'ph2'});
  j$(".btn_buspark").colorbox({current:"{current}/{total}", height:"600", inline:true, href:"#ph_buspark", rel:'ph2'});

  j$(".btn_yonaki").colorbox({current:"{current}/{total}", height:"600", inline:true, href:"#ph_yonaki", rel:'ph2'});
};

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"
  });
}
