var calender_highlight = new Array();

function open_tab()
{
	var x = $("#left_menu").css("display");

	if(x=="block")
	{
	document.getElementById("left_menu").style.display = 'none';
	}
	else
	{
	document.getElementById("left_menu").style.display = 'block';
	}

}
function print_index_leftmenu(xx, xxx)
{
print_index_calender(w);
var menuhtml = "";

menuhtml +='<br>';

if (xx ==1)
{
menuhtml +='<a href="news/news.html"><img name="left_menu1" src="../img/'+w+'/leftmenu_1_over.gif" border="0"></a><br>';
}
else
{
menuhtml +='<a href="news/news.html"><img onMouseOut="imgSwap(this)" onMouseOver="imgSwap(this)" name="left_menu1" src="../img/'+w+'/leftmenu_1_off.gif" border="0"></a><br>';
}
if(xx==2)
{
menuhtml +='<a href="index.html"><img onMouseOut="imgSwap(this)" onMouseOver="imgSwap(this)" name="left_menu2" src="../img/'+w+'/leftmenu_2_off.gif" border="0"></a><br>';
menuhtml +='<a href="javascript:open_tab()"><img onMouseOut="imgSwap(this)" onMouseOver="imgSwap(this)" name="left_menu2_1" src="../img/'+w+'/leftmenu_2_1_off.gif" border="0"></a><br>';

if(xxx==1)
{
menuhtml +='<span id="left_menu" style="display:block;"><a href="prog/peterpan.html"><img name="left_menu2_1_1" src="../img/'+w+'/leftmenu_2_1_1_over.gif" border="0"></a><br>';
}
else
{
menuhtml +='<span id="left_menu" style="display:block;"><a href="prog/peterpan.html"><img onMouseOut="imgSwap(this)" onMouseOver="imgSwap(this)" name="left_menu2_1_1" src="../img/'+w+'/leftmenu_2_1_1_off.gif" border="0"></a><br>';
}
if(xxx==2)
{
menuhtml +='<a href="prog/abc_main.html"><img name="left_menu2_1_2" src="../img/'+w+'/leftmenu_2_1_2_over.gif" border="0"></a><br>';
}
else
{
menuhtml +='<a href="prog/abc_main.html"><img onMouseOut="imgSwap(this)" onMouseOver="imgSwap(this)" name="left_menu2_1_2" src="../img/'+w+'/leftmenu_2_1_2_off.gif" border="0"></a><br>';
}
if(xxx==3)
{
menuhtml +='<a href="prog/hearts_main.html"><img name="left_menu2_1_3" src="../img/'+w+'/leftmenu_2_1_3_over.gif" border="0"></a><br>';
}
else
{
menuhtml +='<a href="prog/hearts_main.html"><img onMouseOut="imgSwap(this)" onMouseOver="imgSwap(this)" name="left_menu2_1_3" src="../img/'+w+'/leftmenu_2_1_3_off.gif" border="0"></a><br>';
}
if(xxx==4)
{
menuhtml +='<a href="prog/hongkong_main.html"><img name="left_menu2_1_4" src="../img/'+w+'/leftmenu_2_1_4_over.gif" border="0"></a><br>';
}
else
{
menuhtml +='<a href="prog/hongkong_main.html"><img onMouseOut="imgSwap(this)" onMouseOver="imgSwap(this)" name="left_menu2_1_4" src="../img/'+w+'/leftmenu_2_1_4_off.gif" border="0"></a><br>';
}
if(xxx==5)
{
menuhtml +='<a href="prog/ngs_main.html"><img name="left_menu2_1_5" src="../img/'+w+'/leftmenu_2_1_5_over.gif" border="0"></a></span><br>';
}
else
{
menuhtml +='<a href="prog/ngs_main.html"><img onMouseOut="imgSwap(this)" onMouseOver="imgSwap(this)" name="left_menu2_1_5" src="../img/'+w+'/leftmenu_2_1_5_off.gif" border="0"></a></span>';
}
if(xxx==6)
{
menuhtml +='<a href="prog/iacplus.html"><img name="left_menu2_2" src="../img/'+w+'/leftmenu_2_2_over.gif" border="0"></a><br>';
}
else
{
menuhtml +='<a href="prog/iacplus.html"><img onMouseOut="imgSwap(this)" onMouseOver="imgSwap(this)" name="left_menu2_2" src="../img/'+w+'/leftmenu_2_2_off.gif" border="0"></a><br>';
}
if(xxx==7)
{
menuhtml +='<a href="school/school.html"><img name="left_menu2_3" src="../img/'+w+'/leftmenu_2_3_over.gif" border="0"></a><br>';
}
else
{
menuhtml +='<a href="school/school.html"><img onMouseOut="imgSwap(this)" onMouseOver="imgSwap(this)" name="left_menu2_3" src="../img/'+w+'/leftmenu_2_3_off.gif" border="0"></a><br>';
}
if(xxx==8)
{
menuhtml +='<a href="other/other.html"><img name="left_menu2_4" src="../img/'+w+'/leftmenu_2_4_over.gif" border="0"></a><br>';
}
else
{
menuhtml +='<a href="other/other.html"><img onMouseOut="imgSwap(this)" onMouseOver="imgSwap(this)" name="left_menu2_4" src="../img/'+w+'/leftmenu_2_4_off.gif" border="0"></a><br>';
}
}
else
{
if(xx==0)
{
menuhtml +='<a href="index.html"><img onMouseOut="imgSwap(this)" onMouseOver="imgSwap(this)" name="left_menu2" src="../img/'+w+'/leftmenu_2_over.gif" border="0"></a><br>';
}
else
{
menuhtml +='<a href="index.html"><img onMouseOut="imgSwap(this)" onMouseOver="imgSwap(this)" name="left_menu2" src="../img/'+w+'/leftmenu_2_off.gif" border="0"></a><br>';
}
menuhtml +='<a href="javascript:open_tab()"><img onMouseOut="imgSwap(this)" onMouseOver="imgSwap(this)" name="left_menu2_1" src="../img/'+w+'/leftmenu_2_1_off.gif" border="0"></a><br>';
menuhtml +='<span id="left_menu" style="display:block;"><a href="prog/peterpan.html"><img onMouseOut="imgSwap(this)" onMouseOver="imgSwap(this)" name="left_menu2_1_1" src="../img/'+w+'/leftmenu_2_1_1_off.gif" border="0"></a><br>';
menuhtml +='<a href="prog/abc_main.html"><img onMouseOut="imgSwap(this)" onMouseOver="imgSwap(this)" name="left_menu2_1_2" src="../img/'+w+'/leftmenu_2_1_2_off.gif" border="0"></a><br>';
menuhtml +='<a href="prog/hearts_main.html"><img onMouseOut="imgSwap(this)" onMouseOver="imgSwap(this)" name="left_menu2_1_3" src="../img/'+w+'/leftmenu_2_1_3_off.gif" border="0"></a><br>';
menuhtml +='<a href="prog/hongkong_main.html"><img onMouseOut="imgSwap(this)" onMouseOver="imgSwap(this)" name="left_menu2_1_4" src="../img/'+w+'/leftmenu_2_1_4_off.gif" border="0"></a><br>';
menuhtml +='<a href="prog/ngs_main.html"><img onMouseOut="imgSwap(this)" onMouseOver="imgSwap(this)" name="left_menu2_1_5" src="../img/'+w+'/leftmenu_2_1_5_off.gif" border="0"></a></span>';
menuhtml +='<a href="prog/iacplus.html"><img onMouseOut="imgSwap(this)" onMouseOver="imgSwap(this)" name="left_menu2_2" src="../img/'+w+'/leftmenu_2_2_off.gif" border="0"></a><br>';
menuhtml +='<a href="school/school.html"><img onMouseOut="imgSwap(this)" onMouseOver="imgSwap(this)" name="left_menu2_3" src="../img/'+w+'/leftmenu_2_3_off.gif" border="0"></a><br>';
menuhtml +='<a href="other/other.html"><img onMouseOut="imgSwap(this)" onMouseOver="imgSwap(this)" name="left_menu2_4" src="../img/'+w+'/leftmenu_2_4_off.gif" border="0"></a><br>';
}
if(xx==3)
{
menuhtml +='<a href="guide/guide.html"><img name="left_menu3" src="../img/'+w+'/leftmenu_3_over.gif" border="0"></a><br>';
}
else
{
menuhtml +='<a href="guide/guide.html"><img onMouseOut="imgSwap(this)" onMouseOver="imgSwap(this)" name="left_menu3" src="../img/'+w+'/leftmenu_3_off.gif" border="0"></a><br>';
}
if(xx==4)
{
menuhtml +='<a href="gift/gift.html"><img name="left_menu4" src="../img/'+w+'/leftmenu_4_over.gif" border="0"></a><br>';
}
else
{
menuhtml +='<a href="gift/gift.html"><img onMouseOut="imgSwap(this)" onMouseOver="imgSwap(this)" name="left_menu4" src="../img/'+w+'/leftmenu_4_off.gif" border="0"></a><br>';
}
if(xx==5)
{
menuhtml +='<a href="diaries/diaries.html"><img name="left_menu5" src="../img/'+w+'/leftmenu_5_over.gif" border="0"></a><br>';
}
else
{
menuhtml +='<a href="diaries/diaries.html"><img onMouseOut="imgSwap(this)" onMouseOver="imgSwap(this)" name="left_menu5" src="../img/'+w+'/leftmenu_5_off.gif" border="0"></a><br>';
}
menuhtml +='<a href="index.html"><img onMouseOut="imgSwap(this)" onMouseOver="imgSwap(this)" name="left_menu6" src="../img/'+w+'/leftmenu_6_off.gif" border="0"></a><br>';

if(w=="en")
{
menuhtml +='<form name="form_menu" method="post"><table width="300" background="../img/en/leftmenu_send_bg.gif">';
menuhtml +='<tr>';
menuhtml +='<td width="150" style="padding:58px 0 0 35px;"><input name="sa_name1" type="text" size="18" value="Enter your name" onFocus="inputName1()"></td>';
menuhtml +='<td rowspan="2" style="padding-top:58px"><a href="javascript:checkForm_index()"><img src="../img/en/leftmenu_send_btn.gif" border="0"></a></td>';
menuhtml +='</tr>';
menuhtml +='<tr>';
menuhtml +='<td style="padding-left:35px;"><input name="sa_email1" type="text" size="18" value="Email address" onFocus="inputEmail1()"></td>';
menuhtml +='</tr>';
menuhtml +='<tr>';
menuhtml +='<td height="30"></td>';
menuhtml +='</tr>';
menuhtml +='</table></form>';
}
else
{
menuhtml +='<form name="form_menu" method="post"><table width="300" background="../img/'+w+'/leftmenu_send_bg.gif">';
menuhtml +='<tr>';
menuhtml +='<td width="150" style="padding:58px 0 0 35px;"><input name="sa_name1" type="text" size="18" value="你的名字" onFocus="inputName1()"></td>';
menuhtml +='<td rowspan="2" style="padding-top:58px"><a href="javascript:checkForm_index()"><img src="../img/'+w+'/leftmenu_send_btn.gif" border="0"></a></td>';
menuhtml +='</tr>';
menuhtml +='<tr>';
menuhtml +='<td style="padding-left:35px;"><input name="sa_email1" type="text" size="18" value="电邮" onFocus="inputEmail1()"></td>';
menuhtml +='</tr>';
menuhtml +='<tr>';
menuhtml +='<td height="30"></td>';
menuhtml +='</tr>';
menuhtml +='</table></form>';
}
document.write(menuhtml);
}


