
var picBottomList = 
      [["banner-bottom/Default/dewalt01.jpg",			"Dewalt - Put our tools to the test",	"index.jsp?ID=,Dewalt&path=mfr&ds=mfr"],
	 ["banner-bottom/Default/dewalt_01.gif",			"Dewalt - Corded Power Tools",		"index.jsp?ID=,Dewalt,Power.Tools&path=mfr"],
	 ["banner-bottom/Default/dewalt_02.gif",			"Dewalt - Corded Power Tools",		"index.jsp?ID=,Dewalt,Power.Tools&path=mfr"],
	 ["banner-bottom/Default/dewalt_06.gif",			"Dewalt - Cordless Tools",			"index.jsp?ID=,Dewalt,Cordless.Tools&path=mfr&ds=mfr"],
	 ["banner-bottom/Default/dewalt_accessories.gif",	"Dewalt - Accessories",				"index.jsp?ID=,Dewalt,Supplies...Accessories&path=mfr"],
       ["banner-bottom/Default/dewalt_dwd460.gif",		"Dewalt - DWD460 Stud & Joist Drill",	"index.jsp?path=product&part=6953041&ds=mfr&process=search&ID=,Dewalt,Power.Tools,Drills...Fastening,Angle"],
       ["banner-bottom/Default/dewalt_dwm120.gif",		"Dewalt - DWM120 Bandsaw",			"index.jsp?path=product&part=6953038&ds=mfr&process=search&ID=,Dewalt,Power.Tools,Cutting,Band.Saws"],
       ["banner-bottom/Default/dewalt_nano.jpg",		"Dewalt Nano Lithion",				"index.jsp?ID=,Dewalt,Cordless.Tools,Nano.18v.System&path=find&m=1&ds=mfr&a=1"]];

imgCtBottom = picBottomList.length;

randomBottomNum1 = Math.floor((Math.random() * imgCtBottom));

randomBottomNum2 = Math.floor((Math.random() * imgCtBottom));
while (randomBottomNum1 == randomBottomNum2 && imgCtBottom >= 2)
    randomBottomNum2 = Math.floor((Math.random() * imgCtBottom));

randomBottomNum3 = Math.floor((Math.random() * imgCtBottom));
while ((randomBottomNum1 == randomBottomNum3 || randomBottomNum2 == randomBottomNum3) && imgCtBottom >= 3)
    randomBottomNum3 = Math.floor((Math.random() * imgCtBottom));

randomBottomNum4 = Math.floor((Math.random() * imgCtBottom));
while ((randomBottomNum1 == randomBottomNum4 || randomBottomNum2 == randomBottomNum4 || randomBottomNum3 == randomBottomNum4) && imgCtBottom >= 4)
    randomBottomNum4 = Math.floor((Math.random() * imgCtBottom));

randomBottomNum5 = Math.floor((Math.random() * imgCtBottom));
while ((randomBottomNum1 == randomBottomNum5 || randomBottomNum2 == randomBottomNum5 || randomBottomNum3 == randomBottomNum5 || randomBottomNum4 == randomBottomNum5) && imgCtBottom >= 5)
    randomBottomNum5 = Math.floor((Math.random() * imgCtBottom));

randomBottomNum6 = Math.floor((Math.random() * imgCtBottom));
while ((randomBottomNum1 == randomBottomNum6 || randomBottomNum2 == randomBottomNum6 || randomBottomNum3 == randomBottomNum6 || randomBottomNum4 == randomBottomNum6 || randomBottomNum5 == randomBottomNum6) && imgCtBottom >= 6)
    randomBottomNum6 = Math.floor((Math.random() * imgCtBottom));

randomBottomNum7 = Math.floor((Math.random() * imgCtBottom));
while ((randomBottomNum1 == randomBottomNum7 || randomBottomNum2 == randomBottomNum7 || randomBottomNum3 == randomBottomNum7 || randomBottomNum4 == randomBottomNum7 || randomBottomNum5 == randomBottomNum7 || randomBottomNum6 == randomBottomNum7) && imgCtBottom >= 7)
    randomBottomNum7 = Math.floor((Math.random() * imgCtBottom));

