<!--

//~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~
		//get Object
//~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~
	function getObject(id_, attribute_){
		if(document.getElementById && document.getElementById(id_)){
			return	attribute_ ?
					document.getElementById(id_)[attribute_] :
					document.getElementById(id_);
		}else if(document.all && document.all(id_)){
			return	attribute_ ?
					document.all(id_)[attribute_] :
					document.all(id_);
		}else if(document.layers && document.layers[id_]){
			return	attribute_ ?
					document.layers[id_][attribute_]:
					document.layers[id_];
		}else{
//			alert(id_ + "'s Object not found!!");
			return false;
		}
	};

//----------------------------------------------------------------------------------------------
	//ÀÎÀÚ °ª
	function isAgm(agm, len, val){
		var agmL = agm.length - 1;
		return agmL < len ? val : agm[len];
	};

	//ºê¶ó¿ìÁ® º° ¾ÆÀÌµð °´Ã¼ ½ºÅ¸ÀÏ
	function getStyleObject(objectId) {
		if(document.getElementById && document.getElementById(objectId)){
			return document.getElementById(objectId).style;
		}else if (document.all && document.all(objectId)){
			return document.all(objectId).style;
		}else if (document.layers && document.layers[objectId]){
			return document.layers[objectId];
		}else{
			return false;
		}
	};

	//ºê¶ó¿ìÁ® º° ¾ÆÀÌµð °´Ã¼
	function getObject(objectId) {
		if(document.getElementById && document.getElementById(objectId)){
			return document.getElementById(objectId);
		}else if (document.all && document.all(objectId)){
			return document.all(objectId);
		}else if (document.layers && document.layers[objectId]){
			return document.layers[objectId];
		}else{
			return false;
		}
	};

	//ÇÃ·¡½¬ ½áÁÖ±â
	function writeEmbed(url,wd,ht){
		var id		= isAgm(writeEmbed.arguments, 3, null);
		var n			= 0;
		while(getObject("writeValue_" + n)) n++;
		document.write("<textarea id=\"writeValue_" + n + "\" style=\"display:none;\" cols=\"0\" rows=\"0\">");
		document.write("	<object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"https://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0\" width=\"" + wd + "\" height=\"" + ht + "\" id=\"fmedia_\"" + n + ">");
		document.write("	<param name=\"movie\" value=\"" + url + "\">");
		document.write("	<param name=\"menu\" value=\"false\">");
		document.write("	<param name=\"wmode\" value=\"transparent\" >");
		document.write("	<param name=\"quality\" value=\"high\">");
		document.write("	<param name=\"allowScriptAccess\" value=\"always\">");
		document.write("	<param name=\"FlashVars\" value=\"" + id + "\">");
		document.write("	<embed src=\"" + url + "\" quality=\"high\" pluginspage=\"https://www.macromedia.com/go/getflashplayer\" type=\"application/x-shockwave-flash\" width=\"" + wd + "\" height=\"" + ht + "\" wmode=\"transparent\" allowScriptAccess=\"always\" name=\"ExtInterface\" FlashVars=\"" + id + "\"></embed>");
		document.write("	</object>");
		document.write("</textarea>")

		document.write(getObject("writeValue_" + n).value);
	};

	// µ¿¿µ»ó Ãâ·Â		<script>display_object('<embed src="ÁÖ¼Ò" width="" height=""></embed>');<//script>
function display_object(tag){
	var _object_ = tag;
	document.write(_object_);
}

function imgResize(obj, limitW){//¹Ì¸® º¸±â ÀÌ¹ÌÁö »çÀÌÁî ÀÏ°ýÀûÀ¸·Î
		var limitH	= isAgm(imgResize.arguments, 2, null);
		if(obj){
			var w, h, resizeW, resizeH
			if(obj.width && obj.height){
				w		= obj.width;
				h		= obj.height;
				if(w > h || !limitH){		//¿øº» ÀÌ¹ÌÁî »çÀÌÁî°¡ °¡·Î°¡ ´õ Å©¸é
					resizeW	= w > limitW ? limitW : w;
					resizeH = (resizeW * h) / w;
				}else{			//¹Ý´ëÀÌ¸é
					resizeH = h > limitH ? limitH : h;
					resizeW = (resizeH * w) / h;
				}
			}
			obj.width = resizeW;
			obj.height = resizeH;
		}
	};
//~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~
		//showlayer & hidelayer
//~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~
  function showlayer(lay) {
  			document.getElementById(lay).style.display = document.getElementById(lay).style.display == "none" ? "" : "none";
  		};
  function hidelayer(lay) {
  			document.getElementById(lay).style.display = document.getElementById(lay).style.display == "" ? "none" : "";
  		};
//~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~
		//link onfocus blur
//~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~
function focusblur() {
  for (i = 0; i < document.links.length; i++) {
    var obj = document.links[i];
    if(obj.addEventListener) obj.addEventListener("focus", oneblur, false);
    else if(obj.attachEvent) obj.attachEvent("onfocus", oneblur);
  }
}

function oneblur(e) {
  var evt = e ? e : window.event;

  if(evt.target) evt.target.blur();
  else if(evt.srcElement) evt.srcElement.blur();
};
//~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~
// onload
//~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~
this.onload	= function(){
	//Æ÷Ä¿½º ºí·¯
	focusblur();
	//imgResize(document.getElementById("Resized"), 750);
	if(this.init)
		init();
};
var isMove;
function moveIMG(loc_){
	if(isMove) return;
	else isMove = 1;
	var thum_list	= document.getElementById("thum_list");
	var i = 1, oldNode = thum_list.childNodes, len= oldNode.length;
	if(len < 2) return;
	var target	= thum_list.style.marginLeft ? parseInt(thum_list.style.marginLeft) : 0;
	var width	= 268;
	if(loc_ == "prev"){
		if(target < 0){
			target	+= width;
			thum_list.appendChild(oldNode[0]);
			thum_list.style.marginLeft	= target + "px";
		}
		target	-= width;
	}else{
		if(target > -1){
			target	+= - width;
			thum_list.insertBefore(oldNode[len - 1], oldNode[0]);
			thum_list.style.marginLeft	= target + "px";
		}
		target	-= - width;
	}
	var interval = setInterval(function(){
		var pos			= thum_list.style.marginLeft ? parseInt(thum_list.style.marginLeft) : 0;
		var movePos		= (target - pos) * .27;
		thum_list.style.marginLeft	= pos + movePos  + "px";
		if(Math.abs(movePos) < 1){
			isMove				= 0;
			thum_list.style.marginLeft	= target + "px";
			clearInterval(interval);
		}
	}, 13);
};
var isMove2;
function moveIMG2(loc_){
	if(isMove2) return;
	else isMove2 = 1;
	var thum_list2	= document.getElementById("thum_list2");
	var i = 1, oldNode = thum_list2.childNodes, len= oldNode.length;
	if(len < 2) return;
	var target	= thum_list2.style.marginTop ? parseInt(thum_list2.style.marginTop) : 0;
	var height	= 400;
	if(loc_ == "bottom"){
		if(target < 0){
			target	+= height;
			thum_list2.appendChild(oldNode[0]);
			thum_list2.style.marginTop	= target + "px";
		}
		target	-= height;
	}else{
		if(target > -1){
			target	+= - height;
			thum_list2.insertBefore(oldNode[len - 1], oldNode[0]);
			thum_list2.style.marginTop	= target + "px";
		}
		target	-= - height;
	}
	var interval = setInterval(function(){
		var pos			= thum_list2.style.marginTop ? parseInt(thum_list2.style.marginTop) : 0;
		var movePos		= (target - pos) * .27;
		thum_list2.style.marginTop	= pos + movePos  + "px";
		if(Math.abs(movePos) < 1){
			isMove2				= 0;
			thum_list2.style.marginTop	= target + "px";
			clearInterval(interval);
		}
	}, 13);
};
//~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~
// Png ÀÌ¹ÌÁö
//~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~
function setPng24(obj)
{
obj.width=obj.height=1;
obj.className=obj.className.replace(/\bpng24\b/i,'');
obj.style.filter = "progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+ obj.src +"',sizingMethod='image');"
obj.src='';
return '';
}

// addLoadEvent
function addLoadEvent(func) {
	var oldonload = window.onload;
	if (typeof window.onload != 'function') {
		window.onload = func;
	} else {
		window.onload = function() {
			oldonload();
			func();
		}
	}
}

function isIE6() {
	var version = navigator.appVersion;
	if (version.indexOf("MSIE 6") != -1) {
		return true;
	} else {
		return false;
	}
}
/*
 * Unit PNG fix
 * http://labs.unitinteractive.com/unitpngfix.php
 */
var clear = "/images/clear.gif" //path to clear.gif

pngfix = function() {
	var els = document.getElementsByTagName('*');
	var ip = /\.png/i;
	var i = els.length;
	while (i-- > 0) {
		var el = els[i];
		var es = el.style;
		if (el.src && el.src.match(ip) && !es.filter) {
			es.height = el.height;
			es.width = el.width;
			es.filter = "progid:DXImageTransform.Microsoft.AlphaImageLoader(src='" + el.src + "',sizingMethod='crop')";
			el.src = clear;
		} else {
			var elb = el.currentStyle.backgroundImage;
			if (elb.match(ip)) {
				var path = elb.split('"');
				var rep = (el.currentStyle.backgroundRepeat == 'no-repeat') ? 'crop' : 'scale';
				es.filter = "progid:DXImageTransform.Microsoft.AlphaImageLoader(src='" + path[1] + "',sizingMethod='" + rep + "')";
				es.height = el.clientHeight + 'px';
				es.backgroundImage = 'none';
				var elkids = el.getElementsByTagName('*');
				if (elkids) {
					var j = elkids.length;
					if (el.currentStyle.position != "absolute") es.position = 'static';
					while (j-- > 0) if (!elkids[j].style.position) elkids[j].style.position = "relative";
				}
			}
		}
	}
}

function ie6PngFix() {
	if (isIE6()) {
		window.attachEvent('onload',pngfix);
	} else {
		return false;
	}
}

addLoadEvent(ie6PngFix);

function resizingArea(el){
	var limitWidth = el;
	var obj_contArea = document.getElementById("wrap");
	var ocWidth = obj_contArea.offsetWidth;
	var ocHeight = obj_contArea.offsetHeight;
	var obj_wrap = document.getElementById("visual");
	var obj = document.getElementById("visualArea");
	var cWidth = document.compatMode == "CSS1Compat" ? document.documentElement.clientWidth : document.body.clientWidth; 
	var cHeight = document.compatMode == "CSS1Compat" ? document.documentElement.clientHeight : document.body.clientHeight; 
	var owWidth = obj_wrap.offsetWidth;
	if(owWidth >= limitWidth){
		obj_wrap.style.width = limitWidth + "px";
		obj_wrap.style.marginLeft = cWidth/2 - limitWidth/2 + "px";
		var oWidth = owWidth;
		//alert(obj_wrap.style.width+" "+ owWidth);
	}else{
		obj_wrap.style.width = ocWidth >= cWidth ? ocWidth+"px" : cWidth+"px";
		var oWidth = owWidth;
	}
	obj.style.width = oWidth;
	obj_wrap.style.height = ocHeight >= cHeight ? ocHeight+"px" : cHeight+"px";
	obj.style.marginLeft = oWidth/2 - limitWidth/2 + "px";
}

function bgOverflow(){
	var obj_contArea = document.getElementById("wrap");
	var ocWidth = obj_contArea.offsetWidth;
	var ocHeight = obj_contArea.offsetHeight;
	var obj_wrap = document.getElementById("visual");
	var cWidth = document.compatMode == "CSS1Compat" ? document.documentElement.clientWidth : document.body.clientWidth; 
	var cHeight = document.compatMode == "CSS1Compat" ? document.documentElement.clientHeight : document.body.clientHeight; 
	if(ocWidth >= cWidth){
		obj_wrap.style.width = ocWidth+"px";
	}else{
		obj_wrap.style.width = 100+"%";
	}
	if(ocHeight >= cHeight){
		obj_wrap.style.height = ocHeight+"px";
	}else{
		obj_wrap.style.height = 100+"%";
	}
}

//rollover
function rollover(parentNode){
	var obj = $("img",parentNode);
	$(obj).mouseover(function(){
		var flag = $(this).attr("src").indexOf("_on.gif") > -1 ? true : false;
		if(!flag){
			$(this).attr("src",$(this).attr("src").replace(".gif","_on.gif"));
		}
	});
	$(obj).mouseout(function(){
		var flag = $(this).attr("src").indexOf("_on.gif") > -1 ? true : false;
		if(flag){
			$(this).attr("src",$(this).attr("src").replace("_on.gif",".gif"));
		}
	});
}
//-->
