	function MM_preloadImages() { //v3.0
	  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
		var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
		if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
	}

	//---------------------------------------------------
	//maxlength ¸¸Å­ ¿Å±â¸é ´ÙÀ½À¸·Î ÀÌµ¿ÇÏ±â....
	//---------------------------------------------------
	function nextFocus(sFormName,sNow,sNext) {
		var sForm = 'document.'+ sFormName +'.'
		var oNow = eval(sForm + sNow);
	
		if (typeof oNow == 'object') {
			if ( oNow.value.length == oNow.maxLength) {
				var oNext = eval(sForm + sNext);
	
				if ((typeof oNext) == 'object')
					oNext.focus();
			}
		}
	}	
 
function imgOver(imgs) {
	imgs.src = imgs.src.replace("off.gif", "on.gif");
}
function imgOut(imgs) {
	imgs.src = imgs.src.replace("on.gif", "off.gif");
}

// 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 '';
}

function MM_showHideLayers() { //v9.0
  var i,p,v,obj,args=MM_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) 
  with (document) if (getElementById && ((obj=getElementById(args[i]))!=null)) { v=args[i+2];
    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v=='hide')?'hidden':v; }
    obj.visibility=v; }
}


//flash
function showFlashObject(id,width,height,movie,flashvars,style,wmode,bDisplay)
{
	if ( wmode == undefined )
		wmode = "transparent";

	var s = '<object id="'+id+'" classid="clsid:D27CDB6E-AE6D-11CF-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=10,0,22,87" width="'+width+'" height="'+height+'" style="'+style+'"><param name="wmode" value="'+wmode+'"/><param name="movie" value="'+movie+'"/><param name="menu" value="false"/><param name="quality" value="high"/><param name="allowfullscreen" value="true"/><param name="allowScriptAccess" value="always"/><param name="play" value="true"/><param name="flashvars" value="'+flashvars+'"/><param name="base" value="."><embed base="." swLiveConnect="true" flashvars="'+flashvars+'" src="'+movie+'" quality="high" bgcolor="" width="'+width+'" height="'+height+'" name="'+id+'" align="left" allowScriptAccess="always" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" allowfullscreen="true"></embed></object>';

	if (bDisplay == undefined || bDisplay)
		document.write(s);
	else
		return s;
}

function getSubMenuIndex(idx)
{
	left.getSubMenuIndex(idx)
}

function getSubMenuPageIndex()
{
	var idx = 0; // ÀÓ½Ã·Î»ç¿ë
	return idx
}
//rollover


// Tab Menu
function initTabMenu(tabContainerID) {
	var tabContainer = document.getElementById(tabContainerID);
	var tabAnchor = tabContainer.getElementsByTagName("a");
	var i = 0;

	for(i=0; i<tabAnchor.length; i++) {
		if (tabAnchor.item(i).className == "tab")
			thismenu = tabAnchor.item(i);
		else
			continue;

		thismenu.container = tabContainer;
		thismenu.targetEl = document.getElementById(tabAnchor.item(i).href.split("#")[1]);
		thismenu.targetEl.style.display = "none";
		thismenu.imgEl = thismenu.getElementsByTagName("img").item(0);
		thismenu.onclick = function tabMenuClick() {
			currentmenu = this.container.current;
			if (currentmenu == this)
				return false;

			if (currentmenu) {
				currentmenu.targetEl.style.display = "none";
				if (currentmenu.imgEl) {
					currentmenu.imgEl.src = currentmenu.imgEl.src.replace("_on.gif", ".gif");
				} else {
					currentmenu.className = currentmenu.className.replace(" on", "");
				}
			}
			this.targetEl.style.display = "";
			if (this.imgEl) {
				this.imgEl.src = this.imgEl.src.replace(".gif", "_on.gif");
			} else {
				this.className += " on";
			}
			this.container.current = this;

			return false;
		};

		if (!thismenu.container.first)
			thismenu.container.first = thismenu;
	}
	if (tabContainer.first)
		tabContainer.first.onclick();
}

//¿ìÆí¹øÈ£°Ë»ö popup
function popPost() {
	var option = "status=no,height=580,width=400,resizable=no,left=0,top=0,screenX=0,screenY=0,scrollbars=no";
	commonPopWin = window.open('league_pop_post.html', '', option);
	commonPopWin.focus();
} 

//popup
function loadPopup(add,wid,hei)
{
		window.open(add, 'Admin','width=' + wid + 'px, height=' + hei +'px ,resizalbe=no, menubar=no, toolbar=no, directories=1, scrollbars=no');
}

// initTabMenuAcc /* 2011-03-14Ãß°¡ */
function initTabMenuAcc(tabContainerID) {
	var tabContainer = document.getElementById(tabContainerID);
	var tabAnchor = tabContainer.getElementsByTagName("a");
	var i = 0;

	for(i=0; i<tabAnchor.length; i++) {
		if (tabAnchor.item(i).className == "tab")
			thismenu = tabAnchor.item(i);
		else
			continue;

		thismenu.container = tabContainer;
		thismenu.targetEl = document.getElementById(tabAnchor.item(i).href.split("#")[1]);
		thismenu.targetEl.style.display = "none";
		thismenu.imgEl = thismenu.getElementsByTagName("img").item(0);
		thismenu.onclick = function tabMenuClick() {
			currentmenu = this.container.current;
			if (currentmenu == this)
				return false;

			if (currentmenu) {
				currentmenu.targetEl.style.display = "none";
				if (currentmenu.imgEl) {
					currentmenu.imgEl.src = currentmenu.imgEl.src.replace("_on.gif", ".gif");
					currentmenu.className = currentmenu.className.replace(" on", "");
				} else {
					currentmenu.className = currentmenu.className.replace(" on", "");
				}
			}
			this.targetEl.style.display = "";
			if (this.imgEl) {
				this.imgEl.src = this.imgEl.src.replace(".gif", "_on.gif");
				this.className += " on";
			} else {
				this.className += " on";
			}
			this.container.current = this;

			return false;
		};
	}
}

//gnb
function gnbSub(tg){
	for(var i=1;i<6;i++){
		if(tg == i){
			document.getElementById('gnb_sub_0'+i).style.display = 'block';
		}else{
			document.getElementById('gnb_sub_0'+i).style.display = 'none';
		}
	}
}


function bluring(){
if(event.srcElement.tagName=="A"||event.srcElement.tagName=="IMG") document.body.focus();
}
document.onfocusin=bluring;



	//----------------------------------------------------------------	
	// ÄíÅ° °¡Á®¿À±â
	//----------------------------------------------------------------	
	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() + ";"
	}
