// ¸¶¿ì½º ¿À¹ö
function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);

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];}
}


//Á¡¼±¾øÀÌ


//¢ÂÅ¬¸¯½Ã Á¡¼± ¾È»ý±â°Ô (A ÅÂ±× ¸ù¶¥)¢Â
var anchors = document.getElementsByTagName("a");
for (var i=0; i<anchors.length; i++) {
anchors[i].onfocus = anchors[i].blur;
}

// ¢ÂÅ¬¸¯ Á¡¼±2 (IMGÀÇ AÅÂ±×)¢Â
function bluring(){
if(event.srcElement.tagName=="A"||event.srcElement.tagName=="IMG") document.body.focus();
}
document.onfocusin=bluring;


//ÇÃ·¡½ÃºÎ¸§
function openflash(width,height,src){
    return "<object classid=\"clsid:d27cdb6e-ae6d-11cf-96b8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0\" width="+width+" height="+height+"><param name=movie value="+src+"><param name=\"allowScriptAccess\" value=\"sameDomain\"><param name=\"wmode\" value=\"transparent\"><param name=quality value=high ><embed src="+src+" quality=high  pluginspage=\"http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash\" type=\"application/x-shockwave-flash\" width="+width+" height="+height+"></embed></object>";
}

function writeflash(src){
    document.write(src);
}
//

function TextChange (target,type)
{
       if ( target.value == target.defaultValue && type==0) target.value = "";
       if ( !target.value && type==1) target.value = target.defaultValue;
}


function SetComma(number)
{
    number = '' + number;
    if (number.length > 3) {

    var mod = number.length % 3;
    var output = (mod > 0 ? (number.substring(0,mod)) : '');
        for (i=0 ; i < Math.floor(number.length / 3); i++) {
        if ((mod == 0) && (i == 0))
            output += number.substring(mod+ 3 * i, mod + 3 * i + 3);
        else
            output+= ',' + number.substring(mod + 3 * i, mod + 3 * i + 3);
        }
    	return (output);
    }
    else return number;
}

<!--
 SiteUrl = '';



url_list = new Array();
newwin_list = new Array();
window_list = new Array()
fullwin_list = new Array()

url_alert = new Array();

// ÇÃ·¹½ÃÆÄÀÏ¿¡¼­ ¸µÅ©°É¶§¿¡´Â
// javascript:go_site(1);
// ÀÌ·±½ÄÀ¸·Î ¸µÅ©°É¸é µË´Ï´Ù.
// ¹øÈ£´Â url_list[¹øÈ£]°ªÀ» ³ÖÀ¸¸é µË´Ï´Ù.




//##############################   ÆäÀÌÁö Á¤ÀÇ   ###############################

 url_list[1] = '../main/main.html';    // ¸ÞÀÎ

 // È¨/»çÀÌÆ®¸ÊÅ¾¸Þ´º
 url_list[2] = '#'; //login
 url_list[3] = '#'; //member join
 url_list[4] = '../main/sitemap.html';// ½ÎÀÌÆ®¸Ê
 url_list[5] = 'mailto:nhlee@mte4u.com'; //contact us


 // È¨/»çÀÌÆ®¸ÊÅ¾¸Þ´º
 url_list[6] = SiteUrl + '/06_join/05.html'; //·Î±×ÀÎ
 url_list[7] = SiteUrl + '../06_join/03.html'; //È¸¿ø°¡ÀÔ

 // È¨/»çÀÌÆ®¸ÊÅ¾¸Þ´º
 url_list[8] = SiteUrl + '/06_join/usrlogout.html'; // ·Î±×¾Æ¿ô
 url_list[9] = SiteUrl + '/06_join/06.html'; //È¸¿øÁ¤º¸¼öÁ¤
//´ÙÀ½¸Þ´º±îÁö ¿©À¯¸¦ µÎ°í Á¤ÀÇ


// ¸Þ´º½ÃÀÛ


//¸ÞÀÎ¸Þ´º
url_list[111] = SiteUrl + '/sub01/sub01.html?PageNum=1&SubNum=1'; // È¸»ç¼Ò°³
url_list[211] = SiteUrl + '/product/list.html'; // Á¦Ç°¼Ò°³
url_list[311] = SiteUrl + '/product/cart.html'; // Àå¹Ù±¸´Ï
url_list[411] = SiteUrl + '/mypage/mypage.html'; // ¸¶ÀÌÆäÀÌÁö
url_list[511] = SiteUrl + '/product/delivery.html'; // ¹è¼ÛÁ¶È¸
//url_list[611] = SiteUrl + '/notice/list.php?tn=news01&G_state=Y'; // °í°´¼¾ÅÍ

