//ÇÃ·¡½ÃÆäÀÌÁö ÀÌµ¿

function GoPage(code) {

	//INFO
	if ( !code )											{	window.location = "../main/index.html"; } 
	else if ( code == "main" )					{	window.location = "../main/main.php"; } //¸ÞÀÎ
	else if ( code == "adm" )					{	window.location = "../adm/"; }
	else if ( code == "admin" )				{	window.open('../adm/','admin','scrollbars=no,width=800,height=600,top=0,left=0') } //°ü¸®ÀÚ »õÃ¢
	else if ( code == "jap_main" )			{	window.location = "../jap_main/main.php"; }
	else if ( code == "sitemap" )				{	window.location = "../main/as_sitemap.php"; } //»çÀÌÆ®¸Ê
	else if ( code == "privacy" )				{	window.location = "../main/privacy.php"; } //°³ÀÎÁ¤º¸º¸È£Á¤Ã¥
	else if ( code == "dontmail" )			{	window.location = "../main/dontmail.php"; } //ÀÌ¸ÞÀÏ¹«´Ü¼öÁý°ÅºÎ

	//MEMBER
	else if ( code == "login" )					{	window.location = "../bbs/login.php"; } //·Î±×ÀÎ
	else if ( code == "logout" )				{	window.location = "../bbs/logout.php"; }
	else if ( code == "searchid" )			{	window.open('../cnMember/idpass.php','idpass','scrollbars=no,width=800,height=600,top=0,left=0') } //¾ÆÀÌµðÃ£±â
	else if ( code == "join" )					{	window.location = "../bbs/register.php"; } //È¸¿ø°¡ÀÔ
	else if ( code == "leave" )					{	window.location = "../bbs/member_confirm.php?url=member_leave.php"; } //È¸¿øÅ»Åð
	else if ( code == "modify" )				{	window.location = "../bbs/member_confirm.php?url=register_form.php"; } //Á¤º¸¼öÁ¤
	else if ( code == "privacy" )				{	window.location = "../main/privacy.php"; } //°³ÀÎÁ¤º¸º¸È£Á¤Ã¥
	else if ( code == "agreement" )		{	window.location = "../cnMember/agreement.php"; } //ÀÌ¿ë¾à°ü
	else if ( code == "namecheck" )		{	window.location = "../cnMember/namecheck.php"; } //½Ç¸íÀÎÁõ
	
	else if ( code == "0_1" )					{	window.location = "../bbs/register.php"; }
	else if ( code == "0_2" )					{	window.open('../bbs/password_lost.php','idpass','scrollbars=no,width=600,height=300,top=0,left=0') }
	else if ( code == "0_3" )					{	window.location = "../bbs/member_confirm.php?url=register_form.php"; }
	else if ( code == "0_4" )					{	window.location = "../bbs/member_confirm.php?url=member_leave.php"; }
	else if ( code == "0_5" )					{	window.location = "../bbs/login.php"; }
	else if ( code == "0_6" )					{	window.location = "../bbs/logout.php"; }
	else if ( code == "0_7" )					{	window.location = "../main/sub0_7.php"; }
	else if ( code == "0_8" )					{	window.location = "../main/sub0_8.php"; }
	else if ( code == "0_9" )					{	window.location = "../main/as_sitemap.php"; }
	else if ( code == "0_10" )					{	window.location = "../main/sub0_10.php"; }

	//¼Ò°³
	else if ( code == "1_1" )						{	window.location = "../main/as_sub_1_1.php"; }
	else if ( code == "1_2" )					{	window.location = "../main/as_sub_1_2.php"; }
	else if ( code == "1_3" )					{	window.location = "../main/as_sub_1_3.php"; }
	else if ( code == "1_4" )					{	window.location = "../main/as_sub_1_4.php"; }
	else if ( code == "1_5" )					{	window.location = "../main/as_stat_join.php"; }
	else if ( code == "1_6" )					{	window.location = "../bbs/board.php?bo_table=as_member"; }
	else if ( code == "1_7" )					{	window.location = "../bbs/board.php?bo_table=as_member_intro"; }
	else if ( code == "1_8" )					{	window.location = "../main/as_sub_1_6.php"; }
	
	
	//ÀÇ·á±â°ü
	else if ( code == "2_1" )					{	window.location = "../main/as_sub_2_1.php"; }
	else if ( code == "2_2" )					{	window.location = "../main/as_sub_2_2.php"; }
	else if ( code == "2_3" )			     	{	window.location = "../main/as_sub_2_3.php"; }
	else if ( code == "2_4" )		            {	window.location = "../main/as_sub_2_4.php"; }
	else if ( code == "2_5" )					{	window.location = "../main/as_sub_2_5.php"; }
	else if ( code == "2_6" )			     	{	window.location = "../main/as_sub_2_6.php"; }
	else if ( code == "2_7" )		            {	window.location = "../main/as_sub_2_7.php"; }
	else if ( code == "2_8" )		            {	window.location = "../main/as_sub_2_8.php"; }



	//Á¶ÇÕ¿øÈ°µ¿
	else if ( code == "3_1" )					{	window.location = "../main/as_sub_3_1.php"; }
	else if ( code == "3_2" )					{	window.location = "../bbs/board.php?bo_table=as_club"; }
	else if ( code == "3_3" )					{	window.location = "../main/as_sub_3_3.php"; }
	else if ( code == "3_4" )					{	window.location = "../bbs/board.php?bo_table=as_com"; }
	else if ( code == "3_5" )					{	window.location = "../bbs/board.php?bo_table=as_blog"; }
  


	//¼Ò¸ðÀÓ
	else if ( code == "4_1" )					{	window.location = "../club/club_index.php"; }


	//Ä¿¹Â´ÏÆ¼
	else if ( code == "5_1" )					{	window.location = "../bbs/board.php?bo_table=news"; }
	else if ( code == "5_2" )					{	window.location = "../bbs/board.php?bo_table=as_news"; }
	else if ( code == "5_3" )					{	window.location = "../bbs/board.php?bo_table=bbs"; }
	else if ( code == "5_4" )					{	window.location = "../bbs/board.php?bo_table=health"; }
	else if ( code == "5_5" )					{	window.location = "../bbs/board.php?bo_table=data"; }
	else if ( code == "5_6" )					{	window.location = "../bbs/board.php?bo_table=photo"; }
	else if ( code == "5_7" )					{	window.location = "../bbs/board.php?bo_table=movie"; }


}

