	
	//========= ÇÃ·¡½Ã function ===========
	function flash_fn(width, height, url, value){
		if (window.navigator.userAgent.indexOf("MSIE") != -1) {		
			document.write("<object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' codebase='http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0' width='"+width+"' height='"+height+"' align='middle'>");
			document.write("	<param name='bgcolor' value='#ffffff' /> ");
			document.write("	<param name='movie'	value='"+url+"' /> ");
			document.write("	<param name='quality' value='high' /> ");
			document.write("	<param name='wmode'	value='transparent' /> ");
			document.write("	<param name='allowScriptAccess' value='always' /> ");
			document.write("	<param name='flashVars'	value='"+value+"' /> ");
			document.write("</object>");			
		} else {
			document.write("<embed src='"+url+"' wmode='transparent' quality='high' width='"+width+"' height='"+height+"' align='middle'  allowScriptAccess='always' swfLiveConnect='true' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer' flashVars='"+value+"'>");
			document.write("</embed>");
		}
	}
	
	//========= ÇÃ·¡½Ã function ===========
	function flash_fn_lotto(width, height, url, value){	
		if (window.navigator.userAgent.indexOf("MSIE") != -1) {
			document.write("<object id='FlashID' classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' width='"+width+"' height='"+height+"' align='center'>");
			document.write("	<param name='movie' value='"+url+"'>");
			document.write("	<param name='quality' value='high'>");
			document.write("	<param name='wmode' value='opaque'>");
			document.write("	<param name='swfversion' value='9.0.45.0'>");
			document.write("	<param name='expressinstall' value='Scripts/expressInstall.swf'>");
			document.write("	<object type='application/x-shockwave-flash' data='"+url+"' width='925' height='560'>");
			document.write("		<param name='quality' value='high'>");
			document.write("		<param name='wmode' value='opaque'>");
			document.write("		<param name='swfversion' value='9.0.45.0'>");
			document.write("		<param name='expressinstall' value='Scripts/expressInstall.swf'>");
			document.write("		<div>");
			document.write("			<h4>Content on this page requires a newer version of Adobe Flash Player.</h4>");
			document.write("			<p><a href='http://www.adobe.com/go/getflashplayer'><img src='http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif' alt='Get Adobe Flash player' width='112' height='33'></a></p>");
			document.write("		</div>");
			document.write("	</object>");
			document.write("</object>");	
		}
	}

	
	//========= 20060912 µ¿¿µ»ó ½ÇÇàÇÏ±â =========
	function wmv_fn(width, height, url){
		document.write("<object id='player' classid='CLSID:22D6f312-B0F6-11D0-94AB-0080C74C7E95' width='"+width+"' height='"+height+"' align='middle'>");
		document.write("	<param name='AutoStart' value='false' /> ");
		document.write("	<param name='TransparentAtStart' value='True' /> ");
		document.write("	<param name='ShowControls' value='0' /> ");
		document.write("	<param name='ShowDisplay' value='0' /> ");
		document.write("	<param name='ShowStatusBar' value='0' /> ");
		document.write("	<param name='AutoSize' value='0' /> ");
		document.write("	<param name='AnimationAtStart' value='false' /> ");
		document.write("	<param name='PlayCount' value='0' /> ");
		document.write("	<param name='FileName' value='"+url+"' /> ");
		document.write("</object>");
	}

	//========= 20071211 µ¿¿µ»ó =========
	function wmv_fn_main(width, height){
		document.write("<object id='player' classid='CLSID:22D6f312-B0F6-11D0-94AB-0080C74C7E95' ");
		document.write("	width='"+width+"' height='"+height+"' align='middle' />");
		document.write("	<param name='TransparentAtStart' value='True' /> ");
		document.write("	<param name='ShowControls' value='0' /> ");
		document.write("	<param name='ShowDisplay' value='0' /> ");
		document.write("	<param name='ShowStatusBar' value='0' /> ");
		document.write("	<param name='AutoSize' value='0' /> ");
		document.write("	<param name='AnimationAtStart' value='false' /> ");
		document.write("	<param name='PlayCount' value='0' /> ");
		document.write("</object>");
	}

	//========= 20071211 µ¿¿µ»ó ½ÇÇàÇÏ±â =========
	function wmv_fn_main_play(url){
		player.FileName = url; 
	}
	
	// Áö·Ú ¼¼ÀÏ(°Ô¸±¶ó ¼¼ÀÏ ¾Æ·§ÂÊ) 
	function ftn_openWin(openUrl){ 
		document.location.href = openUrl;
	}
	
	// Áö·Ú ¼¼ÀÏ(°Ô¸±¶ó ¼¼ÀÏ ¾Æ·§ÂÊ)  
	function ftn_openBomb(){ 
		document.location.href="/main/FO_Banner.jsp?sno=13470&disp=2&store_space_sno=240&store_cd=-1";
	}

	//°ø¹é Á¦°Å 
	function trim(str){
		var i,j = 0;
		var objstr;
		
		for(i=0; i< str.length; i++){
			if(str.charAt(i) == ' ') j=j + 1;
			else break;
		}
		str = str.substring(j, str.length - j + 1);

		i,j = 0;
		for(i = str.length-1;i>=0; i--){
			if(str.charAt(i) == ' ') j=j + 1;
			else break;
		}
		return str.substring(0, str.length - j);
	}
	
	function showmenu(id){
		$("#store"+id).show();
	}
	function nonemenu(id){
		$("#store"+id).hide();
	}


