function gomainlink( num ) {

var linkurls = new Array;

	linkurls[0] = '/front/php/b/board_list.php?board_no=14'; /* 1¹øÂ° ÀÌ¹ÌÁö ¸µÅ© */

    window.location = linkurls[num];

}

function view(index, total) {
 for (i=1; i<=total; i++)
    if (index == i) {
        thisMenu = eval("menu" + index + ".style");
        thisMenu.display = "";
    } 
    else {
        otherMenu = eval("menu" + i + ".style"); 
        otherMenu.display = "none"; 
    }
 }


var arr1 = new Array;
var arr2 = new Array;

var cateTitle = new Array;
var cateLink = new Array;

var cateSubTitle = new Array;
var cateSubLink = new Array;





/* Ä«Å×°í¸® ´ëºÐ·ù ¸ñ·Ï ÀÌ¸§°ú ¸µÅ©*/

cateTitle[0] = "È¨ÆäÀÌÁö+¼îÇÎ¸ô ÀÏÃ¼Çü";
cateLink[0] = "/front/php/category.php?cate_no=98";

cateTitle[1] = "¼îÇÎ¸ô ¾÷Á¾º° ºÐ·ù";
cateLink[1] = "/front/php/category.php?cate_no=148";

cateTitle[2] = "¼îÇÎ¸ô »ö»óº° ºÐ·ù";
cateLink[2] = "/front/php/category.php?cate_no=149";

cateTitle[3] = "¼îÇÎ¸ô µðÀÚÀÎº° ºÐ·ù";
cateLink[3] = "/front/php/category.php?cate_no=150";


/* ¼îÇÎ¸ô ¾÷Á¾º° ºÐ·ù  ÁßºÐ·ù ¸ñ·Ï ÀÌ¸§°ú ¸µÅ© */
cateSubTitle[1] = new Array;
cateSubLink[1] = new Array;

cateSubTitle[1][0] = '1. Á¾ÇÕ¼îÇÎ¸ô';
cateSubLink[1][0] = '/front/php/category.php?cate_no=151';
cateSubTitle[1][1] = '2. ÆÐ¼Ç/¾Ç¼¼¼­¸®';
cateSubLink[1][1] = '/front/php/category.php?cate_no=152';
cateSubTitle[1][2] = '3. À¯¾Æ/¾Æµ¿/Àå³­°¨';
cateSubLink[1][2] = '/front/php/category.php?cate_no=153';
cateSubTitle[1][3] = '4. °¡¹æ/½Å¹ß/ÀâÈ­';
cateSubLink[1][3] = '/front/php/category.php?cate_no=154';
cateSubTitle[1][4] = '5. È­ÀåÇ°/¹Ì¿ë';
cateSubLink[1][4] = '/front/php/category.php?cate_no=155';
cateSubTitle[1][5] = '6. ÀÎÅ×¸®¾î/°¡±¸';
cateSubLink[1][5] = '/front/php/category.php?cate_no=156';
cateSubTitle[1][6] = '7. ÄÄÇ»ÅÍ/Åë½Å';
cateSubLink[1][6] = '/front/php/category.php?cate_no=157';
cateSubTitle[1][7] = '8. »ýÈ°/ÁÖ¹æ¿ëÇ°';
cateSubLink[1][7] = '/front/php/category.php?cate_no=158';
cateSubTitle[1][8] = '9. µðÀÚÀÎ¹®±¸/¼±¹°¿ëÇ°';
cateSubLink[1][8] = '/front/php/category.php?cate_no=159';
cateSubTitle[1][9] = '10. ³ó¼ö»ê¹°/½ÄÇ°/²É';
cateSubLink[1][9] = '/front/php/category.php?cate_no=160';
cateSubTitle[1][10] = '11. ½ºÆ÷Ã÷/·¹Á®/ÀÚµ¿Â÷';
cateSubLink[1][10] = '/front/php/category.php?cate_no=161';

/* ¼îÇÎ¸ô »ö»óº° ºÐ·ù ÁßºÐ·ù ¸ñ·Ï ÀÌ¸§°ú ¸µÅ© */
cateSubTitle[2] = new Array;
cateSubLink[2] = new Array;

