// Quick little javascript to randomly choose ad banner and related link....
// Mike Hansen (in Chicago) 2001

	// Indicate how many banner ads there are.
	var amount=5;


	// Array Function.
	function makeArray(len) {
		for (var i = 0; i < len; i++) 
			this[i] = null;
		this.length = len;
	}

	// Array Function for target in frames. 
	// You can adjust the default here if you like.
	// The default is _self.
	function makeTargetArray(len) {
		for (var i = 0; i < len; i++) 
			this[i] = "_self";
		this.length = len;
	}

	// Generate's the arrays.
	image = new makeArray(amount);
	link = new makeArray(amount);
	target = new makeTargetArray(amount);
	info = new makeArray(amount);

	// Place your banner information here. Start at index number 0.

	image[0]="http://www.shareresults.com/t/image.php?cid=13616&sid=16125";
	link[0]="http://www.aeroexhaust.com/bolton_exhaust_tips.html?cid=13616&sid=16125";
	info[0]="Great exhaust systems!";

	image[1]="http://www.fordfalcon2000.com/banners/ad2.jpg";
	link[1]="mailto:2112@stuart.iit.edu";
	info[1]="ad2";

	image[2]="http://www.fordfalcon2000.com/banners/ad3.jpg";
	link[2]="mailto:2112@stuart.iit.edu";
	info[2]="ad3";

	image[3]="http://www.shareresults.com/t/image.php/cid/2485/sid/16125";
	link[3]="http://www.shareresults.com/t/url.php/cid/2485/sid/16125";
	info[3]="No more greasy books!";

	image[4]="http://www.shareresults.com/t/image.php/cid/2480/sid/16125";
	link[4]="http://www.shareresults.com/t/url.php/cid/2480/sid/16125";
	info[4]="No more greasy books!";
	
	// Randomly pick a banner to display.
	function rand(n) {
		seed = (0x015a4e35 * seed) % 0x7fffffff;
		return (seed >> 16) % n;
	}
	        
	var now = new Date();
	var seed = now.getTime() % 0xffffffff;
	var position=rand(amount);

	document.write("<img src=\"../sitemainimages/bannerspacer.gif\" WIDTH=\"20\" HEIGHT=\"60\">");
	document.write("<A HREF=\""+link[position]+"\" target=\""+target[position]+"\" onMouseOver= \"window.status ='"+info[position]+"'; return true;\" onMouseOut= \"window.status =''; return true;\">");
	document.write("<IMG SRC=\""+image[position]+"\" ALT=\""+info[position]+"\" width=\"468\" height=\"60\" border=\"0\"></A>");	