function print_leftmenu(xx, xxx)
{

print_calender(w);
var menuhtml = "";

menuhtml +='<br>';

if (xx ==1)
{
menuhtml +='<a href="../news/news.html"><img name="left_menu1" src="../../img/'+w+'/leftmenu_1_over.gif" border="0"></a><br>';
}
else
{
menuhtml +='<a href="../news/news.html"><img onMouseOut="imgSwap(this)" onMouseOver="imgSwap(this)" name="left_menu1" src="../../img/'+w+'/leftmenu_1_off.gif" border="0"></a><br>';
}
if(xx==2)
{
menuhtml +='<a href="../index.html"><img onMouseOut="imgSwap(this)" onMouseOver="imgSwap(this)" name="left_menu2" src="../../img/'+w+'/leftmenu_2_off.gif" border="0"></a><br>';
menuhtml +='<a href="javascript:open_tab()"><img onMouseOut="imgSwap(this)" onMouseOver="imgSwap(this)" name="left_menu2_1" src="../../img/'+w+'/leftmenu_2_1_off.gif" border="0"></a><br>';

if(xxx==1)
{
menuhtml +='<span id="left_menu" style="display:block;"><a href="../prog/peterpan.html"><img name="left_menu2_1_1" src="../../img/'+w+'/leftmenu_2_1_1_over.gif" border="0"></a><br>';
}
else
{
if(xxx==6)
{
menuhtml +='<span id="left_menu" style="display:none;"><a href="../prog/peterpan.html"><img onMouseOut="imgSwap(this)" onMouseOver="imgSwap(this)" name="left_menu2_1_1" src="../../img/'+w+'/leftmenu_2_1_1_off.gif" border="0"></a><br>';
}
else
{
menuhtml +='<span id="left_menu" style="display:block;"><a href="../prog/peterpan.html"><img onMouseOut="imgSwap(this)" onMouseOver="imgSwap(this)" name="left_menu2_1_1" src="../../img/'+w+'/leftmenu_2_1_1_off.gif" border="0"></a><br>';
}
}
if(xxx==2)
{
menuhtml +='<a href="../prog/abc_main.html"><img name="left_menu2_1_2" src="../../img/'+w+'/leftmenu_2_1_2_over.gif" border="0"></a><br>';
}
else
{
menuhtml +='<a href="../prog/abc_main.html"><img onMouseOut="imgSwap(this)" onMouseOver="imgSwap(this)" name="left_menu2_1_2" src="../../img/'+w+'/leftmenu_2_1_2_off.gif" border="0"></a><br>';
}
if(xxx==3)
{
menuhtml +='<a href="../prog/hearts_main.html"><img name="left_menu2_1_3" src="../../img/'+w+'/leftmenu_2_1_3_over.gif" border="0"></a><br>';
}
else
{
menuhtml +='<a href="../prog/hearts_main.html"><img onMouseOut="imgSwap(this)" onMouseOver="imgSwap(this)" name="left_menu2_1_3" src="../../img/'+w+'/leftmenu_2_1_3_off.gif" border="0"></a><br>';
}
if(xxx==4)
{
menuhtml +='<a href="../prog/hongkong_main.html"><img name="left_menu2_1_4" src="../../img/'+w+'/leftmenu_2_1_4_over.gif" border="0"></a><br>';
}
else
{
menuhtml +='<a href="../prog/hongkong_main.html"><img onMouseOut="imgSwap(this)" onMouseOver="imgSwap(this)" name="left_menu2_1_4" src="../../img/'+w+'/leftmenu_2_1_4_off.gif" border="0"></a><br>';
}
if(xxx==5)
{
menuhtml +='<a href="../prog/ngs_main.html"><img name="left_menu2_1_5" src="../../img/'+w+'/leftmenu_2_1_5_over.gif" border="0"></a></span>';
}
else
{
menuhtml +='<a href="../prog/ngs_main.html"><img onMouseOut="imgSwap(this)" onMouseOver="imgSwap(this)" name="left_menu2_1_5" src="../../img/'+w+'/leftmenu_2_1_5_off.gif" border="0"></a></span>';
}
if(xxx==6)
{
menuhtml +='<a href="../prog/iacplus.html"><img name="left_menu2_2" src="../../img/'+w+'/leftmenu_2_2_over.gif" border="0"></a><br>';
}
else
{
menuhtml +='<a href="../prog/iacplus.html"><img onMouseOut="imgSwap(this)" onMouseOver="imgSwap(this)" name="left_menu2_2" src="../../img/'+w+'/leftmenu_2_2_off.gif" border="0"></a><br>';
}
if(xxx==7)
{
menuhtml +='<a href="../school/school.html"><img name="left_menu2_3" src="../../img/'+w+'/leftmenu_2_3_over.gif" border="0"></a><br>';
}
else
{
menuhtml +='<a href="../school/school.html"><img onMouseOut="imgSwap(this)" onMouseOver="imgSwap(this)" name="left_menu2_3" src="../../img/'+w+'/leftmenu_2_3_off.gif" border="0"></a><br>';
}
if(xxx==8)
{
menuhtml +='<a href="../other/other.html"><img name="left_menu2_4" src="../../img/'+w+'/leftmenu_2_4_over.gif" border="0"></a><br>';
}
else
{
menuhtml +='<a href="../other/other.html"><img onMouseOut="imgSwap(this)" onMouseOver="imgSwap(this)" name="left_menu2_4" src="../../img/'+w+'/leftmenu_2_4_off.gif" border="0"></a><br>';
}
}
else
{
menuhtml +='<a href="../index.html"><img onMouseOut="imgSwap(this)" onMouseOver="imgSwap(this)" name="left_menu2" src="../../img/'+w+'/leftmenu_2_off.gif" border="0"></a><br>';
menuhtml +='<a href="javascript:open_tab()"><img onMouseOut="imgSwap(this)" onMouseOver="imgSwap(this)" name="left_menu2_1" src="../../img/'+w+'/leftmenu_2_1_off.gif" border="0"></a><br>';
menuhtml +='<span id="left_menu" style="display:block;"><a href="../prog/peterpan.html"><img onMouseOut="imgSwap(this)" onMouseOver="imgSwap(this)" name="left_menu2_1_1" src="../../img/'+w+'/leftmenu_2_1_1_off.gif" border="0"></a><br>';
menuhtml +='<a href="../prog/abc_main.html"><img onMouseOut="imgSwap(this)" onMouseOver="imgSwap(this)" name="left_menu2_1_2" src="../../img/'+w+'/leftmenu_2_1_2_off.gif" border="0"></a><br>';
menuhtml +='<a href="../prog/hearts_main.html"><img onMouseOut="imgSwap(this)" onMouseOver="imgSwap(this)" name="left_menu2_1_3" src="../../img/'+w+'/leftmenu_2_1_3_off.gif" border="0"></a><br>';
menuhtml +='<a href="../prog/hongkong_main.html"><img onMouseOut="imgSwap(this)" onMouseOver="imgSwap(this)" name="left_menu2_1_4" src="../../img/'+w+'/leftmenu_2_1_4_off.gif" border="0"></a><br>';
menuhtml +='<a href="../prog/ngs_main.html"><img onMouseOut="imgSwap(this)" onMouseOver="imgSwap(this)" name="left_menu2_1_5" src="../../img/'+w+'/leftmenu_2_1_5_off.gif" border="0"></a></span>';
menuhtml +='<a href="../prog/iacplus.html"><img onMouseOut="imgSwap(this)" onMouseOver="imgSwap(this)" name="left_menu2_2" src="../../img/'+w+'/leftmenu_2_2_off.gif" border="0"></a><br>';
menuhtml +='<a href="../school/school.html"><img onMouseOut="imgSwap(this)" onMouseOver="imgSwap(this)" name="left_menu2_3" src="../../img/'+w+'/leftmenu_2_3_off.gif" border="0"></a><br>';
menuhtml +='<a href="../other/other.html"><img onMouseOut="imgSwap(this)" onMouseOver="imgSwap(this)" name="left_menu2_4" src="../../img/'+w+'/leftmenu_2_4_off.gif" border="0"></a><br>';
}
if(xx==3)
{
menuhtml +='<a href="../guide/guide.html"><img name="left_menu3" src="../../img/'+w+'/leftmenu_3_over.gif" border="0"></a><br>';
}
else
{
menuhtml +='<a href="../guide/guide.html"><img onMouseOut="imgSwap(this)" onMouseOver="imgSwap(this)" name="left_menu3" src="../../img/'+w+'/leftmenu_3_off.gif" border="0"></a><br>';
}
if(xx==4)
{
menuhtml +='<a href="../gift/gift.html"><img name="left_menu4" src="../../img/'+w+'/leftmenu_4_over.gif" border="0"></a><br>';
}
else
{
menuhtml +='<a href="../gift/gift.html"><img onMouseOut="imgSwap(this)" onMouseOver="imgSwap(this)" name="left_menu4" src="../../img/'+w+'/leftmenu_4_off.gif" border="0"></a><br>';
}
if(xx==5)
{
menuhtml +='<a href="../diaries/diaries.html"><img name="left_menu5" src="../../img/'+w+'/leftmenu_5_over.gif" border="0"></a><br>';
}
else
{
menuhtml +='<a href="../diaries/diaries.html"><img onMouseOut="imgSwap(this)" onMouseOver="imgSwap(this)" name="left_menu5" src="../../img/'+w+'/leftmenu_5_off.gif" border="0"></a><br>';
}
menuhtml +='<a href="../index.html"><img onMouseOut="imgSwap(this)" onMouseOver="imgSwap(this)" name="left_menu6" src="../../img/'+w+'/leftmenu_6_off.gif" border="0"></a><br>';

if(w=="en")
{
menuhtml +='<form name="form_menu" method="post"><table width="300" background="../../img/en/leftmenu_send_bg.gif">';
menuhtml +='<tr>';
menuhtml +='<td width="150" style="padding:58px 0 0 35px;"><input name="sa_name1" type="text" size="18" value="Enter your name" onFocus="inputName1()"></td>';
menuhtml +='<td rowspan="2" style="padding-top:58px"><a href="javascript:checkForm()"><img src="../../img/en/leftmenu_send_btn.gif" border="0"></a></td>';
menuhtml +='</tr>';
menuhtml +='<tr>';
menuhtml +='<td style="padding-left:35px;"><input name="sa_email1" type="text" size="18" value="Email address" onFocus="inputEmail1()"></td>';
menuhtml +='</tr>';
menuhtml +='<tr>';
menuhtml +='<td height="30"></td>';
menuhtml +='</tr>';
menuhtml +='</table></form>';
}
else
{
menuhtml +='<form name="form_menu" method="post"><table width="300" background="../../img/'+w+'/leftmenu_send_bg.gif">';
menuhtml +='<tr>';
menuhtml +='<td width="150" style="padding:58px 0 0 35px;"><input name="sa_name1" type="text" size="18" value="你的名字" onFocus="inputName1()"></td>';
menuhtml +='<td rowspan="2" style="padding-top:58px"><a href="javascript:checkForm()"><img src="../../img/'+w+'/leftmenu_send_btn.gif" border="0"></a></td>';
menuhtml +='</tr>';
menuhtml +='<tr>';
menuhtml +='<td style="padding-left:35px;"><input name="sa_email1" type="text" size="18" value="电邮" onFocus="inputEmail1()"></td>';
menuhtml +='</tr>';
menuhtml +='<tr>';
menuhtml +='<td height="30"></td>';
menuhtml +='</tr>';
menuhtml +='</table></form>';
}
document.write(menuhtml);
}


