function BannerSlider(slideImages,slideLinks,imgHolder)
{
	this.slideImages = slideImages;
	this.slideLinks = slideLinks;
	this.imgHolder = imgHolder;	// This is the image object of the document
	this.slideSpeed = 6500;	// Interval between slides (in mili seconds)
	this.newWindow = 1;		// 0=open link in same window, 1= open link in new window
	this.ie = document.all;
	//alert(imgHolder);
	this.blendDelay=(this.ie)? this.imgHolder.filters[0].duration*1000 : 0
	this.imageArray = new Array();
	this.thisImg = null;
	this.thisLink = this.thisImg;
	if(this.slideImages)	// If Slide images are specified
	{
		for(var i=0;i<slideImages.length;i++)	// Load each image
		{
			this.imageArray[i] = new Image();
			this.imageArray[i].src = slideImages[i];
		}
	}
}
BannerSlider.prototype.onImageClick = bannerImageClick;
BannerSlider.prototype.slideIt = bannerImageSlide;
function bannerImageClick()
{
	if(this.newWindow)
		window.open(this.slideLinks[this.thisLink])
	else
		window.location=this.slideLinks[this.thisLink]
}
function bannerImageSlide()
{
	if (!document.images) return;

	if (this.ie) this.imgHolder.filters[0].apply();

	this.imgHolder.src=this.imageArray[this.thisImg].src;
	if (this.ie) this.imgHolder.filters[0].play();
	this.thisLink = this.thisImg;
	this.thisImg=(this.thisImg<this.slideImages.length-1)? this.thisImg+1 : 0;
}
