
var clickbank="ern44";

<!-- JavaScript Banner Rotator - Rotate banners in order after a set period of time.
<!-- Put this text in the BODY section of the HTML Note: Add the [onLoad="baninit(); rotatebanners()"] to the BODY tag-->

images = new Array();

<!-- Here goes the url to where the banners are located -->

images[0]="images/sofaart.png";
images[1]="images/sofaart1.png";
images[2]="images/sofaart2.png";
images[3]="images/sofaart3.png";

var MaxAds = images.length; // Total Number Of Ads
var AdNum = Math.floor(Math.random()*MaxAds);;

var banlink = images[0]
function rotatebanners() {
	if (AdNum == MaxAds) { 
		AdNum = 0 
	} 
	document.BannerAd.src=images[AdNum] 
	
	setTimeout("rotatebanners()",3000)
	AdNum++
} 
function baninit(){
	 document.BannerAd.src=images[AdNum];
}
function changelink() {
	location = bannerlink
 }

<!--  The following bit of code goes where you want the banners to appear
<!--  <a href="#" name = "banlink" onclick="javascript:openWin()" ><img src = ""  alt = "" name = "BannerAd" border = "0" ></a>
 -->
