
// globalNavi's Drop Down Menu
createDropDownList = function() {
	if (document.all && document.getElementById) {
		var root = document.getElementById("globalNavi");
		if (!root) {
			return false;
		}
		for (i = 0; i < root.childNodes.length; i++) {
			node = root.childNodes[i];
			if (node.nodeName == "LI") {
				node.onmouseover = function() {
					this.className += " over";
				}
				node.onmouseout = function() {
					this.className = this.className.replace(" over", "");
				}
			}
		}
	}
}
window.onload = createDropDownList;

// Popup Window Method
function popupWin(target, w, h) {
	var url = target.href;
	var feature="toolbar=0,location=0,directories=0,fullscreen=0,status=0,menubar=1,scrollbars=1,resizable=0,width=" + w + ",height=" + h;
	var win = window.open(url, "patolis", feature);
}

// Popup Window Method for Information
function popupWinForInfo(target) {
	var url = target.href;
	var w = 600;
	var h = 500;
	var feature="toolbar=0,location=0,directories=0,fullscreen=0,status=0,menubar=1,scrollbars=1,resizable=1,width=" + w + ",height=" + h;
	var win = window.open(url, "patolis", feature);
}

// Popup Window Method for Images
function popupWinForImg(target, w, h) {
	var url = target.href;
	var html = '' +
		'<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN""http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">\n<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en" dir="ltr">\n<head>\n' +
		'<meta http-equiv="Content-Script-Type" content="text/javascript" />\n<meta http-equiv="Content-Style-Type" content="text/css" />\n<meta name="author" content="PATOLIS Corporation" />\n' +
		'<title>PATOLIS</title>\n' +
		'<style>\n* {\noverflow:hidden;\nmargin:0;\npadding:0;\n}\nimg {\nborder:0;\n}\n</style>\n' +
		'</head>\n' +
		'<body>\n' +
		'<p><a href="#" onclick="window.close();return false;"><img src="' + url + '" width="' + w + '" height="' + h + '" /></a></p>\n' +
		'</body>\n' +
		'</html>\n';
	var feature="toolbar=0,location=0,directories=0,fullscreen=0,status=0,menubar=0,scrollbars=0,resizable=0,width=" + w + ",height=" + h;
	var win = window.open("", "patolis", feature);
	win.document.write(html);
}