function print_ngs_leftmenu(xx, xxx)
{
print_ngs_calender(w);
var menuhtml = "";

menuhtml +='<br>';

menuhtml +='<a href="../news/news.html"><img onMouseOut="imgSwap(this)" onMouseOver="imgSwap(this)" name="left_menu1" src="../../img/'+w+'/ngs/leftmenu_1_off.gif" border="0"></a><br>';
menuhtml +='<a href="../index.html"><img onMouseOut="imgSwap(this)" onMouseOver="imgSwap(this)" name="left_menu2" src="../../img/'+w+'/ngs/leftmenu_2_off.gif" border="0"></a><br>';
menuhtml +='<a href="javascript:open_tab()"><img onMouseOut="imgSwap(this)" onMouseOver="imgSwap(this)" name="left_menu2_1" src="../../img/'+w+'/ngs/leftmenu_2_1_off.gif" border="0"></a><br>';
menuhtml +='<span id="left_menu" style="display:block;"><a href="../prog/peterpan.html"><img onMouseOut="imgSwap(this)" onMouseOver="imgSwap(this)" name="left_menu2_1_1" src="../../img/'+w+'/ngs/leftmenu_2_1_1_off.gif" border="0"></a><br>';
menuhtml +='<a href="../prog/abc_main.html"><img onMouseOut="imgSwap(this)" onMouseOver="imgSwap(this)" name="left_menu2_1_2" src="../../img/'+w+'/ngs/leftmenu_2_1_2_off.gif" border="0"></a><br>';
menuhtml +='<a href="../prog/hearts_main.html"><img onMouseOut="imgSwap(this)" onMouseOver="imgSwap(this)" name="left_menu2_1_3" src="../../img/'+w+'/ngs/leftmenu_2_1_3_off.gif" border="0"></a><br>';
menuhtml +='<a href="../prog/hongkong_main.html"><img onMouseOut="imgSwap(this)" onMouseOver="imgSwap(this)" name="left_menu2_1_4" src="../../img/'+w+'/ngs/leftmenu_2_1_4_off.gif" border="0"></a><br>';
menuhtml +='<a href="../prog/ngs_main.html"><img onMouseOut="imgSwap(this)" onMouseOver="imgSwap(this)" name="left_menu2_1_5" src="../../img/'+w+'/ngs/leftmenu_2_1_5_off.gif" border="0"></a></span>';
menuhtml +='<a href="../prog/iacplus.html"><img onMouseOut="imgSwap(this)" onMouseOver="imgSwap(this)" name="left_menu2_2" src="../../img/'+w+'/ngs/leftmenu_2_2_off.gif" border="0"></a><br>';
menuhtml +='<a href="../school/school.html"><img onMouseOut="imgSwap(this)" onMouseOver="imgSwap(this)" name="left_menu2_3" src="../../img/'+w+'/ngs/leftmenu_2_3_off.gif" border="0"></a><br>';
menuhtml +='<a href="../other/other.html"><img onMouseOut="imgSwap(this)" onMouseOver="imgSwap(this)" name="left_menu2_4" src="../../img/'+w+'/ngs/leftmenu_2_4_off.gif" border="0"></a><br>';
menuhtml +='<a href="../guide/guide.html"><img onMouseOut="imgSwap(this)" onMouseOver="imgSwap(this)" name="left_menu3" src="../../img/'+w+'/ngs/leftmenu_3_off.gif" border="0"></a><br>';
menuhtml +='<a href="../gift/gift.html"><img onMouseOut="imgSwap(this)" onMouseOver="imgSwap(this)" name="left_menu4" src="../../img/'+w+'/ngs/leftmenu_4_off.gif" border="0"></a><br>';
menuhtml +='<a href="../diaries/diaries.html"><img onMouseOut="imgSwap(this)" onMouseOver="imgSwap(this)" name="left_menu5" src="../../img/'+w+'/ngs/leftmenu_5_off.gif" border="0"></a><br>';
menuhtml +='<a href="../index.html"><img onMouseOut="imgSwap(this)" onMouseOver="imgSwap(this)" name="left_menu6" src="../../img/'+w+'/ngs/leftmenu_6_off.gif" border="0"></a><br>';

if(w=="en")
{
menuhtml +='<form name="form_menu" method="post"><table width="300" background="../../img/en/ngs/leftmenu_send_bg.gif">';
menuhtml +='<tr>';
menuhtml +='<td width="150" style="padding:58px 0 0 35px;"><input name="sa_name1" type="text" size="18" value="Enter your name" onFocus="inputName1()"></td>';
menuhtml +='<td rowspan="2" style="padding-top:58px"><a href="javascript:checkForm()"><img src="../../img/en/ngs/leftmenu_send_btn.gif" border="0"></a></td>';
menuhtml +='</tr>';
menuhtml +='<tr>';
menuhtml +='<td style="padding-left:35px;"><input name="sa_email1" type="text" size="18" value="Email address" onFocus="inputEmail1()"></td>';
menuhtml +='</tr>';
menuhtml +='<tr>';
menuhtml +='<td height="30"></td>';
menuhtml +='</tr>';
menuhtml +='</table></form>';
}
else
{
menuhtml +='<form name="form_menu" method="post"><table width="300" background="../../img/'+w+'/ngs/leftmenu_send_bg.gif">';
menuhtml +='<tr>';
menuhtml +='<td width="150" style="padding:58px 0 0 35px;"><input name="sa_name1" type="text" size="18" value="你的名字" onFocus="inputName1()"></td>';
menuhtml +='<td rowspan="2" style="padding-top:58px"><a href="javascript:checkForm()"><img src="../../img/'+w+'/ngs/leftmenu_send_btn.gif" border="0"></a></td>';
menuhtml +='</tr>';
menuhtml +='<tr>';
menuhtml +='<td style="padding-left:35px;"><input name="sa_email1" type="text" size="18" value="电邮" onFocus="inputEmail1()"></td>';
menuhtml +='</tr>';
menuhtml +='<tr>';
menuhtml +='<td height="30"></td>';
menuhtml +='</tr>';
menuhtml +='</table></form>';
}
document.write(menuhtml);
}

