
function browserVersion() {
	var agt = navigator.userAgent.toLowerCase();

	this.major = parseInt(navigator.appVersion);
	this.minor = parseFloat(navigator.appVersion);

	this.nav    = ((agt.indexOf('mozilla')!=-1) && ((agt.indexOf('spoofer')==-1) && (agt.indexOf('compatible') == -1)));
	this.nav4up = this.nav && (this.major >= 4);

	this.navonly = (this.nav && (agt.indexOf(";nav") != -1));

	this.ie     = (agt.indexOf("msie") != -1);
	this.ie4up  = this.ie  && (this.major >= 4);

	this.opera = (agt.indexOf("opera") != -1);

	this.ver4up = (this.ie4up || this.nav4up );
}

var browserVersion = new browserVersion();
var bv = browserVersion;

var t = null;
function naviPosition() {
	clearTimeout(t);
	var wH = (document.all) ? document.body.clientHeight : window.innerHeight;
	var sH = (document.all) ? document.body.scrollTop : window.pageYOffset;
	var obj = document.getElementById("bottomNavi");
	if (obj) {
		yPos = wH + sH - 46 - 5;
		yPos = (navigator.userAgent.indexOf("Gecko") > 0) ? yPos-17 : yPos
		obj.style.top = yPos; //(yPos < 500) ? 500 : yPos; 
		obj.style.visibility = "visible";
	}
	t = setTimeout("naviPosition()",300);
}

window.onload = naviPosition;