function bluring()//ÀÍ½º Àü¿ë
{
if(event.srcElement.tagName=="A"||event.srcElement.tagName=="IMG")document.body.focus();
}
document.onfocusin=bluring

//¸Þ´º ·Ñ¿À¹ö START
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_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_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];}
}
//¸Þ´º ·Ñ¿À¹ö END

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

//»õÃ¢ ¸µÅ© START
function GoLayer()
{ 
        var y;
        if ( top.frames.length )
        if ( bNetscape4plus ) {
                document["divMenu"].top = top.pageYOffset + 280;//À¥¿¡ ¶ç¿üÀ»¶§ ½ÃÀÛÁ¡
                document["divMenu"].visibility = "visible";
        }
        else if ( bExplorer4plus ) {
                divMenu.style.top = document.body.scrollTop + 280;//À¥¿¡ ¶ç¿üÀ»¶§ ½ÃÀÛÁ¡
                divMenu.style.visibility = "visible";
        }
        CheckUIElements();
        return true;
}

function open_win(val, wname, wopt, menu) {
	var newopt = "", wHeight = 0, wWidth = 0;
	if (wopt != undefined) {
		var woptlist = wopt.replace(/ /g, "").split(",");
		for (var i in woptlist) {
			if (woptlist[i].match(/^height=/i)) {
				wHeight = parseInt(woptlist[i].substr(7),10);
				if (!isNaN(wHeight)) newopt += "top=" + Math.floor((screen.availHeight - wHeight) / 2) + ",";
			}
			if (woptlist[i].match(/^width=/i)) {
				wWidth = parseInt(woptlist[i].substr(6),10);
				if (!isNaN(wWidth)) newopt += "left=" + Math.floor((screen.availWidth - wWidth) / 2) + ",";
			}
		}
	}

	url = val + "?" + menu;
	window.open(url, wname, newopt + wopt); 
} 
//»õÃ¢ ¸µÅ© END

//°Ë»ö ¹è°æ START
function setClearSch() {
QLink	   = "";
var textbox = document.search.src_value;
textbox.style.backgroundImage="";
}
//°Ë»ö ¹è°æ END

