
function OpenLanguagePage(txtPageToOpen, txtLanguage)
{
// Use this line once all languages are in place
 location.href="../"+ txtLanguage +"/" + txtPageToOpen + ".html";

// Use these lines in the meantime
//if (txtLanguage=="english")
//	{location.href="../"+ txtLanguage +"/" + txtPageToOpen}
//else 
//	{location.href="../traditional/index.html"}
//;
}

function WriteWebContact()
{
document.write('<A HREF="mailto:');
document.write('webcontact&#64');
document.write('chamberlain-edu&#46;com?Subject=Chamberlain Website Enquiry";>');
document.write('webcontact&#64');
document.write('chamberlain-edu&#46;com</A>');
}

function WriteChristmas()
{
document.write('<A HREF="mailto:');
document.write('christmas&#64');
document.write('chamberlain-edu&#46;com?Subject=Sabrina&#39;s Christmas Game Entry');
if (LanguageDir.indexOf("english") >= 0) 
	{
document.write('&Body=There are ? &#39;Merry Christmas&#39; including the circled example.";>');
document.write('Tell ');
document.write('us</A>');
	}
else if (LanguageDir.indexOf('simplified') >= 0)
	{
document.write('">');
document.write('多少个</A>');
	}
else if (LanguageDir.indexOf("traditional") >= 0)
	{
document.write('">');
document.write('多少個</A>');
	}
}
function WriteChristmas2()
{
document.write('<A HREF="mailto:');
document.write('christmas&#64');
document.write('chamberlain-edu&#46;com?Subject=Sabrina&#39;s Christmas Game Entry&Body=There are ? &#39;Merry Christmas&#39; including the circled example.";>');
document.write('christmas&#64');
document.write('chamberlain-edu&#46;com</a>');
}

