/****
* Banner Ad Rotater v3.02
* Anarchos > anarchos3@hotmail.com
* http://anarchos.xs.mw/bannerad.phtml
**/

function Banner(refreshTime, width, height, altText, start, random){
	this.objName = "bannerAd" + (Banner.count++);
	eval(this.objName + "=this");
	if (!refreshTime) this.refreshTime = 5000; else this.refreshTime = refreshTime*1000;
	if (!width) this.width = 460; else this.width = width;
	if (!height) this.height = 68; else this.height = height;
	if (random == null) this.random = 1; else this.random = random;
	this.altText = altText;
	this.ads = [];
	if (start) this.currentAd = start-1; else start = null;
	this.mySize = 0;

	this.Ad = function(src, href, target, mouseover) {
		var tempImage = new Image();
		tempImage.src = src;
		this.ads[this.mySize] = new Object();
		var ad = this.ads[this.mySize];
		ad.src = src;
		if (typeof(target) == "undefined" || target == null) ad.target = "_self"; else ad.target = target;
		ad.href = href;
		ad.mouseover = mouseover;
		this.mySize++;
	}

	this.link = function(){
		var	ad = this.ads[this.currentAd];
		if (ad.target == "_self"){
			location.href = ad.href;
		}
		else if (ad.target == "_blank" || ad.target == "_new"){
			open(ad.href,this.objName + "Win");
		}
		else top.frames[ad.target].location.href = ad.href;
	}

	this.showStatus = function(){
		var ad = this.ads[this.currentAd];
		if (ad.mouseover) status = ad.mouseover;
		else status = ad.href;
	}

	this.randomAd = function(){
		var n;
		do { n = Math.floor(Math.random() * (this.mySize)); } 
		while(n == this.currentAd);
		this.currentAd = n;
	}

	this.output = function(){
		var tempCode = "";
		if (this.mySize > 1){
			if (this.currentAd == null) this.randomAd();
			if (this.currentAd >= this.mySize) this.currentAd = this.mySize - 1;
			tempCode = '<a href="javascript:'+this.objName+'.link();"';
			tempCode += ' onMouseOver="' + this.objName + '.showStatus(); return true"';
			tempCode += ' onMouseOut="status=\'\';return true">';
			tempCode += '<img src="' + this.ads[this.currentAd].src + '" width="' + this.width;
			tempCode += '" name="' + this.objName + 'Img" height="' + this.height + '" ';
			if (this.altText) tempCode += 'alt="'+this.altText + '" ';
			tempCode += 'border="0" /></a>';
			document.write(tempCode);
			this.nextAd();
		} else document.write("Error: two banners must be defined for the script to work.");
	}

	this.newAd = function(){
		if (!this.random){	
			this.currentAd++;
			if (this.currentAd >= this.mySize)
			   this.currentAd = 0;
		}
		else {
			this.randomAd();
		}
		this.nextAd();
	}

	this.nextAd = function(){
		document.images[this.objName+ 'Img'].src = this.ads[this.currentAd].src;
		setTimeout(this.objName+'.newAd()',this.refreshTime)
	}
}
Banner.count = 0;

/****
* Banner Ad Rotater v3.02
* Author: Anarchos > anarchos3@hotmail.com > http://anarchos.xs.mw/bannerad.phtml
* Courtesy of SimplytheBest.net - http://simplythebest.net/scripts/
**/


// time between rotations (seconds), width and height of banners, alt text, starting banner, and random (0 means it iterates through banners, 1 means it randomly picks the next banner)
<!--
myAd = new Banner( 5, 140, 75, "Visit our sponsor", 1, 0 );
//myAd.Ad( "/modules/bannerscroll/sponsor-ecp.gif", "http://www.ecp-au.com/", "_blank", "Airwell from EMAILAIR - All we do is air conditioning!" );
//myAd.Ad( "/modules/bannerscroll/sponsor-lsfexpress.gif", "http://www.lsfexpress.com.au/", "_blank", "lsfeXpress.com.au - Your online office supplies supermarket!" );
myAd.Ad( "/modules/bannerscroll/sponsor-barryplant.gif", "http://www.barryplant.com.au/", "_blank", "Barry Plant - The red carpet experience" );
myAd.Ad( "/modules/bannerscroll/sponsor-subway.gif", "http://www.lysterfieldcc.com.au/subway-flyer-display.htm", "_blank", "Subway Ferntree Gully - It's Fresh!" );
myAd.Ad( "/modules/bannerscroll/sponsor-eatinghouse.gif", "http://www.eatinghouse.com.au/", "_blank", "Eating House - Modern Australian Cuisine" );
//myAd.Ad( "/modules/bannerscroll/sponsor-spm.gif", "http://www.spm.com.au/", "_blank", "Satisfaction Property Maintenance - The complete property maintenance service provider" );
myAd.Ad( "/modules/bannerscroll/sponsor-aim.gif", "http://www.alternet.com.au/", "_blank", "Alternet Interactive Media - eBusiness solutions made easy" );
myAd.Ad( "/modules/bannerscroll/sponsor-jetset.gif", "http://www.jetset.com.au/rowville/", "_blank", "Jetset Rowville - Helping people achieve their travel dreams" );
myAd.Ad( "/modules/bannerscroll/sponsor-knoxford.gif", "http://www.knoxford.com.au/", "_blank", "Knox Ford - A Stillwell Motorgroup company" );
//myAd.Ad( "/modules/bannerscroll/sponsor-endeavour.gif", "http://www.lysterfieldcc.com.au/endeavour-flyer-display.htm", "_blank", "Endeavour Cellars" );
myAd.Ad( "/modules/bannerscroll/sponsor-tulipgarden.gif", "http://www.tulipgarden.com.au/", "_blank", "The Tulip Garden" );
myAd.Ad( "/modules/bannerscroll/sponsor-lunar.gif", "http://www.lunardrive-in.com.au/", "_blank", "Lunar Drive In Theater - cinema entertainment for the family in Dandenong" );
myAd.output();
// -->