//LOgin ID BG START
function setClearLgName() {
QLink	   = "";
var textbox = document.loginForm.user_id;
textbox.style.backgroundImage="";
}
//LOgin ID BG END

//LOgin PW BG START
function setClearLgPwd() {
QLink	   = "";
var textbox = document.loginForm.user_pw;
textbox.style.backgroundImage="";
}
//LOgin PW BG END

//´ñ±Û ÀÌ¸§ ¹è°æ START
function setClearCmName() {
QLink	   = "";
var textbox = document.comment_write.w_name;
textbox.style.backgroundImage="";
}
//´ñ±Û ÀÌ¸§ ¹è°æ END

//´ñ±Û ÆÐ½º¿öµå ¹è°æ START
function setClearCmPwd() {
QLink	   = "";
var textbox = document.comment_write.w_pwd;
textbox.style.backgroundImage="";
}
//´ñ±Û ÆÐ½º¿öµå ¹è°æ END

//¼ýÀÚÃ¼Å© START1
function Numberchk() {
    if (event.keyCode < 45 || event.keyCode > 57) event.returnValue = false;
}

function num_only( Ev ){
    var evCode = ( window.netscape ) ? Ev.which : event.keyCode ;
    /* FFÀÏ °æ¿ì Ev.which °ªÀ»,
        IEÀ» °æ¿ì event.keyCode °ªÀ» evCode¿¡ ´ëÀÔ */
    if ( ! ( evCode == 0 || evCode == 8 || ( evCode > 47 && evCode < 58 ) ) ) {
    /* ´­·¯Áø Å° ÄÚµå°¡ ¼ýÀÚ°¡ ¾Æ´Ñ °æ¿ì
        ( '0'Àº FF¿¡¼­ Tab Å°,
          '8'Àº FF¿¡¼­ BackSpace°¡ ¸ÔÈ÷Áö ¾Ê¾Æ »ðÀÔ)    */
        if ( window.netscape ) {        // FFÀÏ °æ¿ì
            Ev.preventDefault() ;        // ÀÌº¥Æ® ¹«È¿È­
        } else {                                // IEÀÏ °æ¿ì
            event.returnValue=false;    // ÀÌº¥Æ® ¹«È¿È­
        }
    }
}
//¼ýÀÚÃ¼Å© END

//¼ýÀÚ °¡°ÝÇ¥½Ã START
function vComma(obj) {
    var str    = "" + obj.value.replace(/,/gi,''); // ÄÞ¸¶ Á¦°Å
    var regx    = new RegExp(/(-?\d+)(\d{3})/);
    var bExists = str.indexOf(".",0);
    var strArr  = str.split('.');
    while(regx.test(strArr[0])){
        strArr[0] = strArr[0].replace(regx,"$1,$2");
    }
    if (bExists > -1)
        obj.value = strArr[0] + "." + strArr[1];
    else
        obj.value = strArr[0];
}
//¼ýÀÚ °¡°ÝÇ¥½Ã END

//ÀÌ¹ÌÁö ½½¶óÀÌµå ºä¾î START
var maxW,maxH,fromX,fromY,toX,toY,adjX,adjY,zBox,zStep=0,zLink,zNew;

function zoomBox(evt,zlink,maxw,maxh,tox,toy)
{
        if (arguments.length > 2)
        {
                zNew=1;
        }
        scrollH = (window.pageYOffset!=null)?window.pageYOffset:document.body.scrollTop;
        maxW = maxw?maxw:window.innerWidth?innerWidth:document.body.clientWidth;
        maxH = maxh?maxh:window.innerHeight?innerHeight:document.body.clientHeight;
        toX = tox?tox:0;
        toY = (toy?toy:0)+scrollH;
        fromX = evt.pageX?evt.pageX:evt.clientX;
        fromY = (evt.pageY?evt.pageY:evt.clientY)+(document.all?scrollH:0);
        adjX = toX+evt.screenX-fromX;
        adjY = toY+evt.screenY-fromY;

        if (document.createElement && document.body.appendChild && !zBox)
        {
                zBox=document.createElement("div");
                zBox.style.position = "absolute";
                document.body.appendChild(zBox);
        }
        else if (document.all && !zBox) 
        {
                document.all[document.all.length-1].outerHTML+='<div id="zBoxDiv" style="position:absolute"></div>';
                zBox=document.all.zBoxDiv;
        }
        else if (document.layers && !zBox)
        {
                zBox = new Layer(maxW);
                zBox.style=zBox;
        }

        zLink = zlink;
        doZoom();
}

