var Mouse = "";

ns4 = (document.layers)? true:false
ie4 = (document.all)? true:false

if (ie4) {
	if (navigator.userAgent.indexOf('MSIE 5')>0) {
		ie5 = true;
		}
	else {
		ie5 = false;
		}
	}
else {
	ie5 = false;
	}

var x = 0;
var y = 0;
var snow = 0;
var sw = 0;
var cnt = 0;

function pop(statustext,titel,text) {
	if ((text) != ('') )
	{
	txt = "<table width='120' border='0' cellspacing='0' cellpadding='2'><tr><td class='poph' style='BORDER-RIGHT: #f7c473 1px solid; BORDER-TOP: #f7c473 1px solid; BORDER-LEFT: #f7c473 1px solid; BORDER-BOTTOM: #f7c473 1px solid'>" + titel + "</td></tr><tr><td class='popb' style='BORDER-RIGHT: #f7c473 1px solid; BORDER-LEFT: #f7c473 1px solid; BORDER-BOTTOM: #f7c473 1px solid'>" + text + "</td></tr></table>"
	}
	else
	{
	txt = "<table width='120' border='0' cellspacing='0' cellpadding='2'><tr><td class='poph'>" + titel + "</td></tr><tr><td class='popb'></td></tr></table>"
	}
	
	self.status = statustext;
	layerWrite(txt);

}


function showObject(obj) {
        if (ns4) obj.visibility = "show"
        else if (ie4) obj.visibility = "visible"
}

function hideObject(obj) {
        if (ns4) obj.visibility = "hide"
        else if (ie4) obj.visibility = "hidden"
}

function popoff() {
	aktiv = window.setTimeout("popaus()",100)
	}
function popaus(){
	self.status = '';
	if ( cnt >= 1 ) { sw = 0 };
window.clearTimeout(aktiv);
}

function popup(no,par,lh,ld,hcp)
{
	n="Loch " + no;
	p="<b>Par:</b>  " + par;
	h="<br><img src='images/yel01dot.gif'/>  <b>Herren:</b>  " + lh + "  <img src='images/yel01dot.gif'/>";
	d="<br><img src='images/red01dot.gif'/>  <b>Damen:</b>  " + ld + "  <img src='images/red01dot.gif'/>";
	hc="     <b>Hcp:</b> " + hcp;
	pop(n+", Par: "+par+", Hcp: "+hcp," "+n,p+hc+h+d);
}

function popup2(text,Text)
{
	pop(text," "+text,Text);
}

function mouseMove(e) {
	if (ns4) {
		x=e.pageX;
		y=e.pageY;
		}
	if (ie4) {
		x=event.x;
		y=event.y;
		}
	if (ie5) {
		x=event.x+document.body.scrollLeft;
		y=event.y+document.body.scrollTop;
		}
	if (snow) {
		moveTo(mover,x+9,y+18);
		}
}
function layerWrite(txt) {
	if (ns4) {
		var lyr = document.popOff.document
		lyr.write(txt)
		lyr.close()
		}
	else if (ie4) {
		document.all["popOff"].innerHTML = txt
		}
}