cateSubTitle[2][0] = '1. ºí·¢ Black';
cateSubLink[2][0] = '/front/php/category.php?cate_no=163';
cateSubTitle[2][1] = '2. ºí·ç Blue';
cateSubLink[2][1] = '/front/php/category.php?cate_no=164';
cateSubTitle[2][2] = '3. ±×¸° Green';
cateSubLink[2][2] = '/front/php/category.php?cate_no=165';
cateSubTitle[2][3] = '4. ºê¶ó¿î Brown';
cateSubLink[2][3] = '/front/php/category.php?cate_no=166';
cateSubTitle[2][4] = '5. ¿À·»Áö Orange';
cateSubLink[2][4] = '/front/php/category.php?cate_no=167';
cateSubTitle[2][5] = '6. ·¹µå Red';
cateSubLink[2][5] = '/front/php/category.php?cate_no=168';
cateSubTitle[2][6] = '7. ÇÎÅ© Pink';
cateSubLink[2][6] = '/front/php/category.php?cate_no=169';
cateSubTitle[2][7] = '8. ¹ÙÀÌ¿Ã·¿ Violet';
cateSubLink[2][7] = '/front/php/category.php?cate_no=171';
cateSubTitle[2][8] = '9. È¸»ö Gray';
cateSubLink[2][8] = '/front/php/category.php?cate_no=172';
cateSubTitle[2][9] = '10. ¿©·¯°¡Áö»ö';
cateSubLink[2][9] = '/front/php/category.php?cate_no=174';
cateSubTitle[2][10] = '11. È­ÀÌÆ® white';
cateSubLink[2][10] = '/front/php/category.php?cate_no=173';




/* ¼îÇÎ¸ô µðÀÚÀÎº° ºÐ·ù ¸ñ·Ï ÀÌ¸§°ú ¸µÅ© */
cateSubTitle[3] = new Array;
cateSubLink[3] = new Array;

cateSubTitle[3][0] = '1. º¸±×°É ½Ã¸®Áî';
cateSubLink[3][0] = '/front/php/category.php?cate_no=177';
cateSubTitle[3][1] = '2. ¼ÒÇÁÆ®/µ¥ÀÌÁö ½Ã¸®Áî';
cateSubLink[3][1] = '/front/php/category.php?cate_no=178';
cateSubTitle[3][2] = '3. ½ºÅä¸® ½Ã¸®Áî';
cateSubLink[3][2] = '/front/php/category.php?cate_no=182';
cateSubTitle[3][3] = '4. ÀÓÆÑÆ® ¿¡º¼·ç¼Ç';
cateSubLink[3][3] = '/front/php/category.php?cate_no=176';
cateSubTitle[3][4] = '5. ÈÄ¸£Ã÷ ½Ã¸®Áî';
cateSubLink[3][4] = '/front/php/category.php?cate_no=183';
cateSubTitle[3][5] = '6. µ¿È­Àû ºÐÀ§±â';
cateSubLink[3][5] = '/front/php/category.php?cate_no=181';
cateSubTitle[3][6] = '7. ÇÃ·¡½Ã ¼±ÅÃÇü';
cateSubLink[3][6] = '/front/php/category.php?cate_no=184';
cateSubTitle[3][7] = '8. ½ºÄ«ÀÌ ½Ã¸®Áî';
cateSubLink[3][7] = '/front/php/category.php?cate_no=179';
cateSubTitle[3][8] = '9. ³×Ãò·² ½Ã¸®Áî ';
cateSubLink[3][8] = '/front/php/category.php?cate_no=175';
cateSubTitle[3][9] = '10. Á¾ÇÕ¸ô ½ºÅ¸ÀÏ';
cateSubLink[3][9] = '/front/php/category.php?cate_no=180';


/*Left menu ¹ÝÅõ¸í ·¹ÀÌ¾î ±¸Çö*/
function Layer_overload(LayerName,Status) 
{
    if (navigator.appName == "Netscape")
    {
		LayerN = document.getElementById(LayerName).style;
		if (Status == 'show') LayerN.visibility = 'visible';
		if (Status == 'hide') LayerN.visibility = 'hidden';
    }	
    else
    {
		LayerN = document.all[LayerName].style;
		if (Status == 'show') LayerN.visibility = 'visible';
		if (Status == 'hide') LayerN.visibility = 'hidden';
    }
}






 /* Ä«Å×°í¸® html »ý¼º */
