<!--
// Random hp image

function randomImg() {
	var thePics = new Array()

	thePics[1] = "01.gif"
	thePics[2] = "02.gif"
	thePics[3] = "03.gif"
	thePics[4] = "04.gif"
	thePics[5] = "05.gif"
	thePics[6] = "06.gif"
	thePics[7] = "07.gif"
	thePics[8] = "08.gif"
	thePics[9] = "09.gif"
	thePics[10] = "10.gif"
	thePics[11] = "11.gif"
	thePics[12] = "12.gif"
	thePics[13] = "13.gif"
	thePics[14] = "14.gif"
	thePics[14] = "15.gif"
	
	var rn = Math.floor(Math.random() * thePics.length)
	if (rn == 0) {
	  rn = 1
	}
	document.write("<img src=\"http://svenschindler.typepad.com/svenschindler/images/sidebar/"+thePics[rn]+"\" width=\"210\" height=\"95\" border=\"0\" />")
}

function popOver(linkObj){

	//var agt = navigator.userAgent.toLowerCase();
	//var is_ie6 = ((agt.indexOf("msie") != -1) && (agt.indexOf("opera") == -1) && (parseInt(navigator.appVersion) == 4));

	var offsetPx = 14;
	//if(is_ie6){
	//	offsetPx += 17;
	//}

	popName = linkObj.id + 'Pop';
	var myPop = document.getElementById(popName);
	myPop.style.left = getTotalLeft(linkObj) + 'px';
	myPop.style.top = getTotalTop(linkObj) + offsetPx + 'px';
	lockPop(myPop);
}

function unPopOver(myObj){
	var myId = myObj.id;
	if(myId.indexOf('Pop') < 0){
		myId = myId + 'Pop';
	}
	var myPop = document.getElementById(myId);
	myPop.popLock = false;
	setTimeout("closePopOver('" + myId + "')", 1000);
}

function closePopOver(myId, overRide){
	var myPop = document.getElementById(myId);
	if(!myPop.popLock || overRide){
		myPop.style.left = '-1000px';
		myPop.style.top = '-1000px';
		myPop.popLock = false;
	}
}

function lockPop(myPop){
	myPop.popLock = true;
}

function getTotalTop(obj) {
	return getTotalCommon(obj,true);
}

function getTotalLeft(obj) {
	return getTotalCommon(obj,false);
}

function getTotalCommon(obj, blnTop) {
	var i = 0;
	while (obj.tagName != 'BODY') {
		i += blnTop ? obj.offsetTop : obj.offsetLeft;
		obj = obj.offsetParent;
	}
	return i;
}
//-->