
	//style correction for IE
	var ie = (navigator.appVersion.indexOf('MSIE') > -1);
	var ie5 = (navigator.appVersion.indexOf('MSIE 5') > -1);
	
	var home = false;
	var url = window.location.href;
	if(!home) home = (url.slice(url.length - 12, url.length) == '/si/index.php');
	if(!home) home = (url.slice(url.length - 4, url.length) == '/si/');
	if(!home) home = (url.slice(url.length - 2, url.length) == '/si');
	
	if(!home){
		if(ie && !ie5) document.write('<style>#inner{ height: 377px; }</style>');
		if(ie5) document.write('<style>#inner{ height: 446px; } td{ font-size: 0.7em; }</style>');
	}else{
		if(ie && !ie5) document.write('<style>#inner{ height: 229px; }</style>');
		if(ie5) document.write('<style>#inner{ height: 298px; } td{ font-size: 0.7em; }</style>');
	}
	
	//hides all submenus
	function hideAll(){
		for(k = 0; k < levels.length; k++){
			document.getElementById('menu_' + levels[k]).className = '';
			document.getElementById('submenu_' + levels[k]).style.display = 'none';
		}
		return true;
	}
	
	//shows/hides submenu
	function showHide(level, object){
		if(object.className == 'active'){
			hideAll();
		}
		else{
			hideAll();
			object.className = 'active';
			document.getElementById('submenu_' + level).style.display = 'block';
		}
		return true;
	}
	
	//opens large picture in a popup window
	function openPic(url, width, height){
		doc = '<html><head><title>Najboljse iz Klasja<\/title><\/head><body marginheight=\"0\" marginwidth=\"0\" topmargin=\"0\" leftmargin=\"0\"><img src=\"' + url + '\"><\/body><\/html>';
		nw = window.open('', 'nw', 'width=' + width + ',height=' + height + ',scrollbars=no, menubar=no, resizable=no, left=300, top=200');
		nw.document.write(doc);
	}
	
	//opens "about authors" page
	function openAuthors(){
		url = '/de/o_avtorjih.html';
		width = 250;
		height = 350;
		window.open(url, 'nw', 'width=' + width + ',height=' + height + ',scrollbars=no, menubar=no, resizable=no, left=300, top=200');
	}
	
	//opens "legal notice" page
	function openLegal(){
		url = '/de/pravno_obvestilo.html';
		width = 300;
		height = 350;
		window.open(url, 'nw', 'width=' + width + ',height=' + height + ',scrollbars=yes, menubar=no, resizable=no, left=300, top=200');
	}
	
	//increases the font size
	function fontUp(){
		var size = document.getElementById('inner').style.fontSize == '' ? 0.7 : parseFloat(document.getElementById('inner').style.fontSize);
		if(size >= 1.0) size = 0.7;
		else size += 0.2;
		document.getElementById('inner').style.fontSize = size + 'em';		
	}
