<!--
    //document.write(document.cookie);
    
    function WriteSwfJs (flashfile,sparam,nwidth,nheight) {
        var surl = flashfile + sparam;
        document.write("<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0' width='"+nwidth+"' height='"+nheight+"'>");
        document.write("<param name='movie' value='"+surl+"'>");
        document.write("<param name='wmode' value='transparent'>");
        document.write("<param name='quality' value='high'>");
        document.write("<embed src='"+surl+"' wmode=transparent quality='high' pluginspage='http://www.macromedia.com/go/getflashplayer' type='application/x-shockwave-flash' width='"+nwidth+"' height='"+nheight+"'></embed>");
        document.write("</object>");
    }
    
    function getCookie(name){
    	var arg = name + "=";
    	var alen = arg.length;
    	var clen = document.cookie.length;
    	var i = 0;
    
    	while(i< clen){
    		var j = i + alen;
    		if(document.cookie.substring(i,j)==arg){
    			var end = document.cookie.indexOf(";",j);
    			if(end == -1)
    				end = document.cookie.length;
    			return unescape(document.cookie.substring(j,end));
    		}
    		i=document.cookie.indexOf(" ",i)+1;
    		if (i==0) break;
    	}
    	return null;
    }
    
    function SetCookie( name, value, expiredays ) {
    	var todayDate = new Date();
    	todayDate.setTime(todayDate.getTime() + 3600000*24*expiredays);
    	document.cookie = name + "=" + escape( value ) + "; path=/; expires=" + todayDate.toGMTString() + ";"
    }
    
    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 send_memo2(id) {
        void(window.open('/mydesk/note/sendForm.html?targetUserId=' + id + '&popup=1','noteSendPopup','width=364,height=340,statusbar=no,toolbar=no,scrollbars=yes'))
    }
    
    function send_memo(id) {
        void(window.open('/mydesk/note/sendForm.html?targetUserId=' + id + '&popup=1','noteSendPopup','width=364,height=340,statusbar=no,toolbar=no,scrollbars=yes'))
    }
    
    function member_info(id) {
        void(window.open('/mydesk/memo/view_info2.php?user_id=' + id,'view_info','width=600,height=470,statusbar=no,toolbar=no,scrollbars=yes'))
    }
    
    function send_memo_multi(id) {
        void(window.open('/mydesk/memo/view_info.php?exec=multi&user_id=' + id,'view_info','width=600,height=440,statusbar=no,toolbar=no,scrollbars=yes'))
    }
    
    function send_memo_club(club_no) {
        void(window.open('/mydesk/memo/view_info.php?exec=club&club_no=' + club_no,'view_info','width=600,height=440,statusbar=no,toolbar=no,scrollbars=yes'))
    }
    
    function ch_input() {
    	var Win = window.open("/easyEditor/easyEditor.htm","","toolbar=no,location=no,directories=no,status=yes,scrollbars=yes,width=600,height=400,resizable=yes")	
    	Win.window.focus();	
    }
    
    function preview(url) {
    	var url = "http://" + url;
    
    	window.open(url);
    }
    
    function smile()
    {
        smile_window = window.open('/portal/face_icon.php','smile','width=300,height=320');
    } 
    
    function htmlEditor() {
    	var Win = window.open("/portal/htmlEditor/Editor.htm","","toolbar=no,location=no,directories=no,status=yes,scrollbars=no,width=658,height=400,resizable=yes")	
    	Win.window.focus();	
    }
    
    function openWin(mypage,myname,w,h,scroll){
    	var winl = (screen.width-w)/2;
    	var wint = (screen.height-h)/2;
    	var settings ='height='+h+',';
    	settings +='width='+w+',';
    	settings +='top='+wint+',';
    	settings +='left='+winl+',';
    	settings +='scrollbars='+scroll+',';
    	settings +='resizable=yes';
    	win=window.open(mypage,myname,settings);
    	if(parseInt(navigator.appVersion) >= 4){win.window.focus();}
    }
    
    function openModalWin(url, title, width, height) {
    	showModalDialog(url,title, 'dialogWidth=' + width + 'px;dialogHeight=' + height + 'px;border=thin');
    }
    
    function go_club(no) {
    	location.href = "/portal/club/club/club_main.php?club_no=" + no;
    }
    
    function openChat() {
    	openWin("/portal/chat/hanchat11/hanchat.htm","chat",800,600,"no");
    }
    
    function openImage(myimg){ 
    	logo=new Image();
    	logo.src=myimg;
    	var w = logo.width;
    	var h = logo.height;
    	remote = window.open("/portal/getImage.php?src="+myimg,"","width="+w+", height="+h+", scrollbars=no, resizable=no,top=0,left=0");
    	remote.focus(); 
    }
    
    var is_sid = getCookie("EODID")? true:false;
