<!--
/*
 File		: mad_nav.js

 Purpose    : Generate the left navigation bar for Media Centre pages 
 
 Functions  : 

 Modification History :
 
 Remarks    : The width of the first column must be 10 and that of the second column must be 156
	    
	    The following is the sample codes for including this js file
 
	    <TABLE WIDTH="166" BORDER="0" CELLSPACING="0" CELLPADDING="0">
	<TR>
	    <TD><IMG SRC="../images/common/blank.gif" WIDTH="10" HEIGHT="1" BORDER="0"></TD>
	    <TD><IMG SRC="../images/common/blank.gif" WIDTH="156" HEIGHT="1" BORDER="0"></TD>
	</TR>
	<SCRIPT TYPE="text/javascript" LANGUAGE="JavaScript" SRC="[js path]/mad_nav.js"></SCRIPT>
	</TABLE>
	
 
 Version    Date	    By		    Description
 -----------------------------------------------------------------------
 1st	    2002-05-31	   Stephen Lam	      First Version
 -----------------------------------------------------------------------
            2006-06-06     gibson           Remove Industry Calendar
                                            Move Member Service News from Media Centre to Member Login
 ------------------------------------------------------------------------

*/

//the object for storing the url links for the flash files
    var urls = new Object;
    urls['but_cs'] = "/webapp/hactlpbf/CargoStatistics/CargoStatistics.jsp?language=b5&country=CN";
//Remove Industry Calendar
//    urls['but_ic'] = "/b5/mediactr/indcalendar.htm";
    urls['but_in'] = thisPath + "mediactr/industrynews.htm";
//Move Member Service News to member login page
//    urls['but_msn'] = thisPath + "mediactr/membershipnews.htm";
    urls['but_na'] = "/webapp/hactlpbf/mediactr/newsalert.jsp?language=b5&country=CN";
    urls['but_pr'] = thisPath + "mediactr/pressreleases.htm";

//the variable "thisSection" was declared in common.js and the corresponding html page will set the value
    var chkSection = new Object;
    chkSection[madSection] = true;

    var but_cs_on = new Image();
    var but_cs_off = new Image();
//Remove Industry Calendar
//    var but_ic_on = new Image();
//    var but_ic_off = new Image();
    var but_in_on = new Image();
    var but_in_off = new Image();
//Move Member Service News to member login page
//    var but_msn_on = new Image();
//    var but_msn_off = new Image();
    var but_na_on = new Image();
    var but_na_off = new Image();
    var but_pr_on = new Image();
    var but_pr_off = new Image();


    but_cs_on.src = '../images/common/arrow.gif';
    but_cs_off.src = '../images/common/blank.gif';
//Remove Industry Calendar
//    but_ic_on.src = '../images/common/arrow.gif';
//    but_ic_off.src = '../images/common/blank.gif';
    but_in_on.src = '../images/common/arrow.gif';
    but_in_off.src = '../images/common/blank.gif';
//Move Member Service News to member login page
//    but_msn_on.src = '../images/common/arrow.gif';
//    but_msn_off.src = '../images/common/blank.gif';
    but_na_on.src = '../images/common/arrow.gif';
    but_na_off.src = '../images/common/blank.gif';
    but_pr_on.src = '../images/common/arrow.gif';
    but_pr_off.src = '../images/common/blank.gif';


    var madSection = "";

    madSection += genNavImageTag('but_pr', chkSection['but_pr'], false, 156, 13, 'mediactr', '新聞發佈');
//Move Member Service News to member login page
//    madSection += genNavImageTag('but_msn', chkSection['but_msn'], false, 156, 13, 'mediactr', '會員服務消息');
    madSection += genNavImageTag('but_cs', chkSection['but_cs'], false, 156, 13, 'mediactr', '處貨量統計');
//Remove Industry Calendar
//    madSection += genNavImageTag('but_ic', chkSection['but_ic'], false, 156, 13, 'mediactr', '業內活動概覽');
    madSection += genNavImageTag('but_in', chkSection['but_in'], false, 156, 13, 'mediactr', '行業新聞');
    madSection += genNavImageTag('but_na', chkSection['but_na'], false, 156, 13, 'mediactr', '新聞訊息');
    


document.write(madSection);
//-->
