if (/msie/i.test (navigator.userAgent)) //only override IE
{
	document.nativeGetElementById = document.getElementById;
	document.getElementById = function(id)
	{
		var elem = document.nativeGetElementById(id);
		if(elem)
		{
			//make sure that it is a valid match on id
			if(elem.id == id)
			{
				return elem;
			}
			else
			{
				//otherwise find the correct element
				for(var i=1;i<document.all[id].length;i++)
				{
					if(document.all[id][i].id == id)
					{
						return document.all[id][i];
					}
				}
			}
		}
		return null;
	};
}


function startuj() {
	for(j=0;j<document.images.length;j++) {
		if(document.images[j].className=="menu") {
			var x=document.getElementById(document.images[j].name).getElementsByTagName("a");
			for(i=0;i<x.length;i++) {
				x[i].onmouseover=function() { this.className='linkOver'; };	
				x[i].onmouseout=function () { this.className='link'; };			
			}
		}
	}

	
	var x=document.getElementsByTagName("div");
	for(i=0;i<x.length;i++) {
		if(x[i].className=="rollmenu") {
			x[i].onmouseover=function() { this.className='rollmenuOver'; };	
			x[i].onmouseout=function() { this.className='rollmenu'; };	
		}
	}	
	
	for(i=0;i<document.images.length;i++) {
		if(document.images[i].className=="menu") {
			 document.images[i].onmouseover=function () { document.getElementById(this.name).className='rollmenuOver'; };
			 document.images[i].onmouseout=function () { document.getElementById(this.name).className='rollmenu'; };
		}
	}
	for(i=0;i<document.links.length;i++) {
		if(document.links[i].className=="hideit") {
			 document.links[i].onclick=function() {
					if(document.getElementById(this.name).className=="hidden")
						document.getElementById(this.name).className="shown";
					else document.getElementById(this.name).className="hidden";
				}
		}
	}
}