url_list[711] = SiteUrl + '/sub03/sub01.html?PageNum=3&SubNum=1'; // ´ë·®±¸¸Å

url_list[811] = SiteUrl + '/notice/list.php?tn=event01&G_state=Y&PageNum=5&SubNum=1'; // ÀÌº¥Æ®

//url_list[611] = SiteUrl + 'sub04/sub01.html'; // °í°´¼¾ÅÍ
//url_list[811] = SiteUrl + '/sub05/sub01.html'; // ÀÌº¥Æ®

//¸ÞÀÎ¸Þ´º - È¸»ç¼Ò°³
url_list[111] = SiteUrl + '/sub01/sub01.html?PageNum=1&SubNum=1'; // È¸»ç¼Ò°³
url_list[112] = SiteUrl + '/sub01/sub02.html?PageNum=1&SubNum=2'; // ÁÖ¹®¹æ¹ý
url_list[113] = SiteUrl + '/sub01/sub03.html?PageNum=1&SubNum=3'; // Ã£¾Æ¿À½Ã´Â ±æ

//¸ÞÀÎ¸Þ´º - Á¦Ç°¼Ò°³
url_list[211] = SiteUrl + '/product/list.html?PageNum=2&SubNum=1&Bcode=01'; // Á¦Ç°¼Ò°³
url_list[212] = SiteUrl + '/product/list.html?PageNum=2&SubNum=2&Bcode=02'; // Á¦Ç°¼Ò°³
url_list[213] = SiteUrl + '/product/list.html?PageNum=2&SubNum=3&Bcode=03'; // Á¦Ç°¼Ò°³
url_list[214] = SiteUrl + '/product/list.html?PageNum=2&SubNum=4&Bcode=04'; // Á¦Ç°¼Ò°³
url_list[215] = SiteUrl + '/product/list.html?PageNum=2&SubNum=5&Bcode=05'; // Á¦Ç°¼Ò°³
url_list[216] = SiteUrl + '/product/list.html?PageNum=2&SubNum=6&Bcode=06'; // Á¦Ç°¼Ò°³
url_list[217] = SiteUrl + '/product/list.html?PageNum=2&SubNum=7&Bcode=07'; // Á¦Ç°¼Ò°³
url_list[218] = SiteUrl + '/product/list.html?PageNum=2&SubNum=8&Bcode=08'; // Á¦Ç°¼Ò°³
url_list[219] = SiteUrl + '/product/list.html?PageNum=2&SubNum=9&Bcode=09'; // Á¦Ç°¼Ò°³
url_list[220] = SiteUrl + '/product/list.html?PageNum=2&SubNum=10&Bcode=11'; // Á¦Ç°¼Ò°³
url_list[221] = SiteUrl + '/product/list.html?PageNum=2&SubNum=11&Bcode=12'; // Á¦Ç°¼Ò°³

//¸ÞÀÎ¸Þ´º - °í°´¼¾ÅÍ
url_list[611] = SiteUrl + '/notice/list.php?tn=news01&G_state=Y&PageNum=4&SubNum=1'; // °øÁö»çÇ×
url_list[612] = SiteUrl + '/board/list.php?tn=board01&G_state=Y&PageNum=4&SubNum=2'; // ÀÚÀ¯°Ô½ÃÆÇ
url_list[613] = SiteUrl + '/board/list.php?tn=board02&G_state=Y&PageNum=4&SubNum=3'; // ÀÚ·á½Ç
url_list[614] = SiteUrl + '/board/list.php?tn=board03&G_state=Y&PageNum=4&SubNum=4'; // Á¦Ç°¹®ÀÇ

/*
url_list[611] = SiteUrl + '/sub04/sub01.html'; // °øÁö»çÇ×
url_list[612] = SiteUrl + '/sub04/sub02.html'; // ÀÚÀ¯°Ô½ÃÆÇ
url_list[613] = SiteUrl + '/sub04/sub03.html'; // ÀÚ·á½Ç
*/

//¸ÞÀÎ_µ¹¾Æ°¡´Â Á¦Ç°
url_list[101] = SiteUrl + '/product/list.html'; // Á¦Ç°¼Ò°³01
url_list[102] = SiteUrl + '/product/list.html'; // Á¦Ç°¼Ò°³02
url_list[103] = SiteUrl + '/product/list.html'; // Á¦Ç°¼Ò°³03
url_list[104] = SiteUrl + '/product/list.html'; // Á¦Ç°¼Ò°³04


 
 

// ¸Þ´º³¡



// »õÃ¢ÀÎ ¸Þ´º
//newwin_list[91] = 'true';



// À©µµ¿ì·Î ¿­¸®´Â°æ¿ì
//  window_list[56] = 'width=780 height=600 resizable=no';






