/* Minification failed. Returning unminified contents. (5,1-2): run-time warning JS1195: Expected expression: < (5,25-26): run-time warning JS1004: Expected ';': b (7,1-2): run-time warning JS1195: Expected expression: i (7,57-58): run-time warning JS1004: Expected ';': { (16,3-4): run-time warning JS1034: Unmatched 'else'; no 'if' defined: e (19,1-2): run-time warning JS1002: Syntax error: } (21,23-24): run-time warning JS1004: Expected ';': { (73,2-3): run-time warning JS1195: Expected expression: < (80,19-21): run-time warning JS1197: Too many errors. The file might not be a JavaScript file: -- (64,1-38): run-time error JS1301: End of file encountered before function is properly closed: function genHeader(login_state, tier) (80,21-22): run-time warning JS1195: Expected expression: > (81,2-10): run-time warning JS1197: Too many errors. The file might not be a JavaScript file: document */ // JavaScript Document // load css /// if (/Firefox[\/\s](\d+\.\d+)/.test(navigator.userAgent)){ //test for Firefox/x.x or Firefox x.x (ignoring remaining digits); var ffversion=new Number(RegExp.$1) // capture x.x portion and store as a number //document.write("You're using FF" + ffversion) if (ffversion<5) { document.write("") } else { //document.write("load all responsive style"); genRestyle(); } } else { //document.write("load all responsive style"); genRestyle(); } function genRestyle() { //document.write("") //document.write("") //document.write(" ") //document.write("") //document.write("") document.write("") } /// language switch //// function switchingLang(toLang) { var currentURL = location.href; if(toLang=="en"){ currentURL = currentURL.replace("/tc/", "/en/"); currentURL = currentURL.replace("/cn/", "/en/"); currentURL = currentURL.replace("/jp/", "/en/"); window.location.assign(currentURL); }else if(toLang=="tc"){ currentURL = currentURL.replace("/en/", "/tc/"); currentURL = currentURL.replace("/cn/", "/tc/"); currentURL = currentURL.replace("/jp/", "/tc/"); window.location.assign(currentURL); }else if(toLang=="sc"){ currentURL = currentURL.replace("/en/", "/cn/"); currentURL = currentURL.replace("/tc/", "/cn/"); currentURL = currentURL.replace("/jp/", "/cn/"); window.location.assign(currentURL); }else if(toLang=="jp"){ currentURL = currentURL.replace("/en/", "/jp/"); currentURL = currentURL.replace("/tc/", "/jp/"); currentURL = currentURL.replace("/cn/", "/jp/"); window.location.assign(currentURL); } } function showDebug(){ /// debug //// document.write(""); } function genHeader(login_state, tier) { showDebug(); tier_list = ["","LOYAL MEMBER", "EXCLUSIVE MEMBER"] tier_name = tier_list[tier-1]; document.write("
"); document.write("
"); document.write("
"); document.write("
"); if(login_state==1){ document.write("
"); document.write("
"+tier_name+"
"); document.write("
Welcome, Mr Taro Suzuki
"); document.write("
POINT BALANCE
"); document.write("
333330000
"); document.write("
LOGOUT
"); document.write("
"); document.write("
"); document.write("
    "); } else { document.write("
      "); document.write("
    • Login
    • "); document.write("
    • Join Us Now
    • "); } document.write("
    • Reservation
    • "); //document.write("
        "); //document.write("
      • Okura Hotels & Resorts
      • "); //document.write("
      • JAL Hotels
      • "); //document.write("
      "); document.write("
    "); document.write("
"); genMenu(login_state); document.write("
"); document.write("
ENGLISH
"); document.write("
"); document.write("
    "); document.write("
  • ENGLISH
  • "); //document.write("
  • English
  • "); document.write("
  • 日本語
  • "); //document.write("
  • 繁體中文
  • "); //document.write("
  • 简体中文
  • "); document.write("