function doZoom() {
        zStep+=1;
        zPct=(10-zStep)/10
        if (document.layers)
        {
                zBox.moveTo(toX+zPct*(fromX-toX),toY+zPct*(fromY-toY));
                zBox.document.open();
                zBox.document.write("<table width='"+maxW*(1-zPct)+"' height="+maxH*(1-zPct)+" border=2 cellspacing=0><tr><td></td></tr></table>");
                zBox.document.close();
        }
        else 
        {
                zBox.style.border = "2px solid #999999"; // Å×µÎ¸® ±½±âpx solid Å×µÎ¸® »ö 
                zBox.style.left = toX+zPct*(fromX-toX);
                zBox.style.top = toY+zPct*(fromY-toY);
                zBox.style.width = maxW*(1-zPct);
                zBox.style.height = maxH*(1-zPct);
        }

        zBox.style.visibility = "visible";
        
        if (zStep < 10)
        {
                setTimeout("doZoom("+fromX+","+fromY+","+toX+","+toY+")",30);
        }
        else
        {
                zBox.style.visibility='hidden';
                zStep=0;
                if (zLink && !zNew)
                {
                        location.href=zLink.href;
                }
                else if (zLink && zNew)
                {
                        var w=window.open(zLink.href,'book_mdf','width='+maxW+',height='+maxH+',left='+adjX+',top='+adjY+',scrollbars=yes');
                        zNew=null;
                }
        }
}
//ÀÌ¹ÌÁö ½½¶óÀÌµå END

//ÀÌ¹ÌÁö ¿øº» ¿ÀÇÂ START
function openImageLayerCenter(title,source){
    var imgElm=new Image();imgElm.src=source;
    var imageLayer=document.createElement("div");
    imageLayer.innerHTML="&nbsp;"+title;

    if(imgElm.complete){
        imageLayer.style.cssText="z-index;99999;position:absolute;top:"+(document.body.clientHeight-imgElm.height)/2+";left:"+(document.body.clientWidth-imgElm.width)/2+";width:"+imgElm.width+";height:"+imgElm.height+";cursor:hand;border:1px solid #555555;padding:4 4 4 4;font:normal 12px lucida console;color:white;background-color:555555;";
    }else{
        imageLayer.style.cssText="z-index;99999;position:absolute;top:-4000;left:-4000;cursor:hand;border:1px solid deeppink;padding:0 0 0 0;font:normal 12px lucida console;color:white;background-color:555555;";
    }

    with(imageLayer.appendChild(document.createElement("div")))
    {
        style.cssText="padding:1 1 1 1;background-color:888888;";
        with(appendChild(document.createElement("div")))
        {
            style.cssText="padding:5;background-color:white;";
            with(appendChild(document.createElement("img")))
            {
                src=source;
                if(!imgElm.complete){
                    onload=function(){//resize
                        with(this.parentNode.parentNode.parentNode.style){
                            left=(document.body.clientWidth-this.width)/2;
                            top=(document.body.clientHeight-this.height)/2;
                            width=this.width;
                            height=this.height;
                        }
                    };//onload
                }

                onclick=function(){//remove
                    var win=this.parentNode.parentNode.parentNode;
                    win.parentNode.removeChild(win);
                };//onclick
            }//with
        }//with
    }//with
    document.body.appendChild(imageLayer);
}
//ÀÌ¹ÌÁö ¿øº» ¿ÀÇÂ END

//ÆË¾÷Ã¢ Á¤Áß¾Ó ¿ÀÇÂ START
function newWindow(a_str_windowURL, a_str_windowName, a_int_windowWidth, a_int_windowHeight, a_bool_scrollbars, a_bool_resizable, a_bool_menubar, a_bool_toolbar, a_bool_addressbar, a_bool_statusbar, a_bool_fullscreen) {
  var int_windowLeft = (screen.width - a_int_windowWidth) / 2;
  var int_windowTop = (screen.height - a_int_windowHeight) / 2;
  var str_windowProperties = 'height=' + a_int_windowHeight + ',width=' + a_int_windowWidth + ',top=' + int_windowTop + ',left=' + int_windowLeft + ',scrollbars=' + a_bool_scrollbars + ',resizable=' + a_bool_resizable + ',menubar=' + a_bool_menubar + ',toolbar=' + a_bool_toolbar + ',location=' + a_bool_addressbar + ',statusbar=' + a_bool_statusbar + ',fullscreen=' + a_bool_fullscreen + '';
  var obj_window = window.open(a_str_windowURL, a_str_windowName, str_windowProperties)
    if (parseInt(navigator.appVersion) >= 4) {
      obj_window.window.focus();
    }
}
//ÆË¾÷Ã¢ Á¤Áß¾Ó ¿ÀÇÂ END

