<!-- ####### ÆË¾÷½ÃÀÛ ####### --> 

// ÄíÅ°¸¦°¡Á®¿Â´Ù.
function getCookie( name ){ 
	var nameOfCookie = name + "="; 
	var x = 0; 
	while ( x <= document.cookie.length ) {
		var y = (x+nameOfCookie.length); 
		if ( document.cookie.substring( x, y ) == nameOfCookie ) { 
		if ( (endOfCookie=document.cookie.indexOf( ";", y )) == -1 ) endOfCookie = document.cookie.length; 
			return unescape( document.cookie.substring( y, endOfCookie ) ); 
		} 

		x = document.cookie.indexOf( " ", x ) + 1; 
		
		if ( x == 0 ) break; 
	} 
	return ""; 
} 

// ÄíÅ°¸¦ »ý¼ºÇÑ´Ù.
function setCookie( name, value, expiredays ){ 
	var todayDate = new Date(); 
	todayDate.setDate( todayDate.getDate() + expiredays ); 
	document.cookie = name + "=" + escape( value ) + "; path=/; expires=" + todayDate.toGMTString() + ";" 
} 

function popup_check(pophtml,popname,width,height,left,top,scrollbars) { 
	if ( getCookie( popname ) != "done" ) { 
	window.open( pophtml, popname, 'scrollbars='+scrollbars+',width='+width+',height='+height+',left='+left+',top='+top); 
	} 
} 

// ¿øÆäÀÌÁö¸¦ ÀÌµ¿ÇÏ¸é¼­ ÆË¾÷À» ´Ý´Â´Ù.
function goto_url(url) { 
	top.opener.location= url;
	top.self.document.focus();
	top.window.close();
}

// ´ÝÀ¸¸é¼­ ÇÏ·çµ¿¾È Ã¢ ¾Ê¿­±â 
function cookieCheck(cid){ 
	setCookie( cid, "done" , 1); // index ÀÇ ÆË¾÷ ÀÌ¸§°ú ÀÏÄ¡ 
	top.window.close(); 
} 

// ´Ý±â¸¸ ÇÏ±â 
function closeWin() { 
	top.self.close();
}

<!-- ####### ÆË¾÷³¡ ####### --> 


<!-- ####### ¿¤¸®º£ÀÌÅÍº£³Ê ½ÃÀÛ ####### -->

self.onError=null;
currentX = currentY = 0; 
whichIt = null; 
lastScrollX = 0; lastScrollY = 0;
NS = (document.layers) ? 1 : 0;
IE = (document.all) ? 1: 0;

function heartBeat(elid,twidth) {
	
	elidobj = document.getElementById(elid);
	
	// ¸¸ÀÏ twidth ÀÌ 0 ÀÌ ¾Æ´Ï¸é Áß¾Ó Á¤·ÄÀ» ÇØÁØ´Ù.
	if(twidth) {
		docWidth = document.body.clientWidth; // Update document width
		xpos = (docWidth / 2) + (twidth/2); // Áß¾ÓÁ¤·ÄÀÏ°æ¿ì. " + twidth Àº Å×ÀÌºí Å©±â / 2 "
		elidobj.style.pixelLeft = xpos;
	}
	
	if(IE) { 
		diffY = document.body.scrollTop; 
		diffX = 0; 
	}
	if(NS) { diffY = self.pageYOffset; diffX = self.pageXOffset; }
	if(diffY != lastScrollY) {
		percent = .1 * (diffY - lastScrollY);
		if(percent > 0) percent = Math.ceil(percent);
		else percent = Math.floor(percent);
		if(IE) elidobj.style.pixelTop += percent;
		if(NS) elidobj.top += percent; 
		lastScrollY = lastScrollY + percent;
	}
	if(diffX != lastScrollX) {
		percent = .1 * (diffX - lastScrollX);
		if(percent > 0) percent = Math.ceil(percent);
		else percent = Math.floor(percent);
		if(IE) elidobj.style.pixelLeft += percent;
		if(NS) elidobj.top += percent;
		lastScrollY = lastScrollY + percent;
	} 
} 

function elbanner(elid,twidth) {
	window.setInterval("heartBeat('"+elid+"',"+twidth+")",1);
}


// if(NS || IE) action = window.setInterval("heartBeat()",1);	// ½ºÅ©·Ñº£³Ê½ÃÀÛ

<!-- ####### ¿¤¸®º£ÀÌÅÍº£³Ê ³¡ ####### -->



<!-- ####### ÇÃ·¡½¬ Å×µÎ¸® ¾ø¾Ö±â ½ÃÀÛ ####### -->
//////////////////////////////////////////////////////////////////////////////////////////
//  ³»  ¿ë : ActiveX ÆÐÄ¡ÀÇ È¸ÇÇ¸¦ À§ÇÑ ±âº»ÇÔ¼ö
//  ÀÛ¼ºÀÏ : 2006-2-22
//  ÀÛ¼ºÀÚ : ¹Ú°æÁ¦
//////////////////////////////////////////////////////////////////////////////////////////
function create_object(str_property_fn)
{// object¸¦ ¸¸µå´Â ÇÔ¼ö
	var obj = "<object";
						
	if( str_property_fn["id"] )	// ¾ÆÀÌµð
		obj += " id='" + str_property_fn["id"] + "'";
	if( str_property_fn["name"] )	// ÀÌ¸§
		obj += " name='" + str_property_fn["name"] + "'";
	if( str_property_fn["width"] )	// ³ÐÀÌ
		obj += " width='" + str_property_fn["width"] + "'";
	if( str_property_fn["height"] )	// ³ôÀÌ
		obj += " height='" + str_property_fn["height"] + "'";
	if( str_property_fn["classid"] )	// Å¬·¡½ºID
		obj += " classid='" + str_property_fn["classid"] + "'";
	if( str_property_fn["codebase"] )	// ±âº»Á¤º¸
		obj += " codebase='" + str_property_fn["codebase"] + "'";
	if( str_property_fn["type"] )	
		obj += " type='" + str_property_fn["type"] + "'";
	if( str_property_fn["standby"] )	
		obj += " standby='" + str_property_fn["standby"] + "'";
	if( str_property_fn["bgcolor"] )	
		obj += " bgcolor='" + str_property_fn["bgcolor"] + "'";

	return obj + ">";
}

