var td_width = 770;

 

function header(numis,in_out){

var focus_color_be = "#FF3300";
var lost_focus_color_be = "#CCCCCC";
var show_color_under_menu = "";

if(in_out ==1){  inout_is ="../../"; }else{  inout_is = ""; }

document.write('<table width="100%" border="0" cellspacing="0" cellpadding="0">');

document.write('  <tr>');
document.write('<td height="121"></td>');
document.write('<td width="'+td_width+'" height="121">');

//---------------------------------------------------------------------------------

document.write('<table width="'+td_width+'" border="0" cellpadding="0" cellspacing="0">');
      document.write('<tr>');
        document.write('<td width="227" rowspan="4" align="left" valign="middle">');
		document.write('<img src="'+inout_is+'images/ams-logo.jpg" alt="Asia Media Studio - Graphic Design Bangkok" width="227" height="65" />');
		document.write('</td>');
        document.write('<td width="543" height="40"></td>');
      document.write('</tr>');
      document.write('<tr>');
        document.write('<td width="543" align="right" valign="top">');
		
		
 document.write('<table width="543" border="0" cellspacing="0" cellpadding="0">');




var td_space = '<td width="15" height="22" rowspan="3" align="center" valign="bottom"></td>';
var end_a = ''; // end of </a>
 

document.write('<tr>');
// tr
 document.write('<td width="189" height="22" rowspan="3"></td>');

document.write('<td width="34" height="19" align="center" valign="bottom" class="Text-Top-Active" >');

if((numis==1)){	 end_a='';  }
else{ document.write('<a href="'+inout_is+'index.html" class="links-Top"  onMouseOver="hilite1(\'cell1\')"; onMouseOut="reset(\'cell2\')"  >'); end_a='</a>'; }	



// index menu 1
document.write('HOME');

document.write(end_a);
document.write('</td>');
document.write(td_space);
document.write('<td width="81" height="19" align="center" valign="bottom"  class="Text-Top-Active" >');
			  
if((numis==2)){	 end_a='';  }
else{ document.write('<a href="'+inout_is+'WhoWeAre-Web-Design-Bangkok.html " class="links-Top"  onMouseOver="hilite2(\'cell2\')"; onMouseOut="reset(\'cell2\')"  >'); end_a='</a>'; }	
			  
		  

// who we are  menu 2	
document.write('WHO WE ARE');
document.write(end_a);
document.write('</td>');
             
document.write(td_space);

document.write('<td width="80" height="19" align="center" valign="bottom"  class="Text-Top-Active">');


if((numis==3)){	 end_a='';  }
else{ document.write('<a href="'+inout_is+'WhatWeDo-Web-Site-Development-Bangkok.html " class="links-Top"  onMouseOver="hilite3(\'cell3\')"; onMouseOut="reset(\'cell3\')"  >'); end_a='</a>'; }	
			

// What we do menu 3
document.write('WHAT WE DO');
document.write(end_a);
document.write('</td>');


document.write(td_space);
			  
document.write('<td width="43" height="19" align="center" valign="bottom"   class="Text-Top-Active">');


if((numis==4)){	 end_a='';  }
else{ document.write('<a href="'+inout_is+'Works-Logo-Design-Thailand.html" class="links-Top"  onMouseOver="hilite4(\'cell4\')"; onMouseOut="reset(\'cell4\')" >'); end_a='</a>'; }	


// Work menu 4
document.write('WORKS');
document.write(end_a);
document.write('</td>');

document.write(td_space);
document.write('<td width="56" height="19" align="center" valign="bottom"   class="Text-Top-Active">');

if((numis==5)){	 end_a='';  }
else{ document.write('<a href="'+inout_is+'Contact-Creative-Design-Thailand.html" class="links-Top"  onMouseOver="hilite5(\'cell5\')"; onMouseOut="reset(\'cell5\')" >'); end_a='</a>'; }	


// Contact menu 5
document.write('CONTACT');

document.write(end_a);
document.write('</td>');
// tr
document.write('</tr>');




 
			
			
document.write('<tr>');

var be_color_b = lost_focus_color_be;  

  if(numis==1){	be_color_b=focus_color_be; }else{ be_color_b = lost_focus_color_be;  }	 // ใช้อยู่ 	   
            document.write('<td height="3" bgcolor="'+be_color_b+'"   id="cell1"></td>');
  if(numis==2){	be_color_b=focus_color_be; }else{ be_color_b = lost_focus_color_be;  }	 // ใช้อยู่ 				
              document.write('<td height="3" bgcolor="'+be_color_b+'"   id="cell2"></td>');
  if(numis==3){	be_color_b=focus_color_be; }else{ be_color_b = lost_focus_color_be;  }	 // ใช้อยู่ 				  
              document.write('<td height="3" bgcolor="'+be_color_b+'"   id="cell3"></td>');
  if(numis==4){	be_color_b=focus_color_be; }else{ be_color_b = lost_focus_color_be;  }	 // ใช้อยู่ 	
              document.write('<td height="3" bgcolor="'+be_color_b+'"   id="cell4"></td>');
  if(numis==5){	be_color_b=focus_color_be; }else{ be_color_b = lost_focus_color_be;  }	 // ใช้อยู่ 				  
              document.write('<td height="3" bgcolor="'+be_color_b+'"   id="cell5"></td>');
document.write('</tr>');			
			
			
			
 		
			
            document.write('</table>');
			document.write('</td>');
        document.write('</tr>');
      
      document.write('<tr>');
        document.write('<td width="543" height="49"></td>');
      document.write('</tr>');
    document.write('</table>');
//---------------------------------------------------------------------------


document.write('</td>');
document.write(' <td height="121"></td>');
document.write('  </tr>');



document.write('<tr>');
    document.write('<td height="187" >&nbsp;</td>');
    document.write('<td width="'+td_width+'" height="187">');






}	





