/* ====================
   JAPAN
   japanese
   updated 2011-11-16 Ranjeet.gill
================================== */

//Variables
var siteURL = "/";
var langCore = "core/japanese/";
var langLocal = "local/japanese/";
var langUA2GO = "ja";
var countrysiteId="171";
var countryTel = "jp";
var countryUA2GO = "uajapan";
var disableTracking = true; // this disables insightfirst being auto appended to the SWN menus href
var sMenuVS_NavSource = "Dropdown07"; 
var countryCurr = "jpy";

//Telescope
var awardURL = "https://travel.united.com/ube/award/" + countryTel + "/awardShop.do?lang=" + langUA2GO;
var bookingURL = "https://travel.united.com/ube/core/" + countryTel + "/shop.do?lang=" + langUA2GO;
var securebookingURL = "https://travel.united.com/ube/core/" + countryTel + "/secure/shop.do?lang=" + langUA2GO;
var mpaddressURL = "https://travel.united.com/ube/core/" + countryTel + "/secure/mpChangeAddress.do?lang=" + langUA2GO;
var mpsummaryURL = "https://travel.united.com/ube/core/" + countryTel + "/secure/mpSummary.do?lang=" + langUA2GO;
var multicityURL = "http://travel.united.com/ube/core/" + countryTel + "/shop.do?shop_triptype=multicity&lang=" + langUA2GO;
//var myitinsURL = siteURL + langCore+ "IC/login/index.html";
//var myitinsURL = "http://www.united.com/page/genericpage/1,,52318,00.html?CC="+countryTel+"&lang=japanese";
var myitinsURL = "http://bh.united.com/core/lib/itinsLoginRedirect.html?CC="+countryTel+"&lang=japanese";
var oaflifoURL = "https://travel.united.com/ube/core/" + countryTel + "/oaflifo.do?lang=" + langUA2GO;
var templatesURL = "https://travel.united.com/ube/core/" + countryTel + "/secure/retrieveTripTemplate.do?lang=" + langUA2GO;
var flexDate="&shop_viewresults=FLEXDATE";
var busClassParam = "&shop_serviceclass=BUSINESS-NON-REFUNDABLE&shop_cabinrefundable=off&shop_cabinclass=BUSINESS";
var firstClassParam="&shop_serviceclass=FIRST-NON-REFUNDABLE";


//UA2GO
var mpfindnumberURL = "https://www.ua2go.com/ci/mpLookUp.do?stamp=/" + countryUA2GO+ "&lang=" + langUA2GO;
var mpforgetURL = "https://www.ua2go.com/ci/PRGetMPNumber.jsp?stamp=/" + countryUA2GO+ "&lang=" + langUA2GO;
var mpjoinURL = "https://www.ua2go.com/ci/JoinMileagePlus.jsp?stamp=/" + countryUA2GO + "&lang=" + langUA2GO;
var mpregisterURL = "https://www.ua2go.com/ci/Registration.jsp?stamp=/" + countryUA2GO + "&lang=" + langUA2GO;
var updateprofileURL = "https://www.ua2go.com/ci/UpdateProfile.jsp?stamp=/" + countryUA2GO+ "&lang=" + langUA2GO;
var centerpostURL = "https://www.ua2go.com/ci/Login.jsp?stamp=/" + countryUA2GO + "&return_to=centerPost";
var purchaseUpgrade = "https://www.ua2go.com/ci/Login.jsp?stamp=/" + countryUA2GO + "&return_to=eug_pur";
var retroCredit = "https://www.ua2go.com/ci/Login.jsp?return_to=retrocredit";
var icticketrefundURL = "https://www.ua2go.com/ci/Login.jsp?return_to=refund";

//United.com
var investorURL = "http://www.united.com/ir";
var rccjoinURL = "http://www.united.com/form/rcc/signon";
var rccupdateURL = "https://www.ua2go.com/ci/Login.jsp?return_to=rccupd";
var refundsURL = "http://faq.ua2go.com/display/4/kb/optional/index.aspx?tab=opt2&opt=2";
var webcheckinURL = "https://travel.united.com/etc/webcheckin/nonrevenue/login.do?stamp=/" + countryUA2GO + "&siteId=" + countrysiteId + "&lang=" + langUA2GO;

//Partners
var hotelURL = "http://www.travelnow.com/templates/361004?lang="+langUA2GO+"&currency="+countryCurr;

//IPOS
var pressroomURL = siteURL + langCore + "AU/companyinfo/pressroom/index.html";
var PBURL = siteURL + langCore + "PB/index.html";
var ICURL = siteURL + langCore + "IC/index.html";
var MPURL = siteURL + langCore + "MP/index.html";
var SIURL = siteURL + langCore + "SI/index.html";
var AUURL = siteURL + langCore + "AU/index.html";
var loungesURL = siteURL + langCore + "SI/lounges/index.html";
var customerURL = siteURL + langLocal + "customerservice/index.html";

