// JavaScript Document
function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}



function writeMenu()
{	
	var menuHTML = '';
	
	menuHTML = '<ilayer width=750 height=1 name="dep1" >\n';
	menuHTML += '<layer name="dep2" width=750 height=20>\n';
	menuHTML += '</layer>\n';
	menuHTML += '</ilayer>\n';
	menuHTML += '<div id="describe" style=";width:750px;height:20px" onMouseover="clear_delayhide()" onMouseout="resetit(event)"></div>\n';
	
	document.write(menuHTML);
}

function writeHead(title)
{	

	var headerHTML = '';
	if (title == null) title = '';
	
	headerHTML = '<title>';
	headerHTML += website_title +' --- ' + title + '</title>\n';
	headerHTML += '<meta http-equiv="Content-Type" content="text/html; charset=big5">\n';
	headerHTML += '<link href="common/style.css" rel="stylesheet" type="text/css">\n';

	document.write(headerHTML);
s
}	// writeHead



function writeHeader()
{
	var headHTML = '';
			
	headHTML = '<table width="770" border="0" cellspacing="0" cellpadding="0"  bgcolor="#b77826">\n';
	headHTML += '		<tr> \n';
	headHTML += '			<td colspan="19"><a href="#" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage(\'Image13\',\'\',\'../images/space.gif\',1);showit(8);"><img src="../images/spacer.gif" name="Image13" width="770" height="2" border="0"></a></td>\n';
	headHTML += '		</tr>\n';
	headHTML += '		<tr> \n';
	headHTML += '			<td><a href="#" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage(\'Image13\',\'\',\'../images/space.gif\',1);showit(8);""><img src="../images/spacer.gif" name="Image13"  width="10" height="30" border="0"></a></td>\n';
	headHTML += '			<td><a href="../index.html" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage(\'Image10\',\'\',\'../images/net_00_off.gif\',1);showit(8);"><img src="../images/net_00_on.gif" name="Image10" width="78" height="31" border="0"></a></td>\n';
	headHTML += '			<td><img src="../images/spacer.gif" width="6" height="1"></td>\n';
	headHTML += '			<td><a href="#/" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage(\'Image12\',\'\',\'../images/net_01_off.gif\',1);showit(0);"><img src="../images/net_01_on.gif" name="Image12" width="78" height="31" border="0"></a></td>\n';
	headHTML += '			<td><img src="../images/spacer.gif" width="6" height="1"></td>\n';
	headHTML += '			<td><a href="../meeting/" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage(\'Image14\',\'\',\'../images/net_02_off.gif\',1);showit(1);"><img src="../images/net_02_on.gif" name="Image14" width="78" height="31" border="0"></a></td>\n';
	headHTML += '			<td><img src="../images/spacer.gif" width="6" height="1"></td>\n';
	headHTML += '			<td><a href="../activity/" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage(\'Image15\',\'\',\'../images/net_03_off.gif\',1);showit(2);"><img src="../images/net_03_on.gif" name="Image15" width="78" height="31" border="0"></a></td>\n';	
	headHTML += '			<td><img src="../images/spacer.gif" width="6" height="1"></td>\n';
	headHTML += '			<td><a href="../oversea_activity/" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage(\'Image16\',\'\',\'../images/net_04_off.gif\',1);showit(3);"><img src="../images/net_04_on.gif" name="Image16" width="78" height="31" border="0"></a></td>\n';	
	headHTML += '			<td><img src="../images/spacer.gif" width="6" height="1"></td>\n';
	headHTML += '			<td><a href="../info/" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage(\'Image17\',\'\',\'../images/net_05_off.gif\',1);showit(4);"><img src="../images/net_05_on.gif" name="Image17" width="78" height="31" border="0"></a></td>\n';	
	headHTML += '			<td><img src="../images/spacer.gif" width="6" height="1"></td>\n';
	headHTML += '			<td><a href="../passing_activity/" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage(\'Image18\',\'\',\'../images/net_06_off.gif\',1);showit(5);"><img src="../images/net_06_on.gif" name="Image18" width="78" height="31" border="0"></a></td>\n';	
	headHTML += '			<td><img src="../images/spacer.gif" width="6" height="1"></td>\n';
	headHTML += '			<td><a href="../media/" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage(\'Image19\',\'\',\'../images/net_07_off.gif\',1);showit(6);"><img src="../images/net_07_on.gif" name="Image19" width="78" height="31" border="0"></a></td>\n';	
	headHTML += '			<td><img src="../images/spacer.gif" width="6" height="1"></td>\n';
	headHTML += '			<td><a href="../contact_us/" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage(\'Image20\',\'\',\'../images/net_08_off.gif\',1);showit(7);"><img src="../images/net_08_on.gif" name="Image20" width="78" height="31" border="0"></a></td>\n';	
	headHTML += '			<td><a href="#" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage(\'Image13\',\'\',\'../images/space.gif\',1);showit(8);""><img src="../images/spacer.gif"  name="Image13" width="10" height="30" border="0"></a></td>\n';
	headHTML += '		</tr>\n';
	headHTML += '	</table>\n';

	
	
	document.write(headHTML);
}

function writeTopCatName()
{
	var catName = '';
	
	catName = '	<tr> \n';
	catName += '	  <td class=topic>'+thisTitle+'</td>\n';
	

	
	document.write(catName);
	
}	// writeTopCatName




function writeFooter()
{	

	var baseHTML = '';
	
	baseHTML = '\n<!-- base start -->\n';
	baseHTML += '<table width="770" border="0" cellspacing="0" cellpadding="0">\n';
	baseHTML += '<tr>\n';
	baseHTML += '	<td><img src="../images/footer_image_001.gif" width="203" height="38"></td>\n';
	baseHTML += '	<td><a href=http://www.icca.org.hk/><img src="../images/footer_image_002.gif" width="50" height="38" border="0"></a></td>\n';
	baseHTML += '	<td><a href=http://www.icca.org.hk/contact_us/><img src="../images/footer_image_003.gif" width="81" height="38" border="0"></a></td>\n';
	baseHTML += '	<td><img src="../images/footer_image_004.gif" width="436" height="38"></td>\n';	
	baseHTML += '  </tr>\n';
	baseHTML += '  <tr>\n';
	baseHTML += '	<td class=footer colspan=4>&copy; 2005 International Classics Cultures Association. All rights reserved.</td>\n';
	baseHTML += '  </tr>\n';
	baseHTML += '</table>\n';

	

	document.write(baseHTML);
	//alert(baseHTML);
}	// writeHead


function writelan()
{	

	var lanHTML = '';
	
	lanHTML = '\n<!-- lan start -->\n';
	lanHTML += '<table width="74" border="0" cellspacing="0" cellpadding="0">\n';
	lanHTML += '<tr>\n';
	lanHTML += '	<td><a href="e-index.html" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage(\'Image21\',\'\',\'images/net_button_eng_off.gif\',1)"><img src="images/net_button_eng_on.gif" name="Image21" width="38" height="15" border="0"></a></td>\n';
		lanHTML += '	<td><img src="images/net_button_space.gif" width="5" height="15" border="0"></td>\n';
	lanHTML += '	<td><a href="index.html" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage(\'Image22\',\'\',\'images/net_button_chi_off.gif\',1)"><img src="images/net_button_chi_on.gif" name="Image22" width="31" height="15" border="0"></a></td>\n';
	lanHTML += '  </tr>\n';
	lanHTML += '</table>\n';
	

	document.write(lanHTML);
	//alert(lanHTML);
}	// writeHead
