function mouse_over_sectors(s_name)
{
	this.name = s_name;
	this.sectors = new Array();

	this.title = document.getElementById('title_sector');
	this.title_text = '';

	if(this.title != null)
	{
		this.title_text = this.title.firstChild.nodeValue;
	};

	this.add = function(uid, title)
	{
		this.sectors[this.sector_count()] = new sector_item(uid, title, this.sector_count(), this);
	};

	this.sector_count = function() { return this.sectors.length; };

	this.show = function(i)
	{
		this.set_title(this.title_text + ' ' + this.sectors[i].title);
	};

	this.hide = function(i)
	{
		this.set_title(this.title_text);
	};

	this.set_title = function(s)
	{
		if(this.title != null)
		{
			this.title.firstChild.nodeValue = s;
		};
	};

};

function sector_item(s_uid, s_title, i_pos, o_parent)
{
	this.uid = s_uid;
	this.title = s_title;
	this.position = i_pos;
	this.parent = o_parent;

	this.target = document.getElementById('sector_' + this.uid);

	this.hook_events = function()
	{
		if(this.target == null)
		{
			return;
		};

		for(var i = 0; i < this.target.childNodes.length; i++)
		{
			var o = this.target.childNodes[i];
			if(o.nodeName == 'A')
			{
				o.onmouseover = new Function(this.parent.name + '.show(' + this.position + ');')
				o.onmouseout = new Function(this.parent.name + '.hide(' + this.position + ');')
			};
		};
	};

	this.hook_events();
};