function navObj()
{
	this.link = "";
	this.text = "";
	this.width = 190;
	this.cstyle = "fright";
}

function draw( obj )
{
    var html="";
    
    html+='<table  border="0" cellspacing="0" cellpadding="0">'
        + ' <tr>'
        + '     <td>'
        + '     <img src="/tmrstore/images/menu_l.gif" class="transOFF" onmouseover="this.className=\'transON\'" onmouseout="this.className=\'transOFF\'" height="18" border="0">'
        + '     </td>'
        + '     <td width="'+obj.width+'" valign="middle" background="/tmrstore/images/menu_c.gif" class="transOFF" onmouseover="this.className=\'transON\'" onmouseout="this.className=\'transOFF\'" height="18" border="0">'
        + '         <a href="'+obj.link+'" class="VertMenuFont '+obj.cstyle+'">'+obj.text+'</a>'
        + '     </td>'
        + '     <td>'
        + '         <img src="/tmrstore/images/menu_r.gif"class="transOFF" onmouseover="this.className=\'transON\'" onmouseout="this.className=\'transOFF\'" height="18" border="0">'
        + '     </td>'
        + ' </tr>'
        + '</table>';

    document.write( html );
}	
	
function drawNavItem( link, text, width, style )
{
    var html="";
    
    html+='<table  border="0" cellspacing="0" cellpadding="0">'
        + ' <tr>'
        + '     <td>'
        + '     <img src="/tmrstore/images/menu_l.gif" class="transOFF" onmouseover="this.className=\'transON\'" onmouseout="this.className=\'transOFF\'" height="18" border="0">'
        + '     </td>'
        + '     <td width="'+width+'" valign="middle" background="/tmrstore/images/menu_c.gif" class="transOFF" onmouseover="this.className=\'transON\'" onmouseout="this.className=\'transOFF\'" height="18" border="0">'
        + '         <a href="'+link+'" class="VertMenuFont '+style+'">'+text+'</a>'
        + '     </td>'
        + '     <td>'
        + '         <img src="/tmrstore/images/menu_r.gif"class="transOFF" onmouseover="this.className=\'transON\'" onmouseout="this.className=\'transOFF\'" height="18" border="0">'
        + '     </td>'
        + ' </tr>'
        + '</table>';

    return html;
}

/*

document.write( drawNavItem( "1", "morse racing bodywork", 199, "fright" ) );
document.write( drawNavItem( "1", "morse racing paint services", 199, "fright" ) );
document.write( drawNavItem( "1", "morse racing fairing stays", 199, "fright" ) );
document.write( drawNavItem( "1", "morse racing race stands", 199, "fright" ) );
document.write( drawNavItem( "1", "morse racing valve stems", 199, "fright" ) );
document.write( drawNavItem( "1", "morse racing kneepucks", 199, "fright" ) );
document.write( drawNavItem( "1", "motogp leathers", 199, "fright" ) );
document.write( drawNavItem( "1", "ohlins suspension", 199, "fright" ) );
document.write( drawNavItem( "1", "leo vince exhausts", 199, "fright" ) );
document.write( drawNavItem( "1", "sbs brake pads", 199, "fright" ) );
document.write( drawNavItem( "1", "amsoil oil", 199, "fright" ) );
document.write( drawNavItem( "1", "woodcraft clip ons", 199, "fright") );
document.write( drawNavItem( "1", "woodcraft rear sets", 199, "fright" ) );
document.write( drawNavItem( "1", "woodcraft case covers", 199, "fright" ) );
document.write( drawNavItem( "1", "gpr stabilizers", 199, "fright" ) );
document.write( drawNavItem( "1", "braking rotors", 199, "fright" ) );
document.write( drawNavItem( "1", "something chains", 199, "fright" ) );
document.write( drawNavItem( "1", "Vortex Sprockets", 199, "fright" ) );
document.write( drawNavItem( "1", "K&N Oil & Air Filters", 199, "fright" ) );

var a = new navObj();
a.text = "Test Item";
a.width=200;
draw( a );
*/