function showCalendar(y, m) {
    var text = '<table>\n<tr><td colspan=7 style="text-align:center">';
    text += '<span onclick="showCalendar('+(y-1)+','+m+')"> Y- </span>';
    text += '<span onclick="showCalendar('+(m==1?(y-1)+','+12:y+','+(m-1))+')"> M- </span>';
    text += '[' + y + '/' + ((m < 10) ? ('0' + m) : m) + ']';
    text += '<span onclick="showCalendar('+(m==12?(y+1)+','+1:y+','+(m+1))+')"> M+ </span>';
    text += '<span onclick="showCalendar('+(y+1)+','+m+')"> Y+ </span>';
    text += '</td>';

    var d1 = (y+(y-y%4)/4-(y-y%100)/100+(y-y%400)/400
          +m*2+(m*5-m*5%9)/9-(m<3?y%4||y%100==0&&y%400?2:3:4))%7;
    for (i = 0; i < 42; i++) {
        if (i%7==0) text += '</tr>\n<tr>';
        if (i < d1 || i >= d1+(m*9-m*9%8)/8%2+(m==2?y%4||y%100==0&&y%400?28:29:30))
            text += '<td> </td>';
        else
            text += '<td' + (i%7 ? '' : ' style="color:red;"') + '>' + (i+1-d1) + '</td>';
    }
    document.getElementById('calendarDiv').innerHTML = text + '</tr>\n</table>';
} 


<!--
var bNetscape4plus = (navigator.appName == "Netscape" && navigator.appVersion.substring(0,1) >= "4");
var bExplorer4plus = (navigator.appName == "Microsoft Internet Explorer" && navigator.appVersion.substring(0,1) >= "4");
function CheckUIElements(){
	var yMenuFrom, yMenuTo, yButtonFrom, yButtonTo, yOffset, timeoutNextCheck;
	
	if ( bNetscape4plus ) { 
		yMenuFrom = document["divMenu"].top;
		yMenuTo = top.pageYOffset + 62;
	} else if ( bExplorer4plus ) {
		yMenuFrom = parseInt (divMenu.style.top, 10);
		yMenuTo = document.body.scrollTop+300;

		
		// 2006-10-30 9:41¿ÀÈÄ ÇöÅÂ Ãß°¡
		var yMaxTo = document.body.scrollHeight - parseInt(divMenu.offsetHeight) - 1;
		if(yMaxTo < yMenuTo) yMenuTo = yMaxTo;
		// ÇöÅÂÃß°¡ ³¡
	}
	
	timeoutNextCheck = 500;

	if ( Math.abs (yButtonFrom - (yMenuTo + 152)) < 6 && yButtonTo < yButtonFrom ) {
		setTimeout ("CheckUIElements()", timeoutNextCheck);
		return;
	}


	if ( yButtonFrom != yButtonTo ) {
		yOffset = Math.ceil( Math.abs( yButtonTo - yButtonFrom ) / 10 );
		if ( yButtonTo < yButtonFrom ) yOffset = -yOffset;
		
		if ( bNetscape4plus ) 		document["divLinkButton"].top += yOffset;
		else if ( bExplorer4plus ) divLinkButton.style.top = parseInt (divLinkButton.style.top, 10) + yOffset;
		
		timeoutNextCheck = 10;
	}
	if ( yMenuFrom != yMenuTo ) {
		yOffset = Math.ceil( Math.abs( yMenuTo - yMenuFrom ) / 20 );
		
		if ( yMenuTo < yMenuFrom ) yOffset = -yOffset;
		
		if ( bNetscape4plus ) 		document["divMenu"].top += yOffset;
		else if ( bExplorer4plus ) divMenu.style.top = parseInt (divMenu.style.top, 10) + yOffset;
		
		timeoutNextCheck = 10;
	}

	setTimeout ("CheckUIElements()", timeoutNextCheck);
}

