
var picSideList = 
        [["banner-side/Default/ridgid01.gif",				"Ridgid Tools & Equipment",			"index.jsp?ID=,Ridgid&path=mfr&ds=mfr"],
        ["banner-side/Default/ridgid02.gif",				"Ridgid Drain Cleaning",			"index.jsp?ID=,Ridgid,Drain.Cleaning&path=find&m=1&ds=mfr&a=1"],
        ["banner-side/Default/ridgid03.gif",				"Ridgid Inspection Equipment",		"index.jsp?ID=,Ridgid,Inspection...Locating&path=find&ds=mfr&a=1"],
        ["banner-side/Default/ridgid04.gif",				"Ridgid Pipe Wrenches",				"index.jsp?ID=,Ridgid,Wrenches&path=mfr&ds=mfr"],
        ["banner-side/Default/spacer01.jpg",				"Spacer",						"index.jsp?path=home"]];

imgCtSide = picSideList.length;

randomSideNum1 = Math.floor((Math.random() * imgCtSide));

randomSideNum2 = Math.floor((Math.random() * imgCtSide));
while (randomSideNum1 == randomSideNum2 && imgCtSide >= 2)
    randomSideNum2 = Math.floor((Math.random() * imgCtSide));

randomSideNum3 = Math.floor((Math.random() * imgCtSide));
while ((randomSideNum1 == randomSideNum3 || randomSideNum2 == randomSideNum3) && imgCtSide >= 3)
    randomSideNum3 = Math.floor((Math.random() * imgCtSide));

randomSideNum4 = Math.floor((Math.random() * imgCtSide));
while ((randomSideNum1 == randomSideNum4 || randomSideNum2 == randomSideNum4 || randomSideNum3 == randomSideNum4) && imgCtSide >= 4)
    randomSideNum4 = Math.floor((Math.random() * imgCtSide));

randomSideNum5 = Math.floor((Math.random() * imgCtSide));
while ((randomSideNum1 == randomSideNum5 || randomSideNum2 == randomSideNum5 || randomSideNum3 == randomSideNum5 || randomSideNum4 == randomSideNum5) && imgCtSide >= 5)
    randomSideNum5 = Math.floor((Math.random() * imgCtSide));

randomSideNum6 = Math.floor((Math.random() * imgCtSide));
while ((randomSideNum1 == randomSideNum6 || randomSideNum2 == randomSideNum6 || randomSideNum3 == randomSideNum6 || randomSideNum4 == randomSideNum6 || randomSideNum5 == randomSideNum6) && imgCtSide >= 6)
    randomSideNum6 = Math.floor((Math.random() * imgCtSide));

function chooseSidePic1() {
	if (document.images) {
                // choose first pic randomly
                if (document.sidePic1 != null) {
                  //randomSideNum = Math.floor((Math.random() * imgCtSide));
                  document.sidePic1.src = picSideList[randomSideNum1][0];
                  document.sidePic1.alt = picSideList[randomSideNum1][1];
                  document.sidePic1.title = picSideList[randomSideNum1][1];
                }

                // rotate pic every 15 seconds
                //setTimeout("chooseSidePic1()", 15 * 1000); 
	}
}
function chooseSidePic2() {
	if (document.images) {
                // choose first pic randomly 
                if (document.sidePic2 != null) {
                  //randomSideNum = Math.floor((Math.random() * imgCtSide));
                  document.sidePic2.src = picSideList[randomSideNum2][0];
                  document.sidePic2.alt = picSideList[randomSideNum2][1];
                  document.sidePic2.title = picSideList[randomSideNum2][1];
                }

                // rotate pic every 15 seconds
                //setTimeout("chooseSidePic2()", 15 * 1000); 
	}
}
function chooseSidePic3() {
	if (document.images) {
                // choose first pic randomly 
                if (document.sidePic3 != null) {
                  //randomSideNum = Math.floor((Math.random() * imgCtSide));
                  document.sidePic3.src = picSideList[randomSideNum3][0];
                  document.sidePic3.alt = picSideList[randomSideNum3][1];
                  document.sidePic3.title = picSideList[randomSideNum3][1];
                }

                // rotate pic every 15 seconds
                //setTimeout("chooseSidePic3()", 15 * 1000); 
	}
}
function chooseSidePic4() {
	if (document.images) {
                // choose first pic randomly 
                if (document.sidePic4 != null) {
                  //randomSideNum = Math.floor((Math.random() * imgCtSide));
                  document.sidePic4.src = picSideList[randomSideNum4][0];
                  document.sidePic4.alt = picSideList[randomSideNum4][1];
                  document.sidePic4.title = picSideList[randomSideNum4][1];
                }

                // rotate pic every 15 seconds
                //setTimeout("chooseSidePic4()", 15 * 1000); 
	}
}
function chooseSidePic5() {
	if (document.images) {
                // choose first pic randomly 
                if (document.sidePic5 != null) {
                  //randomSideNum = Math.floor((Math.random() * imgCtSide));
                  document.sidePic5.src = picSideList[randomSideNum5][0];
                  document.sidePic5.alt = picSideList[randomSideNum5][1];
                  document.sidePic5.title = picSideList[randomSideNum5][1];
                }

                // rotate pic every 15 seconds
                //setTimeout("chooseSidePic5()", 15 * 1000); 
	}
}
function chooseSidePic6() {
	if (document.images) {
                // choose first pic randomly 
                if (document.sidePic6 != null) {
                  //randomSideNum = Math.floor((Math.random() * imgCtSide));
                  document.sidePic6.src = picSideList[randomSideNum6][0];
                  document.sidePic6.alt = picSideList[randomSideNum6][1];
                  document.sidePic6.title = picSideList[randomSideNum6][1];
                }

                // rotate pic every 15 seconds
                //setTimeout("chooseSidePic6()", 15 * 1000); 
	}
}