
var x=0;

menuButtons = new Array(7);
dspMenuButtons = new Array(7);
menuButtonsUp = new Array(7);

for (x=0;x<7;x++)
  {
   menuButtons[x] = new Image;
   menuButtonsUp[x] = new Image;
  }

dspMenuButtons=menuButtons;

menuButtons[0] = "RS2DSprd.jpg";
menuButtons[1] = "RS2Drnt.jpg";
menuButtons[2] = "RS2Dart.jpg";
menuButtons[3] = "RS2Dcnt.jpg";
menuButtons[4] = "RS2Dnew.jpg";
menuButtons[5] = "RS2Dabt.jpg";
menuButtons[6] = "RS2DEstr.jpg";
menuButtonsUp[0] = "RS2USprd.jpg";
menuButtonsUp[1] = "RS2Urnt.jpg";
menuButtonsUp[2] = "RS2Uart.jpg";
menuButtonsUp[3] = "RS2Ucnt.jpg";
menuButtonsUp[4] = "RS2Unew.jpg";
menuButtonsUp[5] = "RS2Uabt.jpg";
menuButtonsUp[6] = "RS2UEstr.jpg";


htmlList = new Array(7);
htmlAltText = new Array(7);
htmlList[0] = "prod.html";
htmlAltText[0] = "Products";

htmlList[1] = "refs.html";
htmlAltText[1] = "Rentals";

htmlList[2] = "info.html";
htmlAltText[2] = "Magazine Articles Featuring American Shoring";

htmlList[3] = "contact.html";
htmlAltText[3] = "Contact Us";

htmlList[4] = "news.html";
htmlAltText[4] = "What's New";

htmlList[5] = "about.html";
htmlAltText[5] = "About";

htmlList[6] = "CFStory.html";
htmlAltText[6] = "Feature Story";

function dspMenu(x,t)
{

if (t=='UP')
 {
  if (x==0)
     {
     document.B0.src=menuButtonsUp[x];
     document.B0A.src="RS2U.jpg";
     }
  if (x==1)
     {
     document.B0A.src="RS2UM.jpg";
     document.B1.src=menuButtonsUp[x];
     document.B1A.src="RS2U.jpg";
     }
  if (x==2)
     {
     document.B1A.src="RS2UM.jpg";
 //    document.B2.src=menuButtonsUp[x];
 //    document.B2A.src="RS2U.jpg";
     document.B3.src=menuButtonsUp[x];
     document.B3A.src="RS2U.jpg";

     }
  if (x==3)
     {
     document.B1A.src="RS2UM.jpg";
  //   document.B2A.src="RS2UM.jpg";
     document.B3.src=menuButtonsUp[x];
     document.B3A.src="RS2U.jpg";
     }
  if (x==4)
     {
     document.B3A.src="RS2UM.jpg";
     document.B4.src=menuButtonsUp[x];
     document.B4A.src="RS2U.jpg";
     }
  if (x==5)
     {
     document.B4A.src="RS2UM.jpg";
     document.B5.src=menuButtonsUp[x];
     document.B5A.src="RS2U.jpg";
     }
  if (x==6)
     {
     document.B5A.src="RS2UM.jpg";
     document.B6.src=menuButtonsUp[x];
     }
  }
if (t=='DN')
  {
   document.B0.src=menuButtons[0];
   document.B1.src=menuButtons[1];
//   document.B2.src=menuButtons[2];
   document.B3.src=menuButtons[3];
   document.B4.src=menuButtons[4];
   document.B5.src=menuButtons[5];
   document.B6.src=menuButtons[6];
   document.B0A.src="RS2D.jpg";
   document.B1A.src="RS2D.jpg";
//   document.B2A.src="RS2D.jpg";
   document.B3A.src="RS2D.jpg";
   document.B4A.src="RS2D.jpg";
   document.B5A.src="RS2D.jpg";

  }

}

