//ÆË¾÷¼Ò½º
function view1(url,w,h,scrollbar)
{window.open(url,"","menu=no,width="+w+",height="+h+",scrollbars="+scrollbar+"")}

function WinPopup01(mypage,myname,w,h,pos,myL,myT,scrol){//WinPopup01('mypage','myname','w','h','center','myL','myT','scrol')
if(pos=="random"){myleft=(screen.width)?Math.floor(Math.random()*(screen.width-w)):100;mytop=(screen.height)?Math.floor(Math.random()*((screen.height-h)-75)):100;}
if(pos=="center"){myleft=(screen.width)?(screen.width-w)/2:100;mytop=(screen.height)?(screen.height-h)/2:100;}
else if((pos!='center' && pos!="random") || pos==null){myleft=myL;mytop=myT}
settings="width=" + w + ",height=" + h + ",top=" + mytop + ",left=" + myleft + ",scrollbars="+scrol+",location=no,directories=no,status=no,menubar=no,toolbar=no,resizable=no";win=window.open(mypage,myname,settings);
win.focus();}


 
 //Áß¾Ó
var win=null;
function view01(mypage,myname,w,h,pos,infocus){
if(pos=="random"){myleft=(screen.width)?Math.floor(Math.random()*(screen.width-w)):100;mytop=(screen.height)?Math.floor(Math.random()*((screen.height-h)-75)):100;}
if(pos=="center"){myleft=(screen.width)?(screen.width-w)/2:100;mytop=(screen.height)?(screen.height-h)/2:100;}
else if((pos!='center' && pos!="random") || pos==null){myleft=0;mytop=20}
settings="width=" + w + ",height=" + h + ",top=" + mytop + ",left=" + myleft + ",scrollbars=no,location=no,directories=no,status=no,menubar=no,toolbar=no,resizable=no";win=window.open(mypage,myname,settings);
win.focus();}


//ÀÌ¹ÌÁö À§Ä¡
var imgObj = new Image();
function showImgWin(imgName) {
  imgObj.src = imgName;
  setTimeout("createImgWin(imgObj)", 100);
}
function createImgWin(imgObj) {
  if (! imgObj.complete) {
    setTimeout("createImgWin(imgObj)", 100);
    return;
  }
  imageWin = window.open("", "imageWin",
    "width=" + imgObj.width + ",height=" + imgObj.height);
  imageWin.document.write("<html><body style='margin:0'>");
  imageWin.document.write("<a href=javascript:window.close()><img src='" + imgObj.src + "' border=0></a>");
  imageWin.document.write("</body><html>");
  imageWin.document.title = imgObj.src;
}



function showImgWinCen(imageRef){
    var x,y,w,h,loadingMsg;
    w=400;h=300;
    x=Math.floor( (screen.availWidth-(w+12))/2);y=Math.floor( (screen.availHeight-(h+30))/2+20);

    loadingMsg="<table width=100% height=100%><tr><td valign=center align=center><font size='2' color='#ff6600' face='termanal'>NOW LODDING...</font></td></tr></table>";

    with( window.open("","",'height='+h+',width='+w+',top='+y+',left='+x+',scrollbars=no,resizable=no') ) {
        document.write(
        "<body topmargin=0 rightmargin=0 bottommargin=0 leftmargin=0>",
        loadingMsg,
        "<img src=\""+imageRef+"\" style='cursor:hand' hspace=0 vspace=0 border=0 onmousedown=\"window.close();\" onload=\"document.title=this.src;document.body.removeChild(document.body.children[0]);window.resizeTo(this.width+12,this.height+30);window.moveTo(Math.floor( (screen.availWidth-(this.width+12))/2),Math.floor( (screen.availHeight-(this.height+30))/2 ));\"><br>",
        "</body>");
        focus();
    }
}




//png
function setPng24(obj) {//<img class="png24" src="http://frame_se_15.png" width="37" height="347" alt="">
    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 ''; 
}

//about/info
function about_galllery1_hidden() { //È¸»ç¾È³» - ·¹ÀÌ¾î°¨Ãß±â
    document.all['L_about_gallery1'].style.visibility = "hidden";

}
function about_galllery1_visible() { //È¸»ç¾È³» - ·¹ÀÌ¾îº¸ÀÌ±â
    document.all['L_about_gallery1'].style.visibility = "visible";
	document.all['L_about_gallery2'].style.visibility = "hidden";

}
function about_galllery2_hidden() { //È¸»ç¾È³» - ·¹ÀÌ¾î°¨Ãß±â
    document.all['L_about_gallery2'].style.visibility = "hidden";

}
function about_galllery2_visible() { //È¸»ç¾È³» - ·¹ÀÌ¾îº¸ÀÌ±â
    document.all['L_about_gallery2'].style.visibility = "visible";
	document.all['L_about_gallery1'].style.visibility = "hidden";

}





