function Symbol(theType, image, emphasisImage, cubeImage)
{
	this.init(theType, image, emphasisImage, cubeImage);
}

Symbol.HEIGHT = 30;
Symbol.WIDTH = 35;

Symbol.prototype.init = function(theType, image, emphasisImage, cubeImage)
{
	this.type = theType;
	this.image = image;
	this.emphasisImage = emphasisImage;
	this.cubeImage = cubeImage;
}

Symbol.prototype.getImage = function()
{
	return this.image;
}

Symbol.prototype.getImgTag = function(img)
{
	return '<img src="' + img + '" border="0"/>';
}

Symbol.prototype.getEmphasisImage = function()
{
	return this.emphasisImage;
}

Symbol.prototype.getCubeImage = function()
{
	return this.cubeImage;
}

Symbol.prototype.getType = function()
{
	return this.type;
}

Symbol.prototype.isRestricted = function()
{
	return (this == Symbol.RESTRICTED_DARK) || (this == Symbol.RESTRICTED_LIGHT);
}

Symbol.RESTRICTED_DARK = new Symbol('restrictedDark', '/ingenious/images/smallPlainDarkGray.gif', '/ingenious/images/smallPlainDarkGray.gif');
Symbol.RESTRICTED_LIGHT = new Symbol('restrictedLight', '/ingenious/images/smallPlainLightGray.gif', '/ingenious/images/smallPlainLightGray.gif');

Symbol.RED = new Symbol('red', '/ingenious/images/smallRed.gif', '/ingenious/images/redEmphasis.gif', '/ingenious/images/redCube.gif');
Symbol.GREEN = new Symbol('green', '/ingenious/images/smallGreen.gif', '/ingenious/images/greenEmphasis.gif', '/ingenious/images/greenCube.gif');
Symbol.BLUE = new Symbol('blue', '/ingenious/images/smallBlue.gif', '/ingenious/images/blueEmphasis.gif', '/ingenious/images/blueCube.gif');
Symbol.ORANGE = new Symbol('orange', '/ingenious/images/smallOrange.gif', '/ingenious/images/orangeEmphasis.gif', '/ingenious/images/orangeCube.gif');
Symbol.YELLOW = new Symbol('yellow', '/ingenious/images/smallYellow.gif', '/ingenious/images/yellowEmphasis.gif', '/ingenious/images/yellowCube.gif');
Symbol.PURPLE = new Symbol('purple', '/ingenious/images/smallPurple.gif', '/ingenious/images/purpleEmphasis.gif', '/ingenious/images/purpleCube.gif');

Symbol.getAsArray = function()
{
	var a = new Array();
	a.push(Symbol.RED);
	a.push(Symbol.GREEN);
	a.push(Symbol.BLUE);
	a.push(Symbol.ORANGE);
	a.push(Symbol.YELLOW);
	a.push(Symbol.PURPLE);
	return a;
}

Symbol.getRandom = function()
{
	var i = Math.round(Math.random() * 157981) % 6;

	switch(i)
	{
		case 0: return Symbol.GREEN;
		case 1: return Symbol.BLUE;
		case 2: return Symbol.YELLOW;
		case 3: return Symbol.RED;
		case 4: return Symbol.PURPLE;
		case 5: return Symbol.ORANGE;
	}
}