//ÀüÃ¼È­¸éÀÎ ¸Þ´º
//fullwin_list[10] = 'true'



//##############################   ÆäÀÌÁö Á¤ÀÇ   ###############################










// »õÃ¢ÀÎ ¸Þ´º
//newwin_list[211] = 'true';


// À©µµ¿ì·Î ¿­¸®´Â°æ¿ì
//window_list[17] = 'width=550 height=450 resizable=no';

//ÀüÃ¼È­¸éÀÎ ¸Þ´º
//fullwin_list[10] = 'true'





function go_site(num)
{
  if(url_list[num])
  {
// º»Ã¢À¸·Î ÀÌµ¿ÇÏ´Â °æ¿ì
    if(newwin_list[num] != 'true' && fullwin_list[num] != 'true' && (window_list[num] == '' || window_list[num] == null))
    {
    	location=url_list[num];
    }

// À©µµ¿ì Ã¢À¸·Î ¿­¸®´Â°æ¿ì
    if(window_list[num] != '' && window_list[num] != null)
    {
      window.open(url_list[num], 'new_win', window_list[num]);
    }


// ÀüÃ¼Ã¢À¸·Î ¿­¸®´Â °æ¿ì
    if(fullwin_list[num] == 'true')
    {
      window.open(url_list[num], 'new_win', 'width=1024 height=724 resizable=yes');
    }


// »õÃ¢À¸·Î ¿­¸®´Â°æ¿ì
    if(newwin_list[num] == 'true')
    {
      window.open(url_list[num], '_blank', 'directories=yes, titlebar=yes, toolbar=yes, menubar=yes, statusbar=yes, scrollbars=yes, resizable=yes, location=yes, status=yes');
    }
  }else if(url_alert[num]) {		// Alert Ã¢ ¶ç¿ï¶§
	  //alert(url_alert[num]);
	  window.alert("ÁØºñÁßÀÔ´Ï´Ù.");
  }
}


function namosw_goto_byselect(sel, targetstr)
{
  var index = sel.selectedIndex;
  if (sel.options[index].value != '') {
     if (targetstr == 'blank') {
       window.open(sel.options[index].value, 'win1');
     } else {
       var frameobj;
       if (targetstr == '') targetstr = 'self';
       if ((frameobj = eval(targetstr)) != null)
         frameobj.location = sel.options[index].value;
     }
  }
}



function namosw_goto_byselect(sel, targetstr)
{
  var index = sel.selectedIndex;
  if (sel.options[index].value != '') {
     if (targetstr == 'blank') {
       window.open(sel.options[index].value, 'win1');
     } else {
       var frameobj;
       if (targetstr == '') targetstr = 'self';
       if ((frameobj = eval(targetstr)) != null)
         frameobj.location = sel.options[index].value;
     }
  }
}


var isDOM = (document.getElementById ? true : false);
var isIE4 = ((document.all && !isDOM) ? true : false);
var isNS4 = (document.layers ? true : false);
var isNS = navigator.appName == "Netscape";

function getRef(id) {
	if (isDOM) return document.getElementById(id);
	if (isIE4) return document.all[id];
	if (isNS4) return document.layers[id];
}

function getSty(id) {
	x = getRef(id);
	return (isNS4 ? getRef(id) : getRef(id).style);
}

var scrollerHeight = 88;
var puaseBetweenImages = 3000;
var imageIdx = 0;

function moveRightEdge() {
	var yMenuFrom, yMenuTo, yOffset, timeoutNextCheck;

	if (isNS4) {
		yMenuFrom   = divMenu.top;
		yMenuTo     = windows.pageYOffset + 58;   // À§ÂÊ À§Ä¡
	} else if (isDOM) {
		yMenuFrom   = parseInt (divMenu.style.top, 10);
		yMenuTo     = (isNS ? window.pageYOffset : document.body.scrollTop) + 58; // À§ÂÊ À§Ä¡
	}
	timeoutNextCheck = 253;

	if (yMenuFrom != yMenuTo) {
		yOffset = Math.ceil(Math.abs(yMenuTo - yMenuFrom) / 20);
		if (yMenuTo < yMenuFrom)
			yOffset = -yOffset;
		if (isNS4)
			divMenu.top += yOffset;
		else if (isDOM)
			divMenu.style.top = parseInt (divMenu.style.top, 10) + yOffset;
			timeoutNextCheck = 10;
	}
	setTimeout ("moveRightEdge()", timeoutNextCheck);
}






function sbar(st) {
	st.style.backgroundColor = '#F6F5F5';
}

function cbar(st) {
	st.style.backgroundColor = '';
}
	

//-->
