
var l_title = new Array(); // List of Link Titles						//
l_title[0] = "Home";
l_title[1] = "Products";
l_title[2] = "Distribute";
l_title[3] = "About Us";
l_title[4] = "Contact Us";

var l_link = new Array(); // List of Links						//
l_link[0] = "index.htm";
l_link[1] = "products.htm";
l_link[2] = "distribute.htm";
l_link[3] = "aboutus.htm";
l_link[4] = "contact.htm";

var target = ""; // Target Area							//

document.write('<DIV ID="slidemenubar2" STYLE="left:-160px" ONMOUSEOVER = "pull()" ONMOUSEOUT = "draw()">');
document.write(' <IMG SRC = "images/menubar.gif" ALIGN = "right" FLOAT = "right" >');
document.write('<TABLE>');

for ( i=0; i <= l_title.length - 1 ; i++ )
	{
	var l = i+1;
	document.write('<TR><TD HEIGHT = "50px" WIDTH = "40px"><IMG SRC = "images/blank.gif" ID = "HERE'+ l +
	'"></TD><TD><A HREF = ' + l_link[i] + 
	' ONMOUSEOVER = "changer(' + l + ')">' + l_title[i]+ '</a> </TD></TR>');
	}

document.write('</TABLE>');
document.write('</DIV>');
themenu = document.all.slidemenubar2.style;
rightboundary = 0;
leftboundary =- 160;

function pull()
{
if (window.drawit)
	{
	clearInterval(drawit);
	}
pullit = setInterval( "pullengine()", 10 );
}

function draw()
{
clearInterval(pullit);
drawit = setInterval( "drawengine()", 10 );
}


// Engines Here

// for the left movement
function pullengine()
{

if (themenu.pixelLeft < rightboundary)
	{
	themenu.pixelLeft += 5;
	}
else if (window.pullit)
	{
	clearInterval(pullit);
	}

}

// for the right movement
function drawengine()
{

if (themenu.pixelLeft > leftboundary)
	{
	themenu.pixelLeft -= 5;
	}
else if (window.drawit)
	{
	clearInterval(drawit);
	}

}
