	function g_on(num) {
		var obj;
		obj = document.getElementById('m' + num);
		obj.src="../images/201003/m_0" + num + "on.gif";
		return;
	}
	function g_out(num) {
		var obj;
		obj = document.getElementById('m' + num);
		obj.src = "../images/201003/m_0" + num + ".gif";
		return;
	}
	function toggle_gnbover(num) {
		var obj;
		var obj_menu;
		for (var z=1; z<=7; z++){
			obj = document.getElementById('sub' + z);
			obj_menu = document.getElementById('m' + z);

			if (z == num){
				obj.style.display="";
				obj_menu.src = "../images/201003/m_0" + z + "on.gif";
			} else {
				obj.style.display="none";
				obj_menu.src = "../images/201003/m_0" + z + ".gif";
			}
		}
		return;
	}
	function toggle_gnsover(num) {
		var idx1 = num.toString().charAt(0);
		var idx2 = num.toString().charAt(1);
		var obj;

		obj = document.getElementById('msub_0' + idx1 + "0" + idx2);
		obj.src = "../images/201003/m_0" + idx1 + "0" + idx2 + "on.gif";
	}
	function toggle_gnsout(num) {
		var idx1 = num.toString().charAt(0);
		var idx2 = num.toString().charAt(1);
		var obj;

		obj = document.getElementById('msub_0' + idx1 + "0" + idx2);
		obj.src = "../images/201003/m_0" + idx1 + "0" + idx2 + ".gif";
	}
	function Timer() {
		if (!document.getElementById('right'))
			return false;

		var obj = document.getElementById('right');
		obj.initTop = 241;
		obj.topLimit = 50;
		obj.bottomLimit = document.documentElement.scrollHeight - 20;

		obj.style.position = "absolute";
		obj.top = obj.initTop;
		obj.left = obj.initLeft;

		if (typeof(window.pageYOffset) == "number") {
			obj.getTop = function() {
				return window.pageYOffset;
			}
		} else if (typeof(document.documentElement.scrollTop) == "number") {
			obj.getTop = function() {
				return document.documentElement.scrollTop;
			}
		} else {
			obj.getTop = function() {
				return 0;
			}
		}

		if (self.innerHeight) {
			obj.getHeight = function() {
				return self.innerHeight;
			}
		} else if(document.documentElement.clientHeight) {
			obj.getHeight = function() {
				return document.documentElement.clientHeight;
			}
		} else {
			obj.getHeight = function() {
				return 500;
			}
		}

		obj.move = setInterval(function() {
			if (obj.initTop > 0) {
				pos = obj.getTop() + obj.initTop;
			} else {
				pos = obj.getTop() + obj.getHeight() + obj.initTop;
				//pos = obj.getTop() + obj.getHeight() / 2 - 15;
			}

			if (pos > obj.bottomLimit)
				pos = obj.bottomLimit;
			if (pos < obj.topLimit)
				pos = obj.topLimit;

			interval = obj.top - pos;
			obj.top = obj.top - interval / 3;
			obj.style.top = obj.top + "px";
		}, 30)
	}
	
function writeflash(src) { 
    document.write(src); 
}


function Timer() {
		if (!document.getElementById('right'))
			return false;

		var obj = document.getElementById('right');
		obj.initTop = 170;
		obj.topLimit = 50;
		obj.bottomLimit = document.documentElement.scrollHeight - 20;

		obj.style.position = "absolute";
		obj.top = obj.initTop;
		obj.left = obj.initLeft;

		if (typeof(window.pageYOffset) == "number") {
			obj.getTop = function() {
				return window.pageYOffset;
			}
		} else if (typeof(document.documentElement.scrollTop) == "number") {
			obj.getTop = function() {
				return document.documentElement.scrollTop;
			}
		} else {
			obj.getTop = function() {
				return 0;
			}
		}

		if (self.innerHeight) {
			obj.getHeight = function() {
				return self.innerHeight;
			}
		} else if(document.documentElement.clientHeight) {
			obj.getHeight = function() {
				return document.documentElement.clientHeight;
			}
		} else {
			obj.getHeight = function() {
				return 500;
			}
		}

		obj.move = setInterval(function() {
			if (obj.initTop > 0) {
				pos = obj.getTop() + obj.initTop;
			} else {
				pos = obj.getTop() + obj.getHeight() + obj.initTop;
				//pos = obj.getTop() + obj.getHeight() / 2 - 15;
			}

			if (pos > obj.bottomLimit)
				pos = obj.bottomLimit;
			if (pos < obj.topLimit)
				pos = obj.topLimit;

			interval = obj.top - pos;
			obj.top = obj.top - interval / 3;
			obj.style.top = obj.top + "px";
		}, 30)
	}
