function oP(sc, pn) {
	document.location = "./" + (pn > 1 ? "?pn=" + pn + "&sc=" + sc : "");
}
var gTip = new Array();
var lastopen = null;
function showTip(gamelink) {
	hideTip();
	hIndex = gamelink.id;
	linkPos = findPos(gamelink);
	if (gTip[hIndex]) {
		gTip[hIndex].style.left = (linkPos[0] - 5) + "px";
		gTip[hIndex].style.top = (linkPos[1] + 90) + "px";
		gTip[hIndex].style.display = "";
	} else {
		titleTmp = gamelink.title.split(" | ");
		gamelink.title = "";
		gTip[hIndex] = document.createElement("div");
		gTip[hIndex].setAttribute("class", "gtip");
		gTip[hIndex].style.left = (linkPos[0] - 5) + "px";
		gTip[hIndex].style.top = (linkPos[1] + 90) + "px";
		gTip[hIndex].innerHTML = "<b>" + titleTmp[0] + "</b>" + (titleTmp[1] ? "<br />" + titleTmp[1] : "");
		gamelink.appendChild(gTip[hIndex]);
	}
	lastopen = gTip[hIndex];
}
function hideTip() {
	if (lastopen != null) {
		lastopen.style.display = "none";
		lastopen = null;
	}
}
function findPos(obj) {
	var curleft = curtop = 0;
	if (obj.offsetParent) {
		do {
			curleft += obj.offsetLeft;
			curtop += obj.offsetTop;
		} while (obj = obj.offsetParent);
	}
	return [curleft,curtop];
}