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 show(div,bCol,fCol){
	obj=bw.dom?document.getElementById(div).style:bw.ie4?document.all[div].style:bw.ns4?nest?document[nest].document[div]:document[div]:0; 
	obj.background=bCol;
	obj.color=fCol;
	obj.cursor='pointer';
	obj.border='2px solid #cc0033';
	
	obj=bw.dom?document.getElementById(div+"a").style:bw.ie4?document.all[div+"a"].style:bw.ns4?nest?document[nest].document[div+"a"]:document[div+"a"]:0;
	obj.background="#cc0033";
}

//Hides the div
function hide(div,bCol,fCol){
	obj=bw.dom?document.getElementById(div).style:bw.ie4?document.all[div].style:bw.ns4?nest?document[nest].document[div]:document[div]:0; 
	obj.background=bCol;
	obj.color=fCol;
	obj.cursor='default';
	obj.border="1px solid #cc0033";
	
	obj=bw.dom?document.getElementById(div+"a").style:bw.ie4?document.all[div+"a"].style:bw.ns4?nest?document[nest].document[div+"a"]:document[div+"a"]:0;
	obj.background="transparent";
	
}


function GoTo(URL,Cilj){
	parent.location.href=URL;
}

function GoTo2(URL,Cilj){
	parent.frames[Cilj].location.href=URL;
}
