<!--

	//ÀÎÀÚ °ª
	function isAgm(agm, len, val){
		var agmL = agm.length - 1;
		return agmL < len ? val : agm[len];
	};

	//»õÃ¢
	function newWin(path, name, w, h){
		var x			= isAgm(newWin.arguments, 4, 0);
		var y			= isAgm(newWin.arguments, 5, 0);
		var documentMode = navigator.appName == "Opera" ? document.body : isCompatMode();
		if(isNaN(x)) x = (documentMode.clientWidth / 2) - (w / 2) + documentMode.scrollLeft;
		if(isNaN(y)) y = (documentMode.clientHeight / 2) - (h / 2) + documentMode.scrollTop;
		var win		= null;
		var proper	= "status=no,toolbar=no,resizable=no,scrollbars=no, menubar=no,width=" + w + ",height=" + h + ",top=" + y + ",left=" + x;
		win			= window.open(path, name, proper);
		win.focus();
	};

	//ºê¶ó¿ìÁ® º° ¾ÆÀÌµð °´Ã¼ ½ºÅ¸ÀÏ
	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 flashVar	= isAgm(writeEmbed.arguments, 3, null);
		var n				= 0;
		while(getObject("flashMedia_" + n)) n++;
		var strEmbed	=	"<object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0\" width=\"" + wd + "\" height=\"" + ht + "\" id=\"flashMedia_" + n + "\">"+
									"	<param name=\"movie\" value=\"" + url + "\">"+
									"	<param name=\"menu\" value=\"false\">"+
									"	<param name=\"wmode\" value=\"transparent\">"+
									"	<param name=\"quality\" value=\"high\">"+
									"	<param name=\"allowScriptAccess\" value=\"always\">"+
									"	<param name=\"FlashVars\" value=\"" + flashVar + "\">"+
									"	<embed src=\"" + url + "\" quality=\"high\" wmode=\"transparent\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" type=\"application/x-shockwave-flash\" width=\"" + wd + "\" height=\"" + ht + "\" allowScriptAccess=\"always\" name=\"ExtInterface\" FlashVars=\"" + flashVar + "\"></embed>"+
									"</object>"
		document.write(strEmbed);
	};

	//compatMode
	function isCompatMode(){
		if(navigator.appName == "Opera"){
			return document.body;
		}else{
			return (document.compatMode && document.compatMode != "BackCompat") ? document.documentElement : document.body;
		}
	};


// µ¿¿µ»ó Ãâ·Â		<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;
		}
	};

//-->
