MM_preloadImages('http://www.info.gov.hk/yearbook/2004/images/num/home-over.gif','http://www.info.gov.hk/yearbook/2004/images/num/1-over.gif','http://www.info.gov.hk/yearbook/2004/images/num/2-over.gif','http://www.info.gov.hk/yearbook/2004/images/num/3-over.gif','http://www.info.gov.hk/yearbook/2004/images/num/4-over.gif','http://www.info.gov.hk/yearbook/2004/images/num/5-over.gif','http://www.info.gov.hk/yearbook/2004/images/num/6-over.gif','http://www.info.gov.hk/yearbook/2004/images/num/7-over.gif','http://www.info.gov.hk/yearbook/2004/images/num/8-over.gif','http://www.info.gov.hk/yearbook/2004/images/num/9-over.gif','http://www.info.gov.hk/yearbook/2004/images/num/10-over.gif','http://www.info.gov.hk/yearbook/2004/images/num/11-over.gif','http://www.info.gov.hk/yearbook/2004/images/num/12-over.gif','http://www.info.gov.hk/yearbook/2004/images/num/13-over.gif','http://www.info.gov.hk/yearbook/2004/images/num/14-over.gif','http://www.info.gov.hk/yearbook/2004/images/num/15-over.gif','http://www.info.gov.hk/yearbook/2004/images/num/16-over.gif','http://www.info.gov.hk/yearbook/2004/images/num/17-over.gif','http://www.info.gov.hk/yearbook/2004/images/num/18-over.gif','http://www.info.gov.hk/yearbook/2004/images/num/19-over.gif','http://www.info.gov.hk/yearbook/2004/images/num/20-over.gif','http://www.info.gov.hk/yearbook/2004/images/num/21-over.gif','http://www.info.gov.hk/yearbook/2004/images/num/app-over.gif')

var chapterName = new Array();
chapterName[0]  = '';
chapterName[1]  = 'Constitution and Administration';
chapterName[2]  = 'The Legal System';
chapterName[3]  = 'The Economy';
chapterName[4]  = 'Financial and Monetary Affairs';
chapterName[5]  = 'Commerce and Industry';
chapterName[6]  = 'Employment';
chapterName[7]  = 'Education';
chapterName[8]  = 'Health';
chapterName[9]  = 'Food Safety, Environmental Hygiene, Agriculture and Fisheries';
chapterName[10] = 'Social Welfare';
chapterName[11] = 'Housing';
chapterName[12] = 'Land, Public Works and Utilities';
chapterName[13] = 'Transport';
chapterName[14] = 'The Environment';
chapterName[15] = 'Travel and Tourism';
chapterName[16] = 'Public Order';
chapterName[17] = 'Communications, the Media and Information Technology ';
chapterName[18] = 'Religion and Custom';
chapterName[19] = 'Recreation, Sport and the Arts';
chapterName[20] = 'Population and Immigration';
chapterName[21] = 'History';

function addZero(n){
	if(n<10){n="0"+n;}
	return(n);
}

function writeMenu(n){
	document.write('<table width="442" border="0" cellpadding="0" cellspacing="5" background="../images/t.gif">');
	document.write('<tr>');
	document.write('<td width="14"><a href="http://www.info.gov.hk/yearbook/2004/en/index.htm" onMouseOver="MM_swapImage(\'home\',\'\',\'http://www.info.gov.hk/yearbook/2004/images/num/home-over.gif\',1)" onMouseOut="MM_swapImgRestore()"><img src="http://www.info.gov.hk/yearbook/2004/images/num/home.gif" alt="Table of Contents" name="home" width="14" height="14" border="0" id="home"></a></td>');
	for(i=1;i<=21;i++){
		if(i==n){o=i+"-now";}else{o=i;}
		document.write('<td width="14"><a href="http://www.info.gov.hk/yearbook/2004/en/'+addZero(i)+'_01.htm" onMouseOver="MM_swapImage(\'toc'+i+'\',\'\',\'http://www.info.gov.hk/yearbook/2004/images/num/'+i+'-over.gif\',1)" onMouseOut="MM_swapImgRestore()"><img src="http://www.info.gov.hk/yearbook/2004/images/num/'+o+'.gif" alt="'+chapterName[i]+'" name="toc'+i+'" width="14" height="14" border="0" id="toc'+i+'"></a></td>');
	}
	if(n=='app'){
		document.write('<td width="14"><a href="http://www.info.gov.hk/yearbook/2004/en/app.htm" onMouseOver="MM_swapImage(\'app\',\'\',\'http://www.info.gov.hk/yearbook/2004/images/num/app-over.gif\',1)" onMouseOut="MM_swapImgRestore()"><img src="http://www.info.gov.hk/yearbook/2004/images/num/app-now.gif" alt="Appendices" name="app" width="14" height="14" border="0"id="app"></a></td>');
	}else{
		document.write('<td width="14"><a href="http://www.info.gov.hk/yearbook/2004/en/app.htm" onMouseOver="MM_swapImage(\'app\',\'\',\'http://www.info.gov.hk/yearbook/2004/images/num/app-over.gif\',1)" onMouseOut="MM_swapImgRestore()"><img src="http://www.info.gov.hk/yearbook/2004/images/num/app.gif" alt="Appendices" name="app" width="14" height="14" border="0"id="app"></a></td>');
	}
	document.write('</tr>');
	document.write('</table>');
}