function OnLoad() {
	var y;
	if ( top.frames.length ) {
		if ( bNetscape4plus ) {
		document["divMenu"].top = top.pageYOffset + 500;
		document["divMenu"].visibility = "visible";
		}
	} else if ( bExplorer4plus ) {
		divMenu.style.top = document.body.scrollTop + 500;
		divMenu.style.visibility = "visible";
	}
	
	CheckUIElements();
	return true;
}

//½ºÅ©·Ñ¹Ù µû¶ó´Ù´Ï´Â ¸Þ´º
function IEZN_quick_menu_simple(input_obj,move_top){
    this.timeId     = new Array();
    this.div_obj = new Array();
    try{
        this.input_obj = input_obj;
        this.input_obj.style.display = 'none';
    }catch(e){}
    var IEZN_quick_menu_counter;
    IEZN_quick_menu_counter = (typeof(IEZN_quick_menu_counter)=='undefined')? 0:IEZN_quick_menu_counter++;
    this.counter = IEZN_quick_menu_counter;
    this.div_obj_top = parseInt(this.input_obj.style.top);
    this.div_obj_left = parseInt(this.input_obj.style.left);    
    this.div_obj_max_move_top = (move_top)? move_top:this.div_obj_top;//browser top offset 
    this.move();
}

IEZN_quick_menu_simple.prototype = {    
    move : function(){
        this.div_obj = document.createElement("div");
        this.div_obj.id='izqm1'+this.counter;
        this.div_obj.style.position = 'absolute';
        this.div_obj.style.top=this.div_obj_top+'px';
        this.div_obj.style.padding='0px';
        this.div_obj.style.left=this.div_obj_left+'px';
        this.div_obj.style.backgroundColor=(this.input_obj.style.backgroundColor)? this.input_obj.style.backgroundColor:'transparent';
        this.div_obj.style.overflow='hidden';
        this.div_obj.style.textOverflow='ellipsis';
        this.div_obj.style.width=this.input_obj.style.width;
        this.div_obj.style.border=this.input_obj.style.border;
        this.div_obj.style.padding=this.input_obj.style.padding;
        try{
            document.body.appendChild(this.div_obj);            
            this.div_obj.innerHTML = this.input_obj.innerHTML;
            this.move_menu();
        }catch(e){alert(e)}
    },
    move_menu : function (){
        var obj = this;
        this.div_obj_start = parseInt(this.div_obj.style.top,10);
        this.div_obj_end = parseInt(this.scrollTop()) + parseInt(this.div_obj_max_move_top,10);
        if (this.div_obj_end < parseInt(this.div_obj_top,10)) this.div_obj_end = parseInt(this.div_obj_top,10);
        if (this.div_obj_start != this.div_obj_end ) {
            this.div_obj_offset = Math.ceil(Math.abs( this.div_obj_end - this.div_obj_start ) / 15 );
            t = parseInt(this.div_obj.style.top, 10) + ((this.div_obj_end<this.div_obj_start)? this.div_obj_offset*-1:this.div_obj_offset);
            this.div_obj.style.top = t+'px';
            this.slide_time = 10;
        }
        this.timeId[this.div_obj.id] = window.setTimeout(function(){obj.move_menu()},this.slide_time);
    },
    scrollTop : function (){//xhtml doctype patch
        if (window.pageYOffset){
            scroll_top = window.pageYOffset
        }else if (document.documentElement && document.documentElement.scrollTop){
            scroll_top = document.documentElement.scrollTop
        }else if (document.body){
            scroll_top = document.body.scrollTop
        }
        return scroll_top;
    }
}


//ÀÌ¹ÌÁö·Ñ¿À¹ö
function imgRollover(imgBoxID){
 var MenuCounts = dEI(imgBoxID).getElementsByTagName("img");
 for (i=0;i<MenuCounts.length;i++) {
  var numImg=MenuCounts.item(i);
  var ImgCheck = numImg.src.substring(numImg.src.length-6,numImg.src.length);
  if (ImgCheck!="on.gif") {
    numImg.onmouseover = function () {
     this.src = this.src.replace(".gif", "on.gif");
    }
    numImg.onmouseout = function () {
     this.src = this.src.replace("on.gif", ".gif");
    }
   }
 }
}