function listItems(pics){

 var all_pic = pics.length;
 var num_of_li = all_pic/3;  // หารสาม เพราะมี สามแถว ของหนึ่ง table
 var num_of_li_add_1 = num_of_li+1;
 //document.write(num_of_li);
 
 var num_of_pic = 0;  // ประกาศค่าของรูป โดยให้ค่าปรกติเป็น 0
 
 
 
  document.write('<div class="anythingSlider"   >'); // div สำหรับเริ่ม  class="anythingSlider"  link ไป .js และ .css
	 document.write('<div class="wrapper">');  // div สำหรับเริ่ม  class="wrapper"  link ไป .js และ .css
 
 
 
 document.write('<ul>'); 
 
// เริ่มขวบวนการทำซ้ำที่นี้ 
    for(k=1;k<num_of_li_add_1;k++){  // คิดหา table ( li ) ว่ามีกี่อัน
	
	       
			   document.write('<li>');
			   document.write('<table width="771px;" vspace="0" cellpadding="0" cellspacing="0" border="0" hspace="0"  >');
			   document.write('<tr  >');
			 
			for(i=0;i<3;i++){ // 0->3 แล้วตัด
			   document.write('<td  width="257"><img src="'+pics[num_of_pic]+'" border="0" align="top"  /></td>');  // แต่ละรูปจาก array
			   
			  num_of_pic++; 	// บวกรูปจาก array ไปเรื่อยๆ
			   }

 
		 
			   
			   document.write('</tr>');
			   document.write('</table>');
			   document.write('</li>');		
	
	

	
	
    }// end for 
	
 // จบ
 
 
document.write('</ul>'); 
 
      document.write('</div>'); // ปิด  class="wrapper"
 document.write('</div>');   // ปิด  class="anythingSlider"  
 
 
 // ส่วนของ table นอกที่ติดมาด้วย ของ header
 
 	document.write('</td>');
    document.write('<td height="187" >&nbsp;</td>');
  document.write('</tr>');
  document.write('<tr>');
    document.write('<td height="8" bgcolor="#333333"></td>');
    document.write('<td width="'+td_width+'" height="8"  bgcolor="#FF3300" >'); // ใส่สีแดงเพิ่มเข้าไป
	document.write('<table width="'+td_width+'" border="0" cellpadding="0" cellspacing="0" >');
      document.write('<tr >');
	  // แถบสามสี ดำ เหลือง แดง
        document.write('<td width="257" height="8" bgcolor="#333333"></td>');  // ดำ
        document.write('<td width="257" height="8" bgcolor="#F7A204"></td>');  // เหลือง
        document.write('<td width="256" height="8" bgcolor="#FF3300"></td>');  // แดง
      document.write('</tr>');
    document.write('</table>');
 
 
 
 
 
 	document.write('</td>');
    document.write('<td height="8" bgcolor="#FF3300"></td>');
  document.write('</tr>');
 
 
 
 

} // end function listItems