// -->

// light box add , by yun jong ho 080618
var SLB_cnt = 0;

function SLB(url, type)
{
	var a = document.getElementById('SLB_film');
	var b = document.getElementById('SLB_content');
	var c = document.getElementById('SLB_loading');
	if(url) {
		a.style.top = 0;
		a.style.left = 0;
		a.style.display = "";
		if (document.documentElement.scrollHeight > document.body.scrollHeight) {
			a.style.height = document.documentElement.scrollHeight + 'px';
		} else { 
			a.style.height = document.body.scrollHeight + 'px';
		}
		c.style.display = "block";
		SLB_setCenter(c,true);
		if(type == 'image') {
			b.innerHTML="<img src=" + url + " class='SLB_center' onload='SLB_setCenter(this);' />";
			if(arguments[2]) a.onclick = function () { SLB() };
			if(arguments[3]) b.innerHTML += "<div class='SLB_caption'>"+ arguments[3] +"</div>";;
		} else if (type == 'iframe') {
			b.innerHTML="<iframe id='SLB_iframe' src=" + url + " width="+ arguments[2] +" height="+ arguments[3] +" class='SLB_center' marginwidth='0' marginheight='0' frameborder='0' vspace='0' hspace='0' onload='tryReHeight("+arguments[5]+");'/></iframe>";
			if(arguments[4]) {
				b.innerHTML += "<div class='SLB_close' onclick='SLB();' title='´Ý±â'>close</div>";
			}
			b.onclick = ''; b.firstChild.style.cursor = 'default';
		} else if (type='html'){
			b.innerHTML = url;
			SLB_setCenter(b.firstChild);
			if(arguments[2]) b.onclick = '';
		}
		hideSelect();
	} else {
		a.onclick = '';
		a.style.display = "none";
		a.style.height = '100%';
		a.style.width = '100%';
		b.innerHTML = "";
		b.onclick = function () { SLB() };
		c.style.display = "none";
		showSelect();
		SLB_cnt = 0;
	}
}

function SLB_setCenter(obj) {
	if (obj) {
		var h = (window.innerHeight || self.innerHeight || document.documentElement.clientHeight || document.body.clientHeight);
		var w = (window.innerWidth || self.innerWidth || document.documentElement.clientWidth || document.body.clientWidth);
		var l = ((window.pageXOffset || document.documentElement.scrollLeft || document.body.scrollLeft) + ((w-(obj.width||parseInt(obj.style.width)||obj.offsetWidth))/2));
		var t = ((window.pageYOffset || document.documentElement.scrollTop || document.body.scrollTop) + ((h-(obj.height||parseInt(obj.style.height)||obj.offsetHeight))/2));
		if((obj.width||parseInt(obj.style.width)||obj.offsetWidth) >= w) l = 0;
		if((obj.height||parseInt(obj.style.height)||obj.offsetHeight) >= h) t = (window.pageYOffset || document.documentElement.scrollTop || document.body.scrollTop);
		document.getElementById('SLB_content').style.left = l + "px";
		if(SLB_cnt == 0) {
			document.getElementById('SLB_content').style.top = t + "px";
			if(document.getElementById('SLB_content').offsetHeight >= h - 20) {
				SLB_cnt ++;
			}
			if(obj.nextSibling && (obj.nextSibling.className == 'SLB_close' || obj.nextSibling.className == 'SLB_caption')) {
				obj.nextSibling.style.display = 'block';
				if((t - (window.pageYOffset || document.documentElement.scrollTop || document.body.scrollTop))>(obj.nextSibling.offsetHeight/2)) {
					document.getElementById('SLB_content').style.top = parseInt(document.getElementById('SLB_content').style.top) - (obj.nextSibling.offsetHeight/2) + "px";
				}
			}
		}
		obj.style.visibility = 'visible';
		if(!arguments[1]) {
			document.getElementById('SLB_loading').style.display = "none";
		} else {
			obj.style.left = l + "px";
			obj.style.top = t + "px";
		}
	}
}