function print_fb_link2()
{
var url = document.location.href;
window.open('http://sc.lcsd.gov.hk/gb/www.facebook.com/sharer.php?u='+url,'sharer','toolbar=0,status=0,width=626,height=436');
}
function print_fb_link()
{
var url = document.location.href.replace('/prog/', '/fb/');
window.open(url,'sharer','toolbar=0,status=0,width=626,height=436');
}

function print_prog_btn(on, trailer, uc)
{
var url = document.location.href;
var btnhtml = "";
var share_btn_link ="../../php/fd_form.php?keepThis=true&TB_iframe=true&height=384&width=390&modal=false&modal2=false";
var share_btn_link_b5 ="../../php/fd_form2.php?keepThis=true&TB_iframe=true&height=384&width=390&modal=false&modal2=false";
var share_btn_link_gb ="../../php/fd_form3.php?keepThis=true&TB_iframe=true&height=384&width=390&modal=false&modal2=false";
var buy_btn_link = "http://sc.lcsd.gov.hk/gb/www.urbtix.hk";
var buy_btn_link_b5 = "http://sc.lcsd.gov.hk/gb/www.urbtix.hk";
var buy_btn_link_gb = "http://sc.lcsd.gov.hk/gb/www.urbtix.hk";
var trailer_link = "player.html?video_id="+trailer+"&keepThis=true&TB_iframe=true&height=340&width=470&modal=false&modal2=false";

btnhtml +='<div style="float:right; padding:0 10px 10px 0;">';
if (w=="en")
{
if (on=="ngs")
{
if(trailer!=undefined)
{
btnhtml +='<a href="'+trailer_link+'" class="thickbox"><img onMouseOut="imgSwap(this)" onMouseOver="imgSwap(this)" name="prog_btn1" src="../../img/en/ngs/con_btn1_off.gif" alt="Play Video" title="Play Video" border="0"></a>';
}
btnhtml +='<a href="'+uc+'" target="_blank"><img onMouseOut="imgSwap(this)" onMouseOver="imgSwap(this)" name="prog_btn2" src="../../img/en/ngs/con_btn2_off.gif" border="0"></a>';
btnhtml +='<a href="'+share_btn_link+'" class="thickbox"><img onMouseOut="imgSwap(this)" onMouseOver="imgSwap(this)" name="prog_btn3" src="../../img/en/ngs/con_btn3_off.gif" alt="Share with Friends" title="Share with Friends" border="0"></a>';
btnhtml +='<a href="javascript:print_fb_link()"><img onMouseOut="imgSwap(this)" onMouseOver="imgSwap(this)" name="prog_btn4" src="../../img/en/ngs/con_btn4_off.gif" alt="Share on facebook" title="Share on facebook" border="0"></a>';
btnhtml +='<a href="javascript:feedbackon()"><img onMouseOut="imgSwap(this)" onMouseOver="imgSwap(this)" name="prog_btn5" src="../../img/en/ngs/con_btn5_off.gif" alt="Feedback" title="Feedback" border="0"></a>';
btnhtml +='<a href="'+buy_btn_link+'" target="_blank"><img onMouseOut="imgSwap(this)" onMouseOver="imgSwap(this)" name="prog_btn6" src="../../img/en/ngs/con_btn6_off.gif" alt="Buy Now" title="Buy Now" border="0"></a>';
btnhtml +='<div id="feedback" style="display:none; position:absolute;"><div class="feedback"><div style="background:#f2f2f2; padding:5px;"><div style="text-align:right"><a href="javascript:feedbackoff()">Close</a></div>Feedback</div><div style="background:#ffffff;padding:5px;">If you have any views on our programmes, please write to us by email <a href="mailto:fo@lcsd.gov.hk">fo@lcsd.gov.hk</a> or by fax 2371 4171 via <a href="../../img/common/pdf/ngs_myview.pdf" target="_blank">My View Form</a>.</div></div></div>';
}
else
{
if(trailer!=undefined)
{
btnhtml +='<a href="'+trailer_link+'" class="thickbox"><img onMouseOut="imgSwap(this)" onMouseOver="imgSwap(this)" name="prog_btn1" src="../../img/en/con_btn1_off.gif" alt="Play Video" title="Play Video" border="0"></a>';
}
btnhtml +='<a href="'+share_btn_link+'" class="thickbox"><img onMouseOut="imgSwap(this)" onMouseOver="imgSwap(this)" name="prog_btn3" src="../../img/en/con_btn3_off.gif" alt="Share with Friends" title="Share with Friends" border="0"></a>';
btnhtml +='<a href="javascript:print_fb_link()"><img onMouseOut="imgSwap(this)" onMouseOver="imgSwap(this)" name="prog_btn4" src="../../img/en/con_btn4_off.gif" alt="Share on facebook" title="Share on facebook" border="0"></a>';
btnhtml +='<a href="javascript:feedbackon()"><img onMouseOut="imgSwap(this)" onMouseOver="imgSwap(this)" name="prog_btn5" src="../../img/en/con_btn5_off.gif" alt="Feedback" title="Feedback" border="0"></a>';
btnhtml +='<a href="'+buy_btn_link+'" target="_blank"><img onMouseOut="imgSwap(this)" onMouseOver="imgSwap(this)" name="prog_btn6" src="../../img/en/con_btn6_off.gif" alt="Buy Now" title="Buy Now" border="0"></a>';
btnhtml +='<div id="feedback" style="display:none; position:absolute;"><div class="feedback"><div style="background:#f2f2f2; padding:5px;"><div style="text-align:right"><a href="javascript:feedbackoff()">Close</a></div>Feedback</div><div style="background:#ffffff;padding:5px;">If you have any views on our programmes, please write to us by email <a href="mailto:fo@lcsd.gov.hk">fo@lcsd.gov.hk</a> or by fax 2371 4171 via <a href="../../img/common/pdf/myview.pdf" target="_blank">My View Form</a>.</div></div></div>';
}
}
else
{
if (on=="ngs")
{
if(trailer!=undefined)
{
btnhtml +='<a href="'+trailer_link+'" class="thickbox"><img onMouseOut="imgSwap(this)" onMouseOver="imgSwap(this)" name="prog_btn1" src="../../img/b5/ngs/con_btn1_off.gif" alt="播放影片" title="播放影片" border="0"></a>';
}
btnhtml +='<a href="'+uc+'" target="_blank"><img onMouseOut="imgSwap(this)" onMouseOver="imgSwap(this)" name="prog_btn2" src="../../img/b5/ngs/con_btn2_off.gif" border="0"></a>';
if(w=="b5")
{
btnhtml +='<a href="'+share_btn_link_b5+'" class="thickbox"><img onMouseOut="imgSwap(this)" onMouseOver="imgSwap(this)" name="prog_btn3" src="../../img/b5/ngs/con_btn3_off.gif" alt="推介给朋友" title="推介给朋友" border="0"></a>';
}
else
{
btnhtml +='<a href="'+share_btn_link_gb+'" class="thickbox"><img onMouseOut="imgSwap(this)" onMouseOver="imgSwap(this)" name="prog_btn3" src="../../img/b5/ngs/con_btn3_off.gif" alt="推介给朋友" title="推介给朋友" border="0"></a>';
}
btnhtml +='<a href="javascript:print_fb_link()"><img onMouseOut="imgSwap(this)" onMouseOver="imgSwap(this)" name="prog_btn4" src="../../img/b5/ngs/con_btn4_off.gif" alt="分享至 facebook" title="分享至 facebook" border="0"></a>';
btnhtml +='<a href="javascript:feedbackon()"><img onMouseOut="imgSwap(this)" onMouseOver="imgSwap(this)" name="prog_btn5" src="../../img/b5/ngs/con_btn5_off.gif" alt="意见" title="意见" border="0"></a>';
if(w=="b5")
{
btnhtml +='<a href="'+buy_btn_link_b5+'" target="_blank"><img onMouseOut="imgSwap(this)" onMouseOver="imgSwap(this)" name="prog_btn6" src="../../img/b5/ngs/con_btn6_off.gif" alt="立即购票" title="立即购票" border="0"></a>';
}
else
{
btnhtml +='<a href="'+buy_btn_link_gb+'" target="_blank"><img onMouseOut="imgSwap(this)" onMouseOver="imgSwap(this)" name="prog_btn6" src="../../img/b5/ngs/con_btn6_off.gif" alt="立即购票" title="立即购票" border="0"></a>';
}
btnhtml +='<div id="feedback" style="display:none; position:absolute;"><div class="feedback"><div style="background:#f2f2f2; padding:5px;"><div style="text-align:right"><a href="javascript:feedbackoff()">关闭</a></div>意见</div><div style="background:#ffffff;padding:5px;">若你对我们举办的节目有任何意见，欢迎电邮至<a href="mailto:fo@lcsd.gov.hk">fo@lcsd.gov.hk</a>，或下载<a href="../../img/common/pdf/ngs_myview.pdf" target="_blank">感想纸</a>，填妥后传真至2371 4171。</div></div></div>';
}
else
{
if(trailer!=undefined)
{
btnhtml +='<a href="'+trailer_link+'" class="thickbox"><img onMouseOut="imgSwap(this)" onMouseOver="imgSwap(this)" name="prog_btn1" src="../../img/b5/con_btn1_off.gif" alt="播放影片" title="播放影片" border="0"></a>';
}
if(w=="b5")
{
btnhtml +='<a href="'+share_btn_link_b5+'" class="thickbox"><img onMouseOut="imgSwap(this)" onMouseOver="imgSwap(this)" name="prog_btn3" src="../../img/b5/con_btn3_off.gif" alt="推介给朋友" title="推介给朋友" border="0"></a>';
}
else
{
btnhtml +='<a href="'+share_btn_link_gb+'" class="thickbox"><img onMouseOut="imgSwap(this)" onMouseOver="imgSwap(this)" name="prog_btn3" src="../../img/b5/con_btn3_off.gif" alt="推介给朋友" title="推介给朋友" border="0"></a>';
}
btnhtml +='<a href="javascript:print_fb_link()"><img onMouseOut="imgSwap(this)" onMouseOver="imgSwap(this)" name="prog_btn4" src="../../img/b5/con_btn4_off.gif" alt="分享至 facebook" title="分享至 facebook" border="0"></a>';
btnhtml +='<a href="javascript:feedbackon()"><img onMouseOut="imgSwap(this)" onMouseOver="imgSwap(this)" name="prog_btn5" src="../../img/b5/con_btn5_off.gif" alt="意见" title="意见" border="0"></a>';
if(w=="b5")
{
btnhtml +='<a href="'+buy_btn_link_b5+'" target="_blank"><img onMouseOut="imgSwap(this)" onMouseOver="imgSwap(this)" name="prog_btn6" src="../../img/b5/con_btn6_off.gif" alt="立即购票" title="立即购票" border="0"></a>';
}
else
{
btnhtml +='<a href="'+buy_btn_link_gb+'" target="_blank"><img onMouseOut="imgSwap(this)" onMouseOver="imgSwap(this)" name="prog_btn6" src="../../img/b5/con_btn6_off.gif" alt="立即购票" title="立即购票" border="0"></a>';
}
btnhtml +='<div id="feedback" style="display:none; position:absolute;"><div class="feedback"><div style="background:#f2f2f2; padding:5px;"><div style="text-align:right"><a href="javascript:feedbackoff()">关闭</a></div>意见</div><div style="background:#ffffff;padding:5px;">若你对我们举办的节目有任何意见，欢迎电邮至<a href="mailto:fo@lcsd.gov.hk">fo@lcsd.gov.hk</a>，或下载<a href="../../img/common/pdf/myview.pdf" target="_blank">感想纸</a>，填妥后传真至2371 4171。</div></div></div>';
}
}
btnhtml +='</div>';


document.write(btnhtml);
}