function WriteHeader(txtTitle, txtPage, txtLatestNews)
{

<!-- Set up default information
LanguageDir="english"
Logo="i_logo_hk.gif"
TitleText="Chamberlain Educational Services Centre<BR>&nbsp;&nbsp;&nbsp;- Specialists in UK and Australia"
TelText="Tel"
FaxText="Fax"
HKAddress='21/F, 10 Pottinger Street,<BR>Central, Hong Kong'
GZAddress='5/F, Xin Fu Xiong Building,<BR>9 Nong Lin Xia Road,<BR>Yuexiu District,<BR>Guangzhou 510080,China'
DisclaimerText="Disclaimer"
CopyrightText='Chamberlain Educational<BR>Services Limited'

ShowMenu="Yes";
if (txtPage=="xmas") {ShowMenu="No";}

FullDirPath=location.href;

if (FullDirPath.indexOf("simplified") >= 0)
	{
	Logo="i_logo_gz.gif"
	TitleText="广州天麟教育顾问有限公司<BR>&nbsp;&nbsp;&nbsp;- 办理英国及澳大利亚升学"
	LanguageDir="simplified"
	TelText="电话"
	FaxText="传真"
	HKAddress='香港中环砵甸乍街10号21楼</B>'
	GZAddress='广州市越秀区农林下路9号<BR>新富熊大厦5楼<BR>邮政编码510080'
	DisclaimerText="声明"
	CopyrightText='广州市汉邦信息咨询有限公司'
	}
else if (FullDirPath.indexOf("traditional") >=0)
	{
	TitleText="天麟教育<BR>&nbsp;&nbsp;&nbsp;- 辦理英國及澳洲升學"
	LanguageDir="traditional"
	TelText="電話"
	FaxText="傳真"
	HKAddress='香港中環砵甸乍街10號21樓'
	GZAddress='廣州市越秀區農林下路9號<BR>新富熊大廈5樓<BR>郵政編碼510080'
	DisclaimerText="聲明"
	CopyrightText='天麟教育有限公司'
	}
else if (FullDirPath.indexOf("christmas") >= 0)
	{
	LanguageDir="christmas"
	}

document.write(
'<link href="../style_common.css" rel="stylesheet" type="text/css">' +
'<link href="style.css" rel="stylesheet" type="text/css">' +
'<TABLE border=0>' +
'<TR>' +
'<TD width=0' +
'<CENTER><a href=./index.html><IMG style="border-style:none" SRC="../' + Logo + '", height=96></A></IMG>' +
'</td>' +
'<TD width=0></TD>' +
'<TD>' +
//'<TABLE width=630><TR><TD width=500>' +
'<TABLE ><TR><TD width=500>' +
'<span class="MainTitle">' + TitleText +
'</SPAN>' +
'</td><td>' +
'<img alt="' + txtPage + '" style="border-width:0" src="../i_' + txtPage + '.jpg" align=left height=62></td></tr></table></td>' +
'</TR><TR>' +
'<TD valign=top align=center>' +
'<span class="menu">' 
);
//This is the language specific menu section

if (ShowMenu=="Yes")
{
	if (LanguageDir=="english")
	{	document.write(
		'<A href="about_us.html">About Us</a>' +
		'<BR><A href="index.html">Our Services</a>' +	
		'<BR><A href="fast_track.html">Fast Track To Uni</a>' +
		'<BR><A href="study_uk.html">Study in the UK</a>' +
		'<BR><A href="partners_uk.html">Partners</a>' +
		'<BR><A href="career.html">Career Opportunity</a>' +
		'<BR><A href="contact_us.html">Contact Us</a>' +
		'<BR><A href="site_map.html">Site Map</a>' +
		'<BR>' +
		'<BR><A href="ICADA.html"><img src="../i_LAA_gz.JPG" height=70></a>' +
		'<BR><A href="ICADA.html">International Creative Art & Design Academy</a>' +
		'<BR>' +
		'<BR><A href="ISCA.html"><img src="../i_ISCA_logo.jpg" height=120></a>' +
		'<BR><A href="ISCA.html">International School of Creative Arts</a>'
		);
	}
	else if (LanguageDir=="simplified")
	{	document.write(
		'<A href="about_us.html">关于我们</a>' +
		'<BR><A href="index.html">服务范围</a>' +
		'<BR><A href="fast_track.html">入读大学的捷径</a>' +
		'<BR><A href="study_uk.html">英国留学</a>' +
		'<BR><A href="partners_uk.html">合作伙伴</a>' +
		'<BR><A href="career.html">就业机会</a>' +
		'<BR><A href="contact_us.html">联系我们</a>' +
		'<BR><A href="site_map.html">网站地图</a>' +
		'<BR>' +
		'<BR><A href="ICADA.html"><A href="ICADA.html"><img src="../i_LAA_gz.JPG" height=70></a>' +
		'<BR><A href="ICADA.html">天麟海外艺术创意启发中心</a>' +
		'<BR>' +
		'<BR><A href="ISCA.html"><img src="../i_ISCA_logo.jpg" height=120></a>' +
		'<BR><A href="ISCA.html">International School of Creative Arts</a>'
		);
	}
	else if (LanguageDir=="traditional")
	{	document.write(
		'<A href="about_us.html">關於我們</a>' +
		'<BR><A href="index.html">服務範圍</a>' +
		'<BR><A href="fast_track.html">入讀大學的捷徑</a>' +
		'<BR><A href="study_uk.html">英國留學</a>' +
		'<BR><A href="partners_uk.html">合作夥伴</a>' +
		'<BR><A href="career.html">就業機會</a>' +
		'<BR><A href="contact_us.html">聯繫我們</a>' +
		'<BR><A href="site_map.html">網站地圖</a>' +
		'<BR>' +
		'<BR><A href="ICADA.html"><A href="ICADA.html"><img src="../i_LAA_gz.JPG" height=70></a>' +
		'<BR><A href="ICADA.html">天麟海外藝術創意啟發中心</a>' +
		'<BR>' +
		'<BR><A href="ISCA.html"><img src="../i_ISCA_logo.jpg" height=120></a>' +
		'<BR><A href="ISCA.html">International School of Creative Arts</a>'
		);
	}

}

else
{	document.write(
	'<BR><BR><BR>' 
	);
}


document.write(
	'<BR><BR><A href="javascript:OpenLanguagePage(&#39' + txtPage + '&#39,&#39simplified&#39)">简体中文</a>' +
	'<BR><A href="javascript:OpenLanguagePage(&#39' + txtPage + '&#39,&#39traditional&#39)">繁體中文</a>' +
	'<BR><A href="javascript:OpenLanguagePage(&#39' + txtPage + '&#39,&#39english&#39)">English</a>' +
	'<BR>' +
	'<span class="Disclaimer">' +
	'<BR>' + TelText + ': +852 3426 8000<BR>' + FaxText + ': +852 3426 8108<BR>' + HKAddress +
	'<BR><BR>' + TelText + ': +86 20-87600086<BR>' + FaxText + ': +86 20-87610486' +
	'<BR>' + GZAddress + '<BR>' 
	);

if (ShowMenu=="Yes")
{
	document.write(
		'<BR><A href="disclaimer.html">' + DisclaimerText +'</a>'
		);
}

document.write(
	'<BR><font face="times new roman">&#169;</font>'+ CopyrightText +
	'<BR>' +
	'</span>' +
	'</td>' +
	'<TD width=15></TD>' +
	'<TD valign=top>'
	);

if (txtLatestNews=="News") 
{
	if (LanguageDir=="english")
	{	
		document.write(
		'<table border=0><TR><TD width=30></TD><TD><table cellpadding=10, border=1> ' +              
		'<tr>  ' +                
		'<td align=CENTER>' +
		'<SPAN class=LatestNews><font color="#990033"><strong>Visit Us At The</strong></font><BR><A href="latest_news.html">' +
		'Education Expo 2005</a> 8-10 July' +
		'</TD>' +
		'</table></TD></TABLE><P>' 
		);
	}
	else if (LanguageDir=="simplified")
	{	
		document.write(
		'<table border=0><TR><TD width=30></TD><TD><table cellpadding=10, border=1> ' +              
		'<tr>  ' +                
		'<td align=CENTER>' +
		'<SPAN class=LatestNews><font color="#990033"><strong>欢迎光临下列教育博览</strong></font><BR><A href="latest_news.html">' +
		'2005教育博览会</a> 年七月八日至十日' +
		'</TD>' +
		'</table></TD></TABLE><P>' 
		);
	}
	else if (LanguageDir=="traditional")
	{	
		document.write(
		'<table border=0><TR><TD width=30></TD><TD><table cellpadding=10, border=1> ' +              
		'<tr>  ' +                
		'<td align=CENTER>' +
		'<SPAN class=LatestNews><font color="#990033"><strong>歡迎光臨下列教育博覽</strong></font><BR><A href="latest_news.html">' +
		'2005教育博覽會</a> 年七月八日至十日' +
		'</TD>' +
		'</table></TD></TABLE><P>' 
		);
	}
}

document.write(
'<span class="PageTitle">' + txtTitle +
'</SPAN><P>' 
);


}

