<script language="JavaScript">
<!-- //Hide from non-javascript browsers

	//Author: Mark Ganson
	//Date: 3/10/2000
	//Site: http://www.bigfoot.com/~java4free
	
	var nCurrentBanner = 0;
	var bPause = false;

	//replace these links with the appropriate href portion of your banner code
	//example: <a href="java4free.html"><img src="java4freebanner.jpg></a>
	//in the above example, "java4free.html" is the link string
	//and "java4freebanner.jpg" is the image string
	
	//href parts
	strLinks = new Array (
	
	"http://www.commission-junction.com/track/track.dll?AID=10347&PID=296657&URL=http%3A%2F%2Fwww%2Ecj%2Ecom%2FAffiliate%2Findex%2Easp",
	"http://www.bigfoot.com/~java4free.html",
	"http://www.bigfoot.com/~powerballpicker.html",
	"http://www.bigfoot.com/~nflpicker.html"
	
	);

	//img parts
	strImages = new Array (

	"images/banner2.png",
	"images/banner3.png",
	"images/banner4.png",
	"images/banner5.png"
	
	);

	//status bar messages
	//comment out this block if you don't want status bar messages
	strMessages = new Array(

	"Commission-Junction.  Get paid!",
	"Java4Free!  Free webtools for webmasters!",
	"Free play applet ranks winning powerball numbers!",
	"Free play applet handicaps NFL games against Vegas!"

	);

	function rotateBanner(){

		if (bPause){
			return;
		}

		//following code assumes that the banner will be the first link/image
		//in your html page.  If this is not correct, you will need to modify
		//the value in between the [] accordingly.  For example, if you have
		//2 banners appearing before this banner in your html, you would replace
		//the [0] with [2] in the lines below.
		
		document.links[0].href = strLinks[nCurrentBanner];
		document.images[0].src = strImages[nCurrentBanner];
		
		//comment out the following line if you don't want status bar messages
		window.status = strMessages[nCurrentBanner];

		//now rotate for next iteration
		if (nCurrentBanner < strLinks.length-1){
			nCurrentBanner++;
		} else {
			nCurrentBanner = 0;
		}
	}

	function pause(){
		bPause=true;
	}

	function resume(){
		bPause=false;
	}



// -->
</script>

