function BallNavigation (ballType, lottoUrl, kenoUrl, bigWednesdayUrl, instantKiwiUrl, 
									lottoImgSrc, kenoImgSrc, bigWednesdayImgSrc, instantKiwiImgSrc)
{
	this.ballType = ballType;
	this.lottoUrl = lottoUrl
	this.kenoUrl = kenoUrl;
	this.bigWednesdayUrl= bigWednesdayUrl;
	this.instantKiwiUrl = instantKiwiUrl;
	this.lottoImgSrc = lottoImgSrc;
	this.kenoImgSrc = kenoImgSrc;
	this.bigWednesdayImgSrc = bigWednesdayImgSrc;
	this.instantKiwiImgSrc = instantKiwiImgSrc;
}

BallNavigation.prototype.initBallNavigation = function()
{
	var staticImg = document.getElementById('staticBallNav');
	var areaRight = document.getElementById('ballAreaRight');
	var areaMiddle = document.getElementById('ballAreaMiddle');		
	var areaLeft = document.getElementById('ballAreaLeft');	
	var areaFront = document.getElementById('ballAreaFront');

	switch (this.ballType)
	{
		case 'Lotto':
			staticImg.src = this.lottoImgSrc;
			areaFront.href = this.lottoUrl;
			areaFront.title = 'Click ball to go to Lotto homepage';
			areaRight.href = this.bigWednesdayUrl;
			areaRight.title = 'Click ball to go to Big Wednesday homepage';
			areaMiddle.href = this.kenoUrl;
			areaMiddle.title = 'Click ball to go to Keno homepage';
			areaLeft.href = this.instantKiwiUrl;		
			areaLeft.title = 'Click ball to go to Instant Kiwi homepage';	
		break;
		case 'Keno':
			staticImg.src = this.kenoImgSrc;
			areaFront.href = this.kenoUrl;
			areaFront.title = 'Click ball to go to Keno homepage';
			areaRight.href = this.instantKiwiUrl;
			areaRight.title = 'Click ball to go to Instant Kiwi homepage';
			areaMiddle.href = this.lottoUrl;
			areaMiddle.title = 'Click ball to go to Lotto homepage';
			areaLeft.href = this.bigWednesdayUrl;		
			areaLeft.title = 'Click ball to go to Big Wednesday homepage';			
		break;
		case 'Big Wednesday':
			staticImg.src = this.bigWednesdayImgSrc;
			areaFront.href = this.bigWednesdayUrl;
			areaFront.title = 'Click ball to go to Big Wednesday homepage';
			areaRight.href = this.kenoUrl;
			areaRight.title = 'Click ball to go to Keno homepage';
			areaMiddle.href = this.instantKiwiUrl;
			areaMiddle.title = 'Click ball to go to Instant Kiwi homepage';
			areaLeft.href = this.lottoUrl;	
			areaLeft.title = 'Click ball to go to Lotto homepage';			
		break;
		case 'Instant Kiwi':
			staticImg.src = this.instantKiwiImgSrc;
			areaFront.href = this.instantKiwiUrl;
			areaFront.title = 'Click ball to go to Instant Kiwi homepage';
			areaRight.href = this.lottoUrl;
			areaRight.title = 'Click ball to go to Lotto homepage';
			areaMiddle.href = this.bigWednesdayUrl;
			areaMiddle.title = 'Click ball to go to Big Wednesday homepage';
			areaLeft.href = this.kenoUrl;					
			areaLeft.title = 'Click ball to go to Keno homepage';		
		break;
	}
}
