function openWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}


//bodyAonloadέθ
//#####################################################################

if(window.addEventListener) {
	window.addEventListener("load", function() {
		imgRollover();
	}, false);
}
else if(window.attachEvent) {
	window.attachEvent("onload", function() {
		imgRollover();
	});
}

//ΘΊΦ
//#####################################################################

//[I[o[
function imgRollover() {
	if(document.getElementsByTagName) {
		var images = document.getElementsByTagName("img");
		var input = document.getElementsByTagName("input");

		var imgOff = new Array();
		var imgOn = new Array();
		for(var i=0; i < images.length; i++) {
			if(images[i].src.match(/(.*_)off(\..*)$/)) {
				imgOff[i] = new Image();
				imgOn[i] = new Image();
				imgOff[i].src = images[i].src;
				imgOn[i].src = RegExp.$1 + 'on' + RegExp.$2;

				images[i].onmouseover = function() {
					this.setAttribute("src", this.src.replace("_off.", "_on."));
				}
				images[i].onmouseout = function() {
					this.setAttribute("src", this.src.replace("_on.", "_off."));
				}
			}
		}

		var inputOff = new Array();
		var inputOn = new Array();
		for(var i=0; i < input.length; i++) {
			if(input[i].src.match(/(.*_)off(\..*)$/)) {
				inputOff[i] = new Image();
				inputOn[i] = new Image();
				inputOff[i].src = input[i].src;
				inputOn[i].src = RegExp.$1 + 'on' + RegExp.$2;

				input[i].onmouseover = function() {
					this.setAttribute("src", this.src.replace("_off.", "_on."));
				}
				input[i].onmouseout = function() {
					this.setAttribute("src", this.src.replace("_on.", "_off."));
				}
			}
		}

	}
}

/* ?΅?εαΰ£
----------------------------------------------- */
window.onresize = function() { positioning(); }
window.onload = function() { positioning(); }

function positioning() {
	var nv = navigator.userAgent;
	var bt = document.getElementById("pageup");
	if (nv.match(new RegExp("MSIE 6", "i"))) { floatbt(); }
	else {
		bt.style.position = "fixed";
		bt.style.left = (document.body.offsetWidth / 2) + 379 + "px";
		bt.style.bottom = "110px";
	}
	try{ tabCheck(); }
	catch(e){}
}
function floatbt() {
	var bt = document.getElementById("pageup");
	bt.style.position = "absolute";
	bt.style.left = (document.body.offsetWidth / 2) + 369 + "px";
	bt.style.top = document.body.offsetHeight + document.body.scrollTop - 120 + "px";
	setTimeout("floatbt()", 10);
}


/* page up
----------------------------------------------- */
function pageup() {
	var mode = (document.compatMode && document.compatMode=="CSS1Compat");
	if (mode) { posi = document.documentElement.scrollHeight; }
	else { posi = document.body.scrollHeight; }
	moveObje(posi);
}
function moveObje(position) {
	move = position / 10;
	point = parseInt(position - move);
	scrollTo(0,point);
	if (point > 0) { setTimeout("moveObje(point)",1); }
}

/* ?’i σH₯₯S
----------------------------------------------- */


if(document.getElementById){
	document.writeln('<style type="text/css" media="all">');
	document.writeln('<!--');
	document.writeln('.sidehide{display:none;}');
	document.writeln('-->');
	document.writeln('</style>');
}

function showHide(id){
	var disp = document.getElementById(id).style.display;

	if(disp == "block"){
		document.getElementById(id).style.display = "none";
	}else{
		document.getElementById(id).style.display = "block";
	}
	return false;
}
