<!--
// Random hp image

function randomImg() {
	var thePics = new Array()

	thePics[1] = "01.png"
	thePics[2] = "02.png"
	thePics[3] = "03.png"
	thePics[4] = "04.png"
	thePics[5] = "05.png"
	thePics[6] = "06.png"
	thePics[7] = "07.png"
	thePics[8] = "08.png"
	thePics[9] = "09.png"
	thePics[10] = "10.png"
	thePics[11] = "11.png"
	thePics[12] = "12.png"
	thePics[13] = "13.png"
	thePics[14] = "14.png"
	thePics[15] = "15.png"
	thePics[16] = "16.png"
	thePics[17] = "17.png"
	thePics[18] = "18.png"
	thePics[19] = "19.png"
	thePics[20] = "20.png"
	thePics[21] = "21.png"
	thePics[22] = "22.png"
	thePics[23] = "23.png"
	thePics[24] = "24.png"
	thePics[25] = "25.png"
	thePics[26] = "26.png"
	
	var rn = Math.floor(Math.random() * thePics.length)
	if (rn == 0) {
	  rn = 1
	}
	document.write("<img style=\"padding: 3px; border: 1px solid rgb(0, 0, 0);\" class=\"random_catch\" src=\"images/sidebar_210/"+thePics[rn]+"\" />")
}

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;
}
//-->
