<!--
// funkcija za postavitev footra na dno
function getWindowHeight() {
	var windowHeight = 0;
	if (typeof(window.innerHeight) == 'number') {
		windowHeight = window.innerHeight;
	}
	else {
		if (document.documentElement && document.documentElement.clientHeight) {
			windowHeight = document.documentElement.clientHeight;
		}
		else {
			if (document.body && document.body.clientHeight) {
				windowHeight = document.body.clientHeight;
			}
		}
	}
	return windowHeight;
}
function setFooter() {
	if (document.getElementById) {
		var windowHeight = getWindowHeight();
		if (windowHeight > 0) {
			var contentHeight = document.getElementById('content').offsetHeight;
			var footerElement = document.getElementById('footer');
			var footerHeight  = footerElement.offsetHeight;
			if (windowHeight - (contentHeight + footerHeight) >= 0) {
				footerElement.style.position = 'relative';
				footerElement.style.top = (windowHeight - (contentHeight + footerHeight)) + 'px';
			}
			else {
				footerElement.style.position = 'static';
			}
		}
	}
}
window.onload = function() {
	setFooter();
}
window.onresize = function() {
	setFooter();
}
// konc funkcije za footer


//popup s scrollbarji
var okno = null;
function popup(doc, w, h)
{
  	if (w == null) w = 400;
  	if (h == null) h = 390;
	if (okno==null || okno.closed) {
		okno=window.open(doc,"popup",'toolbar=no,width='+ w +',height='+ h +',resizable=yes,scrollbars=yes,directories=no,status=no,menubar=no,location=no');
		okno.creator = self;      
	}
	else {
		okno.location = doc;
		okno.focus();
	}
}

//popup brez scrollbarjev
var okno2 = null;
function popup2(doc, w, h)
{
  	if (w == null) w = 400;
  	if (h == null) h = 400;
	if (okno2==null || okno2.closed) {
		okno2=window.open(doc,"popup2",'toolbar=no,width='+ w +',height='+ h +',resizable=no,scrollbars=no,directories=no,status=no,menubar=no,location=no');
		okno2.creator = self;      
	}
	else {
		okno2.location = doc;
		okno2.focus();
	}
}
// -->