//·Ñ¿À¹ö
// overmode °ª
//     ¾øÀ¸¸é ÀÏ¹ÝÀûÀÎ ·Ñ¿À¹ö
//     gray_color : Èæ¹é»óÅÂ¿¡¼­ ¿À¹öÇÏ¸é Ä®¶ó·Î. ¿øº»ÀÌ¹ÌÁö°¡ Ä®¶óÀÏ °Í.
//     color_gray : Ä®¶ó»óÅÂ¿¡¼­ ¿À¹öÇÏ¸é Èæ¹éÀ¸·Î. ¿øº»ÀÌ¹ÌÁö°¡ Ä®¶óÀÏ °Í.
//     overlay : ¼­·Î °ãÃÄÁö¸ç º¯È¯
// 	   oversrc : º¯È¯µÉ ÀÌ¹ÌÁöÀÇ URL
var gony_rollover_preImage = new Array;

function gony_rollover(){
	var i, len = document.images.length;
	var obj, overmode, oversrc;
	
	for(i = 0; i < len; i++){
		obj = document.images[i];
		overmode = obj.getAttribute('overmode');
		oversrc = obj.getAttribute('oversrc');

		switch(overmode){
			case 'gray_color':
				obj.style.filter = 'gray';
				obj.onmouseover = new Function("this.style.filter=''");
				obj.onmouseout = new Function("this.style.filter='gray'");
				break;
			case 'color_gray':
				obj.onmouseover = new Function("this.style.filter='gray'");
				obj.onmouseout = new Function("this.style.filter=''");
				break;
			case 'overlay':
				if(oversrc){
obj.style.filter = "blendTrans(duration=0.2)";//
obj.onmouseover = new Function("this.filters.blendTrans.Apply(); this.src='"+oversrc+"'; this.filters.blendTrans.Play()");
obj.onmouseout = new Function("this.filters.blendTrans.Apply(); this.src='"+obj.src+"'; this.filters.blendTrans.Play()");
gony_rollover_preImage[gony_rollover_preImage.length] = oversrc;
				}
				break;
			default:
				if(oversrc){
					obj.onmouseover = new Function("this.src='"+oversrc+"'");
					obj.onmouseout = new Function("this.src='"+obj.src+"'");
					gony_rollover_preImage[gony_rollover_preImage.length] = oversrc;
				}
		}
	}
	gony_preload();
}
function gony_preload(){
	var i, len = gony_rollover_preImage.length;
	var image_object = new Image;

	for(i = 0; i < len; i++) image_object.src = gony_rollover_preImage[i];
}

function mainf_submit(){
	if (document.logfrm.sUserID.value==''){
		alert('¾ÆÀÌµð¸¦ ÀÔ·ÂÇØ ÁÖ¼¼¿ä'); document.logfrm.sUserID.focus();return false;
	}
	if (document.logfrm.sPassword.value==''){
		alert('ÆÐ½º¿öµå¸¦ ÀÔ·ÂÇØ ÁÖ¼¼¿ä'); document.logfrm.sPassword.focus();return false;
	}
	logfrm.submit();
}

function mainEnterCheck() {
	if(event.keyCode ==13) {
		mainf_submit();
	}
}

	function Viewimage(src) {
		var imgObj = new Image();
		imgObj.src = src;
		var wopt = "status=no,resizable=no";
		if(screen.width < imgObj.width || screen.height < imgObj.height){
			wopt += ",scrollbars=yes,width=100,height=100";
		}
		else{
			wopt += ",scrollbars=no";
			wopt += ",width=" + imgObj.width;
			wopt += ",height=" + imgObj.height;
		}
		var wbody = "<head><title>»çÁø º¸±â</title>";
		wbody += "<script language='javascript'>";
		wbody += "function finalResize(){";
		wbody += "  var oBody=document.body;";
		wbody += "  var oImg=document.images[0];";
		wbody += "  var xdiff=oImg.width-oBody.clientWidth;";
		wbody += "  var ydiff=oImg.height-oBody.clientHeight;";
		wbody += "if(xdiff > screen.width)xdiff = screen.width-110;";
		wbody += "if(ydiff > screen.height)ydiff = screen.height-120;";
		wbody += "  window.moveBy(0,0);";
		wbody += "  window.resizeBy(xdiff,ydiff);";
		wbody += "}";
		wbody += "</"+"script>";
		wbody += "</head>";
		wbody += "<body onLoad='finalResize()' style='margin:0;cursor:hand' onclick=javascript:window.close()>";
		wbody += "<a href='javascript:window.close()'><img src='" + src + "' border=0></a>";
		wbody += "</body>";
		winResult = window.open("about:blank","",wopt);
		winResult.document.open("text/html", "replace");
		winResult.document.write(wbody);
		winResult.document.close();
		return;
	}

window.onload = gony_rollover;

function printPage(selyear) {
	window.open("print/print.asp?selyear="+selyear,"_print","scrollbars=yes,toolbar=no,width=780,height=700,top=20,left=100");
}

//µå¸²À§¹ö ·Ñ¿À¹ö½ÃÀÛ
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];}
}
//µå¸²À§¹ö ·Ñ¿À¹ö³¡