isNS = (navigator.appName == 'Netscape');
isIE = (navigator.appName.indexOf('Microsoft') != -1);
isOP = (navigator.appName == 'Opera');
ns4 = (document.layers);
ie4 = (document.all && !document.getElementById);
ie5 = (document.all && document.getElementById);
ns6 = (!document.all && document.getElementById);

function winname(name) {
  window.name=name;
}

function calcHeight(koi) {
	var the_height=document.body.scrollHeight;
	var obj = parent.document.getElementById(koi);
	obj.style.height = (!isNS && !isOP) ? the_height : the_height+'px';
}

function prozorec (URL, winName, features) {
 window.open (URL, winName, features);
}


var activen='';
function over(koi) {
 var obj = document.getElementById(koi);
 		obj.style.backgroundColor = "#BC060D";
}
function out(koi) {
 var obj = document.getElementById(koi);
 if (koi != activen) {
		obj.style.backgroundColor = "#000000";
		}
}
function down(koi) {
 var i =1;
 for (i=1; i<=6; i++) {
   what = 'm'+i;
   var obj = document.getElementById(what);
   obj.style.backgroundColor = "#000000";
  }
  activen = koi;
   var obj2 = document.getElementById(koi);
   obj2.style.backgroundColor = "#BC060D";
}   