/*
PageNum : ÆäÀÌÁö¿¡ ÁöÁ¤ÇØÁØ $subnum °ú °°Àº ¹øÈ£¸¦ ÁöÁ¤ÇÑ´Ù. ±×³É º¯¼ö¸¦ ½áÁÖ¸é µÈ´Ù. ¾Æ·¡Ã³·³..
OverNum : ÀÌ¹ÌÁö¿¡ ¿À¹öÇßÀ»¶§ ÀÌ¹ÌÁöÀÇ ¹øÈ£ÀÌ´Ù. ¾Æ·¡Ã³·³ sub1_menu1.gif ¶ó¸é menu1 ÀÇ 1ÀÌ OverNumÀÌ µÈ´Ù.
                ÀÌ ¹øÈ£¿ÍPageNumÀÌ °°À»¶§ ·Ñ¿À¹öµÈ ÀÌ¹ÌÁö¸¦ Ãâ·ÂÇÑ´Ù.
ImagePath : ÀÌ¹ÌÁöÀÇ °æ·Î
OverImage : ·Ñ¿À¹ö½Ã Ãâ·ÂÇÒ ÀÌ¹ÌÁöÀÇ ÆÄÀÏ¸í
OutImage : ·Ñ¾Æ¿ô½Ã Ãâ·ÂÇÒ ÀÌ¹ÌÁöÀÇ ÆÄÀÏ¸í
LinkUrl : ¸Þ´º¸¦ Å¬¸¯ÇßÀ»¶§ ÀÌµ¿ÇÒ ¸µÅ© ÁÖ¼Ò
Target : »õÃ¢À¸·Î ¿­½Ã ÇöÀçÃ¢À¸·Î ¿­Áö.. (_self,_blank µî)
ImgMenuCode : ÄÚµå¸í ÆäÀÌÁö ÀÌµ¿
*/
function ImgMenuClass(PageNum,OverNum,ImagePath,OverImage,OutImage,LinkUrl,Target){
	if(PageNum==OverNum) {
	  var ImageName=OverImage;
	  var OverImg=OverImage;
	  var OutImg=OverImage;
	}else{
		var OverImg=OverImage;
		var OutImg=OutImage;
		var ImageName=OutImage;
	}
	var ImageAreaID="ImgClass_"+OverNum;
	var ImageURL=ImagePath+"/"+ImageName;
	var HTML="<a href="+LinkUrl+" ";
	HTML+="target="+Target+" ";
	HTML+="onmouseover=ImgMenu('"+OverNum+"','"+ImagePath+"','"+OverImg+"') ";
	HTML+="onmouseout=ImgMenu('"+OverNum+"','"+ImagePath+"','"+OutImg+"') ";
	HTML+=">";
	HTML+="<img src='"+ImageURL+"' align=absmiddle id="+ImageAreaID+">";
	HTML+="</a>";
	document.getElementById("ImgMenuArea_"+OverNum).innerHTML=HTML;
}

function ImgMenu(OverNum, ImagePath, ImageName){
	var ImageID="ImgClass_"+OverNum;
	var ImageURL=ImagePath+"/"+ImageName;
	document.getElementById(ImageID).src=ImageURL;
}

function ImgMenuCode(PageNum,OverNum,ImagePath,OverImage,OutImage,LinkUrl,Target){
	if(PageNum==OverNum) {
	  var ImageName=OverImage;
	  var OverImg=OverImage;
	  var OutImg=OverImage;
	}else{
		var OverImg=OverImage;
		var OutImg=OutImage;
		var ImageName=OutImage;
	}
	var ImageAreaID="ImgClass_"+OverNum;
	var ImageURL=ImagePath+"/"+ImageName;
	//var HTML="<a href="+LinkUrl+" ";
	var HTML="<a href=javascript:GoPage('"+LinkUrl+"') ";
	//HTML+="target="+Target+" ";
	HTML+="onmouseover=ImgMenu('"+OverNum+"','"+ImagePath+"','"+OverImg+"') ";
	HTML+="onmouseout=ImgMenu('"+OverNum+"','"+ImagePath+"','"+OutImg+"') ";
	HTML+=">";
	HTML+="<img src='"+ImageURL+"' align=absmiddle id="+ImageAreaID+">";
	HTML+="</a>";
	document.getElementById("ImgMenuArea_"+OverNum).innerHTML=HTML;
}