function print_index_prog_btn(on)
{
var url = document.location.href;
var share_btn_link ="../php/fd_form.php?keepThis=true&TB_iframe=true&height=384&width=390&modal=false&modal2=false";
var share_btn_link_b5 ="../php/fd_form2.php?keepThis=true&TB_iframe=true&height=384&width=390&modal=false&modal2=false";
var share_btn_link_gb ="../php/fd_form3.php?keepThis=true&TB_iframe=true&height=384&width=390&modal=false&modal2=false";
var buy_btn_link = "http://sc.lcsd.gov.hk/gb/www.urbtix.hk";
var buy_btn_link_b5 = "http://sc.lcsd.gov.hk/gb/www.urbtix.hk";
var buy_btn_link_gb = "http://sc.lcsd.gov.hk/gb/www.urbtix.hk";
var btnhtml = "";

btnhtml +='<div style="float:right; padding:0 10px 10px 0;">';
if (w=="en")
{
btnhtml +='<a href="player.html?video_id=index_eng&keepThis=true&TB_iframe=true&height=340&width=470&modal=false&modal2=false" class="thickbox"><img onMouseOut="imgSwap(this)" onMouseOver="imgSwap(this)" name="prog_btn1" src="../img/en/con_btn1_off.gif" alt="Play Video" title="Play Video" border="0"></a>';
btnhtml +='<a href="'+share_btn_link+'" class="thickbox"><img onMouseOut="imgSwap(this)" onMouseOver="imgSwap(this)" name="prog_btn3" src="../img/en/con_btn3_off.gif" alt="Share with Friends" title="Share with Friends" border="0"></a>';
btnhtml +='<a href="javascript:print_fb_link2()"><img onMouseOut="imgSwap(this)" onMouseOver="imgSwap(this)" name="prog_btn4" src="../img/en/con_btn4_off.gif" alt="Share on facebook" title="Share on facebook" border="0"></a>';
btnhtml +='<a href="javascript:feedbackon()"><img onMouseOut="imgSwap(this)" onMouseOver="imgSwap(this)" name="prog_btn5" src="../img/en/con_btn5_off.gif" alt="Feedback" title="Feedback" border="0"></a>';
btnhtml +='<a href="'+buy_btn_link+'" target="_blank"><img onMouseOut="imgSwap(this)" onMouseOver="imgSwap(this)" name="prog_btn6" src="../img/en/con_btn6_off.gif" alt="Buy Now" title="Buy Now" border="0"></a>';
btnhtml +='<div id="feedback" style="display:none; position:absolute;"><div class="feedback"><div style="background:#f2f2f2; padding:5px;"><div style="text-align:right"><a href="javascript:feedbackoff()">Close</a></div>Feedback</div><div style="background:#ffffff;padding:5px;">If you have any views on our programmes, please write to us by email <a href="mailto:fo@lcsd.gov.hk">fo@lcsd.gov.hk</a> or by fax 2371 4171 via <a href="../img/common/pdf/myview.pdf" target="_blank">My View Form</a>.</div></div></div>';
}
else
{
btnhtml +='<a href="player.html?video_id=index_chi&keepThis=true&TB_iframe=true&height=340&width=470&modal=false&modal2=false" class="thickbox"><img onMouseOut="imgSwap(this)" onMouseOver="imgSwap(this)" name="prog_btn1" src="../img/b5/con_btn1_off.gif" alt="播放影片" title="播放影片" border="0"></a>';
if(w=="b5")
{
btnhtml +='<a href="'+share_btn_link_b5+'" class="thickbox"><img onMouseOut="imgSwap(this)" onMouseOver="imgSwap(this)" name="prog_btn3" src="../img/b5/con_btn3_off.gif" alt="推介给朋友" title="推介给朋友" border="0"></a>';
}
else
{
btnhtml +='<a href="'+share_btn_link_gb+'" class="thickbox"><img onMouseOut="imgSwap(this)" onMouseOver="imgSwap(this)" name="prog_btn3" src="../img/b5/con_btn3_off.gif" alt="推介给朋友" title="推介给朋友" border="0"></a>';
}
btnhtml +='<a href="javascript:print_fb_link2()"><img onMouseOut="imgSwap(this)" onMouseOver="imgSwap(this)" name="prog_btn4" src="../img/b5/con_btn4_off.gif" alt="分享至 facebook" title="分享至 facebook" border="0"></a>';
btnhtml +='<a href="javascript:feedbackon()"><img onMouseOut="imgSwap(this)" onMouseOver="imgSwap(this)" name="prog_btn5" src="../img/b5/con_btn5_off.gif" alt="意见" title="意见" border="0"></a>';
if(w=="b5")
{
btnhtml +='<a href="'+buy_btn_link_b5+'" target="_blank"><img onMouseOut="imgSwap(this)" onMouseOver="imgSwap(this)" name="prog_btn6" src="../img/b5/con_btn6_off.gif" alt="立即购票" title="立即购票" border="0"></a>';
}
else
{
btnhtml +='<a href="'+buy_btn_link_gb+'" target="_blank"><img onMouseOut="imgSwap(this)" onMouseOver="imgSwap(this)" name="prog_btn6" src="../img/b5/con_btn6_off.gif" alt="立即购票" title="立即购票" border="0"></a>';
}
btnhtml +='<div id="feedback" style="display:none; position:absolute;"><div class="feedback"><div style="background:#f2f2f2; padding:5px;"><div style="text-align:right"><a href="javascript:feedbackoff()">关闭</a></div>意见</div><div style="background:#ffffff;padding:5px;">若你对我们举办的节目有任何意见，欢迎电邮至<a href="mailto:fo@lcsd.gov.hk">fo@lcsd.gov.hk</a>，或下载<a href="../img/common/pdf/myview.pdf" target="_blank">感想纸</a>，填妥后传真至2371 4171。</div></div></div>';
}
btnhtml +='</div>';


document.write(btnhtml);
}

