function HeaderScript(menu)
{
	document.writeln('<table width="750" border="0" cellspacing="0" cellpadding="0">');
    document.writeln('<tr>'); 
    document.writeln('<td width="74" valign="top">'); 
    document.writeln('<table width="300" border="0" cellspacing="0" cellpadding="0">');
    document.writeln('<tr>'); 
	if (menu == 1) 
		 document.writeln('<td width="78"><a href="/2_Culture_Exchange/th/index.html"><img name="cultureExchange" border="0" src="/images/image_01-over.jpg" width="78" height="91" alt="Culture Exchange"></a></td>');
	else
    	document.writeln('<td width="78"><a href="/2_Culture_Exchange/th/index.html" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage(\'cultureExchange\',\'\',\'/images/image_01-over.jpg\',1)"><img name="cultureExchange" border="0" src="/images/image_01.jpg" width="78" height="91" alt="Culture Exchange"></a></td>');
    if (menu == 2)
		document.writeln('<td width="74"><a href="/3_Education_Counseling/index.html"><img name="counseling" border="0" src="/images/image_02-over.jpg" width="74" height="91" alt="Education Counseling"></a></td>');
	else
		document.writeln('<td width="74"><a href="/3_Education_Counseling/index.html" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage(\'counseling\',\'\',\'/images/image_02-over.jpg\',1)"><img name="counseling" border="0" src="/images/image_02.jpg" width="74" height="91" alt="Education Counseling"></a></td>');
    if (menu == 3)
		document.writeln('<td width="74"><a href="/4_Summer_Camp/index.asp"><img name="summerCamp" border="0" src="/images/image_03-over.jpg" width="74" height="91" alt="Summer Camp"></a></td>');
	else
		document.writeln('<td width="74"><a href="/4_Summer_Camp/index.asp" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage(\'summerCamp\',\'\',\'/images/image_03-over.jpg\',1)"><img name="summerCamp" border="0" src="/images/image_03.jpg" width="74" height="91" alt="Summer Camp"></a></td>');
    if (menu == 4)
		document.writeln('<td width="74"><a href="/5_Activity"><img name="activity" border="0" src="/images/image_04-over.jpg" width="74" height="91" alt="Activity"></a></td>');
	else
		document.writeln('<td width="74"><a href="/5_Activity" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage(\'activity\',\'\',\'/images/image_04-over.jpg\',1)"><img name="activity" border="0" src="/images/image_04.jpg" width="74" height="91" alt="Activity"></a></td>');
    document.writeln('</tr>');
    document.writeln('<tr>'); 
    document.writeln('<td colspan="4"><img src="/images/image_07.jpg" width="300" height="39"></td>');
    document.writeln('</tr>');
    document.writeln('</table>');
    document.writeln('</td>');
    document.writeln('<td valign="top">'); 
    document.writeln('<table width="100%" border="0" cellspacing="0" cellpadding="0">');
    document.writeln('<tr>'); 
    document.writeln('<td><a href="/index.html"><img src="/images/image_05.jpg" width="450" height="50" border=0></a></td>');
    document.writeln('</tr>');
    document.writeln('<tr>'); 
    // Old // document.writeln('<td><img src="/images/image_06.jpg" width="450" height="80"></td>');
	switch (menu)
	{
	case 1 :
		imageSource = "/2_Culture_Exchange/images/head_culture1.gif";
		break;
	case 2 : 
		imageSource = "/3_Education_Counseling/images/head_edu_counseling1.jpg";
		break;
	case 3 :
		imageSource = "/4_Summer_Camp/images/head_summer_camp1.jpg";
		break;
	case 4 : 
		imageSource = "/5_Activity/activity/head_activity1.jpg";
		break;
	case 5 :
		imageSource = "/6_About_US/images/head_aboutus1.jpg";
		break;
	case 6 :
		imageSource = "/specialProgram/images/head_special.jpg";
		break;
	default :
		imageSource = "/images/image_06.jpg";
	}
	document.writeln('<td><img src="'+ imageSource + '" width="450" height="80"></td>');
    document.writeln('</tr>');
    document.writeln('</table>');
    document.writeln('</td>');
    document.writeln('</tr>');
    document.writeln('</table>');
    document.writeln('<table width="750" border="0" cellspacing="0" cellpadding="0">');
    document.writeln('<tr>'); 
    document.writeln('<td bgcolor="#95C8F6"><img src="/images/spacer.gif" width="100%" height="1"></td>');
    document.writeln('</tr>');
    document.writeln('<tr>'); 
    document.writeln('<td bgcolor="#004182">'); 
    document.writeln('<table width="100%" border="0" cellspacing="0" cellpadding="0">');
    document.writeln('<tr>'); 
    document.writeln('<td><img src="/images/spacer.gif" width="2" height="18"><img src="/images/gp002.gif" width="2" height="18"></td>');
    document.writeln('<td align="right"><img src="/images/gp002.gif" width="2" height="18"><a href="/6_About_US/th"><img src="/images/ic_aboutus.gif" border=0></a><img src="/images/gp002.gif" width="2" height="18"><a href="/6_About_US/th/contact.html"><img src="/images/ic_contactus.gif" border=0></a><img src="/images/gp002.gif" width="2" height="18"></td>');//<img src="/images/ic_eng.gif" width="58" height="16"></td>');
     document.writeln('</tr>');
     document.writeln('</table>');
     document.writeln('</td>');
     document.writeln('</tr>');
     document.writeln('<tr>');
     document.writeln('<td bgcolor="#073157"><img src="/images/spacer.gif" width="750" height="2"></td>');
     document.writeln('</tr>');
      document.writeln('</table>');
}
function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

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.0
  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 && document.getElementById) x=document.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 FooterScript()
{
		document.write('<table align="center" border="0">');
		document.write('<tr>');
		document.write('<td align="center"><font size="1" face="MS Sans Serif, thonburi"><b>Dynamic Education NetWork Co., Ltd.</b><br> &copy; 2001 Dynamic Education Network Tel : 0-2278-2340-2, Fax : 0-2278-2343 / All Right Reserved </font></td>');
		document.write('</tr>');
		document.write('</table>');
		
}

