// include lang-independent functions in common js
document.write('<script language="javascript" src="common.js"></script>');

// no auto-init < 1.2
var NUM_ITEM = 13;

var menuItem = new Array();
menuItem[0] = '| <A HREF="home-en.html">HOME</A> '
menuItem[1] = '| <A HREF="csjwv.html">ABOUT US</A> '
menuItem[2] = '| <A HREF="newsletter.html">NEWSLETTERS</A> '
menuItem[3] = '| <A HREF="contact.html">CONTACT US</A> '
menuItem[4] = '| <A HREF="sister-org.html">SISTER ORGS</A> '
menuItem[5] = '| <A HREF="other-org.html">OTHER ORGS</A> |<BR>'
menuItem[6] = '| <A HREF="action.html">ACTIONS</A> '
menuItem[7] = '| <A HREF="news.html">NEWS</A> '
menuItem[8] = '| <A HREF="books.html">BOOKS AND VIDEOS</A> '
menuItem[9] = '| <A HREF="museum.html">MUSEUMS</A> '
menuItem[10] = '| <A HREF="occupation.html">HONG KONG</A> '
menuItem[11] = '| <A HREF="dyt/dyt.html">DIAOYUTAI</A> '
menuItem[12] = '| <A HREF="related.html">RELATED SITES</A> |'

var menuItem2 = new Array();
menuItem2[0] = '| HOME '
menuItem2[1] = '| ABOUT US '
menuItem2[2] = '| NEWSLETTERS '
menuItem2[3] = '| CONTACT US '
menuItem2[4] = '| SISTER ORGS '
menuItem2[5] = '| OTHER ORGSS |<BR>'
menuItem2[6] = '| ACTIONS '
menuItem2[7] = '| NEWS '
menuItem2[8] = '| BOOKS AND VIDEOS '
menuItem2[9] = '| MUSEUMS '
menuItem2[10] = '| HONG KONG '
menuItem2[11] = '| DIAOYUTAI '
menuItem2[12] = '| RELATED SITES |'

function csjwv_displayMenu(item) {

	var temp = ""
	for (var i = 0; i<NUM_ITEM; i++) {
		if ( i == item) 
			temp += menuItem2[i]
		else
			temp += menuItem[i]
	}
	document.write(temp)

}

function csjwv_displayLogo() {
			document.write('<A NAME="HOME"><IMG  Align=Top SRC="image/logo.gif" ALT="logo"><BR></A>')
}

function csjwv_displayLang (ch_page, j_page) {
			
			var temp = ''
			if (ch_page != null || j_page != null)
				temp += '[ENGLISH]'
			if (ch_page != null) 
				temp += ' [<A HREF="' + ch_page + '">CHINESE</A>]'
			if (j_page != null) 
				temp += ' [<A HREF="' + j_page + '">JAPANESE</A>]'
			temp +=  '<BR><P></P>'
			document.write(temp)
}

function csjwv_displayFooter() {

	document.write('<HR><FONT SIZE=-2>| <A HREF="home-en.html">HOME</A> |</FONT><BR><P></P>')	

}
