window.onload=loadInit;
/* registrace udalosti onscroll */
/*
window.onscroll=scrollInit;

function loadInit() {
	normal();
		DM_init();
	computePos();
}
*/
	/* funkce volana na onscroll - pouze vola bottomUnpos() - lze pridat volani dalsich fci */
	function scrollInit() {
		bottomUnpos();
	}
	
	
	function loadInit() {
		footer = gEBI('footer');
		DM_init();
		if(footer)
		{
			IE ? window.onscroll=scrollInit : footer.style.position = 'fixed';
		}
		computePos();
	}
	
	

var fromLeft = 0;
function computePos() {
	var w = document.body.offsetWidth;
	if((w-750)>0) fromLeft = (w-750)/2;
}

	/* fce pro nalezeni elementu dle id */
	function gEBI(id) {
		var el;
		if(document.getElementById) {
			el = document.getElementById(id);
		} else if(document.all) {
			el = document.all[id];
		} else {
			return false;
		}
		return el;
	}

	/* globalni promenne */
	var footer;
	var bPT;
	var IE = false;
	if(document.all) IE = true;

	/* fce pro premisteni dolniho footeru */
	function bottomPos() {
		footer.style.position = 'fixed';
		footer.style.position = 'absolute';
		footer.style.visibility = 'visible';
		bPT = null;
	}
	
	function bottomUnpos() {
		footer.style.visibility = 'hidden';
		if(bPT) window.clearInterval(bPT);
		bPT = window.setTimeout('bottomPos()', 50);
	}

function normal() {
	defaultStatus=""
}

function text(txt) {
	window.status=txt;
	return true;
}

function zamen(nazev_obr, novy_obr) {
	document.images[nazev_obr].src=novy_obr;
}

function opennewWindowEx(path, name, width, height) {
	style = eval("'status=no,width="+width+",height="+height+",resizable=yes,menubar=no,scrollbars=no,toolbar=no'");
	window.open(path, name, style) ;
}

/* =========== ZVYRAZNOVANI POJMU VE SLOVNICKU PO PREJETI MYSI ============= */
function spOn(n) {
	document.getElementById('sp'+n).style.backgroundColor = '#33559F';
	document.getElementById('spa'+n).style.color = '#D2DEEE';
}
function spOff(n) {
	/* this.style.color = '#33559F'; */
	document.getElementById('sp'+n).style.backgroundColor = '#D2DEEE';
	document.getElementById('spa'+n).style.color = '#33559F';
}