<!--

IE = (document.all)
NS = (navigator.appName=="Netscape" && navigator.appVersion >= "4")

function moveOut() {
if (window.cancel) {clearTimeout(cancel);}
if (window.moving2) {clearTimeout(moving2);}
if ((IE && ssm2.style.pixelLeft<0)||(NS && document.ssm2.left<0)) {
if (IE) {ssm2.style.pixelLeft += 10;}
if (NS) {document.ssm2.left += 10;}
moving1 = setTimeout('moveOut()', slideSpeed)}
else {clearTimeout(moving1)}};

function moveBack() {
cancel = setTimeout('moveBack1()', waitTime)}

function moveBack1() {
if (window.moving1) {clearTimeout(moving1)}
if ((IE && ssm2.style.pixelLeft>(-menuWidth))||(NS && document.ssm2.left>(-menuWidth))) {
if (IE) {ssm2.style.pixelLeft -= 10;}
if (NS) {document.ssm2.left -= 10;}
moving2 = setTimeout('moveBack1()', slideSpeed)}
else {clearTimeout(moving2)}};

lastY = 0;
function makeStatic(mode) {
if (IE) {winY = document.body.scrollTop;var NM=ssm2.style}
if (NS) {winY = window.pageYOffset;var NM=document.ssm2}
if (mode=="smooth") {
if ((IE||NS) && winY!=lastY) {
smooth = .2 * (winY - lastY);
if(smooth > 0) smooth = Math.ceil(smooth);
else smooth = Math.floor(smooth);
if (IE) NM.pixelTop+=smooth;
if (NS) NM.top+=smooth;
lastY = lastY+smooth;}
setTimeout('makeStatic("smooth")', 1)}
else if (mode=="advanced") {
if ((IE||NS) && winY>YOffset-staticYOffset) {
if (IE) {NM.pixelTop=winY+staticYOffset}
if (NS) {NM.top=winY+staticYOffset}}
else {
if (IE) {NM.pixelTop=YOffset}
if (NS) {NM.top=YOffset-7}}
setTimeout('makeStatic("advanced")', 1)}}

function initSlide() {
if (IE) {
ssm2.style.pixelLeft = -menuWidth;
ssm2.style.visibility = "visible"}
else if (NS) {
document.ssm2.left = -menuWidth;
document.ssm2.visibility = "show"}
else {alert('Choose either the "smooth" or "advanced" static modes!')}}

function startMenu() {
if (IE) {document.write('<DIV ID="ssm2" style="visibility:hidden; Position:Absolute; Left:0px; Top:'+YOffset+'px; Z-Index:20; width:1px" onClick="moveOut()" onmousedown="moveBack()">')}
if (NS) {document.write('<LAYER visibility="hide" top="'+YOffset+'" name="ssm2" bgcolor="'+menuBGColor+'" left="0" onClick="moveOut()" onmousedown="moveBack()">')}

document.write('<table cellpadding="0" cellspacing="1" width="'+(menuWidth+barWidth+1)+'" bgcolor="'+menuBGColor+'">')
document.write('<TR><TD><table cellpadding="0" cellspacing="0" width="100%"><TR><td HEIGHT="1" WIDTH="'+(menuWidth-1)+'"  ALIGN="'+hdrAlign+'" VALIGN="'+hdrVAlign+'"></td><td align="center" rowspan="100" width="'+barWidth+'"  valign="'+barVAlign+'"><div align="center"><a><img border="0" src="'+barhandleimage+'" width="32" height="430"></a></div></TD></TR>')}