"); document.write("
"); document.write("
"); document.write("
"); document.write("
"); } function genHeader2() { showDebug(); document.write("
"); document.write("
"); document.write("
"); document.write("
"); document.write("
ENGLISH
"); document.write("
"); document.write("
    "); document.write("
  • ENGLISH
  • "); //document.write("
  • English
  • "); document.write("
  • 日本語
  • "); //document.write("
  • 繁體中文
  • "); //document.write("
  • 简体中文
  • "); document.write("
"); document.write("
"); document.write("
"); document.write("
"); document.write("
"); } function genMenu(login_state) { document.write("
"); } account_menu = [ ["Account Detail", "https://oneharmony.com/en/account_summary.html"], ["Earning History", "https://oneharmony.com/en/earning_search.html"], ["Redemption History", "https://oneharmony.com/en/redemption_search.html"], ["Update Profile", "https://oneharmony.com/en/update_profile.html"], ["Change Password", "https://oneharmony.com/en/change_password.html"] ] membership_menu = [ ["Stay Benefits", "https://oneharmony.com/en/membership.html"], ["Restaurant Benefits", "https://oneharmony.com/en/membership_restaurant.html"], ["Mileage Benefits", "https://oneharmony.com/en/membership_mileage.html"], ["Birthday Benefits", "https://oneharmony.com/en/membership_birthday.html"], ["Wedding Benefits", "https://oneharmony.com/en/membership_wedding.html"], ["Allianced Hotel Benefits", "https://oneharmony.com/en/membership_allianced.html"], ["Hotel Original Benefits", "https://oneharmony.com/en/membership_original.html"] ] redeem_menu = [ ["Stay Awards", "https://oneharmony.com/en/redeem_stay_search.html"], ["Room Upgrade Awards", "https://oneharmony.com/en/redeem_room_search.html"], ["Hotel Original Awards", "https://oneharmony.com/en/redeem_hoa_search.html"], ["Gift Awards", "https://oneharmony.com/en/redeem_gift_search.html"], ["My Shopping Cart", "https://oneharmony.com/en/redeem_cart_1.html"] ] offer_menu = [ ["Special Offers", "https://oneharmony.com/en/offer.html"], ["Hotel Offers", "https://oneharmony.com/en/hotel_offer.html"] ] function genSubmenu(submenu_list, section) { document.write("
"); document.write("
"+submenu_list[section][0]+"
"); document.write(""); document.write("
"); } function genBanner(loc) { /* orginal code */ /* */ /*if(loc==0){ document.write("
"); } else if(loc==1){ document.write("
"); } else if(loc==2){ document.write("
"); } document.write("
\"\"
"); document.write("
\"\"
"); document.write("
");*/ } function genContact(loc) { if(loc==0){ document.write("
"); } else if(loc==1){ document.write("
"); } else if(loc==2){ document.write("
"); } document.write("
"); document.write("

Contact Us

"); document.write("
"); document.write("

One Harmony