function creat_cate(cTitle, cLink, cSubTitle, cSubLink ){
var str_category = "<table width=190 border=0 cellpadding=0 cellspacing=0 background=/web/upload/img5/left_bg.gif >";

for (i = 0; i < cTitle.length; i++) {
	str_category += "<tr><td height=20 width=25>&nbsp;</td><td height=25 width=160  ><IMG SRC='/web/upload/img5/icon2.gif' BORDER=0 ALIGN=ABSMIDDLE vspace=5>&nbsp;<a href='"+cLink[i]+"'><font STYLE=\"text-decoration:none;color:'#4d4d4d';font-size:12px;font-family:µ¸¿ò,arial;font-weight:\" style=\"text-decoration:none;\" ><b>"+ cTitle[i] +"</b></font></a></td>";
	str_category += "</tr><tr><td width=190 align=center colspan=2 >";

	str_category += "<table cellpadding=0 cellspacing=0 border=0 width=150 bgcolor='#FFFFFF' >";

	if (cSubTitle[i]) {
		for (j = 0; j < cSubTitle[i].length; j++) {
			str_category += "<tr onmouseover=\"this.style.backgroundColor='#efefef'\" onmouseout=\"this.style.backgroundColor=''\">";
			str_category += "<td width=10 height=22 align=right></td>";
			str_category += "<td height=22 valign=middle><a href='"+cSubLink[i][j]+"'><font STYLE=\"color:'#666666';font-size:12px;font-family:µ¸¿ò,arial;\" style=\"text-decoration:none;\" >"+cSubTitle[i][j]+"</font></a></td></tr>";
		}
	}

	str_category += "</table></td></tr>";

}
str_category += "<tr><td colspan=2><img src=/web/upload/img5/bbs_end.gif ></td></tr><tr><td bgcolor='#FFFFFF' height=7 colspan=2></td></tr><tr><td colspan=2><img src=/web/upload/img5/cate_top_cafe24.gif ></td></tr></table>";
return str_category;

}


var favoriteurl="http://www.morenvy.com"
var favoritetitle="¡Ú ¸ð·»ºñ - ¼îÇÎ¸ô È¨ÆäÀÌÁö µðÀÚÀÎ Àü¹® ¡Ú"
function addfavorites(){
if (document.all) window.external.AddFavorite(favoriteurl,favoritetitle);

}

function bluring(){ 
if(event.srcElement.tagName=="A"||event.srcElement.tagName=="IMG") document.body.focus(); 
} 
document.onfocusin=bluring; 


function open_window( filename, option, name )
{
	if( !name )
	{
		name = 'new'
	}


        win = window.open( filename, name, option );

        return win
}

function window_open( page, name, top, left, width, height )
{
	option = "'toolbar=no," +
		"location=no," +
		"directories=no," +
		"status=no," +
		"menubar=no," +
		"scrollbars=yes," +
		"resizable=yes," +
		"width=" + width + "," +
		"height=" + height + "," +
		"top=" + top + "," +
		"left=" + left + "'"

        window.open( page, name, option );
}

function open_poll_pop( mode, no )
{
	page = '/front/php/poll_r.php?mode=' + mode + '&no=' + no;
	window_open( page, 'poll', 100, 300, 466, 382 );
}

/*Left menu ¹ÝÅõ¸í ·¹ÀÌ¾î ±¸Çö*/
function Layer_overload(LayerName,Status) 
{
    if (navigator.appName == "Netscape")
    {
		LayerN = document.getElementById(LayerName).style;
		if (Status == 'show') LayerN.visibility = 'visible';
		if (Status == 'hide') LayerN.visibility = 'hidden';
    }	
    else
    {
		LayerN = document.all[LayerName].style;
		if (Status == 'show') LayerN.visibility = 'visible';
		if (Status == 'hide') LayerN.visibility = 'hidden';
    }
}

/*Left menu±¸Çö*/
var old='';

function menu(name)
{
	submenu=eval("submenu_"+name+".style");
	if(old!=submenu)
	{
		if(old!='')
		{
			old.display='none';
		}
		submenu.display='block';
		old=submenu;
	}
	else
	{
		submenu.display='none';
		old='';
	}
}


function Layer_rollover(img_name,img_url)
{
	var menu;	
	//tmp = new String( "document."+img_name );
	menu=eval("document."+img_name);		
	menu.src = img_url;
	return;
}

function image_zoom( product_no, main_cate_no, display_group )
{
	//href = '/front/php/image_zoom.php?img='+image+'&product_no='+document.frm.product_no.value;
	href = '/front/php/image_zoom.php?product_no='+product_no+'&main_cate_no='+main_cate_no+'&display_group='+display_group;
	option = 'toolbar=no,scrollbars=no,resizable=yes,width=800,height=640,left=0,top=0';
	win_name = 'image'

	window.open( href, win_name, option );
}

