function Colormenu()
{
	var self = this;
	this.ul = document.getElementById("colormenu");
	this.li = this.ul.getElementsByTagName("li");
	
	
	this.ul.onmouseover = function()
	{
		self.ul.style.display = "block";
		base.rightmenu.rightmenu.style.display = "block";
	}
	
	this.ul.onmouseout = function()
	{
		self.ul.style.display = "none";
		base.rightmenu.rightmenu.style.display = "none";
	}
	
	for(var i=0; i < this.li.length; i++)
	{
		this.li[i].onmouseover = function()
		{
			this.style.cursor = "pointer";
		}
		
		this.li[i].onclick = function()
		{
			base.rightmenu.card.div.className = "card " + this.className + " mine";
			base.rightmenu.card.div.color = this.className;
		}
	}
	
	return this;
}

Colormenu.prototype.displayMenu = function(card,e)
{
	this.ul.style.display = "block";
	this.card = card;
	
	if(!isMSIE)
	{
		this.ul.style.left = e.pageX -5;
		this.ul.style.top = e.pageY -5;
	}else
	{
		this.ul.style.left = event.x  -5;
		this.ul.style.top = event.y  -5;
	}
	
}