function close_object(str_object_fn)
{// object¸¦ ´Ý´Â ÇÔ¼ö
	return str_object_fn + "\n</object>";
}

function create_param(str_name_fn, str_value_fn)
{// ¼Ó¼ºÀ» ¸¸µå´Â ÇÔ¼ö
	return "\n<param name='" + str_name_fn + "' value='" + str_value_fn + "'>";
}

function create_embed(str_property_fn,flg_base_fn)
{// embed¸¦ ¸¸µå´Â ÇÔ¼ö
	var obj = "\n<embed";
						
	if( str_property_fn["id"] )	// ¾ÆÀÌµð
		obj += " id='" + str_property_fn["id"] + "'";
	if( str_property_fn["name"] )	// ÀÌ¸§
		obj += " name='" + str_property_fn["name"] + "'";
	if( str_property_fn["width"] )	// ³ÐÀÌ
		obj += " width='" + str_property_fn["width"] + "'";
	if( str_property_fn["height"] )	// ³ôÀÌ
		obj += " height='" + str_property_fn["height"] + "'";					
	if( str_property_fn["src"] )	// ¼Ò½º À§Ä¡
		obj += " src='" + str_property_fn["src"] + "'";
	if( str_property_fn["quality"] )
		obj += " quality='" + str_property_fn["quality"] + "'";
	if( str_property_fn["menu"] )
		obj += " menu='" + str_property_fn["menu"] + "'";
	if( str_property_fn["type"] )
		obj += " type='" + str_property_fn["type"] + "'";						
	if( str_property_fn["scale"] )
		obj += " scale='" + str_property_fn["scale"] + "'";						
	if( str_property_fn["pluginspage"] )
		obj += " pluginspage='" + str_property_fn["pluginspage"] + "'";
		
	return obj + "></embed>";
}
//////////////////////////////////////////////////////////////////////////////////////////

//////////////////////////////////////////////////////////////////////////////////////////
//  ³»  ¿ë : ActiveX ÆÐÄ¡ÀÇ È¸ÇÇ¸¦ À§ÇÑ ±âº»ÇÔ¼öÀ» ÀÀ¿ëÇÑ ÇÔ¼ö
//  ÀÛ¼ºÀÏ : 2006-2-22
//  ÀÛ¼ºÀÚ : ¹Ú°æÁ¦
//////////////////////////////////////////////////////////////////////////////////////////

// »ç¿ë¹ý :	base_flash("804px","100px","/main-menu.swf")
function base_flash(width,height,src)
{
	var obj_flash = new Array();
	var obj_embed = new Array();
	var str;
	
	obj_flash["width"] = width;
	obj_flash["height"] = height;
	obj_flash["classid"] = "clsid:D27CDB6E-AE6D-11cf-96B8-444553540000";
	obj_flash["codebase"] = "http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0";

	obj_embed["width"] = width;
	obj_embed["height"] = height;
	obj_embed["src"] = src;
	obj_embed["quality"] = "high";
	obj_embed["menu"] = "false";
	obj_embed["pluginspage"] = "http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash";
	obj_embed["type"] = "application/x-shockwave-flash";
	obj_embed["scale"] = "exactfit";

	str = create_object(obj_flash);
	str += create_param("movie",src);
	str += create_param("menu","false");
	str += create_param("quality","high");
	str += create_param("wmode","transparent");
	str += create_param("scale","exactfit");
	str += create_embed(obj_embed);
	
	document.write(close_object(str));
}

// »ç¿ë¹ý : base_wm_player("player","214px","128px","movie/origami_sicaf.wmv")
function base_wm_player(id,width,height,src)
{
	var obj_wm = new Array();
	var str;
	
	obj_wm["id"] = id;
	obj_wm["width"] = width;
	obj_wm["height"] = height;
	obj_wm["classid"] = "clsid:22D6F312-B0F6-11D0-94AB-0080C74C7E95";
	obj_wm["type"] = "application/x-oleobject";
	obj_wm["standby"] = "Loading.... Microsoft Windows Media Player";
	
	str = create_object(obj_wm);
	str += create_param("FileName",src);
	str += create_param("ShowControls","false");
	str += create_param("EnableContextMenu","false");
	str += create_param("Mute","false");
	str += create_param("Loop","true");
	
	document.write(close_object(str));
}


// Ãâ·Â¿¹Á¦ <script type="text/javascript">base_flash("900px","677px","/flash/total.swf")</script>

<!-- ####### ÇÃ·¡½¬ Å×µÎ¸® ¾ø¾Ö±â ³¡ ####### -->











