function externalLinks() { 
	if (!document.getElementsByTagName) return; 
	var anchors = document.getElementsByTagName("a"); 
	for (var i=0; i<anchors.length; i++) { 
		var anchor = anchors[i]; 
		if (anchor.getAttribute("href") && anchor.getAttribute("rel") == "external") anchor.target = "_blank"; 
	} 
}
window.onload = externalLinks;


//Horni menu

navHover = function() {
var lis = document.getElementById("menu").getElementsByTagName("LI");
for (var i=0; i<lis.length; i++) {
lis[i].onmouseover=function() {
this.className+=" iehover";
}
lis[i].onmouseout=function() {
this.className=this.className.replace(new RegExp(" iehover\\b"), "");
}
}
}
if (window.attachEvent) window.attachEvent("onload", navHover);


function show_mk(no) {
	hide_mk();
	var obj;
	
		obj = document.getElementById('mk0' + no);
		obj.style.display='block';
	
}

function hide_mk() {
	var obj;
	for (var i=1; i<=5; i++) {
		obj = document.getElementById('mk0' + i);
		obj.style.display='none';
	}
}

