function BrowserCheck() 
{
	var b = navigator.appName
	if (b == "Netscape") this.b = "ns"
	else if (b == "Microsoft Internet Explorer") this.b = "ie"
	else this.b = b
	this.v = parseInt(navigator.appVersion)
	this.ns = (this.b == "ns" && this.v >= 4)
	this.ns4 = (this.b == "ns" && this.v == 4)
	this.ns5 = (this.b == "ns" && this.v == 5)
	this.ie = (this.b == "ie" && this.v >= 4)
	this.ie4 = (navigator.userAgent.indexOf('MSIE 4') > 0)
	this.ie5 = (navigator.userAgent.indexOf('MSIE 5') > 0)
	if (this.ie5) this.v = 5
	this.min = (this.ns||this.ie)
}

// automatically create the "is" object
is = new BrowserCheck();
	
function PositionSpodaj() 
{
	winW = (is.ns)? window.innerWidth : document.body.offsetWidth-51;
	winH = (is.ns)? window.innerHeight : document.body.offsetHeight;
	
	if (is.b == "ie")
	{
		v_Spodaj = document.body.scrollTop + winH - 51;
		Spodaj.style.top = v_Spodaj;
		Spodaj.style.visibility = "visible";
	}
		
	if (is.b == "ns")
	{
		v_Spodaj = winH - 51;
		
		if (is.v == 4)
		{
			document.layers["Spodaj"].top = v_Spodaj;
			document.layers["Spodaj"].visibility = "visible";
		}
// ns6
		else
		{
			document.getElementById("Spodaj").style.right = v_Spodaj;
			document.getElementById("Spodaj").style.visibility = "visible";
		}
	}
}

function NSRePositionSpodaj()
{
	if (is.v == 4)
	{
		if (document.layers["Spodaj"])
		{
			document.layers["Spodaj"].top = pageYOffset + window.innerHeight - 51;
		}
	}
// ns6
	else
	{
		document.getElementById("Spodaj").style.top = pageYOffset + window.innerHeight - 51;
	}
}

// Netscape doesn't like onScroll, so to reposition junknav, we need this
if (is.b == "ns")
{
	setInterval("NSRePositionSpodaj()",50)
}
		
function Resize() 
{
	if (is.b == "ie")
	{
		PositionSpodaj();
	}
}

function ResizeSpodaj() 
{
	if ((is.ns && (winW != window.innerWidth || winH != window.innerHeight)) || is.ie)
	history.go(0)
}

function doNothing() { }