function feedbackon()
{
document.getElementById("feedback").style.display = 'block';
}

function feedbackoff()
{
document.getElementById("feedback").style.display = 'none';
}

function checkForm()
{
	var temp;
	var err_msg;

	err_msg = "";
	temp=document.forms["form_menu"].sa_name1.value.replace(" ","")
	if (temp.length == 0)
	{
		if(w=="en")
		{
		err_msg += "Please enter your name.\n";
		}
		else
		{
		err_msg = "请填写您的姓名.\n";
		}
		document.forms["form_menu"].sa_name1.focus();
	}
	
	temp=document.forms["form_menu"].sa_email1.value.replace(" ","")
	if (temp.length == 0)
	{
		if (err_msg == "")
			document.forms["form_menu"].sa_email1.focus();
		if(w=="en")
		{
		err_msg += "Please enter your e-mail address.\n";
		}
		else
		{
		err_msg += "请填写您的电邮.\n";
		}
	}
	else if ((temp.length != 0) && (temp.indexOf("@") == -1))
	{
		if (err_msg == "")
			document.forms["form_menu"].sa_email1.focus();
			if(w=="en")
		{
		err_msg += "Please enter correct e-mail format.\n";
		}
		else
		{
		err_msg += "请填写正确的电邮格式.\n";
		}
	}

	if (err_msg != "")
	{
		alert(err_msg);
	}
	else
	{
	var sa_name1 = document.forms["form_menu"].sa_name1.value;
	var sa_email1 = document.forms["form_menu"].sa_email1.value;
	var url = "../php/become_fd.php?s_name="+sa_name1+"&s_email="+sa_email1;
	document.location.href = url;
	}
}
function checkForm_index()
{
	var temp;
	var err_msg;

	err_msg = "";
	temp=document.forms["form_menu"].sa_name1.value.replace(" ","")
	if (temp.length == 0)
	{
		if(w=="en")
		{
		err_msg += "Please enter your name.\n";
		}
		else
		{
		err_msg = "请填写您的姓名.\n";
		}
		document.forms["form_menu"].sa_name1.focus();
	}
	
	temp=document.forms["form_menu"].sa_email1.value.replace(" ","")
	if (temp.length == 0)
	{
		if (err_msg == "")
			document.forms["form_menu"].sa_email1.focus();
		if(w=="en")
		{
		err_msg += "Please enter your e-mail address.\n";
		}
		else
		{
		err_msg += "请填写您的电邮.\n";
		}
	}
	else if ((temp.length != 0) && (temp.indexOf("@") == -1))
	{
		if (err_msg == "")
			document.forms["form_menu"].sa_email1.focus();
			if(w=="en")
		{
		err_msg += "Please enter correct e-mail format.\n";
		}
		else
		{
		err_msg += "请填写正确的电邮格式.\n";
		}
	}

	if (err_msg != "")
	{
		alert(err_msg);
	}
	else
	{
	var sa_name1 = document.forms["form_menu"].sa_name1.value;
	var sa_email1 = document.forms["form_menu"].sa_email1.value;
	var url = "php/become_fd.php?s_name="+sa_name1+"&s_email="+sa_email1;
	document.location.href = url;
	}
}
function inputName1()
{
if (document.form_menu.sa_name1.value =="你的名字"||document.form_menu.sa_name1.value =="Enter your name")
{
document.form_menu.sa_name1.value="";
}
}
function inputEmail1()
{
if (document.form_menu.sa_email1.value =="电邮"||document.form_menu.sa_email1.value =="Email address")
{
document.form_menu.sa_email1.value="";
}
}


