/* INIT.JS */

/* . */

var TabImage = new Array();

TabImage[0] = new Image();
TabImage[1] = new Image();
TabImage[0].src = "./common/item/img/tab_red3.gif";
TabImage[1].src = "./common/item/img/tab_blue.gif";

function TabImageChg(imgn) {
	var j = 0;
	
	if (document.getElementById(imgn).src.indexOf("tab_red3.gif") != -1) {
		j = 1;
	}
	document.getElementById(imgn).src = TabImage[j].src;
}

function HandMoveOver(mx, my) {
	var it = -75, il = 10;
	
	document.getElementById("hand").style.top = (it + mx) + "px";
	document.getElementById("hand").style.left = (il + my) + "px";
}

function HandMoveOut($bx, $by) {
	document.getElementById("hand").style.top = $by + "px";
	document.getElementById("hand").style.left = $bx + "px";
}

function SerifShow(n) {
	var i;
	
	for (i = 0; i <= 8; i++) {
		document.getElementById("serif" + i).style.display = "none";
	}
	document.getElementById("serif" + n).style.display = "block";
}

function OpenCertDetails()
{
	thewindow = window.open('http://jcfan.com', 'anew', config='height=400,width=450,toolbar=no,menubar=no,scrollbars=yes,resizable=no,location=no,directories=no,status=yes');
}
