function GameBasket(){
	this.totalCost=0;
	this.xCoords=new Array();
	this.yCoords=new Array();
}

GameBasket.prototype.hide=function(){
	$('#gameBasket').hide();
}

GameBasket.prototype.show=function(){
	$('#gameBasket').fadeIn(600);
}

GameBasket.prototype.disableOptions=function(){
	$('#gameBasketReset').css({'opacity':0.2});
	$('#gameBasketPurchase').css({'opacity':0.2});	
	$('#gameBasketTotal').hide();
}

GameBasket.prototype.enableOptions=function(){
	$('#gameBasketReset').css({'opacity':1});
	$('#gameBasketPurchase').css({'opacity':1});
	$('#gameBasketTotal').show();
}

GameBasket.prototype.add=function(index,itemCost,xCoord,yCoord,description){
	this.totalCost=parseInt(this.totalCost+itemCost);
	
	$('#gameBasketItems').append('<p class="ballPosition" id="ballPosition' + index + '">'+description+'</p>');
	$('#gameBasketTotal').html('<p>Total: &pound;'+this.totalCost+'</p>');
	this.xCoords.push(xCoord);
	this.yCoords.push(yCoord);
}

GameBasket.prototype.reset=function(){
	$('#gameBasketItems').html('');
	$('#gameBasketTotal').html('');
	this.disableOptions();
	this.totalCost=0;
}
