// menu.js


class_menu="me8"
//back_color="#0D646B"
back_color="#003366"
textcolor_menu="white"
textcolor_this="black"
btn_menu=back_color
btn_over="lightsalmon"
btn_off=btn_menu
btn_thispage="maroon"


numofbuttons=6;
menuwidth=115; // width of the menu 

hreftxt= new Array() // the text for the menu buttons
hreftxt[1]="Home Page"
hreftxt[2]="Motor Vehicle Accessories"
hreftxt[3]="Boating Accessories"
hreftxt[4]="Fuel Tanks and Storage Boxes"
hreftxt[5]="Propellers"
hreftxt[6]="E-mail Us"


hrefs=new Array()  // the button's href
hrefs[1]="index.html"
hrefs[2]="mvaccessories.html"
hrefs[3]="boatingaccessories.html"
hrefs[4]="tanks.html"
hrefs[5]="propellers.html"
hrefs[6]="mailto:"+email

function removebox(x){
if (navigator.appName == 'Microsoft Internet Explorer')
  x.blur();
}

document.write('<table width="129" cellspacing="0" cellpadding="0" border="0" topmargin="0" bottommargin="0" leftmargin="0" valign="top" bgcolor="#003366">')

<!----- end of top cell ----------->

<!--- start of 3 cells with menu in center cell -------->
document.write('<tr>')
<!------ left spacer cell ------------->
document.write('<td bgcolor="#003366"><img src="images/spacer.gif" width="12"></td>')
<!------ center cell with menu ------>
document.write('<td bgcolor="#003366">')

document.write('<table border="0" cellspacing="2" cellpadding="2" topmargin="0" bottommargin="0" leftmargin="0" align="left" valign="top" width=' + menuwidth +'>')

      trget="_top" // set the target
      document.write('<tr><td colspan="3" align="center"><img src="images/welder3.jpg" border=1></td></tr>')
      document.write('<tr><td colspan="3" class="me7" align="center"><hr color="#FFCC00"></td></tr>')
      for (i=1; i<=numofbuttons; i++){
        tablenum=i
        menutxt=""
        if (i<10){tablenum="0"+i}
        if (hrefs[i]==thisurl){btn1=btn_thispage}
        else
        {btn1=btn_menu}

        menutxt+='<tr><td id="table' + tablenum + '" bgcolor="' + btn1 + '">'

        menutxt+='<div align=left class=' + class_menu + '>'
        menutxt+='<a href=" ' + hrefs[i] 
        // if (i>2){menutxt+='?' + today}  // add cache-reloader for changing pages
        menutxt+='"'
        menutxt+=' style="text-decoration: none; color: ' + textcolor_menu + '"'
        menutxt+=' target=' + trget 
        menutxt+=' onClick=removebox(this) '

        if (hrefs[i]==thisurl){btn2=btn_thispage}
        else
        {btn2=btn_over}
        menutxt+='onMouseOver="document.all.table' + tablenum + '.bgColor='
        menutxt+="'"+btn2+"'"
        menutxt+=' " '

        if (hrefs[i]==thisurl){btn3=btn_thispage}
        else
        {btn3=btn_off}

        menutxt+='onMouseOut="document.all.table' + tablenum + '.bgColor='
        menutxt+="'"+btn3+"'"
        menutxt+=' " '

        menutxt+=">"+hreftxt[i]
        menutxt+='</a></div></td></tr>'
        document.write(menutxt)
      }  





document.write('</table>')
document.write('</td>')

<!----- start of right spacer column ------------>
document.write('<td bgcolor="#003366"><img src="images/spacer.gif" width="12"></td>')
<!------ end of right spacer column ------------>

document.write('</tr>')
document.write('</table>')

<!---- start of bottom of menu column  ----->
document.write('<table width="139" cellspacing="0" cellpadding="0" border="0" topmargin="0" bottommargin="0" leftmargin="0" valign="top" bgcolor="003366">')
document.write('<tr><td class="me7" align="center"><hr color="#FFCC00" width="80%"></td></tr>')
document.write('<tr><td class="me7" align="center">Site Design &copy 2004<br>Datagen Web Design.</td></tr>')
document.write('<tr><td class="me7" align="center"><hr color="#FFCC00" width="80%"></td></tr>')
document.write('<tr><td class="me7" align="center">Best @ 800x600</td></tr>')

document.write('<tr><td bgcolor="#003366"><img src="images/50pixels.gif" width="139" height="4"></td></tr>')

document.write('<tr><td><img src="images/seperator.gif"></td></tr>')
document.write('</table>');



document.write('<table width="139" cellspacing="0" cellpadding="0" border="0" topmargin="0" bottommargin="0" leftmargin="0" valign="top" bgcolor="660033">')


document.write('<tr><td><center><img src="images/red_logo.gif"></td></tr>')



document.write('<tr><td><img src="images/spacer.gif" width=50 height=' + filler +'>');
document.write('<br>');
document.write('</td></tr>');
document.write('</table>');