//UDM Menus
var ualswn = new Array();

ualswn[0] = new Array();
ualswn[0][0] = new Array("Planning &amp; booking", siteURL + langCore + "PB/index.html?navSource="+sMenuVS_NavSource+"&linkTitle=planningandbooking", 139);
ualswn[0][1] = new Array("フライト", bookingURL+"&navSource="+sMenuVS_NavSource+"&linkTitle=shopforflights");
ualswn[0][2] = new Array("ホテル", hotelURL + "&navSource="+sMenuVS_NavSource+"&linkTitle=hotels");
//ualswn[0][2] = new Array("ホテル", siteURL + langCore + "PB/hotel.html?navSource="+sMenuVS_NavSource+"&linkTitle=hotels");
ualswn[0][3] = new Array("レンタカー","http://cars.united.com/web/en-US/carShopping/content/reservations/car.aspx?navSource="+sMenuVS_NavSource+"&linkTitle=cars"); 
//ualswn[0][2] = new Array("レンタカー", siteURL + langCore + "PB/car.html?navSource="+sMenuVS_NavSource+"&linkTitle=cars");
ualswn[0][4] = new Array("バケーション ", "http://www.unitedvacations.co.jp/index.php");
ualswn[0][5] = new Array("トラベルオプションズ", siteURL + langCore + "AU/travel_options.html?navSource="+sMenuVS_NavSource+"&linkTitle=travelenhancements");
ualswn[0][6] = new Array("特典旅行予約", awardURL+"&navSource="+sMenuVS_NavSource+"&linkTitle=awardtravel", "separatorAbove");
ualswn[0][7] = new Array("お得な運賃", siteURL + langLocal + "PB/deals/index.html?navSource="+sMenuVS_NavSource+"&linkTitle=specialdeals");
ualswn[0][8] = new Array("旅行のテンプレート", templatesURL+"&navSource="+sMenuVS_NavSource+"&linkTitle=mytriptemplates", "separatorAbove");
ualswn[0][9] = new Array("時刻表", siteURL + langCore + "PB/timetables/index.html?navSource="+sMenuVS_NavSource+"&linkTitle=timetables");
ualswn[0][10] = new Array("ルートマップ", siteURL + langCore + "PB/routemaps/index.html?navSource="+sMenuVS_NavSource+"&linkTitle=routemaps");
ualswn[0][11] = new Array("旅先の知識", siteURL + langCore + "PB/destination/index.html?navSource="+sMenuVS_NavSource+"&linkTitle=destinationinformation");
//ualswn[0][11] = new Array("ヴァーチャルビジット", siteURL + langCore + "PB/virtualvisit.html");

ualswn[1] = new Array();
ualswn[1][0] = new Array("Itineraries &amp; check-in", siteURL + langCore + "IC/index.html?navSource="+sMenuVS_NavSource+"&linkTitle=itinerariesandcheckin", 149);
ualswn[1][1] = new Array("今までの予約記録", myitinsURL+"&navSource="+sMenuVS_NavSource+"&linkTitle=itineraries");
ualswn[1][2] = new Array("&#26053;&#31243;&#12398;&#22793;&#26356;", siteURL + langCore + "IC/change_travelplan.html?navSource="+sMenuVS_NavSource+"&linkTitle=change_travelplan");
ualswn[1][3] = new Array("アップグレード ", siteURL + langCore + "IC/upgrades/index.html?navSource="+sMenuVS_NavSource+"&linkTitle=upgrades");
ualswn[1][4] = new Array("オンライン・チェックイン", siteURL + langCore + "IC/easyCheckinOnline.html?navSource="+sMenuVS_NavSource+"&linkTitle=check in", "separatorAbove");
ualswn[1][5] = new Array("発着案内", siteURL + langCore + "IC/notification/index.html?navSource="+sMenuVS_NavSource+"&linkTitle=flightnotification");
ualswn[1][6] = new Array("航空券の払い戻し", siteURL + langCore + "IC/eticket_refunds.html?navSource="+sMenuVS_NavSource+"&linkTitle=refunds", "separatorAbove");