function WriteCounter()
{
FullDirPath=location.href;

// Statcounter
if (FullDirPath.indexOf("english") >= 0)
	{	document.write(
		'<script type="text/javascript" language="javascript">' +
		'var sc_project=292993; ' +
		'var sc_partition=1; ' +
		'var sc_security=""; ' +
		'</script>' +
		'<script type="text/javascript" language="javascript" src="http://www.statcounter.com/counter/counter.js"></script><noscript><a href="http://www.statcounter.com/" target="_blank"><img  src="http://c2.statcounter.com/counter.php?sc_project=292993&amp;java=0&amp;security=" alt="page hit counter" border="0"></a></noscript>'
		);
	}
	else if (FullDirPath.indexOf("simplified") >= 0)
	{	document.write(
		'<script type="text/javascript" language="javascript">' +
		'var sc_project=424203; ' +
		'var sc_partition=2; ' +
		'var sc_security=""; ' +
		'</script>' +
		'<script type="text/javascript" language="javascript" src="http://www.statcounter.com/counter/counter.js"></script><noscript><a href="http://www.statcounter.com/" target="_blank"><img  src="http://c3.statcounter.com/counter.php?sc_project=424203&amp;java=0&amp;security=" alt="free webpage hit counter" border="0"></a> </noscript>'
		);
	}
	else if (FullDirPath.indexOf("traditional") >= 0)
	{	document.write(
		'<script type="text/javascript" language="javascript">' +
		'var sc_project=292986; ' +
		'var sc_partition=1; ' +
		'var sc_security=""; ' +
		'</script>' +
		'<script type="text/javascript" language="javascript" src="http://www.statcounter.com/counter/counter.js"></script><noscript><a href="http://www.statcounter.com/" target="_blank"><img  src="http://c2.statcounter.com/counter.php?sc_project=292986&amp;java=0&amp;security=" alt="web tracker" border="0"></a></noscript>'
		);
	}
}

