if (document.images) {
ads = new Array(30);
ads[0] = "RBimages/20-20.gif";
ads[1] = "RBimages/Furnlite.jpg";
ads[2] = "RBimages/CabParts.jpg";
ads[3] = "RBimages/AFE.gif";
ads[4] = "RBimages/castleusa.gif";
ads[5] = "RBimages/ClassicDesigns.gif";
ads[6] = "RBimages/delmac.jpg";
ads[7] = "RBimages/edgeco.gif";
ads[8] = "RBimages/exel-na.jpg";
ads[9] = "RBimages/festoolusa.jpg";
ads[10] = "RBimages/holzher.jpg";
ads[11] = "RBimages/honerkamp.gif";
ads[12] = "RBimages/irwin.jpg";
ads[13] = "RBimages/keystone.gif";
ads[14] = "RBimages/mlcampbell.gif";
ads[15] = "RBimages/CFP.jpg";
ads[16] = "RBimages/Planit.gif";
ads[17] = "RBimages/scmgroup-usa.gif";
ads[18] = "RBimages/revashelf.gif";
ads[19] = "RBimages/csaw.jpg";
ads[20] = "RBimages/weima.gif";
ads[21] = "RBimages/Eurosoft.gif";
ads[22] = "RBimages/osborne.gif";
ads[23] = "RBimages/nexus21.gif";
ads[24] = "RBimages/sketchlist.jpg";
ads[25] = "RBimages/kcdw.gif";
ads[26] = "RBimages/Homecraft.jpg";
ads[27] = "RBimages/handiwall.jpg";
ads[28] = "RBimages/valspar.gif";
ads[29] = "RBimages/stiles.jpg";
}

newplace = new Array(30);
newplace[0] = "http://www.2020technologies.com";
newplace[1] = "http://www.furnlite.com";
newplace[2] = "http://www.cabparts.com/main.html";
newplace[3] = "http://www.afe-inc.com";
newplace[4] = "http://www.castleusa.com";
newplace[5] = "http://www.tablelegs.com";
newplace[6] = "http://www.delmac.com";
newplace[7] = "http://www.edgecoinc.com";
newplace[8] = "http://www.exel-na.com";
newplace[9] = "http://www.festoolusa.com";
newplace[10] = "http://www.holzher.com";
newplace[11] = "http://www.honerkamp.com";
newplace[12] = "http://www.irwin.com";
newplace[13] = "http://www.keystonewood.com";
newplace[14] = "http://www.mlcampbell.com";
newplace[15] = "http://www.cfpwood.com";
newplace[16] = "http://www.planitmanufacturing.com";
newplace[17] = "http://www.scmgroup-usa.com";
newplace[18] = "http://www.rev-a-shelf.com";
newplace[19] = "http://www.csaw.com";
newplace[20] = "http://www.weimaamerica.com";
newplace[21] = "http://www.eurosoftinc.com";
newplace[22] = "http://www.osbornewood.com";
newplace[23] = "http://www.tvlift.com";
newplace[24] = "http://www.sketchlist.com/CMA.html";
newplace[25] = "http://www.kcdw.com";
newplace[26] = "http://www.homecraftveneer.com";
newplace[27] = "http://www.handiwall.com";
newplace[28] = "http://www.valsparwood.com";
newplace[29] = "http://www.stilesshop.com";

var timer = null

function init()
{
banner1();
banner2();
banner3();
banner4();
banner5();
}


function rnumber() {
	var rand_no = Math.ceil(30*Math.random())-1;
	return rand_no;
}

var rnum=rnumber()
var	 counter1 = rnumber();
var	 counter2 = rnumber();
var	 counter3 = rnumber();
var	 counter4 = rnumber();
var	 counter5 = rnumber();

var delay = 30000;

function banner1() {
	    timer=setTimeout("banner1()", delay);
		counter1=rnumber();
		document.bannerad1.src = ads[counter1];
}

function banner2() {
	    timer=setTimeout("banner2()", delay);
		counter2=rnumber();
		while(counter2==counter1)
			counter2=rnumber();
		document.bannerad2.src = ads[counter2];
}

function banner3() {
	    timer=setTimeout("banner3()", delay);
		counter3=rnumber();
		while(counter3==counter2 || counter3==counter1)
			counter3=rnumber();
		document.bannerad3.src = ads[counter3];
}

function banner4() {
	    timer=setTimeout("banner4()", delay);
		counter4=rnumber();
		while(counter4==counter3 || counter4==counter2 || counter4==counter1)
			counter4=rnumber();
		document.bannerad4.src = ads[counter4];
}

function banner5() {
	    timer=setTimeout("banner5()", delay);
		counter5=rnumber();
		while(counter5==counter4 || counter5==counter3 || counter5==counter2 || counter5==counter1)
			counter5=rnumber();
		document.bannerad5.src = ads[counter5];
}

function gothere1() {
		counter1a = counter1;
		/*window.location.href = newplace[counter2];*/
		newWin = window.open(newplace[counter1a]);

}

function gothere2() {
		counter2a = counter2;
		/*window.location.href = newplace[counter2];*/
		newWin = window.open(newplace[counter2a]);

}

function gothere3() {
		counter3a = counter3;
		/*window.location.href = newplace[counter2];*/
		newWin = window.open(newplace[counter3a]);

}

function gothere4() {
		counter4a = counter4;
		/*window.location.href = newplace[counter2];*/
		newWin = window.open(newplace[counter4a]);

}

function gothere5() {
		counter5a = counter5;
		newWin = window.open(newplace[counter5a]);
}



