function layout_header(title){
         if (title==null) title="Longview Technology Group Ltd.";
         if (title=="") title="Longview Technology Group 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/bg7.jpg">'+
                 '         <tr><td width=1 bgcolor=#333333></td>'+
                 '               <td width=200 height=88 align=left>'+
                 '                 <!--<img src="' +rel+ 'picture/lti-newlogo.gif" align=absmiddle >--></td>'+
                 '               <td>&nbsp;&nbsp;&nbsp;&nbsp;</td>'+
                 '               <td width=1 bgcolor=#333333></td>'+
                 '         </tr></table>'+
                 '         <table width=100% cellspacing=0 cellpadding=0 bgcolor=#cccccc>'+
                 '         <tr><td width=1 bgcolor=#333333></td>'+
                 '               <td width=10>&nbsp;</td>'+
                 '               <td height=20>'+
                 '                   <a href="'+rel+'index.html"><img src="'+rel+'picture/linkbar/home.gif" align=absmiddle border=0></a>'+
                 '                   <a href="'+rel+'profile.htm"><img src="'+rel+'picture/linkbar/profile.gif" align=absmiddle border=0></a>'+
                 '                   <a href="'+rel+'product.htm"><img src="'+rel+'picture/linkbar/product.gif" align=absmiddle border=0></a>'+
                 '                   <a href="'+rel+'contact.htm"><img src="'+rel+'picture/linkbar/contact.gif" align=absmiddle border=0></a>'+
                 '                   <a href="'+rel+'support.htm"><img src="'+rel+'picture/linkbar/support.gif" align=absmiddle border=0></a>'+
                 '                   <a href="'+rel+'link.htm"><img src="'+rel+'picture/linkbar/link.gif" align=absmiddle border=0></a>'+
                 '                   <a href="'+rel+'review-ad.htm"><img src="'+rel+'picture/linkbar/review-ad.gif" align=absmiddle border=0></a>'+
                 '                   <a href="http://hk.myblog.yahoo.com/mrdvdhk" target=_blank><img src="'+rel+'picture/linkbar/blogs.gif" align=absmiddle border=0></a>'+
				 '                   <a href="'+rel+'warranty-term.htm"><img src="'+rel+'picture/linkbar/warranty.gif" align=absmiddle border=0></a>'+
                 '               </td>'+
                 '               <td width=1 bgcolor=#333333></td>'+
                 '         </tr></table>'+
                 '         <table width=100% cellspacing=0 cellpadding=0 bgcolor=#336699>'+
                 '         <tr><td width=1 bgcolor=#333333></td>'+
                 '               <td width=748 height=2></td>'+
                 '               <td width=1 bgcolor=#333333></td>'+
                 '         </tr></table>'+
                 '         <table width=100% cellspacing=0 cellpadding=0 height=99%>'+
                 '         <tr><td bgcolor=#333333 width=1></td><td background="'+rel+'picture/left.gif" width=128>'+
                 '                 <table width=100% cellspacing=0 cellpadding=0 height=100% class="tleft">'+
                 '                        <tr><td></td><td bgcolor=#333333></td><td height=17></td></tr>'+
                 '                        <tr><td colspan=3 height=2 bgcolor=#666666></td></tr>'+
                 '                        <tr><td colspan=3 height=1 bgcolor=#eeeeee></td></tr>'
         );

         if (lang=="p-eng"){
               show_button("Home", rel+"index.html");
               show_button("Profile", rel+"profile.htm");
               show_button("Product", rel+"product.htm");
			   show_button_p("Blu-Ray", rel+"product/blu-ray-drive.htm");
               show_button_p("Case", rel+"product/case.htm");
               show_button_p("CD-ROM", rel+"product/cdrom.htm");
               show_button_p("CDRW", rel+"product/cdrw.htm");
               show_button_p("Combo Drive", rel+"product/combo.htm");
               show_button_p("Digital Camera", rel+"product/dc.htm");
               show_button_p("DVD-ROM", rel+"product/dvdrom.htm");
               show_button_p("DVDRW", rel+"product/dvdrw.htm");
               show_button_p("External Drive", rel+"product/external-drive.htm");
               show_button_p("LCD Monitor", rel+"product/lcd.htm");
               show_button_p("Motherboard", rel+"product/motherboard.htm");
               show_button_p("Networking", rel+"product/networking.htm");
               show_button_p("Slim Drive", rel+"product/slim-drive.htm");
               show_button_p("USB Device", rel+"product/usb-device.htm");
               show_button_p("Web Cam", rel+"product/web-cam.htm");
               show_button("Contact", rel+"contact.htm");
               show_button("Support", rel+"support.htm");
               show_button("Warranty", rel+"warranty-term.htm");
               show_button("Links", rel+"link.htm");
               show_button("Ad. & Review", rel+"review-ad.htm");

         }
         else {
               show_button("Home", rel+"index.html");
               show_button("Profile", rel+"profile.htm");
               show_button("Product", rel+"product.htm");
               show_button("Contact", rel+"contact.htm");
               show_button("Support", rel+"support.htm");
               show_button("Warranty", rel+"warranty-term.htm");
               show_button("Links", rel+"link.htm");
               show_button("Ad. & Review", rel+"review-ad.htm");
	
         }
         document.write(
                 '                        <tr><td colspan=3 height=2 bgcolor=#666666></td></tr>'+
                 '                        <tr><td width=4 height=100%></td><td width=1 bgcolor=#333333></td><td valign=top align=right></td></tr>'+
                 '                 </table>'+
                 '              </td>'+
                 '              <td bgcolor=#333333 width=1></td>'+
                 '              <td bgcolor=#ffffff valign=top><br>&nbsp;<br>'
         );
}

function show_button(bname, blink){
         document.write(
                 '      <tr><td height=20></td><td bgcolor=#333333></td><td bgcolor=#4477aa onmouseover="this.className=\'cell_over\';" onmouseout="this.className=\'cell_out\';"><a href=' +blink+ '>' +bname+ ' &bull;</a>&nbsp;</td></tr>'+
                 '      <tr><td colspan=3 height=1 bgcolor=#eeeeee></td></tr>'
         );
}

function show_button_p(bname, blink){
         document.write(
                 '      <tr><td height=18></td><td bgcolor=#333333></td><td bgcolor=#6699cc><a href=' +blink+ '><small>' +bname+ '</small></a>&nbsp;</td></tr>'+
                 '      <tr><td colspan=3 height=1 bgcolor=#eeeeee></td></tr>'
         );
}

function layout_buttom(){
         document.write('</td><td bgcolor=#333333 width=1></td>'+
                        '<td bgcolor=#cccccc width=4></td><td bgcolor=#333333 width=1></td></tr></table></td></tr></table>');
}