﻿<!--
/*
 File		: langCommon.js

 Purpose    : Store language dependent global variables and determine which style sheet should be used
 
 Functions  : 

 Modification History :
 Version    Date	    By		    Description
 -----------------------------------------------------------------------
 1st	    2002-05-27	   Vivian Au	    First Version
 -----------------------------------------------------------------------
*/

var curLang = 'b5';
var curCoun = 'CN';

var PrivacyPolicy = "私隱政策";
var TermsConditions = "條款及條件";
var InputEnglish = "請以英文輸入";

thisPath = '/b5/'

var flashUrls = new Object;
    flashUrls['chs'] = thisPath + "cargohandling/default.htm";
    flashUrls['chs_physical'] = thisPath + "cargohandling/physical.htm";
    flashUrls['chs_document'] = thisPath + "cargohandling/document.htm";
    flashUrls['chs_ramp'] = thisPath + "cargohandling/ramp.htm";

    flashUrls['vas'] = thisPath + "valueadded/default.htm";
    flashUrls['vas_pacco'] = thisPath + "valueadded/prearrival.htm";
    flashUrls['vas_epickup'] = thisPath + "valueadded/epickup.htm";
    flashUrls['vas_scheduled'] = thisPath + "valueadded/scheduled.htm";
    flashUrls['vas_hactlspeed'] = thisPath + "valueadded/hactlspeed.htm";
    flashUrls['vas_consolidation'] = thisPath + "valueadded/consolidation.htm";
    flashUrls['vas_screening'] = thisPath + "valueadded/screening.htm";
    flashUrls['vas_relabel'] = thisPath + "valueadded/relabelling.htm";
    flashUrls['vas_emptyunit'] = thisPath + "valueadded/emptyunit.htm";
    flashUrls['vas_superlink'] = thisPath + "valueadded/superlink.htm";
    flashUrls['vas_airdir'] = thisPath + "valueadded/airportdirect.htm";
	flashUrls['vas_tranning'] = thisPath + "valueadded/courses.htm";

    flashUrls['sto'] = thisPath + "superterminal/default.htm";
    flashUrls['sto_automation'] = thisPath + "superterminal/automated_fac.htm";
    flashUrls['sto_security'] = thisPath + "superterminal/security.htm";
    flashUrls['sto_handling'] = thisPath + "superterminal/handling_fac.htm";
    flashUrls['sto_special'] = thisPath + "superterminal/special_fac.htm";
    flashUrls['sto_customer'] = thisPath + "superterminal/customer_fac.htm";
    flashUrls['sto_express'] = thisPath + "superterminal/express_ctr.htm";

    flashUrls['info'] = thisPath + "information/default.htm";
    flashUrls['info_cosac'] = thisPath + "information/cosac.htm";
    flashUrls['info_hex'] = thisPath + "information/hex.htm";
    flashUrls['info_gps'] = thisPath + "information/gps.htm";

    flashUrls['mem'] = "https://" + location.host + thisPath + "member/default.htm";
//    flashUrls['mem_prereg'] = "/webapp/hactlpbf" + thisPath + "member/pre-reg.jsp";
    flashUrls['mem_prereg'] = thisPath + "member/default.htm";
    flashUrls['forgot'] = thisPath + "member/forgotpwd.htm";
    flashUrls['demo'] = 'pop';
    flashUrls['membernews'] = thisPath + "mediactr/membershipnews.htm";

    flashUrls['locationMap'] = "pop";
    flashUrls['officeDir'] = "pop";
    flashUrls['screen'] = "js";

    flashUrls['ercl'] = thisPath + "member/ercl.htm";
    flashUrls['house'] = thisPath + "member/house.htm";
    flashUrls['track'] = thisPath + "member/track.htm";
    flashUrls['reports'] = thisPath + "member/reports.htm";
    flashUrls['unit'] = thisPath + "member/unit.htm";

    flashUrls['floorPlan'] = "pop";

    flashUrls['maps'] = "pop";
    //flashUrls['pdf'] = "pop";
    flashUrls['pdf'] = "#";

    var popUrls = new Object;
    popUrls['agree'] = new Array('bigpop', thisPath + 'membership/agreement.htm', '526', '586', 'true', 'false');
    popUrls['officeDir'] = new Array('office_dir', thisPath + 'superterminal/office_dir.htm', '700', '490', 'false', 'true');
    popUrls['locationMap'] = new Array('locationpop', thisPath + 'contactus/locations.htm', '655', '525', 'false', 'false');
    popUrls['demo'] = new Array('demo', thisPath + 'member/demo.htm', '630', '420', 'true', 'true');
    popUrls['maps'] = popUrls['locationMap'];
    popUrls['pdf'] = new Array('new', thisPath + 'superterminal/demo.pdf', '630', '420', 'true', 'true');
    popUrls['floorPlan'] = new Array('floorplanpop', thisPath + 'superterminal/cargo_floorplan.htm', '665', '430', 'false');
    
    var jsStr = new Object;
    jsStr['screen'] = "if (opener && !opener.closed){ opener.location = thisPath + 'valueadded/screening.htm' }else{window.open(thisPath + 'valueadded/screening.htm')} ; ";
    
    var popMsg = new Object;
    popMsg['dlbrowser'] = "To access the full range of Hactl.com membership services, you will need to download 5.5 Internet Explorer or above.";
    popMsg['dlflash'] = "To get the best out of the Hactl.com site, you will need to download the latest version of Macromedia Flash. Downloading will only take a few minutes.";
    popMsg['addBookmark'] = "Please hit ctrl-d to bookmark this page.";

//the values for variables pc and ns are set in common.js
if (pc && ns) document.writeln("<LINK REL='stylesheet' TYPE='text/css' HREF='" + thisPath + "css/net.css'>");
else if (ns && !pc) document.writeln("<LINK REL='stylesheet' TYPE='text/css' HREF='" + thisPath + "css/macnet.css'>");
else document.writeln("<LINK REL='stylesheet' TYPE='text/css' HREF='" + thisPath + "css/ie.css'>");

//-->