function addItem(text, link, target) {
if (!target) {target=linkTarget}
document.write('<TR><TD BGCOLOR="'+linkBGColor+'" onmouseover="bgColor=\''+linkOverBGColor+'\'" onmouseout="bgColor=\''+linkBGColor+'\'" ALIGN="'+linkAlign+'" WIDTH="'+(menuWidth-1)+'" ><ILAYER><LAYER onmouseover="bgColor=\''+linkOverBGColor+'\'" onmouseout="bgColor=\''+linkBGColor+'\'" WIDTH="100%" ALIGN="'+linkAlign+'"><FONT face="'+linkFontFamily+'" Size="'+linkFontSize+'">&nbsp;&nbsp;&nbsp;<A HREF="'+link+'" target="'+target+'">'+text+'</LAYER></ILAYER></TD></TR>')}

function addHdr(text) {
document.write('<TR><TD bgcolor="'+hdrBGColor+'" onmouseover="bgColor=\''+linkOverBGColor+'\'" onmouseout="bgColor=\''+hdrBGColor+'\'" ALIGN="'+hdrAlign+'" HEIGHT="'+hdrHeight+'" VALIGN="'+hdrVAlign+'">&nbsp;<font face="'+hdrFontFamily+'" Size="'+hdrFontSize+'" COLOR="'+hdrFontColor+'"><b>'+text+'</b></font></TD></TR>')}

function addHdr2(text, link, target) {
document.write('<TR><TD bgcolor="'+hdr2BGColor+'" onmouseover="bgColor=\''+linkOverBGColor+'\'" onmouseout="bgColor=\''+hdr2BGColor+'\'" ALIGN="center" HEIGHT="'+hdrHeight+'" VALIGN="'+hdrVAlign+'">&nbsp;<font face="'+hdrFontFamily+'" Size="'+1+'" COLOR="'+hdrFontColor+'"><b>'+text+'</b></font></TD></TR>')}

function endMenu() {
document.write('</table>')
document.write('</TD></TR></table>')
if (IE) {document.write('</DIV>')}
if (NS) {document.write('</LAYER>')}
if ((IE||NS) && (menuIsStatic=="yes"&&staticMode)) {makeStatic(staticMode);}
}

YOffset=10;
staticYOffset=20;
staticMode="smooth";
slideSpeed=10;
waitTime=222;
menuBGColor="";
menuIsStatic="yes";
menuHeader="&nbsp;Our Menu";
menuWidth=178;
hdrFontFamily="arial";
hdrFontSize="2";
hdrFontColor="black";
hdrBGColor="#dddddd";
hdr2BGColor="#000000";
hdrOverBGColor="#9191fb";
hdrAlign="left";
hdrVAlign="center";
hdrHeight="12";
linkFontFamily="Verdana";
linkFontSize="1";
linkBGColor="#eeeeee";
linkOverBGColor="#9191fb";
linkTarget="_self";
linkAlign="left";
barBGColor="black";
barFontFamily="Verdana";
barFontSize="2";
barFontColor="black";
barhandleimage="http://www.tiresnstuff.com/menuHandle.gif";
barText="MENU";
barVAlign="right";
barWidth=30;
bordercolor="#000000";

startMenu()
addHdr('&nbsp;<a href="http://www.tiresnstuff.com/tires.html"><font color="black">Tires/Wheels</font></a>');
addItem('ATV Tires/Wheels', 'tiresATV.html', '');
addHdr('&nbsp;<font color="black">ATV Accessories</font>');
addItem('ATV Lift Kits', 'atvLiftKits.html', '');
addItem('ATV/Motorcycle Brake Pads', 'atvBrakes.html', '');
addItem('ATV Wheel Spacers', 'atvWheelSpacers.html', '');
addItem('ATV Winches', 'atv-winch.html', '');
addHdr('&nbsp;<a href="http://www.tiresnstuff.com/products.html"><font color="black">ALL PRODUCTS</font></a>');
addItem('Home', 'http://www.tiresnstuff.com', '');
addItem('Copyright 2009 Tiresnstuff', 'http://www.tiresnstuff.com', '');
addHdr2('<a onClick="moveBack()" class=text3>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<big><big>CLOSE</big></big>&nbsp;MENU&nbsp;</a>','','');
endMenu()

window.onload=initSlide


//-->