function TeddyBear(name,cost,file,descr,spec) // function that sets up the bear object
{
	this.name = name; // the name of the bear
	this.cost = cost; // the cost of the bear
	this.file = file; // the path to the picture of the bear
	this.descr = descr; // the description of the bear
	this.spec = spec; // specifications of the bear
	
	this.loadbearImg = loadbearImg; // load the bear image
	this.fillOrder = fillOrder; // set up the order page for a real fur bear
}

function loadbearImg() // load the bear image
{
	tempImg = new Image(); // temporary variable holding the image file
	tempImg.src = this.file; // load the image
	return(tempImg);
}

function preload_bear_Img() // preload the bear images
{
	for(i=0;i<wahmbearz.length;i++){ // load the wahmbearz images
		wahmbearz[i].loadbearImg();
	}

	for(i=0;i<designer.length;i++){ // load the full sized fur bear images
		designer[i].loadbearImg();
	}

	for(i=0;i<mrytle.length;i++){ // load the mrytle doll images
		mrytle[i].loadbearImg();
	}
	
	for(i=0;i<jacket.length;i++){ // load the jacket images
		jacket[i].loadbearImg();
	}
	
}

