var menu_c = function()
{
	//
};

/**/

menu_c.prototype.setClassNameSwitch = function(element_o, from_s, to_s)
{
	if(element_o)
	{
    	element_o.className = element_o.className.replace(from_s, to_s);
    }
};

menu_c.prototype.setImageSwitch = function(element_o, from_s, to_s)
{
	if(element_o)
	{
    	img_a = element_o.getElementsByTagName('img');

		if (typeof img_a[0] != 'undefined')
    		img_a[0].src = img_a[0].src.replace(from_s, to_s);
    }
};

/**/

menu_c.prototype.setOver = function(current_o)
{
	this.setClassNameSwitch(current_o, 'out', 'over');
	this.setImageSwitch(current_o, 'out', 'over');
};

menu_c.prototype.setOut = function(current_o)
{
	this.setClassNameSwitch(current_o, 'over', 'out');
	this.setImageSwitch(current_o, 'over', 'out');
};

menu_c.prototype.setImageOver = function(current_o)
{
	this.setImageSwitch(current_o, 'out', 'over');
};

menu_c.prototype.setImageOut = function(current_o)
{
	this.setImageSwitch(current_o, 'over', 'out');
};

menu_c.prototype.setActive = function(current_o)
{
	this.setClassNameSwitch(current_o, 'out', 'active');
	this.setImageSwitch(current_o, 'out', 'active');
};

menu_c.prototype.setSubActive = function(current_o)
{
	this.setClassNameSwitch(current_o, 'out', 'over');
	this.setImageSwitch(current_o, 'out', 'over');
};

menu_c.prototype.setLocation = function(current_o)
{
	var link_a = current_o.getElementsByTagName('a');

	if (link_a)
	{
    	document.location.href = link_a[0].href;
    }
};
