
var picSideList = 
        [["banner-side/Default/dewalt_accessories.gif",		"Dewalt Accessories",				"index.jsp?ID=,Dewalt,Supplies...Accessories&path=mfr"],
        ["banner-side/Default/dewalt_cordless.gif",			"Dewalt Cordless Tools",			"index.jsp?ID=,Dewalt,Cordless.Tools&path=mfr"],
        ["banner-side/Default/dewalt_dwd460.gif",			"Dewalt DWD460",					"index.jsp?path=product&part=6953041&ds=mfr&process=search&ID=,Dewalt,Power.Tools,Drills...Fastening,Angle"],
        ["banner-side/Default/dewalt_dwm120.gif",			"Dewalt Bandsaw",					"index.jsp?path=product&part=6953038&ds=mfr&process=search&ID=,Dewalt,Power.Tools,Cutting,Band.Saws"],
        ["banner-side/Default/dewalt_hammers_corded.gif",		"Dewalt Corded Power Tools",			"index.jsp?path=mfr&ds=mfr&ID=,Dewalt,Power.Tools"],
        ["banner-side/Default/dewalt_hammers_d25313_d25701_dc212.gif",		"Dewalt Hammers",			"index.jsp?ID=,Dewalt,Hammers&path=mfr&ds=mfr"],
        ["banner-side/Default/dewalt_xrp.gif",				"Dewalt Batteries",				"index.jsp?ID=,Dewalt,Cordless.Tools,Batteries&path=find&m=1&ds=mfr&a=1"]];

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); 
	}
}