function blog_freelogo(){


document.write('<table width="'+td_width+'" border="0" cellspacing="0" cellpadding="0" >');
        document.write('<tr>');
          document.write('<td width="14"></td>');
          document.write('<td width="651" align="left" valign="middle">&nbsp;</td>');
          document.write('<td width="29" align="left" valign="middle"><a href="http://asiamediastudio.blogspot.com/"  >');
		  document.write('<img src="http://www.asiamediastudio.com/images/Icon-Blogger-1.jpg" alt="Asia Media Studio Blog - Graphic Design Bangkok" ');
		  document.write('  width="16" height="16" border="0" id="Image1" ');
		  document.write(' onmouseover="MM_swapImage(\'Image1\',\'\',\'http://www.asiamediastudio.com/images/Icon-Blogger-2.jpg\',1)" ');
		  document.write(' onmouseout="MM_swapImgRestore()" longdesc="Graphic Design Bangkok Thailand" />');
		  document.write('</a></td>');
          document.write('<td width="63" align="right" valign="middle">');
		  document.write('<a href="http://www.asiamediastudio.com/Free-Logo-Design.html">');
		  document.write('<img src="http://www.asiamediastudio.com/images/Icon-FreeLogoDesign-1.jpg" alt="Free Logo Design - Graphic Design Bangkok" width="63" ');
		  document.write(' height="21" border="0" id="Image2" ');
		  document.write(' onmouseover="MM_swapImage(\'Image2\',\'\',\'http://www.asiamediastudio.com/images/Icon-FreeLogoDesign-2.jpg\',1)"  ');
		  document.write(' onmouseout="MM_swapImgRestore()" longdesc="Graphic Design Bangkok Thailand" />');
		  document.write('</a></td>');
          document.write('<td width="13" valign="middle"></td>');
        document.write('</tr>');
      document.write('</table>');


}






















