function layout_header(title){
         if (title==null) title="Benjamin Toys (HK) Ltd.";
         if (title=="") title="Benjamin Toys (HK) Ltd.";
         document.write('<title>'+title+'</title>'+'<meta http-equiv="Content-Type" content="text/html; charset=big5">');
         document.write('<style>.cell_over { BACKGROUND-COLOR: #225588 } .cell_out { BACKGROUND-COLOR: #4477aa }</style>');
}

function layout_top(rel, lang){
         if (rel==null) rel="";
         if (lang==null) lang="eng";
         if (lang=="") lang="eng";

         document.write(
                 '<table width=750 height=100% cellspacing=0 cellpadding=0 border=0 align=center>'+
                 '<tr><td valign=top>'+
                 '         <table width=100% cellspacing=0 cellpadding=0 background="' +rel+ 'picture/ben-title.gif">'+
                 '         <tr><td width=300 height=80 align=left>'+
                 '                 &nbsp; <!--&nbsp; <img src="' +rel+ 'picture/ben-title-2.gif" align=absmiddle>--></td>'+
                 '               <td>&nbsp;&nbsp;&nbsp;&nbsp;</td>'+
                 '         </tr></table>'+
                 '         <table width=100% cellspacing=0 cellpadding=0>'+
                 '         		<tr><td width=750 height=4></td></tr>'+
                 '         		<tr><td width=750 height=1 bgcolor=#333333></td></tr>'+
                 '		   </table>'+
                 '         <table width=100% cellspacing=0 cellpadding=0>'+
                 '         <tr><td width=80>&nbsp;</td>'+
                 '               <td height=20><b>'+
                 '                   <a href="'+rel+'index.htm">Home</a> <img src="'+rel+'picture/blank.jpg">'+
                 '                   <a href="'+rel+'contact.htm">Contact Us</a> <img src="'+rel+'picture/blank.jpg">'+
                 '                   <a href="'+rel+'product/new-item.htm">New Items</a> <img src="'+rel+'picture/blank.jpg">'+
                 '                   <a href="'+rel+'ori-pic/BT2008cat.pdf">Catalogue 2008 </a> '+
                 '		     <img src="'+rel+'picture/blank.jpg">'+
                 '                   <img src="'+rel+'picture/blank.jpg"><a href="http://www.solgroup.hk" target=_blank>SOL Group HK</a>'+
                 '               </b></td>'+
                 '         </tr></table>'+
                 '         <table width=100% cellspacing=0 cellpadding=0>'+
                 '         		<tr><td width=750 height=1 bgcolor=#333333></td></tr>'+
                 '         		<tr><td width=750 height=4></td></tr>'+
                 '		   </table>'+
                 '         <table width=100% cellspacing=0 cellpadding=0 height=99%>'+
                 '         <tr><td background="'+rel+'picture/left.gif" width=190>'+
                 '                 <table width=100% cellspacing=0 cellpadding=0 height=100% class="tleft">'+
                 '                        <tr><td colspan=3 height=35 bgcolor=#4477aa align=center><a href="' +rel+ 'catalogue.htm">&bull; Browse the Catalogue</a></td></tr> <tr><td colspan=3 height=1 bgcolor=#eeeeee></td></tr>'
         );

         if (lang=="p-eng"){
               show_button("Pre-School", rel+"product/pre-school.htm");
			   show_button("Young Professor", rel+"product/young-professor.htm");
			   show_button("Young Explorer", rel+"product/young-explorer.htm");
			   show_button("Young Technician", rel+"product/young-technician.htm");
	       show_button("Science Museum", rel+"product/science-museum.htm");
               show_button("Dinosaurs", rel+"product/dinosaurs.htm");
               show_button("Sea Monkeys", rel+"product/sea-monkeys.htm");
               show_button("Action Toys", rel+"product/action-toys.htm");
               show_button("Flying Characters", rel+"product/flying-characters.htm");
               show_button("Boys Toys", rel+"product/boys-toys.htm");
               show_button("Racing Pen", rel+"product/racing-pen.htm");
         }
         else {
               show_button("Pre-School", rel+"product/pre-school-1.htm");
			   show_button("Young Professor", rel+"product/young-professor.htm");
			   show_button("Young Explorer", rel+"product/young-explorer.htm");
			   show_button("Young Technician", rel+"product/young-technician.htm");
	       show_button("Science Museum", rel+"product/science-museum.htm");
               show_button("Dinosaurs", rel+"product/dinosaurs.htm");
               show_button("Sea Monkeys", rel+"product/sea-monkeys.htm");
               show_button("Action Toys", rel+"product/action-toys.htm");
               show_button("Flying Characters", rel+"product/flying-characters.htm");
               show_button("Remote/Radio Control Cars", rel+"product/rc-cars.htm");
               show_button("Racing Pen", rel+"product/racing-pen.htm");
         }
         document.write(
                 '                      <tr><td colspan=3 height=8></td></tr>'+
                 '						<tr><td colspan=3><a href="mailto:sales@benjamin-toys.com"><img src="' +rel+ 'picture/button-enquiry.gif" border=0></a></td></tr>'+
                 '                      <tr><td colspan=3 height=3></td></tr>'+
                 '						<tr><td colspan=3><a href="http://www.solgroup.hk" target=_blank><img src="' +rel+ 'picture/button-solgrouphk.gif" border=0></a></td></tr>'+ 
                 '                      <tr><td colspan=3 height=3></td></tr>'+
                 '						<tr><td colspan=3><a href="http://www.solgroup.net" target=_blank><img src="' +rel+ 'picture/button-solgroup.gif" border=0></a></td></tr>'+ 
                 '                      <tr><td colspan=3 height=3></td></tr>'+
                 '						<tr><td colspan=3><a href="http://www.benjamintoys.com" target=_blank><img src="' +rel+ 'picture/button-benjamin-uk.gif" border=0></a></td></tr>'+ 
                 '                      <tr><td colspan=3 height=3></td></tr>'+
                 '                      <tr><td colspan=3 height=100%></td></tr>'+
                 '                 </table>'+
                 '              </td>'+
                 '              <td bgcolor=#ffffff valign=top><br>'
         );
}

function show_button(bname, blink){
         document.write(
                 '      <tr><td colspan=2 height=20></td><td bgcolor=#4477aa onmouseover="this.className=\'cell_over\';" onmouseout="this.className=\'cell_out\';"><a href=' +blink+ '>&nbsp;&bull; ' +bname+ '</a></td></tr>'+
                 '      <tr><td colspan=3 height=1 bgcolor=#eeeeee></td></tr>'
         );
}

function show_button_p(bname, blink){
         document.write(
                 '      <tr><td colspan=2 height=14></td><td bgcolor=#6699cc><a href=' +blink+ '> &nbsp; &nbsp; <small>' +bname+ '</small></a>&nbsp;</td></tr>'+
                 '      <tr><td colspan=3 height=1 bgcolor=#eeeeee></td></tr>'
         );
}

function layout_buttom(){
         document.write('</td></tr></table></td></tr></table>');
}