function print_calender(lan)
{
	var html_code = "";
	if (lan == "en")
	{
	html_code += '<div style="padding-left:0px; padding-top:20px"><table width="207" border="0" cellpadding="0" cellspacing="0"><tr><td colspan="8"><img src="../../img/'+lan+'/can_top.gif"></td></tr>';
	}
	else
	{
	html_code += '<div style="padding-left:0px; padding-top:20px"><table width="207" border="0" cellpadding="0" cellspacing="0"><tr><td colspan="8"><img src="../../img/'+lan+'/can_top.gif"></td></tr>';
	}
	html_code += '<tr valign="top"><td width="62"><div style="padding-top:0px;"><img src="../../img/'+lan+'/can_7.gif"></div><div style="padding-top:68px;"><img src="../../img/'+lan+'/can_8.gif"></div></td><td><table width="178" cellpadding="0" cellspacing="1" class="can" bgcolor="#ececec" style="font-size:12px">';
	html_code += '<tr height="22" align="center" bgcolor="#f6f6f6">';
	html_code += '<td style="color:#cacaca;"><b>5</b></td>';
	html_code += '<td style="color:#cacaca;"><b>6</b></td>';
	html_code += '<td style="color:#cacaca;"><b>7</b></td>';
	html_code += '<td style="color:#cacaca;"><b>8</b></td>';
	for(i=9; i<=31; i++)
	{
		var x = calender_highlight.length - 1;
		var y = 0;
		var z = 1;
		while (x >= y)
		{
			if (calender_highlight[x]== "july_"+i)
			{
				html_code += '<td bgcolor="#ffff00;"><a class="can_link7" href="../search/search.html?date=7/'+i+'/">'+i+'</a></td>';
				x--;
				z=0;
			}
			else
			{
				x--;
			}
		}
		if (z != 0)
		{
		html_code += '<td><a class="can_link7" href="../search/search.html?date=7/'+i+'/">'+i+'</a></td>';
		}
		if(i==11 || i==18 || i==25)
		{
		html_code += '</tr>';
		html_code += '<tr height="22" align="center" bgcolor="#f6f6f6">';
		}
	}
	for(g=1; g<=15; g++)
	{
		var r = calender_highlight.length - 1;
		var e = 0;
		var j = 1;
		while (r >= e)
		{
			if (calender_highlight[r]== "aug_"+g)
			{
				html_code += '<td bgcolor="#ffff00;"><a class="can_link8" href="../search/search.html?date=8/'+g+'">'+g+'</a></td>';
				r--;
				j=0;
			}
			else
			{
				r--;
			}
		}
		if (j != 0)
		{
		html_code += '<td><a class="can_link8" href="../search/search.html?date=8/'+g+'">'+g+'</a></td>';
		}
		if(g==1 || g==8 )
		{
		html_code += '</tr>';
		html_code += '<tr height="22" align="center" bgcolor="#f6f6f6">';
		}
		if(g==15)
		{
		html_code += '</tr>';
		}
	}
	html_code += '</table><table width="144" cellpadding="0" cellspacing="0" class="can">';
	html_code += '<tr><td colspan="7"><a href="../search/search.html"><img src="../../img/'+lan+'/search_icon.gif" border="0"></a></td></tr>';
	html_code += '</table></td></tr></table></div>';
	document.write(html_code);
}

function print_index_calender(lan)
{
	var html_code = "";
	if (lan == "en")
	{
	html_code += '<div style="padding-left:0px; padding-top:20px"><table width="207" border="0" cellpadding="0" cellspacing="0"><tr><td colspan="8"><img src="../img/'+lan+'/can_top.gif"></td></tr>';
	}
	else
	{
	html_code += '<div style="padding-left:0px; padding-top:20px"><table width="207" border="0" cellpadding="0" cellspacing="0"><tr><td colspan="8"><img src="../img/'+lan+'/can_top.gif"></td></tr>';
	}
	html_code += '<tr valign="top"><td width="62"><div style="padding-top:0px;"><img src="../img/'+lan+'/can_7.gif"></div><div style="padding-top:68px;"><img src="../img/'+lan+'/can_8.gif"></div></td><td><table width="178" cellpadding="0" cellspacing="1" class="can" bgcolor="#ececec" style="font-size:12px">';
	html_code += '<tr height="22" align="center" bgcolor="#f6f6f6">';
	html_code += '<td style="color:#cacaca;"><b>5</b></td>';
	html_code += '<td style="color:#cacaca;"><b>6</b></td>';
	html_code += '<td style="color:#cacaca;"><b>7</b></td>';
	html_code += '<td style="color:#cacaca;"><b>8</b></td>';
	for(i=9; i<=31; i++)
	{
		var x = calender_highlight.length - 1;
		var y = 0;
		var z = 1;
		while (x >= y)
		{
			if (calender_highlight[x]== "july_"+i)
			{
				html_code += '<td bgcolor="#ffff00;"><a class="can_link7" href="search/search.html?date=7/'+i+'/">'+i+'</a></td>';
				x--;
				z=0;
			}
			else
			{
				x--;
			}
		}
		if (z != 0)
		{
		html_code += '<td><a class="can_link7" href="search/search.html?date=7/'+i+'/">'+i+'</a></td>';
		}
		if(i==11 || i==18 || i==25)
		{
		html_code += '</tr>';
		html_code += '<tr height="22" align="center" bgcolor="#f6f6f6">';
		}
	}
	for(g=1; g<=15; g++)
	{
		var r = calender_highlight.length - 1;
		var e = 0;
		var j = 1;
		while (r >= e)
		{
			if (calender_highlight[r]== "aug_"+g)
			{
				html_code += '<td bgcolor="#ffff00;"><a class="can_link8" href="search/search.html?date=8/'+g+'">'+g+'</a></td>';
				r--;
				j=0;
			}
			else
			{
				r--;
			}
		}
		if (j != 0)
		{
		html_code += '<td><a class="can_link8" href="search/search.html?date=8/'+g+'">'+g+'</a></td>';
		}
		if(g==1 || g==8 )
		{
		html_code += '</tr>';
		html_code += '<tr height="22" align="center" bgcolor="#f6f6f6">';
		}
		if(g==15)
		{
		html_code += '</tr>';
		}
	}
	html_code += '</table><table width="144" cellpadding="0" cellspacing="0" class="can">';
	html_code += '<tr><td colspan="7"><a href="search/search.html"><img src="../img/'+lan+'/search_icon.gif" border="0"></a></td></tr>';
	html_code += '</table></td></tr></table></div>';
	document.write(html_code);
}

function print_ngs_calender(lan)
{
	var html_code = "";
	if (lan == "en")
	{
	html_code += '<div style="padding-left:0px; padding-top:20px"><table width="207" border="0" cellpadding="0" cellspacing="0"><tr><td colspan="8"><img src="../../img/'+lan+'/ngs/can_top.png"></td></tr>';
	}
	else
	{
	html_code += '<div style="padding-left:0px; padding-top:20px"><table width="207" border="0" cellpadding="0" cellspacing="0"><tr><td colspan="8"><img src="../../img/'+lan+'/ngs/can_top.png"></td></tr>';
	}
	html_code += '<tr valign="top"><td width="62"><div style="padding-top:0px;"><img src="../../img/'+lan+'/ngs/can_7.png"></div><div style="padding-top:68px;"><img src="../../img/'+lan+'/ngs/can_8.png"></div></td><td><table width="178" cellpadding="0" cellspacing="1" class="can" bgcolor="#424242" style="font-size:12px">';
	html_code += '<tr height="22" align="center" bgcolor="#424242">';
	html_code += '<td style="color:#cacaca;"><b>5</b></td>';
	html_code += '<td style="color:#cacaca;"><b>6</b></td>';
	html_code += '<td style="color:#cacaca;"><b>7</b></td>';
	html_code += '<td style="color:#cacaca;"><b>8</b></td>';
	for(i=9; i<=31; i++)
	{
		var x = calender_highlight.length - 1;
		var y = 0;
		var z = 1;
		while (x >= y)
		{
			if (calender_highlight[x]== "july_"+i)
			{
				html_code += '<td bgcolor="#ffff00;"><a class="can_link7" href="../search/search.html?date=7/'+i+'/">'+i+'</a></td>';
				x--;
				z=0;
			}
			else
			{
				x--;
			}
		}
		if (z != 0)
		{
		html_code += '<td><a class="can_link7" href="../search/search.html?date=7/'+i+'/">'+i+'</a></td>';
		}
		if(i==11 || i==18 || i==25)
		{
		html_code += '</tr>';
		html_code += '<tr height="22" align="center" bgcolor="#424242">';
		}
	}
	for(g=1; g<=15; g++)
	{
		var r = calender_highlight.length - 1;
		var e = 0;
		var j = 1;
		while (r >= e)
		{
			if (calender_highlight[r]== "aug_"+g)
			{
				html_code += '<td bgcolor="#ffff00;"><a class="can_link8" href="../search/search.html?date=8/'+g+'">'+g+'</a></td>';
				r--;
				j=0;
			}
			else
			{
				r--;
			}
		}
		if (j != 0)
		{
		html_code += '<td><a class="can_link8" href="../search/search.html?date=8/'+g+'">'+g+'</a></td>';
		}
		if(g==1 || g==8 )
		{
		html_code += '</tr>';
		html_code += '<tr height="22" align="center" bgcolor="#424242">';
		}
		if(g==15)
		{
		html_code += '</tr>';
		}
	}
	html_code += '</table><table width="144" cellpadding="0" cellspacing="0" class="can">';
	html_code += '<tr><td colspan="7"><a href="../search/search.html"><img src="../../img/'+lan+'/ngs/search_icon.gif" border="0"></a></td></tr>';
	html_code += '</table></td></tr></table></div>';
	document.write(html_code);
}