"); document.write("
+81-3-3224-6617
"); document.write("Inquiry Form
"); document.write("9:30-18:00 JST
"); document.write("(Closed Saturdays, Sundays and Holidays)"); document.write("
"); document.write("
"); document.write("
"); } function genFooter() { document.write("
"); document.write("
\"\"
"); document.write("
") document.write("Terms of Use | ") document.write("Protection of Personal Information | ") document.write("F.A.Q. | ") document.write("Contact us | ") document.write("Sitemap") document.write("
Copyright © Okura Nikko Hotel Management Co., Ltd. All Rights Reserved."); document.write("
"); document.write("
"); document.write(""); document.write("\"Okura"); document.write("\"Hotel"); document.write(""); } function showLayer(layer_ref) { form_object=document.getElementById? document.getElementById(layer_ref) : layer_ref form_object.style.display = "block"; } function hideLayer(layer_ref) { form_object=document.getElementById? document.getElementById(layer_ref) : layer_ref form_object.style.display = "none"; } function showClass(class_ref) { $(class_ref).fadeIn(0); } function hideClass(class_ref) { $(class_ref).fadeOut(0); } function toggleFFP(select_name, target_name) { select_object=document.getElementById? document.getElementById(select_name) : select_name select_value=select_object.value; if (select_value==''){ $(target_name).fadeOut(0); } else { $(target_name).fadeIn(0); } } function writeOption(x, y){ //document.write(""); for(i=x;i<=y;i++){ document.write(""); } } function enableField(field_name) { document.form[field_name].disabled=false; form_object=document.getElementById? document.getElementById(field_name) : field_name form_object.className = "form_field"; } function disableField(field_name) { document.form[field_name].disabled=true; form_object=document.getElementById? document.getElementById(field_name) : field_name form_object.className = "form_field_disable"; } function loadPageMember() { $("#various3").fancybox({ 'width' : 160, 'height' : 260, 'autoScale' : false, 'scrolling' : 'no', 'transitionIn' : 'elastic', 'transitionOut' : 'elastic', 'type' : 'iframe' }); } ////////////// google plus ///////////////////// function googlePlus(){ var gPlusOne = document.createElement('g:plusone'); gPlusOne.setAttribute("size", "tall"); gPlusOne.setAttribute("href", "http://google.com"); container.appendChild(gPlusOne); } function fillRedeemForm (startdate, room, point) { $("#redeem_room").val(room); $("#redeem_start_date").val(startdate); } ;$(document).ready(function () { /// range slider ///// InitjQueryUISlider(); window_w = $(document).width() //// language pulldown //// function showLanguageMenu() { ////////// check if it is firefox 5 or lower and ie 8 or lower? if (window_w > 768) { $("#language_pulldown").slideDown(300); } } function hideLanguageMenu() { if (window_w > 768) { $("#language_pulldown").slideUp(300); } } if ($("#language_btn").length != 0) { var menuTimeout = null; $("#language_btn").click(function () { if (window_w > 768) { showLanguageMenu(); menuTimeout = setTimeout(hideLanguageMenu, 2500); } }); $("#language_pulldown").hover(function () { if (window_w > 768) { clearTimeout(menuTimeout); } }); $("#language_pulldown").mouseleave(function () { if (window_w > 768) { menuTimeout = setTimeout(hideLanguageMenu, 1500); } }); $("#language_pulldown").click(function () { if (window_w > 768) { menuTimeout = setTimeout(hideLanguageMenu, 800); } }); } ///// mobile menu /////// if ($("#mobile_menu_button").length != 0) { $("#mobile_menu_button").click(function () { $("#language_pulldown").fadeIn(0); //$("#reserve_pulldown").fadeIn(0); $("#mobile_menu").slideToggle(200); }); } ////// submenu ///////// if ($("#submenu_btn_on").length != 0) { $("#submenu_btn_on").click(function () { $("#submenu_btn_on").slideToggle(200); $("#submenu_pulldown").slideToggle(200); }); $("#submenu_btn_off").click(function () { $("#submenu_btn_on").slideToggle(200); $("#submenu_pulldown").slideToggle(200); }); } ////// faq collapes ///// if ($(".faq_question").length != 0) { $(".faq_question").click(function () { //alert("!!!"); $(this).siblings(".faq_answer").slideToggle(400); $(this).toggleClass("faq_question_dn"); }); } ////// hotel region collapes ///// if ($(".h_region").length != 0) { $(".h_region").click(function () { //alert("!!!"); $(this).next("ul").slideToggle(400); $(this).toggleClass("h_region_open"); }); } ////// benefit table row //// if ($(".benefit_table").length != 0) { //alert($("table.benefit_table").length) $("table.benefit_table").each(function (tableindex) { //alert($(this).find("tr.benefit_color_row").length) $(this).find("tr.benefit_color_row").each(function (index) { //alert(index) if ((index % 2) == 0) { $(this).addClass("benefit_odd_row"); } else { $(this).addClass("benefit_even_row"); } }); }); } ////// benefit pulldown //// function showTierMenu() { ////////// check if it is firefox 5 or lower and ie 8 or lower? if (window_w <= 510) { if ($("#b_1").css('display') == 'inline') { $("#t_1").fadeOut(0); $("#t_2").fadeIn(0); $("#t_3").fadeIn(0); } if ($("#b_2").css('display') == 'inline') { $("#t_1").fadeIn(0); $("#t_2").fadeOut(0); $("#t_3").fadeIn(0); } if ($("#b_3").css('display') == 'inline') { $("#t_1").fadeIn(0); $("#t_2").fadeIn(0); $("#t_3").fadeOut(0); } $("#tier_pulldown_list").slideDown(300); } } function hideTierMenu() { if (window_w <= 510) { clearTimeout(tierTimeout); $("#tier_pulldown_list").slideUp(0); } } //alert($("#tier_pulldown_button").length); if ($("#tier_pulldown_button").length != 0) { var tierTimeout = null; $("#tier_pulldown_button").click(function () { if (window_w <= 510) { showTierMenu(); clearTimeout(tierTimeout); tierTimeout = setTimeout(hideTierMenu, 1600); } }); $("#tier_pulldown_list").hover(function () { if (window_w <= 510) { clearTimeout(tierTimeout); } }); $("#tier_pulldown_list").mouseleave(function () { if (window_w <= 510) { tierTimeout = setTimeout(hideTierMenu, 1600); } }); $("#t_1").click(function () { if (window_w <= 510) { $(".tc_1").fadeIn(0); $(".tc_2").fadeOut(0); $(".tc_3").fadeOut(0); $("#b_1").fadeIn(0); $("#b_2").fadeOut(0); $("#b_3").fadeOut(0); hideTierMenu(); } }); $("#t_2").click(function () { if (window_w <= 510) { $(".tc_1").fadeOut(0); $(".tc_2").fadeIn(0); $(".tc_3").fadeOut(0); $("#b_1").fadeOut(0); $("#b_2").fadeIn(0); $("#b_3").fadeOut(0); hideTierMenu(); } }); $("#t_3").click(function () { if (window_w <= 510) { $(".tc_1").fadeOut(0); $(".tc_2").fadeOut(0); $(".tc_3").fadeIn(0); $("#b_1").fadeOut(0); $("#b_2").fadeOut(0); $("#b_3").fadeIn(0); hideTierMenu(); } }); } ////// benefit pulldown for birthday//// function bshowTierMenu() { ////////// check if it is firefox 5 or lower and ie 8 or lower? if (window_w <= 510) { if ($("#bb_1").css('display') == 'inline') { $("#bt_1").fadeOut(0); $("#bt_2").fadeIn(0); $("#bt_3").fadeIn(0); } if ($("#bb_2").css('display') == 'inline') { $("#bt_1").fadeIn(0); $("#bt_2").fadeOut(0); $("#bt_3").fadeIn(0); } if ($("#bb_3").css('display') == 'inline') { $("#bt_1").fadeIn(0); $("#bt_2").fadeIn(0); $("#bt_3").fadeOut(0); } $("#btier_pulldown_list").slideDown(300); } } function bhideTierMenu() { if (window_w <= 510) { clearTimeout(btierTimeout); $("#btier_pulldown_list").slideUp(0); } } //alert($("#tier_pulldown_button").length); if ($("#btier_pulldown_button").length != 0) { var btierTimeout = null; $("#btier_pulldown_button").click(function () { if (window_w <= 510) { bshowTierMenu(); clearTimeout(btierTimeout); btierTimeout = setTimeout(bhideTierMenu, 1600); } }); $("#btier_pulldown_list").hover(function () { if (window_w <= 510) { clearTimeout(btierTimeout); } }); $("#btier_pulldown_list").mouseleave(function () { if (window_w <= 510) { btierTimeout = setTimeout(bhideTierMenu, 1600); } }); $("#bt_1").click(function () { if (window_w <= 510) { $(".btc_1").fadeIn(0); $(".btc_2").fadeOut(0); $(".btc_3").fadeOut(0); $("#bb_1").fadeIn(0); $("#bb_2").fadeOut(0); $("#bb_3").fadeOut(0); bhideTierMenu(); } }); $("#bt_2").click(function () { if (window_w <= 510) { $(".btc_1").fadeOut(0); $(".btc_2").fadeIn(0); $(".btc_3").fadeOut(0); $("#bb_1").fadeOut(0); $("#bb_2").fadeIn(0); $("#bb_3").fadeOut(0); bhideTierMenu(); } }); $("#bt_3").click(function () { if (window_w <= 510) { $(".btc_1").fadeOut(0); $(".btc_2").fadeOut(0); $(".btc_3").fadeIn(0); $("#bb_1").fadeOut(0); $("#bb_2").fadeOut(0); $("#bb_3").fadeIn(0); bhideTierMenu(); } }); } //// date picker ///// InitDatePicker(); }); $(window).resize(function () { //alert(document.reserveTimeout); //$("#language_pulldown").fadeOut(300); //$("#reserve_pulldown").fadeOut(0); new_window_w = $(document).width(); //alert("loadsize:"+window_w); //alert("new:"+new_window_w); //debug_box.value = debug_box.value+"old:"+window_w+"\n"; //debug_box.value = debug_box.value+"new:"+new_window_w+"\n"; if (window_w != new_window_w) { //window_w = $(document).width(); //debug_box.value = debug_box.value+"rotate"+"\n"; //alert("rotate"); if (window_w <= 768 && new_window_w > 768) { debug_box.value = debug_box.value + "desktop" + "\n"; if ($("#language_pulldown").length != 0) { $("#language_pulldown").fadeOut(0); //$("#reserve_pulldown").fadeOut(0); $("#mobile_menu").fadeIn(0); } if ($("#start_date").length != 0) { $("#start_date").mobiscroll("destroy"); $("#end_date").mobiscroll("destroy"); $(".dw").fadeOut(0); $(".dwo").fadeOut(0); datepick_desktop(); } //if ($("input[type=date]").length != 0) { //} //alert($(window).width()); if ($("#submenu_btn_on").length != 0) { //alert($(window).width()); $("#submenu_btn_on").fadeOut(0); $("#submenu_pulldown").fadeIn(0); } } else if (window_w > 768 && new_window_w <= 768) { debug_box.value = debug_box.value + "tablet and mobile" + "\n"; if ($("#language_pulldown").length != 0) { $("#language_pulldown").fadeIn(0); //$("#reserve_pulldown").fadeIn(0); $("#mobile_menu").fadeOut(0); } if ($("#start_date").length != 0) { $("#start_date").datepicker("destroy"); $("#end_date").datepicker("destroy"); $("#ui-datepicker-div").fadeOut(0); datepick_mobile(); } //if ($("input[type=date]").length != 0) { //} if ($("#submenu_btn_on").length != 0) { //alert($(window).width()); $("#submenu_btn_on").fadeIn(0); $("#submenu_pulldown").fadeOut(0); } } if (window_w <= 510 && new_window_w > 510) { debug_box.value = debug_box.value + "tab and desktop" + "\n"; if ($(".benefit_pulldown").length != 0) { $(".benefit_pulldown").fadeOut(0); $(".benefit_top_row_toggle").fadeIn(0); $(".tc_1").fadeIn(0); $(".tc_2").fadeIn(0); $(".tc_3").fadeIn(0); /// birthday pulldown /// if ($("#btier_pulldown_list").length != 0) { $(".btc_1").fadeIn(0); $(".btc_2").fadeIn(0); $(".btc_3").fadeIn(0); } } } else if (window_w > 510 && new_window_w <= 510) { //alert("mobile") debug_box.value = debug_box.value + "mobile only" + "\n"; if ($(".benefit_pulldown").length != 0) { $(".benefit_pulldown").fadeIn(0); $(".benefit_top_row_toggle").fadeOut(0); $("#tier_pulldown_list").fadeOut(0); $("#b_1").fadeIn(0); $("#b_2").fadeOut(0); $("#b_3").fadeOut(0); $(".tc_1").fadeIn(0); $(".tc_2").fadeOut(0); $(".tc_3").fadeOut(0); /// birthday pulldown /// if ($("#btier_pulldown_list").length != 0) { $("#btier_pulldown_list").fadeOut(0); $("#bb_1").fadeIn(0); $("#bb_2").fadeOut(0); $("#bb_3").fadeOut(0); $(".btc_1").fadeIn(0); $(".btc_2").fadeOut(0); $(".btc_3").fadeOut(0); } } } window_w = $(document).width(); //$(".reserve_btn").removeClass("reserve_btn_on"); //$(".reserve_btn").addClass("reserve_btn_on"); //$(".reserve_btn_on").toggleClass("reserve_btn"); } }); //// date picker ///// function datepick_desktop() { ///// check if the field is presented ////// if ($("#start_date").length != 0) { //alert("datepick_desktop"); //debug_box.value = debug_box.value+"datepick_desktop"+"\n"; //// for browser not able to read html5 //// //if (!Modernizr.inputtypes.date) { //$("input[type=date]").datepicker(); $("#start_date").datepicker(); $("#end_date").datepicker(); //} } if ($("#redeem_start_date").length != 0) { //alert("datepick_desktop"); //debug_box.value = debug_box.value+"datepick_desktop"+"\n"; //// for browser not able to read html5 //// //if (!Modernizr.inputtypes.date) { //$("input[type=date]").datepicker(); $("#redeem_start_date").datepicker(); $("#redeem_end_date").datepicker(); //} } } function datepick_mobile() { ///// check if the field is presented ////// if ($("#start_date").length != 0) { //alert("datepick_mobile"); //debug_box.value = debug_box.value+"datepick_mobile"+"\n"; //// for browser not able to read html5 //// //if (!Modernizr.inputtypes.date) { //$("input[type=date]").datepicker(); $("#start_date").mobiscroll().date({ //invalid: { daysOfWeek: [0, 6], daysOfMonth: ['5/1', '12/24', '12/25'] }, invalid: { daysOfWeek: [], daysOfMonth: [] }, theme: 'jqm', display: 'modal', mode: 'scroller', animate: 'none', dateFormat: 'yy/mm/dd', dateOrder: 'Mddyy' }); $("#end_date").mobiscroll().date({ //invalid: { daysOfWeek: [0, 6], daysOfMonth: ['5/1', '12/24', '12/25'] }, invalid: { daysOfWeek: [], daysOfMonth: [] }, theme: 'jqm', display: 'modal', mode: 'scroller', animate: 'none', dateFormat: 'yy/mm/dd', dateOrder: 'Mddyy' }); //} } if ($("#redeem_start_date").length != 0) { //alert("datepick_mobile"); //debug_box.value = debug_box.value+"datepick_mobile"+"\n"; //// for browser not able to read html5 //// //if (!Modernizr.inputtypes.date) { //$("input[type=date]").datepicker(); $("#redeem_start_date").mobiscroll().date({ //invalid: { daysOfWeek: [0, 6], daysOfMonth: ['5/1', '12/24', '12/25'] }, invalid: { daysOfWeek: [], daysOfMonth: [] }, theme: 'jqm', display: 'modal', mode: 'scroller', animate: 'none', dateFormat: 'yy/mm/dd', dateOrder: 'Mddyy' }); $("#redeem_end_date").mobiscroll().date({ //invalid: { daysOfWeek: [0, 6], daysOfMonth: ['5/1', '12/24', '12/25'] }, invalid: { daysOfWeek: [], daysOfMonth: [] }, theme: 'jqm', display: 'modal', mode: 'scroller', animate: 'none', dateFormat: 'yy/mm/dd', dateOrder: 'Mddyy' }); //} } } ;