
function userCookie(name)
{
    var arg = name + "=";
    var alen = arg.length;
    var clen=document.cookie.length;
    var i=0;

    while(i< clen){
        var j = i+alen;
        if(document.cookie.substring(i,j)==arg) {
            var end = document.cookie.indexOf(";",j);
            if (end == -1) {
                end = document.cookie.length;
            }
            return unescape(document.cookie.substring(j,end));
        }
        i = document.cookie.indexOf(" ",i)+1;
        if (i==0) {
            break;
        }
    }
    return null;
}

document.writeln("<table width='920'  border='0' cellpadding='0' cellspacing='0'>                       ");
document.writeln("  <tr bgcolor='#0C58B6'>                                                              ");
document.writeln("    <td colspan='4' align='right' scope='col'>                                        ");
document.writeln("      <table width='910' height='100%'  border='0' cellpadding='0' cellspacing='0'>   ");
document.writeln("        <tr>                                                                          ");
document.writeln("          <th width='310' align='left' scope='col'><a href='/index.html'><img src='/image/logo.jpg' width='159' height='41' border='0'></a></th>     ");
document.writeln("          <th width='75' align='left' valign='middle' scope='col'><a href='/content/product.html'  onMouseOver=\"MM_swapImage('Image1','','/image/main_m01_ov.jpg',1)\"' onMouseOut=\"MM_swapImgRestore()\"><img src='/image/main_m01.jpg' name='Image1' width='128' height='70' border='0' id='Image1'></a></th>         ");
document.writeln("          <th width='107' align='left' valign='middle' scope='col'><a href='/content/trade.html'   onMouseOver=\"MM_swapImage('Image2','','/image/main_m02_ov.jpg',1)\" onMouseOut=\"MM_swapImgRestore()\"><img src='/image/main_m02.jpg' name='Image2' width='165' height='70' border='0' id='Image2'></a></th>         ");
document.writeln("          <th width='119' align='left' valign='middle' scope='col'><a href='/content/company.html' onMouseOver=\"MM_swapImage('Image3','','/image/main_m03_ov.jpg',1)\" onMouseOut=\"MM_swapImgRestore()\"><img src='/image/main_m03.jpg' name='Image3' width='176' height='70' border='0' id='Image3'></a></th>         ");
document.writeln("          <th width='53' scope='col'><a href='/local/servlet/RequestProcessor?event=MyPage.Click' onMouseOver=\"MM_swapImage('Image4','','/image/main_m04_ov.jpg',1)\" onMouseOut=\"MM_swapImgRestore()\"><img src='/image/main_m04.jpg' name='Image4' width='108' height='70' border='0' id='Image4'></a></th>          ");
document.writeln("          <th scope='col'><img src='/image/menublank.jpg' width='23' height='70'></th>                                      ");
document.writeln("        </tr>                                                                                                               ");
document.writeln("      </table></td>                                                                                                         ");
document.writeln("  </tr>                                                                                                                     ");
document.writeln("  <tr>                                                                                                                      ");
document.writeln("    <th height='19' colspan='4' align='left' valign='bottom' scope='row'><table border='0' cellspacing='0' cellpadding='0'> ");
document.writeln("        <tr align='left' valign='bottom'>                                                                                   ");
document.writeln("          <th width='44' scope='col'>&nbsp;</th>                                                                            ");        
if (userCookie("user") != null){
         document.writeln("<th scope='col'><a href='/local/servlet/RequestProcessor?event=Logout.Click'><img src='/image/util_logout.jpg' border='0'></a></th>"); 
} else { 
         document.writeln("<th scope='col'><a href='/local/servlet/RequestProcessor?event=Login.Click&nextEvent=MyPage.Click'><img src='/image/util_login.jpg' border='0'></a></th>"); 
}                                                                                                                                                           
document.writeln("          <th width='15' scope='col'><img src='/image/util_0.jpg' width='25' height='19'></th>                               ");
document.writeln("          <th scope='col'><a href='/content/howtouse.html'><img src='/image/util_howto.jpg' border='0'></a></th>             ");
document.writeln("          <th width='15' scope='col'><img src='/image/util_0.jpg' width='25' height='19'></th>                               ");
document.writeln("          <th scope='col'><a href='/content/guide_sitemap.html'><img src='/image/util_sitemap.jpg' border='0'></a></th>      ");
document.writeln("        </tr>                                                                                                                ");
document.writeln("      </table></th>                                                                                                          ");
document.writeln("  </tr>                                                                                                                      ");
document.writeln("</table>                                                                                                                     ");