randomBottomNum8 = Math.floor((Math.random() * imgCtBottom));
while ((randomBottomNum1 == randomBottomNum8 || randomBottomNum2 == randomBottomNum8 || randomBottomNum3 == randomBottomNum8 || randomBottomNum4 == randomBottomNum8 || randomBottomNum5 == randomBottomNum8 || randomBottomNum6 == randomBottomNum8 || randomBottomNum7 == randomBottomNum8) && imgCtBottom >= 8)
    randomBottomNum8 = Math.floor((Math.random() * imgCtBottom));

randomBottomNum9 = Math.floor((Math.random() * imgCtBottom));
while ((randomBottomNum1 == randomBottomNum9 || randomBottomNum2 == randomBottomNum9 || randomBottomNum3 == randomBottomNum9 || randomBottomNum4 == randomBottomNum9 || randomBottomNum5 == randomBottomNum9 || randomBottomNum6 == randomBottomNum9 || randomBottomNum7 == randomBottomNum9 || randomBottomNum8 == randomBottomNum9) && imgCtBottom >= 9)
    randomBottomNum9 = Math.floor((Math.random() * imgCtBottom));

randomBottomNum10 = Math.floor((Math.random() * imgCtBottom));
while ((randomBottomNum1 == randomBottomNum10 || randomBottomNum2 == randomBottomNum10 || randomBottomNum3 == randomBottomNum10 || randomBottomNum4 == randomBottomNum10 || randomBottomNum5 == randomBottomNum10 || randomBottomNum6 == randomBottomNum10 || randomBottomNum7 == randomBottomNum10 || randomBottomNum8 == randomBottomNum10 || randomBottomNum9 == randomBottomNum10) && imgCtBottom >= 10)
    randomBottomNum10 = Math.floor((Math.random() * imgCtBottom));