function hideSelect() {
	var windows = window.frames.length;
	var selects = document.getElementsByTagName("SELECT");
	for (i=0;i < selects.length ;i++ )
	{
		selects[i].style.visibility = "hidden";
	}
	if (windows > 0) {
		for(i=0; i < windows; i++) {
			try {
				var selects = window.frames[i].document.getElementsByTagName("SELECT");
				for (j=0;j<selects.length ;j++ )
				{
					selects[j].style.visibility = "hidden";
				}
			} catch (e) {}
		}
	}
}

function showSelect() {
	var windows = window.frames.length;
	var selects = document.getElementsByTagName("SELECT");
	for (i=0;i < selects.length ;i++ )
	{
		selects[i].style.visibility = "visible";
	}
	if (windows > 0) {
		for(i=0; i < windows; i++) {
			try {
				var selects = window.frames[i].document.getElementsByTagName("SELECT");
				for (j=0;j<selects.length ;j++ )
				{
					selects[j].style.visibility = "visible";
				}
			} catch (e) {}
		}
	}
}

function tryReHeight(sign) {
	var getFFVersion=navigator.userAgent.substring(navigator.userAgent.indexOf("Firefox")).split("/")[1];
	var FFextraHeight=parseFloat(getFFVersion)>=0.1? 16 : 0;
	var currentfr=document.getElementById('SLB_iframe');
	if(sign == true) {
		try {
			if (currentfr.contentDocument && currentfr.contentDocument.body.offsetHeight) {
				setIframeSize(currentfr.contentDocument.body.offsetHeight+FFextraHeight);
			} else if (currentfr.Document && currentfr.Document.body.scrollHeight) {
				setIframeSize(currentfr.Document.body.scrollHeight);
			}
		}catch(e) { }
	} else {
		SLB_setCenter(currentfr);
	}
}

function setIframeSize(h, w) {
	SLB_cnt = 0;
	var ifr = currentfr=document.getElementById('SLB_iframe');
	if (ifr) {
		if(w) {
			ifr.width = w;
		}
		if(h) {
			ifr.height = h;
		}
		SLB_setCenter(ifr);
	}
}

var prevOnScroll = window.onscroll;
window.onscroll = function () {
    try {
    	if(prevOnScroll != undefined) prevOnScroll();
    	if (document.documentElement.scrollHeight > document.body.scrollHeight) {
    		document.getElementById('SLB_film').style.height = document.documentElement.scrollHeight + 'px';
    	} else { 
    		document.getElementById('SLB_film').style.height = document.body.scrollHeight + 'px';
    	}
    	document.getElementById('SLB_film').style.width = document.body.scrollWidth + 'px';
    	SLB_setCenter(document.getElementById('SLB_content').firstChild);
	}catch(e) { }
}

var prevOnResize = window.onresize;
window.onresize = function () {
    
    try {
    	if(prevOnResize != undefined) prevOnResize();
    	if (document.documentElement.scrollHeight > document.body.scrollHeight) {
    		document.getElementById('SLB_film').style.height = document.documentElement.scrollHeight + 'px';
    	} else { 
    		document.getElementById('SLB_film').style.height = document.body.scrollHeight + 'px';
    	}
    	document.getElementById('SLB_film').style.width = document.body.offsetWidth + 'px';
    	SLB_setCenter(document.getElementById('SLB_content').firstChild);
	}catch(e) { }
}