function CTopMenu (){
	var self = this;
	this.MenuActImages = new Array();
	this.MenuPasImages = new Array();
	
	this.InitMenuItem = function(id,act,pas)
	{
		var item = $('#'+id);
		if (item.length)
		{
			this.MenuActImages[id] = new Image();
			this.MenuActImages[id].src = act;
			this.MenuPasImages[id] = new Image();
			this.MenuPasImages[id].src = pas;
			
			item.bind("mouseover",this.__mouseover);
			item.bind("mouseout",this.__mouseout);
		}
	}
	
	this.SetActive = function(id)
	{
		var Tempo = new Image();
		Tempo = this.MenuActImages[id];
		this.MenuActImages[id] = this.MenuPasImages[id];
		this.MenuPasImages[id] = Tempo;
	}
	
	this.__mouseover = function()
	{
  		this.src = self.MenuActImages[this.id].src;
	}

	this.__mouseout = function()
	{
		this.src = self.MenuPasImages[this.id].src;
	}
}

var TopMenu = new CTopMenu();