function RightBar() 
{
	
		//document.write('<img src="/images/gp003.gif" width="120" height="2"><a href="/5_Activity/Photo/"><img src="/images/botton_photo.gif" width="130" height="35" border=0></a><img src="/images/spacer.gif" width="120" height="3"><img src="/images/gp003.gif" width="120" height="3"><img src="/images/spacer.gif" width="120" height="3"><a href="/cprice.html" target="_blank"><img src="/images/botton_checkout.gif" width="120" height="60" border=0></a>');
		document.write('<img src="/images/gp003.gif" width="120" height="2"><a href="/5_Activity/Photo/"><img src="/images/botton_photo.gif" width="130" height="35" border=0></a><img src="/images/spacer.gif" width="120" height="3">');
		document.write('<script language="javascript">banner1();</script>');
		document.write('<script language="javascript">banner2();</script>');
		document.write('<script language="javascript">banner3();</script>'); 
		/* UNH */
        //document.write('<img src="/images/spacer.gif" width="120" height="3"><img src="/images/gp003.gif" width="120" height="3"><img src="/images/spacer.gif" width="120" height="3"><a href="/unh" target="_blank"><img src="/images/botton_unh.gif" width="120" height="60" border=0></a><img src="/images/spacer.gif" width="120" height="3"><img src="/images/spacer.gif" width="120" height="3"><img src="/images/gp003.gif" width="120" height="3"><br><br><br><br><br>');
		/* JAPAN SCHOLARSHIP */
		//document.write('<img src="/images/spacer.gif" width="120" height="3"><img src="/images/gp003.gif" width="120" height="3"><img src="/images/spacer.gif" width="120" height="3"><a href="/3_Education_Counseling/japan.html"><img src="/3_Education_Counseling/images/ic_scholarshipDEN.gif" width="120" height="120" border=0></a><img src="/images/spacer.gif" width="120" height="3">');
		/* ROBINSON */
		//document.write('<img src="/images/spacer.gif" width="120" height="3"><img src="/images/gp003.gif" width="120" height="3"><img src="/images/spacer.gif" width="120" height="3"><a href="/2_Culture_Exchange/th/robinson.html"><img src="/2_Culture_Exchange/images/bt_robinson.gif" width="120" height="60" border=0></a><img src="/images/spacer.gif" width="120" height="3"><img src="/images/spacer.gif" width="120" height="3"><img src="/images/gp003.gif" width="120" height="3"><br><br><br><br><br>');
		/* Work & Study in Australia, New Zealand and UK */
		document.write('<img src="/images/spacer.gif" width="120" height="3"><img src="/images/gp003.gif" width="120" height="3"><img src="/images/spacer.gif" width="120" height="3"><a href="/3_Education_Counseling/workStudy00.html"><img src="/3_Education_Counseling/images/bt_workstudy.gif" width="120" height="60" border=0></a><img src="/images/spacer.gif" width="120" height="3"><img src="/images/spacer.gif" width="120" height="3">');
		/* UK - Sunderland */
		document.write('<img src="/images/spacer.gif" width="120" height="3"><img src="/images/gp003.gif" width="120" height="3"><img src="/images/spacer.gif" width="120" height="3"><a href="/3_Education_Counseling/uk_sunderland.html"><img src="/images/rightbar/bt_sunderland.gif" width="120" height="60" border=0></a><img src="/images/spacer.gif" width="120" height="3"><img src="/images/spacer.gif" width="120" height="3">');
		/* USA - Kansus */		
		document.write('<img src="/images/spacer.gif" width="120" height="3"><img src="/images/gp003.gif" width="120" height="3"><img src="/images/spacer.gif" width="120" height="3"><a href="/3_Education_Counseling/usa_kansus.html"><img src="/images/rightbar/bt_kansus.gif" width="120" height="60" border=0></a><img src="/images/spacer.gif" width="120" height="3"><img src="/images/spacer.gif" width="120" height="3">');
		/* AIT */
		document.write('<img src="/images/spacer.gif" width="120" height="3"><img src="/images/gp003.gif" width="120" height="3"><img src="/images/spacer.gif" width="120" height="3"><a href="/3_Education_Counseling/aus_ait.html"><img src="/images/rightbar/bt_ait.gif" width="120" height="60" border=0></a><img src="/images/spacer.gif" width="120" height="3"><img src="/images/spacer.gif" width="120" height="3">');
		/* D&A */
		document.write('<img src="/images/spacer.gif" width="120" height="3"><img src="/images/gp003.gif" width="120" height="3"><img src="/images/spacer.gif" width="120" height="3"><a href="/3_Education_Counseling/nz_danda.html"><img src="/images/rightbar/bt_dna.gif" width="120" height="60" border=0></a><img src="/images/spacer.gif" width="120" height="3"><img src="/images/spacer.gif" width="120" height="3">');
		/* Edmonds */
		document.write('<img src="/images/spacer.gif" width="120" height="3"><img src="/images/gp003.gif" width="120" height="3"><img src="/images/spacer.gif" width="120" height="3"><a href="/3_Education_Counseling/usa_edmonds.html"><img src="/images/rightbar/bt_edmonds.gif" width="120" height="60" border=0></a><img src="/images/spacer.gif" width="120" height="3"><img src="/images/spacer.gif" width="120" height="3"><img src="/images/gp003.gif" width="120" height="3">');
}
function BoardMenu()
{
		document.write('<table width="80%" border="0" cellspacing="0" cellpadding="3" align="center">');
        document.write('<tr><td colspan="2"><font face="MS Sans Serif, thonburi" size="1"><img src="images/gp_board1.gif" width="144" height="21"></font></td></tr>');
        document.write('<tr>'); 
        document.write('<td width="10"><img src="images/ic-dot.gif" width="10" height="10"></td>');
        //document.write('<td><a href="list.asp?cid=1" class="left_menu"><font size="1" face="MS Sans Serif, thonburi">แนะแนวการศึกษาต่อ</font></a></td>');
		document.write('<td><a href="list.asp?cid=1" class="left_menu"><font size="1" face="MS Sans Serif, thonburi">Counseling</font></a></td>');
        document.write('</tr>');
        document.write('<tr>'); 
        document.write('<td><img src="images/ic-dot.gif" width="10" height="10"></td>');
        //document.write('<td><a href="list.asp?cid=2" class="left_menu"><font face="MS Sans Serif, thonburi" size="1">โครงการนักเรียนแลกเปลี่ยน</font></a></td>');
		document.write('<td><a href="list.asp?cid=2" class="left_menu"><font face="MS Sans Serif, thonburi" size="1">Exchange</font></a></td>');
        document.write('</tr>');
        document.write('<tr>'); 
        document.write('<td><img src="images/ic-dot.gif" width="10" height="10"></td>');
        document.write('<td><a href="list.asp?cid=3" class="left_menu"><font face="MS Sans Serif, thonburi" size="1">Summer Camp</font></a></td>');
        document.write('</tr>');
        document.write('<tr>'); 
        document.write('<td><img src="images/ic-dot.gif" width="10" height="10"></td>');
        //document.write('<td><a href="list.asp?cid=4" class="left_menu"><font face="MS Sans Serif, thonburi" size="1">จิปาถะ ถามมาตอบไป</font></a></td>');
		document.write('<td><a href="list.asp?cid=4" class="left_menu"><font face="MS Sans Serif, thonburi" size="1">Ask & Answer</font></a></td>');
        document.write('</tr>');
        document.write('<tr>'); 
        document.write('<td><img src="images/ic-dot.gif" width="10" height="10"></td>');
        //document.write('<td><a href="list.asp?cid=5" class="left_menu"><font face="MS Sans Serif, thonburi" size="1">บอกกล่าว เล่าต่อ</font></a></td>');
		document.write('<td><a href="list.asp?cid=5" class="left_menu"><font face="MS Sans Serif, thonburi" size="1">Your story</font></a></td>');
        document.write('</tr>');
        document.write('<tr>'); 
        document.write('<td><img src="images/ic-dot.gif" width="10" height="10"></td>');
        document.write('<td><a href="list.asp?cid=6" class="left_menu"><font face="MS Sans Serif, thonburi" size="1">For D.E.N. Student</font></a></td>');
        document.write('</tr>');
        document.write('</table>');
		document.write('<table width="80%" border="0" cellspacing="0" cellpadding="3" align="center">');
        document.write('<tr><td><a href="newtopic.asp"><img src="images/ic_postnew.gif" width="130" height="25" border="0"></a></td></tr>');
        document.write('<tr><td><a href="alltopic.asp"><img src="images/ic_seeall.gif" width="130" height="25" border="0"></a></td></tr>');
        document.write('</table>');
}
