	/* pomocna 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;
	
	window.onload=loadInit;
	
	function loadInit() {
		footer = gEBI('footer');
		if(footer)
		{
			IE ? window.onscroll=scrollInit : footer.style.position = 'fixed';
		}
	}
	
	function scrollInit() {
		bottomUnpos();
	}
	
	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);
	}