function LargeBanner(refreshTime, width, height, altText, start, random)
{
	this.objNameLarge = "bannerAdLarge" + (LargeBanner.count++);
	eval(this.objNameLarge + "=this");
	if (!refreshTime) this.refreshTime = 5000; else this.refreshTime = refreshTime*1000;
	if (!width) this.width = 650; else this.width = width;
	if (!height) this.height = 80; else this.height = height;
	if (random == null) this.random = 1; else this.random = random;
	this.altText = altText;
	this.adsLarge = [];
	if (start) this.currentAdLarge = start-1; else start = null;
	this.mySize = 0;

	this.AdLarge = function(src, href, target, mouseover) 
	{
		var tempImageLarge = new Image();
		tempImageLarge.src = src;
		this.adsLarge[this.mySize] = new Object();
		var adLarge = this.adsLarge[this.mySize];
		adLarge.src = src;
		if (typeof(target) == "undefined" || target == null) adLarge.target = "_self"; else adLarge.target = target;
		adLarge.href = href;
		adLarge.mouseover = mouseover;
		this.mySize++;
	}

	this.linkLarge = function()
	{
		var	adLarge = this.adsLarge[this.currentAdLarge];
		if (adLarge.target == "_self")
		{
			location.href = adLarge.href;
		}
		else if (adLarge.target == "_blank" || adLarge.target == "_new")
		{
			open(adLarge.href,this.objNameLarge + "Win");
		}
		else top.frames[adLarge.target].location.href = adLarge.href;
	}

	this.showStatusLarge = function()
	{
		var adLarge = this.adsLarge[this.currentAdLarge];
		if (adLarge.mouseover) status = adLarge.mouseover;
		else status = adLarge.href;
	}

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

	this.outputLarge = function()
	{
		var tempCodeLarge = "";
		if (this.mySize > 1)
		{
			if (this.currentAdLarge == null) this.randomAdLarge();
			if (this.currentAdLarge >= this.mySize) this.currentAdLarge = this.mySize - 1;
			tempCodeLarge = '<a href="javascript:'+this.objNameLarge+'.linkLarge();"';
			tempCodeLarge += ' onMouseOver="' + this.objNameLarge + '.showStatusLarge(); return true"';
			tempCodeLarge += ' onMouseOut="status=\'\';return true">';
			tempCodeLarge += '<img src="' + this.adsLarge[this.currentAdLarge].src + '" width="' + this.width;
			tempCodeLarge += '" name="' + this.objNameLarge + 'Img" height="' + this.height + '" ';
			if (this.altText) tempCodeLarge += 'alt="'+this.altText + '" ';
			tempCodeLarge += 'border="0" /></a>';
			document.write(tempCodeLarge);
			this.nextAdLarge();
		} 
		else document.write("Error: two banners must be defined for the script to work.");
	}

	this.newAdLarge = function()
	{
		if (!this.random)
		{	
			this.currentAdLarge++;
			if (this.currentAdLarge >= this.mySize)
			   this.currentAdLarge = 0;
		}
		else 
		{
			this.randomAdLarge();
		}
		this.nextAdLarge();
	}

	this.nextAdLarge = function()
	{
		document.images[this.objNameLarge+ 'Img'].src = this.adsLarge[this.currentAdLarge].src;
		setTimeout(this.objNameLarge+'.newAdLarge()',this.refreshTime)
	}
}
LargeBanner.count = 0;
