var tmpl_header = AJS.join('', [
			'<table width="820" height="106" border="0" cellspacing="0" cellpadding="0">',
              '<tr>',
                '<td width="170" height="58">&nbsp;</td>',
                '<td width="650" height="58">',
                	'<ul id="nav1">',
                    '<li><a id="n1" href="../../locator/index.php">Store Locator</a></li>',
                    '<li><a id="n2" href="../../company/contactus.php">Contact us</a></li>',
                    '<li><a id="n3" href="http://www.getspectrum.com">Spectrum Log-in</a></li>',
                  '</ul>',
                '</td>',
              '</tr>',
              '<tr>',
                '<td width="170" height="48">&nbsp;</td>',
                '<td width="650" height="48">',
                	'<table width="630" border="0" cellspacing="0" cellpadding="0">',
                      '<tr>',
                        '<td width="630" height="38" align="left">',
                            '<ul id="navlist">',
                                '<li><a id="m1" href="../index.php">Home</a></li>',
                                '<li><a id="m2" href="../products/index.php">Products</a></li>',
                                '<li><a id="m3" href="../opportunities/index.php">Opportunities</a></li>',
                                '<li><a id="m4" href="../company/index.php">Company</a></li>',
                                '<li><a id="m5" href="../news/index.php">New &amp; Views</a></li>',
                                '<li><a id="m6" href="../careers/index.php">Careers</a></li>',
                            '</ul>',
                        '</td>',
                    '</table>',
                '</td>',
              '</tr>',
          '</table>'
]);

function insertHeader() {
    AJS.DI(tmpl_header);
}
<!--------------- menu ------------>
/*
var LINKS = {
    'installation': 'installation.html',
    'examples': 'examples.html',
    'nrm_usage': 'normal_usage.html',
    'adv_usage': 'advance_usage.html',
    'cmpr': 'compressing_greybox.html',
    'about': 'about.html',
	'aztech': 'http://www.aztechsolution.com',
	'directdot': 'http://www.directdot.com'
}

function insertMenu(current_page) {
    var menu = AJS.UL({id: 'menu'});
    var create_item = function(cls, name) {
        var item = AJS.LI({'class': cls});
        AJS.ACN(item, AJS.A({href: LINKS[cls]}, name));
        return item;
    }
    var items = [
        create_item('installation', 'Installation'),
        create_item('examples', 'Examples'),
        create_item('nrm_usage', 'Normal usage'),
        create_item('adv_usage', 'Advance usage'),
        create_item('cmpr', 'Compressing GreyBox'),
        create_item('about', 'About'),
		create_item('aztech', 'A-Z Tech Solution'),
		create_item('directdot', 'Direct Dot')
    ];

    AJS.map(items, function(item) {
        if(item.className == current_page) {
            AJS.addClass(AJS.$bytc('a', null, item)[0], 'current');
        }
        AJS.ACN(menu, item);
    });
    AJS.DI(menu);
}

function insertCode() {
    var code = AJS.join('\n', arguments);
    var result = '<pre><code>';
    code = code.replace(/</g, '&lt;').replace(/>/g, '&gt;');
    result += code;
    result += '</code></pre>';
    document.write(result);
}
*/