ualswn[2] = new Array();
ualswn[2][0] = new Array("Mileage Plus", siteURL + langCore + "MP/index.html?navSource="+sMenuVS_NavSource+"&linkTitle=mileageplus", 134);
ualswn[2][1] = new Array("新規ご入会", mpjoinURL+"&navSource="+sMenuVS_NavSource+"&linkTitle=join");
ualswn[2][2] = new Array("マイル明細書", mpsummaryURL+"&navSource="+sMenuVS_NavSource+"&linkTitle=mileagesummary", "separatorAbove");
ualswn[2][3] = new Array("マイルを貯める", siteURL + langCore + "MP/earnmiles/index.html?"+sMenuVS_NavSource+"&linkTitle=earnmiles");
ualswn[2][4] = new Array("特典交換のご案内", siteURL + langCore + "MP/redeemmiles/index.html?navSource="+sMenuVS_NavSource+"&linkTitle=redeemmiles");
ualswn[2][5] = new Array("&#12510;&#12452;&#12523;&#36092;&#20837;&#12392;&#31227;&#34892;", siteURL + langCore + "MP/buymiles/index.html?navSource="+sMenuVS_NavSource+"&linkTitle=buyortransfermiles");
ualswn[2][6] = new Array("プログラム情報", siteURL + langCore + "MP/aboutmp/index.html?navSource="+sMenuVS_NavSource+"&linkTitle=buyortransfermiles", "separatorAbove");
ualswn[2][7] = new Array("カスタマーサポート", siteURL + langCore + "MP/mpsupport/index.html?navSource="+sMenuVS_NavSource+"&linkTitle=mileageplussupport");


ualswn[3] = new Array();
ualswn[3][0] = new Array("Services &amp; Information", siteURL + langCore + "SI/index.html?navSource="+sMenuVS_NavSource+"&linkTitle=servicesandinformation", 149);
ualswn[3][1] = new Array("発着案内", siteURL + langCore + "SI/flightstatus.html?navSource="+sMenuVS_NavSource+"&linkTitle=flightstatus");
ualswn[3][2] = new Array("モバイル", siteURL + langCore + "SI/mobile.html?navSource="+sMenuVS_NavSource+"&linkTitle=wireless");
ualswn[3][3] = new Array(" 荷物について", siteURL + langCore + "SI/baggage/index.html?navSource="+sMenuVS_NavSource+"&linkTitle=baggage","separatorAbove");
ualswn[3][4] = new Array("渡航情報", siteURL + langCore + "SI/travelreqs/index.html?navSource="+sMenuVS_NavSource+"&linkTitle=travelrequirements");
ualswn[3][5] = new Array(" 特別サービス", siteURL + langCore + "SI/cpa/index.html?navSource="+sMenuVS_NavSource+"&linkTitle=assistance");
ualswn[3][6] = new Array("空港でのサービス", siteURL + langCore + "SI/airportinfo/index.html?navSource="+sMenuVS_NavSource+"&linkTitle=airportinformation");
ualswn[3][7] = new Array("空港ラウンジ", siteURL + langCore + "SI/lounges/index.html?navSource="+sMenuVS_NavSource+"&linkTitle=airportlounges");
ualswn[3][8] = new Array("機内のご案内", siteURL + langCore + "SI/inflight/index.html?navSource="+sMenuVS_NavSource+"&linkTitle=in-flightservices");
ualswn[3][9] = new Array("エコノミープラス年間オプション", siteURL + langCore + "AU/economy_plus_annual.html?navSource="+sMenuVS_NavSource+"&linkTitle=epa");
//ualswn[3][10] = new Array("ユナイテッド・コミットメント", siteURL + langCore + "SI/commitment/index.html?navSource="+sMenuVS_NavSource+"&linkTitle=ourcustomer","separatorAbove");
//ualswn[3][10] = new Array("為替レート換算", siteURL + langCore + "SI/converters/currency.html", "separatorAbove");
//ualswn[3][11] = new Array("単位換算", siteURL + langCore + "SI/converters/converter.html");

StartinSelectLst = new Array();
StartinSelectLst[0] = new Array("マイル明細書", "&return_to=mpsummary&lang="+langUA2GO, "SI~MP");
StartinSelectLst[1] = new Array("今までの予約記録", "&return_to=newitin&lang="+langUA2GO, "IC");
StartinSelectLst[2] = new Array("-------------------", "", "");
StartinSelectLst[3] = new Array("フライト", "&return_to=booking&lang="+langUA2GO, "PB");
StartinSelectLst[4] = new Array("特典旅行予約", "&return_to=awardShop&lang="+langUA2GO, "");
StartinSelectLst[5] = new Array("-------------------", "", "");
StartinSelectLst[6] = new Array("登録情報", "&whereto=UpdateProfile.jsp", "");
StartinSelectLst[7] = new Array("旅行のテンプレート", "&return_to=triptemplate&lang="+langUA2GO, "");

function gotoURL(URL){
window.location=URL
}

