function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

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];}}
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}
function JS_view_Obj(objhtml) { 
    document.write(objhtml); 
} 
function displayFlash(_imgPath_,_imgWidth_,_imgHeight_) {
	var _object_ = "";
	_object_ = '<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="' + _imgWidth_ + '" height="' + _imgHeight_ + '">';
	_object_ += '<param name="movie" value="' + _imgPath_ + '">';
	_object_ += '<param name="quality" value="high">';
	_object_ += '<embed src="' + _imgPath_ + '" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="' + _imgWidth_ + '" height="' + _imgHeight_ + '"></embed>';
	_object_ += '</object>';
	
	document.write(_object_);
}
function displayFlashT(_imgPath_,_imgWidth_,_imgHeight_) {
	var _object_ = "";
	_object_ = '<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="' + _imgWidth_ + '" height="' + _imgHeight_ + '">';
	_object_ += '<param name="movie" value="' + _imgPath_ + '">';
	_object_ += '<param name="quality" value="high">';
	_object_ += '<param name="wmode" value="transparent">';
	_object_ += '<embed src="' + _imgPath_ + '" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="' + _imgWidth_ + '" height="' + _imgHeight_ + '" wmode="transparent"></embed>';
	_object_ += '</object>';
	
	document.write(_object_);
}
function displayMediaGuide(_mediaPath_,_mediaWidth_) {
        var _embed_ = "";
        _embed_ = '<embed src="' + _mediaPath_ + '" width="' + _mediaWidth_ + '">';
        _embed_ += '</embed>';

        document.write(_embed_);
}
function PrintEmbed(EmbID) 
{ 
    document.write(document.getElementById(EmbID).value); 
}
function resizeMe(widthValue,heightValue){

	if( isXPSP2() ) heightValue		+=20;

	window.resizeTo(widthValue,heightValue);
	return;
}
function isXPSP2(){

	var info = window.clientInformation;
	var reg1 = /[^A-Z0-9]MSIE[ ]+6.0[^A-Z0-9]/i;
	var reg2 = /[^A-Z0-9]WINDOWS[ ]+NT[ ]+5.1[^A-Z0-9]/i;

	if( (info.appMinorVersion.replace(/\s/g,"").toUpperCase().indexOf(";SP2;")>=0) && (reg1.test(info.userAgent)==true) && (reg2.test(info.userAgent)==true) ){
		return true;
	}

	return false;

}
<!-- [Á¡¼± ¾ø¾Ö±â] ½ÃÀÛ ###########################################################################-->
function allblur() {
	if(event.srcElement.tagName=="A"|| event.srcElement.tagName=="IMG") document.body.focus(); 
}
document.onfocusin = allblur;
<!-- [Á¡¼± ¾ø¾Ö±â] ³¡ ###########################################################################-->