function chooseBottomPic1() {
	if (document.images) {
                // choose first pic randomly
                if (document.bottomPic1 != null) {
                  //randomBottomNum = Math.floor((Math.random() * imgCtBottom));
                  document.bottomPic1.src = picBottomList[randomBottomNum1][0];
                  document.bottomPic1.alt = picBottomList[randomBottomNum1][1];
                  document.bottomPic1.title = picBottomList[randomBottomNum1][1];
                }

                // rotate pic every 15 seconds
                //setTimeout("chooseBottomPic1()", 15 * 1000); 
	}
}
function chooseBottomPic2() {
	if (document.images) {
                // choose first pic randomly
                if (document.bottomPic2 != null) {
                  //randomBottomNum = Math.floor((Math.random() * imgCtBottom));
                  document.bottomPic2.src = picBottomList[randomBottomNum2][0];
                  document.bottomPic2.alt = picBottomList[randomBottomNum2][1];
                  document.bottomPic2.title = picBottomList[randomBottomNum2][1];
                }

                // rotate pic every 15 seconds
                //setTimeout("chooseBottomPic2()", 15 * 1000); 
	}
}
function chooseBottomPic3() {
	if (document.images) {
                // choose first pic randomly
                if (document.bottomPic3 != null) {
                  //randomBottomNum = Math.floor((Math.random() * imgCtBottom));
                  document.bottomPic3.src = picBottomList[randomBottomNum3][0];
                  document.bottomPic3.alt = picBottomList[randomBottomNum3][1];
                  document.bottomPic3.title = picBottomList[randomBottomNum3][1];
                }

                // rotate pic every 15 seconds
                //setTimeout("chooseBottomPic3()", 15 * 1000); 
	}
}
function chooseBottomPic4() {
	if (document.images) {
                // choose first pic randomly 		
                if (document.bottomPic4 != null) {
                  //randomBottomNum = Math.floor((Math.random() * imgCtBottom));
                  document.bottomPic4.src = picBottomList[randomBottomNum4][0];
                  document.bottomPic4.alt = picBottomList[randomBottomNum4][1];
                  document.bottomPic4.title = picBottomList[randomBottomNum4][1];
                }

                // rotate pic every 15 seconds
                //setTimeout("chooseBottomPic4()", 15 * 1000); 
	}
}
function chooseBottomPic5() {
	if (document.images) {
                // choose first pic randomly
                if (document.bottomPic5 != null) {
                  //randomBottomNum = Math.floor((Math.random() * imgCtBottom));
                  document.bottomPic5.src = picBottomList[randomBottomNum5][0];
                  document.bottomPic5.alt = picBottomList[randomBottomNum5][1];
                  document.bottomPic5.title = picBottomList[randomBottomNum5][1];
                }

                // rotate pic every 15 seconds
                //setTimeout("chooseBottomPic5()", 15 * 1000); 
	}
}
function chooseBottomPic6() {
	if (document.images) {
                // choose first pic randomly
                if (document.bottomPic6 != null) {
                  //randomBottomNum = Math.floor((Math.random() * imgCtBottom));
                  document.bottomPic6.src = picBottomList[randomBottomNum6][0];
                  document.bottomPic6.alt = picBottomList[randomBottomNum6][1];
                  document.bottomPic6.title = picBottomList[randomBottomNum6][1];
                }

                // rotate pic every 15 seconds
                //setTimeout("chooseBottomPic6()", 15 * 1000); 
	}
}
function chooseBottomPic7() {
	if (document.images) {
                // choose first pic randomly
                if (document.bottomPic7 != null) {
                  //randomBottomNum = Math.floor((Math.random() * imgCtBottom));
                  document.bottomPic7.src = picBottomList[randomBottomNum7][0];
                  document.bottomPic7.alt = picBottomList[randomBottomNum7][1];
                  document.bottomPic7.title = picBottomList[randomBottomNum7][1];
                }

                // rotate pic every 15 seconds
                //setTimeout("chooseBottomPic7()", 15 * 1000); 
	}
}
function chooseBottomPic8() {
	if (document.images) {
                // choose first pic randomly
                if (document.bottomPic8 != null) { 
                  //randomBottomNum = Math.floor((Math.random() * imgCtBottom));
                  document.bottomPic8.src = picBottomList[randomBottomNum8][0];
                  document.bottomPic8.alt = picBottomList[randomBottomNum8][1];
                  document.bottomPic8.title = picBottomList[randomBottomNum8][1];
                }
                // rotate pic every 15 seconds
                //setTimeout("chooseBottomPic8()", 15 * 1000); 
	}
}
function chooseBottomPic9() {
	if (document.images) {
                // choose first pic randomly
                if (document.bottomPic9 != null) { 
                  //randomBottomNum = Math.floor((Math.random() * imgCtBottom));
                  document.bottomPic9.src = picBottomList[randomBottomNum9][0];
                  document.bottomPic9.alt = picBottomList[randomBottomNum9][1];
                  document.bottomPic9.title = picBottomList[randomBottomNum9][1];
                }

                // rotate pic every 15 seconds
                //setTimeout("chooseBottomPic9()", 15 * 1000); 
	}
}
function chooseBottomPic10() {
	if (document.images) {
                // choose first pic randomly
                if (document.bottomPic10 != null) {
                  //randomBottomNum = Math.floor((Math.random() * imgCtBottom));
                  document.bottomPic10.src = picBottomList[randomBottomNum10][0];
                  document.bottomPic10.alt = picBottomList[randomBottomNum10][1];
                  document.bottomPic10.title = picBottomList[randomBottomNum10][1];
                }

                // rotate pic every 15 seconds
                //setTimeout("chooseBottomPic10()", 15 * 1000); 
	}
}