function work(id,in_out)
{
	
var start_name;
var end_name;
var img_header;

var start_menu_name;
var end_menu_name;



if(in_out ==1){  inout_is ="../../";   }else{  inout_is = ""; }


var arrow1_img = '<img src="images/Arrow.gif"  width="9" height="6" />';
var space_arrow_and_name = '&nbsp;&nbsp;';
	
	
ourjob_name_array = new Array;	

ourjob_name_array[0] = "&nbsp;BRANDING / IDENTITY &gt;";
ourjob_name_array[1] = "PRINTING &gt;";
ourjob_name_array[2] = "WEBSITE &gt;";
ourjob_name_array[3] = "PHOTOGRAPHY &gt;";
 
 
ourjob_link_array = new Array;	

ourjob_link_array[0] =  inout_is+"Works-Logo-Design-Thailand.html";
ourjob_link_array[1] = inout_is+"Printing.html";
ourjob_link_array[2] = inout_is+"Website.html";
ourjob_link_array[3] = inout_is+"Photography.html";
 


	
branding_name_array = new Array;

// branding_name                                                
branding_name_array[0] = "Sri Silver";                     
branding_name_array[1] = "Food by Phone";
branding_name_array[2] = "Zion Aromatherapy";	
branding_name_array[3] = "Fluid Asia Pacific";	
branding_name_array[4] = "Pranburi Int. Triathlon";


branding_name_array[5] = "Ecotrade";
branding_name_array[6] = "Hamilton Forbes";
branding_name_array[7] = "EMM Consulting";
branding_name_array[8] = "Ylang Ylang Resort";
branding_name_array[9] = "Doi Isara Villa";


branding_name_array[10] = "CEO Health";
branding_name_array[11] = "Parker Bridge";
branding_name_array[12] = "iHome";
branding_name_array[13] = "Sranrom";
branding_name_array[14] = "Airline Pilot";

// End branding_name



// PRINTING_name

branding_name_array[15] = "Sranrom";	
branding_name_array[16] = "Black Swan";	
branding_name_array[17] = "Asia World";	
branding_name_array[18] = "Fruit Chocs";	
branding_name_array[19] = "Food by Phone";	


branding_name_array[20] = "Simexa";
branding_name_array[21] = "Skyline";
branding_name_array[22] = "The Perfume House";
branding_name_array[23] = "Tradibake";
branding_name_array[24] = "Doi Isara Villa";

branding_name_array[25] = "Creation & Perfume";
branding_name_array[26] = "Great Book 4 Kids";
branding_name_array[27] = "Sri Silver";
branding_name_array[28] = "Pizza Mania";
branding_name_array[29] = "Buff & Co";

// End PRINTING_name


// WEBSITE



branding_name_array[30] = "Exotissimo";	
branding_name_array[31] = "Food by Phone";	
branding_name_array[32] = "Sri Silver";	
branding_name_array[33] = "Doi Isara Villa";	
branding_name_array[34] = "iHome";	


branding_name_array[35] = "Select Print";
branding_name_array[36] = "Gold by Mail";
branding_name_array[37] = "Hamilton Forbes";
branding_name_array[38] = "CAP 41";
branding_name_array[39] = "Tradibake";

branding_name_array[40] = "Volcano Jewellery";
branding_name_array[41] = "Pizza Mania";
branding_name_array[42] = "J.C. Brosseau";
branding_name_array[43] = "Centaur Cars";
branding_name_array[44] = "Fruit Chocs";

// End WEBSITE

// PHOTOGRAPHY

branding_name_array[45] = "Nike";	
branding_name_array[46] = "Dressing";	
branding_name_array[47] = "Face";	
branding_name_array[48] = "Face Expression";	
branding_name_array[49] = "Fashion";	


branding_name_array[50] = "Fashion In The Dark";
branding_name_array[51] = "Food";
branding_name_array[52] = "Inside Kitchen";
branding_name_array[53] = "Kata Condominium";
branding_name_array[54] = "Modeling";

branding_name_array[55] = "People";
branding_name_array[56] = "Relaxing";
branding_name_array[57] = "Spa";
branding_name_array[58] = "Dragon Xpress";
branding_name_array[59] = "Miscellaneous";

// -------------------------------------------------------



branding_link_array = new Array;
//-----------------------------------------------------------

var branding_dir;

if(in_out==0){ branding_dir = "contents/branding/";  }else{  branding_dir = ""; }

branding_link_array[0] = branding_dir+"Sri_Silver.html";	
branding_link_array[1] = branding_dir+"Food_by_Phone.html";	
branding_link_array[2] = branding_dir+"Zion_Aromatherapy.html";	
branding_link_array[3] = branding_dir+"Fluid_Asia_Pacific.html";	
branding_link_array[4] = branding_dir+"Pranburi_Int_Triathlon.html";


branding_link_array[5] = branding_dir+"Ecotrade.html";
branding_link_array[6] = branding_dir+"Hamilton_Forbes.html";
branding_link_array[7] = branding_dir+"EMM_Consulting.html";
branding_link_array[8] = branding_dir+"Ylang_Ylang_Resort.html";	
branding_link_array[9] = branding_dir+"Doi_Isara_Villa.html";	

branding_link_array[10] = branding_dir+"CEO_Health.html";	
branding_link_array[11] = branding_dir+"Parker_Bridge.html";	
branding_link_array[12] = branding_dir+"iHome.html";	
branding_link_array[13] = branding_dir+"Sranrom.html";	
branding_link_array[14] = branding_dir+"Airline_Pilot.html";	


//-----------------------------------------------------


var printing_dir;

if(in_out==0){ printing_dir = "contents/printing/";  }else{  printing_dir = ""; }

branding_link_array[15] = printing_dir+"Sranrom.html";
branding_link_array[16] = printing_dir+"Black_Swan.html";
branding_link_array[17] = printing_dir+"Asia_World.html";
branding_link_array[18] = printing_dir+"Fruit_Chocs.html";
branding_link_array[19] = printing_dir+"Food_by_Phone.html";


branding_link_array[20] = printing_dir+"Simexa.html";
branding_link_array[21] = printing_dir+"Skyline.html";
branding_link_array[22] = printing_dir+"The_Perfume_House.html";
branding_link_array[23] = printing_dir+"Tradibake.html";
branding_link_array[24] = printing_dir+"Doi_Isara_Villa.html";

branding_link_array[25] = printing_dir+"Creation_Perfume.html";
branding_link_array[26] = printing_dir+"Great_Book_4_Kids.html";
branding_link_array[27] = printing_dir+"Sri_Silver.html";
branding_link_array[28] = printing_dir+"Pizza_Mania.html";
branding_link_array[29] = printing_dir+"Buff_Co.html";

//-----------------------------------------------------

var website_dir = "contents/website/";
if(in_out==0){ website_dir = "contents/website/";  }else{  website_dir = ""; }

branding_link_array[30] = website_dir+"Exotissimo.html";
branding_link_array[31] = website_dir+"Food_by_Phone.html";
branding_link_array[32] = website_dir+"Sri_Silver.html";
branding_link_array[33] = website_dir+"Doi_Isara_Villa.html";
branding_link_array[34] = website_dir+"iHome.html";


branding_link_array[35] = website_dir+"Select_Print.html";
branding_link_array[36] = website_dir+"Gold_by_Mail.html";
branding_link_array[37] = website_dir+"Hamilton_Forbes.html";
branding_link_array[38] = website_dir+"CAP41.html";
branding_link_array[39] = website_dir+"Tradibake.html";


branding_link_array[40] = website_dir+"Volcano_Jewellery.html";
branding_link_array[41] = website_dir+"Pizza_Mania.html";
branding_link_array[42] = website_dir+"JC_Brosseau.html";
branding_link_array[43] = website_dir+"Centaur_Cars.html";
branding_link_array[44] = website_dir+"Fruit_Chocs.html";

// End WEBSITE

// PHOTOGRAPHY

var Photography_dir = "contents/Photography/";
if(in_out==0){ Photography_dir = "contents/Photography/";  }else{  Photography_dir = ""; }

branding_link_array[45] = Photography_dir+"Nike.html";
branding_link_array[46] = Photography_dir+"Dressing.html";
branding_link_array[47] = Photography_dir+"Face.html";
branding_link_array[48] = Photography_dir+"Face_Expression.html";
branding_link_array[49] = Photography_dir+"Fashion.html";


branding_link_array[50] = Photography_dir+"Fashion_In_The_Dark.html";
branding_link_array[51] = Photography_dir+"Food.html";
branding_link_array[52] = Photography_dir+"Inside_Kitchen.html";
branding_link_array[53] = Photography_dir+"Kata_Condominium.html";
branding_link_array[54] = Photography_dir+"Modeling.html";


branding_link_array[55] = Photography_dir+"People.html";
branding_link_array[56] = Photography_dir+"Relaxing.html";
branding_link_array[57] = Photography_dir+"Spa.html";
branding_link_array[58] = Photography_dir+"Dragon_Xpress.html";
branding_link_array[59] = Photography_dir+"Miscellaneous.html";


if(id<15){ 
//img_header = '<img src="'+inout_is+'images/titles/Branding-Idenity-Projects.gif" width="205" height="17" alt=" Logo Design Thailand" longdesc="Logo Design Thailand Bangkok" />';

img_header = '<span  class="Bold-Yellow" style=" font-size:12px;" >Branding / Identity Projects</span>';

}else if((id>=15)&&(id<29)){ 

img_header = '<span  class="Bold-Yellow" style=" font-size:12px;" >Printing Project</span>';
}else if((id>=30)&&(id<44)){ 

img_header = '<span  class="Bold-Yellow" style=" font-size:12px;" >Website Project</span>';
}else if(id>=45){ 

img_header = '<span  class="Bold-Yellow" style=" font-size:12px;" >Photography Project</span>';

}










	
document.write('<table width="770" border="0" cellspacing="0" cellpadding="0">'); //   table 1
      document.write('<tr>');
        document.write('<td width="256" height="176" align="left" valign="top">');
		document.write('<table width="256"  border="0" cellpadding="0" cellspacing="0">'); // table 2
          document.write('<tr class="Gradient-grey">');
            document.write('<td width="13"></td>');

            document.write('<td width="230" align="left" valign="top">');
			document.write('<table width="230" border="0" cellspacing="0" cellpadding="0">'); // table 3
              document.write('<tr>');
                document.write('<td height="40" align="right" valign="bottom" class="Text-White-Header">');
				document.write('Our works / Categories');
				document.write('</td>');
              document.write('</tr>');
              document.write('<tr>');
                document.write('<td height="16" align="right"></td>');
              document.write('</tr>');
              document.write('<tr>');

                document.write('<td align="right" valign="top">');
				
// our work /left menu start here 		

 


for(i=0;i<4;i++){

if(i==0){ 
if(id<15){ start_menu_name = '<span class="Bold-Yellow-2">'; end_menu_name = '</span>'; }else{     start_menu_name = '<a href="'+ourjob_link_array[i]+'" class="links-White-Works"  target="_parent">'; end_menu_name = '</a>';        }



 
}else if(i==1){ 
if((id>=15)&&(id<29)){ start_menu_name = '<span class="Bold-Yellow-2">'; end_menu_name = '</span>'; }else{     start_menu_name = '<a href="'+ourjob_link_array[i]+'" class="links-White-Works"  target="_parent">'; end_menu_name = '</a>';        }
 
}else{ // not 0 (branding )
	
 start_menu_name = '<a href="'+ourjob_link_array[i]+'" class="links-White-Works"  target="_parent">'; end_menu_name = '</a>'; 

}



 

if(i==2){ 
if((id>=30)&&(id<45)){ start_menu_name = '<span class="Bold-Yellow-2">'; end_menu_name = '</span>'; }else{     start_menu_name = '<a href="'+ourjob_link_array[i]+'" class="links-White-Works"  target="_parent">'; end_menu_name = '</a>';        }
 
}

 
 if(i==3){ 
if((id>=45)){ start_menu_name = '<span class="Bold-Yellow-2">'; end_menu_name = '</span>'; }else{     start_menu_name = '<a href="'+ourjob_link_array[i]+'" class="links-White-Works"  target="_parent">'; end_menu_name = '</a>';        }
 
}

 
 
 
 


 document.write(start_menu_name+ourjob_name_array[i]+end_menu_name);
 document.write('<br />');
			  
}

	                 
// end our work /left menu                 
                 
                  document.write('<br /><br />');
				  document.write('</td>');

             document.write('</tr>');
            document.write('</table>');   
			document.write('</td>');
            document.write('<td width="13"></td>');
          document.write('</tr>');
          
          document.write('<tr>');
            document.write('<td width="13" height="13">');
			document.write('<img src="'+inout_is+'images/coner-left-grey.gif"  width="13" height="13" />');
			document.write('</td>');
            document.write('<td width="230" height="13" class="Grey-Dark"></td>');
            document.write('<td width="13" height="13"><img src="'+inout_is+'images/corner-right-grey.gif"  width="13" height="13" /></td>');

          document.write('</tr>');

        document.write('</table>');  
		document.write('</td>');
        document.write('<td width="1" height="176"><img src="'+inout_is+'images/dash-works.jpg"  width="1" height="180" /></td>');
        document.write('<td width="513" height="176" align="left" valign="top">');
		document.write('<table width="513" border="0" cellspacing="0" cellpadding="0">');
          document.write('<tr class="Gradient">');
            document.write('<td width="13"></td>');
            document.write('<td align="right">');
			
			
			
						document.write('<table width="460" border="0" cellspacing="0" cellpadding="0">');  // table 4

              document.write('<tr>');
                document.write('<td height="40" colspan="5" align="left" valign="bottom" >');
				document.write(img_header);
				document.write('</td>');

                document.write('</tr>');
              document.write('<tr>');
                document.write('<td height="16" colspan="5"></td>');
                document.write('</tr>');
              document.write('<tr>');

                document.write('<td width="130" align="left" valign="top">');
	
	
	
var num_start;
var num_end;

if(id<15){ 
num_start = 0; num_end = 5;
}else if((id>=15)&&(id<30)){ 
num_start = 15; num_end =20;
}else if((id>=30)&&(id<45)){ 
 num_start = 30; num_end =35;
}else if(id>=45){ 
 num_start = 45; num_end =50;
}
	
	
	


for(i=num_start;i<num_end;i++){
// first row of menu
                document.write(arrow1_img);
				document.write(space_arrow_and_name);
                if(id == i){ start_name = '<span class=\'Bold-Yellow\' >'; end_name = '</span>';  }
				else{ start_name = '<a href=\''+branding_link_array[i]+'\' class=\'links-Works\'  target=\'_parent\'  >'; end_name = '</span>';   }				
				document.write(start_name+branding_name_array[i]+end_name);
				document.write('<br />');
				
}




				document.write('<br />');
				document.write('</td>');
				
				
				
				
				
				
                document.write('<td width="36" align="left" valign="middle">');
				document.write('<img src="'+inout_is+'images/line-works.jpg" width="1" height="82" />');
				document.write('</td>');
                document.write('<td width="128" align="left" valign="top">');
				
num_start = num_start + 5;
num_end = num_end + 5;				
				
for(i=num_start;i<num_end;i++){
// first row of menu
                document.write(arrow1_img);
				document.write(space_arrow_and_name);
                if(id == i){ start_name = '<span class=\'Bold-Yellow\' >'; end_name = '</span>';  }
				else{ start_name = '<a href=\''+branding_link_array[i]+'\' class=\'links-Works\'  target=\'_parent\'  >'; end_name = '</span>';   }				
				document.write(start_name+branding_name_array[i]+end_name);
				document.write('<br />');
				
}
				
				
				
				  document.write('</td>');
                document.write('<td width="35" align="left" valign="middle">');
				document.write('<img src="'+inout_is+'images/line-works.jpg" width="1" height="82" />');
				document.write('</td>');
                document.write('<td width="131" align="left" valign="top">');
	
	
num_start = num_start + 5;
num_end = num_end + 5;				
				
for(i=num_start;i<num_end;i++){
// first row of menu
                document.write(arrow1_img);
				document.write(space_arrow_and_name);
                if(id == i){ start_name = '<span class=\'Bold-Yellow\' >'; end_name = '</span>';  }
				else{ start_name = '<a href=\''+branding_link_array[i]+'\' class=\'links-Works\'  target=\'_parent\'  >'; end_name = '</span>';   }				
				document.write(start_name+branding_name_array[i]+end_name);
				document.write('<br />');
				
}
								
	
				
				
				
           document.write('</td>');
              document.write('</tr>');

            document.write('</table>');   // end table 4

			
			
						
			
			
	
	
	
						
			
				
	
				
				
			
			document.write('</td>');
            document.write('<td width="13"></td>');
          document.write('</tr>');
          document.write('<tr>');
            document.write('<td width="13" height="13"><img src="'+inout_is+'images/coner-left.gif"  width="13" height="13" /></td>');
            document.write('<td height="13"  class="Grey"></td>');
            document.write('<td width="13" height="13"><img src="'+inout_is+'images/corner-right.gif"  width="13" height="13" /></td>');
          document.write('</tr>');

        document.write('</table>');
		document.write('</td>');
      document.write('</tr>');
    document.write('</table>'); // table 1
	
	
	
	
	
	
}// end work































function footer(){


document.write('<table width="'+td_width+'" border="0" cellspacing="0" cellpadding="0">');
        document.write('<tr>');
          document.write('<td height="10" colspan="5"></td>');
          document.write('</tr>');
        document.write('<tr>');
          document.write('<td width="14"></td>');
          document.write('<td width="651" align="left" valign="middle"  class="Text-Flag-NONActive">');
		  
		  now = new Date;
		  theYear=now.getYear();
		  if (theYear < 1900){
		  theYear=theYear+1900;
		  }
		  
		  document.write('Copyrights &copy; ');
		  document.write(theYear)
		  document.write(' Asia Media Studio Co., Ltd. - ');
		  document.write('<a href="links.htm" class="links-Copywright">Links</a>');
		  document.write(' - ');
		  document.write('<a href="SiteMap.htm" class="links-Copywright">SiteMap</a>');
		  document.write('</td>');
          document.write('<td width="29" align="left" valign="middle">&nbsp;</td>');
          document.write('<td width="63" align="right" valign="middle">&nbsp;</td>');
          document.write('<td width="13" valign="middle"></td>');
        document.write('</tr>');
      document.write('</table>');

}