function checkBrowser(){
	this.ver=navigator.appVersion
	this.dom=document.getElementById?1:0
	this.ie5=(this.ver.indexOf("MSIE 5")>-1 && this.dom)?1:0;
	this.ie4=(document.all && !this.dom)?1:0;
	this.ns5=(this.dom && parseInt(this.ver) >= 5) ?1:0;
	this.ns4=(document.layers && !this.dom)?1:0;
	this.bw=(this.ie5 || this.ie4 || this.ns4 || this.ns5)
	return this
}
bw=new checkBrowser()

//Shows the div
function mOver(div,Gumb){
	obj=bw.dom?document.getElementById(div).style:bw.ie4?document.all[div].style:bw.ns4?nest?document[nest].document[div]:document[div]:0; 
	switch(Gumb) {
		case 1:
			obj.background='url(Slike/Gumb1_on.jpg)';
			break;
		case 2:
			obj.background='url(Slike/Gumb2_on.jpg)';
			break;
		case 3:
			obj.background='url(Slike/Gumb3_on.jpg)';
			break;
		case 4:
			obj.background='url(Slike/Gumb4_on.jpg)';
			break;
		default:
	}
	obj.cursor='pointer';
}

//Hides the div
function mOut(div,Gumb){
	obj=bw.dom?document.getElementById(div).style:bw.ie4?document.all[div].style:bw.ns4?nest?document[nest].document[div]:document[div]:0; 
	switch(Gumb) {
		case 1:
			obj.background='url(Slike/Gumb1_off.jpg)';
			break;
		case 2:
			obj.background='url(Slike/Gumb2_off.jpg)';
			break;
		case 3:
			obj.background='url(Slike/Gumb3_off.jpg)';
			break;
		case 4:
			obj.background='url(Slike/Gumb4_off.jpg)';
			break;
		default:
	}
	obj.cursor='default';
}

function GoTo(URL){
	parent.location.href=URL;
}
