
var picSideList = 
        [["banner-side/Default/bare_tools.jpg",				"Cordless Tools Only",				"index.jsp?ID=,Cordless.Tools,Bare.(Tool.Only)&path=to&ds=dept"],
        ["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"],
        ["banner-side/Default/HVACProductRatings.jpg",		"HVAC Product Ratings Website",		"http://www.hvacproductratings.com/"],
        ["banner-side/Default/Klein01.gif",				"Klein Tamper Proof Screwdriver",		"index.jsp?path=product&part=6899674&process=search&ds=mfr&ID=,Klein,Screwdrivers,Tamperproof"],
        ["banner-side/Default/Klein02.gif",				"Klein 11-in-One Screwdriver",		"index.jsp?path=product&part=6902515&ds=mfr&process=search&ID=,Klein,Screwdrivers,Sets"],
        ["banner-side/Default/Klein03.gif",				"Klein Pocket Knives",				"index.jsp?ID=,Klein,Knives...Sharpeners&path=mfr"],
        ["banner-side/Default/Klein04.gif",				"Klein Linemans Side Cutting Pliers",	"index.jsp?ID=,Klein,Pliers,Linemans&path=find&m=1&ds=mfr&a=1"],
        ["banner-side/Default/knaack_crane.jpg",			"Jobsite Storage",				"index.jsp?ID=,Storage,Jobsite&path=to&ds=dept"],
        ["banner-side/Default/spacer03.jpg",				"Spacer",						"index.jsp?path=home"],
        ["banner-side/Default/master01.jpg",				"Lockout / Tagout",				"index.jsp?ID=,Safety,Lockout...Tagout&path=to&ds=dept"],
        ["banner-side/Default/milw2471-21.jpg",				"Milwaukee M12 Copper Cutter",		"index.jsp?path=product&part=6945657"],
        ["banner-side/Default/milw2490-22.jpg",				"Milwaukee M12 Combo Kit",			"index.jsp?path=product&part=6955136"],
        ["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"],
        ["banner-side/Default/spacer02.jpg",				"Spacer",						"index.jsp?path=home"],
        ["banner-side/Default/windbreakers.jpg",			"Class 3 Winbreakers",				"index.jsp?ID=,Safety,Windbreakers...Jackets&path=find&ds=dept&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); 
	}
}