function scrW(pS)
{
 var temp='"'+screen.width*(pS/1024);
 if (temp.indexOf(".")!=-1)
   temp=temp.substring(1,temp.indexOf("."));
 else
   temp=temp.substring(1,temp.length);
 return eval(temp);
}

function scrH(pS)
{
 var temp='"'+screen.height*(pS/768);
 if (temp.indexOf(".")!=-1)
   temp=temp.substring(1,temp.indexOf("."));
 else
   temp=temp.substring(1,temp.length);
 return eval(temp);
}

function menuList()
{
document.write("<CENTER><A HREF='"+htmlList[0]+"' onMouseOver=dspMenu(0,'UP') onMouseOut=dspMenu(0,'DN') target=_top >");
document.write("<IMG name=B0 alt='"+htmlAltText[0]+"' border=0 width="+scrW(160)+" height="+scrH(120)+" SRC='"+menuButtons[0]+"'></A>");
document.write("<IMG name=B0A border=0 width="+scrW(10)+" height="+scrH(120)+" SRC='RS2D.jpg'>");

document.write("<A HREF='"+htmlList[1]+"' onMouseOver=dspMenu(1,'UP') onMouseOut=dspMenu(1,'DN') target=_top >");
document.write("<IMG name=B1 alt='"+htmlAltText[1]+"' border=0 width="+scrW(110)+" height="+scrH(120)+" SRC='"+menuButtons[1]+"'></A>");
document.write("<IMG name=B1A border=0 width="+scrW(10)+" height="+scrH(120)+" SRC='RS2D.jpg'>");

/*
document.write("<A HREF='"+htmlList[2]+"' onMouseOver=dspMenu(2,'UP') onMouseOut=dspMenu(2,'DN') target=_top >");
document.write("<IMG name=B2 alt='"+htmlAltText[2]+"' border=0 width="+scrW(110)+" height="+scrH(120)+" SRC='"+menuButtons[2]+"'></A>");
document.write("<IMG name=B2A border=0 width="+scrW(10)+" height="+scrH(120)+" SRC='RS2D.jpg'>");
*/

document.write("<A HREF='"+htmlList[3]+"' onMouseOver=dspMenu(3,'UP') onMouseOut=dspMenu(3,'DN') target=_top >");
document.write("<IMG name=B3 alt='"+htmlAltText[3]+"' border=0 width="+scrW(110)+" height="+scrH(120)+" SRC='"+menuButtons[3]+"'></A>");
document.write("<IMG name=B3A border=0 width="+scrW(10)+" height="+scrH(120)+" SRC='RS2D.jpg'>");

document.write("<A HREF='"+htmlList[4]+"' onMouseOver=dspMenu(4,'UP') onMouseOut=dspMenu(4,'DN') target=_top >");
document.write("<IMG name=B4 alt='"+htmlAltText[4]+"' border=0 width="+scrW(110)+" height="+scrH(120)+" SRC='"+menuButtons[4]+"'></A>");
document.write("<IMG name=B4A border=0 width="+scrW(10)+" height="+scrH(120)+" SRC='RS2D.jpg'>");

document.write("<A HREF='"+htmlList[5]+"' onMouseOver=dspMenu(5,'UP') onMouseOut=dspMenu(5,'DN') target=_top >");
document.write("<IMG name=B5 alt='"+htmlAltText[5]+"' border=0 width="+scrW(110)+" height="+scrH(120)+" SRC='"+menuButtons[5]+"'></A>");
document.write("<IMG name=B5A border=0 width="+scrW(10)+" height="+scrH(120)+" SRC='RS2D.jpg'>");

document.write("<A HREF='"+htmlList[6]+"' onMouseOver=dspMenu(6,'UP') onMouseOut=dspMenu(6,'DN') target=_top >");
document.write("<IMG name=B6 alt='"+htmlAltText[6]+"' border=0 width="+scrW(160)+" height="+scrH(120)+" SRC='"+menuButtons[6]+"'></A>");
document.write("<BR><IMG SRC=RS2grnd.jpg width="+scrW(785)+"></CENTER>");
}