
//|--------------------
bodyonload = function()
{
	automate_mm();
}

//|--------------------
automate_mm = function()
{
	var els = document.getElementsByTagName('A');
	try
	{
		for(var i=0; i < els.length; i++)
		{
			els[i].onfocus = function()
			{
				this.blur();
			}
			if((els[i].className == 'mmlink') || (els[i].className == 'mmlinkb') || (els[i].className == 'mmlinke'))
			{
				for(var ei=0; ei < els[i].children.length; ei++)
				{
					try
					{
						if(els[i].children[ei].tagName == 'IMG')
						{
							els[i].children[ei].onmouseover = function()
							{
								try { this.src = this.src.replace('.gif', '_cr.gif'); }
								catch(e)
								{}
							}
							els[i].children[ei].onmouseout = function()
							{
								try { this.src = this.src.replace('_cr.gif', '.gif'); }
								catch(e)
								{}
							}
						}
					}
					catch(e)
					{ }
				}
			}
		}
	}
	catch(e)
	{ }
}

set_active_mm = function(klucz)
{
	var el = document.getElementById('mm_' + klucz);
	try
	{
		if(typeof(el) == 'object')
		{
			el.className = el.className.replace('mmlink', 'mmlink_cr');
			for(var ei=0; ei < el.children.length; ei++)
			{
				if(el.children[ei].tagName == 'IMG')
				{
					try { el.children[ei].src = el.children[ei].src.replace('.gif', '_cr.gif'); }
					catch(ex1)
					{}
				}
			}
		}
	}
	catch(ex2)
	{ }
}