<!--¸Þ´º ÇÃ·¡½Ã ÀÌµ¿ ½ºÅ©¸³Æ® -->
contextPath = "/new";
	function MoveMenu(url) {
		url = contextPath + url;
		window.location.href = url;
	}
	function MoveMenuRemote(url,type) {
		if(type ==3) {
		    url = contextPath + url;
    		window.open(url,'sub2','');
    	}else if(type==4) {
			 url = contextPath + url;
			window.open(url,'rr','top=50,left=50,width=670,height=350');
		}else if(type==5) {
			 url = contextPath + url;
			if(userID){
				window.location.href = url;
			 //alert(url);
			}else{
				if(confirm("È¸¿ø¸¸ »ç¿ëÇÏ½Ç ¼ö ÀÖ½À´Ï´Ù. ¸ÕÀú ·Î±×ÀÎ ÇØ ÁÖ½Ê½Ã¿À.")) window.location.href = "/member/login.php?pageLocation="+encodeURIComponent(url);
				else return;
			}
		}else{
    		window.open(url,'comm','');
    	}
	}	
	function goMenu(sid) {
		var goUrl = "";
		var linkType = 1; 
		switch (sid) {
			case "home": 
				goUrl = "/main/";
			break;
			case "login":
				goUrl = "/member/login.php?pageLocation="+p_location;
			break;
			case "join":
				goUrl = "/member/prejoin.php";
			break;
			case "logout":
			    if(confirm("·Î±×¾Æ¿ôÇÕ´Ï´Ù. ½ÇÇàÇÏ½Ã°Ú½À´Ï±î?")) {
    				goUrl = "/member/logout.php";
    			}else {
    			    return ;
    			}
			break;
			case "members":
				goUrl = "/member/join.php?mode=update";
			break;
			case "adminlogout":
				goUrl = "/admin/logout.php";
			break;
			case "admin":
				goUrl = "/admin/index.php";
			break;
			case "contactus":
				goUrl = "mailto:";
				linkType =2;
			break;
			case "sitemap":
				goUrl = "/main/sitemap.php";
			break;
			
			case "1": // ¼Ò°³
				goUrl = "/about/about_01.php";
			break;
			case "1_1": 
				goUrl = "/about/about_01.php";
			break;
			case "1_2": 
				goUrl = "/about/about_02.php";
			break;
			case "1_3": 
				goUrl = "/about/about_0301.php";
			break;
			case "1_4": 
				goUrl = "/about/about_04.php";
			break;
			case "1_5": 
				goUrl = "/about/about_05.php";
			break;
			
			case "2": // ¼Ò½Ä
				goUrl = "/board/list.php?boardName=notice";
			break;
			case "2_1": 
				goUrl = "/board/list.php?boardName=notice";
			break;
			case "2_2": 
				goUrl = "/board/list.php?boardName=mem_act";
			break;
			case "2_3": 
				goUrl = "/board/list.php?boardName=mem_news";
			break;
			case "2_4": 
				goUrl = "/news/news_04.php";
			break;
			
			case "3": // »ó´ã½Ç
				goUrl = "/board/list.php?boardName=consult03";
			break;
			case "3_1": 
				goUrl = "/board/list.php?boardName=consult01";
			break;
			case "3_2": 
				goUrl = "/board/list.php?boardName=consult03";
			break;
			
			case "4": // Ä¿¹Â´ÏÆ¼
				goUrl = "/board/list.php?boardName=freeboard";
			break;
			case "4_1": 
				goUrl = "/board/list.php?boardName=freeboard";
			break;
			case "4_2": 
				goUrl = "/board/list.php?boardName=photogallery";
			break;
			case "4_3": 
				goUrl = "/board/list.php?boardName=travels";
			break;
			case "4_4": 
				goUrl = "/board/list.php?boardName=info_travels";
			break;
			case "4_5": 
				goUrl = "/community/community_05.php";
			break;
			case "4_6": 
				goUrl = "/board/list.php?boardName=market";
			break;
			case "4_7": 
				goUrl = "/community/community_03.php";
			break;
			case "4_8": 
				goUrl = "/board/list.php?boardName=info_culture";
			break;
			case "4_9": 
				goUrl = "/community/community_04.php";
			break;
			case "4_10": 
				goUrl = "/community/community_11.php";
			break;
			
			case "5": // ÀÚ·á½Ç
				goUrl = "/board/list.php?boardName=doc_data";
			break;
			case "5_1": 
				goUrl = "/board/list.php?boardName=doc_data";
			break;
			case "5_2": 
				goUrl = "/board/list.php?boardName=photo_data";
			break;
			case "5_3": 
				goUrl = "/board/list.php?boardName=vod_data";
			break;
			case "5_4": 
				goUrl = "/board/list.php?boardName=song_data";
			break;
			case "5_5": 
				goUrl = "/board/list.php?boardName=know_data";
			break;
		}
		if(goUrl==""){
			alert("ÁØºñÁßÀÔ´Ï´Ù.");
		}else{
			if(linkType==1 ) {
				MoveMenu(goUrl);
			}else {
				MoveMenuRemote(goUrl,linkType);
			}
		}
	}