function iacplus_tab(on)
{
var html_code = "";

if(w=="en")
{
if(on==1)
{
html_code += '<br><br><a href="iacplus.html"><img name="iac_plus_tab1"  src="../../img/en/iacplus_tab1_over.gif" border="0"></a><br>';
}
else
{
html_code += '<br><br><a href="iacplus.html"><img onMouseOut="imgSwap(this)" onMouseOver="imgSwap(this)" name="iac_plus_tab1"  src="../../img/en/iacplus_tab1_off.gif" border="0"></a><br>';
}
if(on==2)
{
html_code += '<a href="iacplus2.html"><img name="iac_plus_tab2"  src="../../img/en/iacplus_tab2_over.gif" border="0"></a>';
}
else
{
html_code += '<a href="iacplus2.html"><img onMouseOut="imgSwap(this)" onMouseOver="imgSwap(this)" name="iac_plus_tab2"  src="../../img/en/iacplus_tab2_off.gif" border="0"></a>';
}
if(on==3)
{
html_code += '<a href="iacplus3.html"><img name="iac_plus_tab3"  src="../../img/en/iacplus_tab3_over.gif" border="0"></a>';
}
else
{
html_code += '<a href="iacplus3.html"><img onMouseOut="imgSwap(this)" onMouseOver="imgSwap(this)" name="iac_plus_tab3"  src="../../img/en/iacplus_tab3_off.gif" border="0"></a>';
}
if(on==4)
{
html_code += '<a href="iacplus4.html"><img name="iac_plus_tab4"  src="../../img/en/iacplus_tab4_over.gif" border="0"></a><br>';
}
else
{
html_code += '<a href="iacplus4.html"><img onMouseOut="imgSwap(this)" onMouseOver="imgSwap(this)" name="iac_plus_tab4"  src="../../img/en/iacplus_tab4_off.gif" border="0"></a><br>';
}
if(on==5)
{
html_code += '<a href="iacplus5.html"><img name="iac_plus_tab5"  src="../../img/en/iacplus_tab5_over.gif" border="0"></a>';
}
else
{
html_code += '<a href="iacplus5.html"><img onMouseOut="imgSwap(this)" onMouseOver="imgSwap(this)" name="iac_plus_tab5"  src="../../img/en/iacplus_tab5_off.gif" border="0"></a>';
}
if(on==6)
{
html_code += '<a href="iacplus7.html"><img name="iac_plus_tab6"  src="../../img/en/iacplus_tab6_over.gif" border="0"></a><br>';
}
else
{
html_code += '<a href="iacplus7.html"><img onMouseOut="imgSwap(this)" onMouseOver="imgSwap(this)" name="iac_plus_tab6"  src="../../img/en/iacplus_tab6_off.gif" border="0"></a><br>';
}
if(on==7)
{
html_code += '<a href="iacplus6.html"><img name="iac_plus_tab7"  src="../../img/en/iacplus_tab7_over.gif" border="0"></a>';
}
else
{
html_code += '<a href="iacplus6.html"><img onMouseOut="imgSwap(this)" onMouseOver="imgSwap(this)" name="iac_plus_tab7"  src="../../img/en/iacplus_tab7_off.gif" border="0"></a>';
}
if(on==8)
{
html_code += '<a href="iacplus8.html"><img name="iac_plus_tab8"  src="../../img/en/iacplus_tab8_over.gif" border="0"></a><br><br><br>';
}
else
{
html_code += '<a href="iacplus8.html"><img onMouseOut="imgSwap(this)" onMouseOver="imgSwap(this)" name="iac_plus_tab8"  src="../../img/en/iacplus_tab8_off.gif" border="0"></a><br><br><br>';
}
}
else
{
if(on==1)
{
html_code += '<br><br><a href="iacplus.html"><img name="iac_plus_tab1"  src="../../img/b5/iacplus_tab1_over.gif" border="0"></a>';
}
else
{
html_code += '<br><br><a href="iacplus.html"><img onMouseOut="imgSwap(this)" onMouseOver="imgSwap(this)" name="iac_plus_tab1"  src="../../img/b5/iacplus_tab1_off.gif" border="0"></a>';
}
if(on==2)
{
html_code += '<a href="iacplus2.html"><img name="iac_plus_tab2"  src="../../img/b5/iacplus_tab2_over.gif" border="0"></a><br>';
}
else
{
html_code += '<a href="iacplus2.html"><img onMouseOut="imgSwap(this)" onMouseOver="imgSwap(this)" name="iac_plus_tab2"  src="../../img/b5/iacplus_tab2_off.gif" border="0"></a><br>';
}
if(on==3)
{
html_code += '<a href="iacplus3.html"><img name="iac_plus_tab3"  src="../../img/b5/iacplus_tab3_over.gif" border="0"></a>';
}
else
{
html_code += '<a href="iacplus3.html"><img onMouseOut="imgSwap(this)" onMouseOver="imgSwap(this)" name="iac_plus_tab3"  src="../../img/b5/iacplus_tab3_off.gif" border="0"></a>';
}
if(on==4)
{
html_code += '<a href="iacplus4.html"><img name="iac_plus_tab4"  src="../../img/b5/iacplus_tab4_over.gif" border="0"></a>';
}
else
{
html_code += '<a href="iacplus4.html"><img onMouseOut="imgSwap(this)" onMouseOver="imgSwap(this)" name="iac_plus_tab4"  src="../../img/b5/iacplus_tab4_off.gif" border="0"></a>';
}
if(on==5)
{
html_code += '<a href="iacplus5.html"><img name="iac_plus_tab5"  src="../../img/b5/iacplus_tab5_over.gif" border="0"></a><br>';
}
else
{
html_code += '<a href="iacplus5.html"><img onMouseOut="imgSwap(this)" onMouseOver="imgSwap(this)" name="iac_plus_tab5"  src="../../img/b5/iacplus_tab5_off.gif" border="0"></a><br>';
}
if(on==6)
{
html_code += '<a href="iacplus7.html"><img name="iac_plus_tab6"  src="../../img/b5/iacplus_tab6_over.gif" border="0"></a>';
}
else
{
html_code += '<a href="iacplus7.html"><img onMouseOut="imgSwap(this)" onMouseOver="imgSwap(this)" name="iac_plus_tab6"  src="../../img/b5/iacplus_tab6_off.gif" border="0"></a>';
}
if(on==7)
{
html_code += '<a href="iacplus6.html"><img name="iac_plus_tab7"  src="../../img/b5/iacplus_tab7_over.gif" border="0"></a>';
}
else
{
html_code += '<a href="iacplus6.html"><img onMouseOut="imgSwap(this)" onMouseOver="imgSwap(this)" name="iac_plus_tab7"  src="../../img/b5/iacplus_tab7_off.gif" border="0"></a>';
}
if(on==8)
{
html_code += '<a href="iacplus8.html"><img name="iac_plus_tab8"  src="../../img/b5/iacplus_tab8_over.gif" border="0"></a><br><br><br>';
}
else
{
html_code += '<a href="iacplus8.html"><img onMouseOut="imgSwap(this)" onMouseOver="imgSwap(this)" name="iac_plus_tab8"  src="../../img/b5/iacplus_tab8_off.gif" border="0"></a><br><br><br>';
}
}
document.write(html_code);
}
