/*
function initMenu() {
	$('#menu ul').hide();
	//$('#menu ul:first').show();
	//$('#menu li a').click(function(){
	$('#menu li a').hover(function(){
		var checkElement = $(this).next();
		if((checkElement.is('ul')) && (checkElement.is(':visible'))) {
			return false;
		}

		if((checkElement.is('ul')) && (!checkElement.is(':visible'))) {
			$('#menu ul:visible').slideUp('normal');
			$('#menu li a').removeClass('on');
			$(this).addClass('on');
			checkElement.slideDown('normal');
			return false;
		}
	});
}
$(document).ready(function(){initMenu();});
*/

function tnb(){
	var str;

	str = "<ul class='tnb'>";
	str += "<li class='fir'><a href='/html/company/intro.asp'>È¸»ç¼Ò°³</a></li>";
	str += "<li><a href='/html/company/news_media.asp'>´º½º&amp;¹Ìµð¾î</a></li>";
	str += "<li><a href='/html/customer/charger.asp'>°í°´Áö¿ø</a></li>";
	str += "<li><a href='/html/customer/stock_info.asp'>ÅõÀÚÁ¤º¸</a></li>";
	str += "<li><a href='/html/customer/recruit_info.asp'>Ã¤¿ëÁ¤º¸</a></li>";
	str += "<li class='tbg01'><a href='/html/login/login.asp'>·Î±×ÀÎ</a></li>";
	str += "<li class='tbg02'><a href='#'>Language<span><img src='/img/common/bullet/img_select01.png' alt='' /></span></a>";
	str += "<div class='lan_div' id='lan_div'>";
	str += "<ul class='lan_ul'>";
	//str += "<li><a href='#' onclick='alink(\"#\");'>Korean</a></li>";
	str += "<li><a href='#' onclick='alink(\"http://www.jebi.co.kr/eng/eng_main.html\");'>English</a></li>";
	str += "<li><a href='#' onclick='alink(\"http://www.jebi.co.kr/china/\");'>Chinese</a></li>";
	str += "</ul>";
	str += "</div>";
	str += "</li>";
	str += "</ul>";

	document.write(str);
}

function tnb01(){
	var str;

	str = "<ul class='tnb'>";
	str += "<li class='fir'><a href='/html/company/intro.asp'>È¸»ç¼Ò°³</a></li>";
	str += "<li><a href='/html/company/news_media.asp'>´º½º&amp;¹Ìµð¾î</a></li>";
	str += "<li><a href='/html/customer/charger.asp'>°í°´Áö¿ø</a></li>";
	str += "<li><a href='/html/customer/stock_info.asp'>ÅõÀÚÁ¤º¸</a></li>";
	str += "<li><a href='/html/customer/recruit_info.asp'>Ã¤¿ëÁ¤º¸</a></li>";
	str += "<li class='tbg01'><a href='/html/login/jebi_logout.asp'>·Î±×¾Æ¿ô</a></li>";
	str += "<li class='tbg03'><a href='/html/login/member_edit01.asp'>È¸¿øÁ¤º¸</a></li>";
	str += "<li class='tbg02'><a href='#'>Language<span><img src='/img/common/bullet/img_select01.png' alt='' /></span></a>";
	str += "<div class='lan_div' id='lan_div'>";
	str += "<ul class='lan_ul'>";
	//str += "<li><a href='#' onclick='alink(\"#\");'>Korean</a></li>";
	str += "<li><a href='#' onclick='alink(\"http://www.jebi.co.kr/eng/eng_main.html\");'>English</a></li>";
	str += "<li><a href='#' onclick='alink(\"http://www.jebi.co.kr/china/\");'>Chinese</a></li>";
	str += "</ul>";
	str += "</div>";
	str += "</li>";
	str += "</ul>";

	document.write(str);
}

var num; 
function gnb(value){
	var str;

	num = value;

	str = "<ul class='gnb'>";
//	str += "<li class='fir on'><a href='#' class='gnbli01'>°Ç Ãà ¿ë</a>";
	str += "<li class='fir'><a href='../product/product01_intro.asp' class='gnbli01'>&nbsp;</a>";
	str += "<ul class='sgnb_ul' id='sub01'>";
	str += "<li class='fir'>";
	str += "<dl class='sgnb_desc'>";
	str += "<dt><img src='../../img/common/img_subgnb01.png' alt='' /></dt>";
	str += "<dd>°ÇÃà¹° ³» ¿ÜºÎ¿¡ Àû¿ëÇÏ´Â µµ·á·Î ÀÎÃ¼¿¡ ¹«ÇØÇÑ Ä£È¯°æÆäÀÎÆ®¿Í ³»È­, Â÷¿­, ¹æ±Õµµ·á µî ´Ù¾çÇÑ ±â´É¼º Á¦Ç°ÀÌ ÀÖ½À´Ï´Ù.</dd>";
	str += "</dl>";
	str += "</li>";
	str += "<li class='wtp01'>";
	str += "<dl class='sgnb_dl'>";
	str += "<dt><a href='../product/product01.asp'>Àü¹®°¡¿ë Á¦Ç°</a></dt>";
	str += "<dd><a href='../product/product01_list.asp?str_1depth_code=11001&str_1depth_name=³»¿Üº®¿ëµµ·á'>³»¿Üº®¿ëµµ·á</a></dd>";
	str += "<dd><a href='../product/product01_list.asp?str_1depth_code=11002&str_1depth_name=Ã¶Àç¿ëµµ·á'>Ã¶Àç¿ë</a></dd>";
	str += "<dd><a href='../product/product01_list.asp?str_1depth_code=11003&str_1depth_name=¸ñÀç¿ëµµ·á'>¸ñÀç¿ë</a></dd>";
	str += "<dd><a href='../product/product01_list.asp?str_1depth_code=11004&str_1depth_name=¹Ù´ÚÀç'>¹Ù´ÚÀç</a></dd>";
	str += "<dd><a href='../product/product01_list.asp?str_1depth_code=11005&str_1depth_name=±â´É¼ºµµ·á'>±â´É¼ºµµ·á</a></dd>";
	str += "<dd><a href='../product/product01_list.asp?str_1depth_code=11006&str_1depth_name=Ä£È¯°æµµ·á'>Ä£È¯°æµµ·á</a></dd>";
	str += "<dd><a href='../product/product01_list.asp?str_1depth_code=11006&str_1depth_name=KSÀÎÁõµµ·á'>KSÀÎÁõµµ·á</a></dd>";
	str += "</dl>";
	str += "<dl class='sgnb_dl'>";
	str += "<dt><a href='../product/product01_apart_in.asp'>¾ÆÆÄÆ®µµÀåºÎÀ§º°°Ë»ö</a></dt>";
	str += "<dd><a href='../product/product01_apart_in.asp'>³»ºÎ</a></dd>";
	str += "<dd><a href='../product/product01_apart_out.asp'>¿ÜºÎ</a></dd>";
	str += "</dl>";
	str += "</li>";
	str += "<li class='wtp02'>";
	str += "<dl class='sgnb_dl'>";
	str += "<dt><a href='../product/product02.asp'>ÀÏ¹Ý¿ë(DIY) Á¦Ç°</a></dt>";
	str += "<dd><a href='../product/product02_list.asp?str_1depth_code=12001&str_1depth_name=°Ç¹°³»ºÎ'>°Ç¹°³»ºÎ</a></dd>";
	str += "<dd><a href='../product/product02_list.asp?str_1depth_code=12002&str_1depth_name=°Ç¹°¿ÜºÎ'>°Ç¹°¿ÜºÎ</a></dd>";
	str += "<dd><a href='../product/product02_list.asp?str_1depth_code=12003&str_1depth_name=°¡±¸'>°¡±¸</a></dd>";
	str += "</dl>";
	str += "<dl class='sgnb_dl'>";
	str += "<dt><a href='../product/product01_mixingcolor.asp'>ÀÚµ¿Á¶»ö½Ã½ºÅÛ</a></dt>";
	str += "<dd><a href='../product/product01_mixingcolor.asp'>Æ¯Â¡ ¹× »ç¿ë¹æ¹ý</a></dd>";
	str += "<dd><a href='../product/product01_agent.asp'>¼³Ä¡´ë¸®Á¡</a></dd>";
	str += "</dl>";
	str += "<dl class='sgnb_dl'>";
	str += "<dt><a href='../product/product01_KCI.asp'>ÄÃ·¯ºÏ</a></dt>";
	str += "<dd><a href='../product/product01_KCI.asp'>KCI ÄÃ·¯ºÏ</a></dd>";
	str += "<dd><a href='../product/product01_OK.asp'>OK ÄÃ·¯ºÏ</a></dd>";
	str += "</dl>";
	str += "</li>";
	str += "<li class='wtp03'>";
	str += "<p class='sgnb_p'><a href='../product/product01_news_list.asp?sch_gubun=1'>´º½º</a></p>";
	str += "<p class='sgnb_p'><a href='../product/product01_agent02.asp'>´ë¸®Á¡</a></p>";
	str += "<p class='sgnb_p'><a href='../product/product01_paint.asp'>ÆäÀÎÆ® ¼Ò¿ä·® °è»ê</a></p>";
	str += "<p class='sgnb_p'><a href='../product/product01_qna_list.asp?sch_gubun=1'>Q&amp;A</a></p>";
	str += "<p class='sgnb_p'><a href='http://www.youtube.com/jbpaintskr' class='lnb_bg' target='_blank'>DIYµ¿¿µ»ó</a></p>";
	str += "</li>";
	str += "</ul>";
	str += "</li>";
	str += "<li><a href='../product/product03_intro.asp' class='gnbli02'>&nbsp;</a>";
	str += "<ul class='sgnb_ul' id='sub02'>";
	str += "<li class='fir'>";
	str += "<dl class='sgnb_desc'>";
	str += "<dt><img src='../../img/common/img_subgnb02.png' alt='' /></dt>";
	str += "<dd>Ã¶Àç, ÇÃ¶ó½ºÆ½, ¸ñÀç, À¯¸®¿Í °°Àº ´Ù¾çÇÑ °ø¾÷¿ë ¼ÒÀç¿¡ »ç¿ëµÇ¸ç ´ëÇ¥ÀûÀÎ Á¦Ç°À¸·Î´Â UVµµ·á, ºÐÃ¼µµ·á, PCMµµ·á, Á¦°üµµ·á µîÀÌ ÀÖ½À´Ï´Ù.</dd>";
	str += "</dl>";
	str += "</li>";
	str += "<li>";
	str += "<dl class='sgnb_dl'>";
	str += "<dt><a href='../product/product03.asp'>Á¦Ç°</a></dt>";
	str += "<dd><a href='../product/product03_list.asp?str_1depth_code=24&str_1depth_name=ÇÃ¶ó½ºÆ½µµ·á'>ÇÃ¶ó½ºÆ½µµ·á</a></dd>";
	str += "<dd><a href='../product/product03_list.asp?str_1depth_code=25&str_1depth_name=¸ñ°øµµ·á'>¸ñ°øµµ·á</a></dd>";
	str += "<dd><a href='../product/product03_list.asp?str_1depth_code=26&str_1depth_name=Ã¶ ¹× ºñÃ¶±Ý¼Ó'>Ã¶ ¹× ºñÃ¶±Ý¼Ó</a></dd>";
	str += "<dd><a href='../product/product03_list.asp?str_1depth_code=23&str_1depth_name=ºÐÃ¼µµ·á'>ºÐÃ¼µµ·á</a></dd>";
	str += "<dd>PCMµµ·á</dd>";
	str += "<dd>Á¦°üµµ·á</dd>";
	str += "<dd><a href='../product/product03_list.asp?str_1depth_code=27&str_1depth_name=Æ¯¼öµµ·á'>Æ¯¼öµµ·á</a></dd>";
	str += "</dl>";
	str += "</li>";
	str += "<li>";
	str += "<p class='sgnb_p'><a href='../product/product03_news_list.asp?sch_gubun=2'>´º½º</a></p>";
	str += "</li>";
	str += "<li>";
	str += "<p class='sgnb_p'><a href='../product/product03_agent.asp'>´ë¸®Á¡</a></p>";
	str += "</li>";
	str += "<li>";
	str += "<p class='sgnb_p'><a href='../product/product03_qna_list.asp?sch_gubun=2'>Q&amp;A</a></p>";
	str += "</li>";
	str += "</ul>";
	str += "</li>";
	str += "<li><a href='../product/product04_intro.asp' class='gnbli03'>&nbsp;</a>";
	str += "<ul class='sgnb_ul' id='sub03'>";
	str += "<li class='fir'>";
	str += "<dl class='sgnb_desc'>";
	str += "<dt><img src='../../img/common/img_subgnb03.png' alt='' /></dt>";
	str += "<dd>±³·®, ¹ßÀü¼³ºñ, °¢Á¾ ÇÃ·£Æ®, ¼±¹Ú µîÀÇ º¸È£¸¦ ¸ñÀûÀ¸·Î ÇÏ¸ç ¹æÃ»µµ·á, ¹æ¿Àµµ·á, ÅÊÅ©ÄÚÆÃ¿ë µµ·á µîÀÌ ÀÖ½À´Ï´Ù.</dd>";
	str += "</dl>";
	str += "</li>";
	str += "<li>";
	str += "<p class='sgnb_p'><a href='../product/product04_01.asp'>Áß¹æ½Ä¿ë Á¦Ç°</a></p>";
	str += "</li>";
	str += "<li>";
	str += "<p class='sgnb_p'><a href='../product/product04_02.asp'>¼±¹Ú¿ë Á¦Ç°</a></p>";
	str += "</li>";
	str += "<li>";
	str += "<p class='sgnb_p'><a href='../product/product04_news_list.asp?sch_gubun=3'>´º½º</a></p>";
	str += "</li>";
	str += "<li>";
	str += "<p class='sgnb_p'><a href='../product/product04_qna_list.asp?sch_gubun=3'>Q&amp;A</a></p>";
	str += "</li>";
	str += "</ul>";
	str += "</li>";
	str += "<li><a href='../product/product05_intro.asp' class='gnbli04'>&nbsp;</a>";
	str += "<ul class='sgnb_ul' id='sub04'>";
	str += "<li class='fir'>";
	str += "<dl class='sgnb_desc'>";
	str += "<dt><img src='../../img/common/img_subgnb04.png' alt='' /></dt>";
	str += "<dd>ÀÚµ¿Â÷ Ç¥¸éº¸È£¿Í ³»±¸¼ºÀ» °­È­½ÃÄÑ ÁÖ´Â µµ·á·Î ¿ëµµ¿¡ µû¶ó ÆÛÆ¼, ÇÁ¶óÀÌ¸Ó, »öµµ·á, Åõ¸í·ù Á¦Ç°ÀÌ ÀÖ½À´Ï´Ù.</dd>";
	str += "</dl>";
	str += "</li>";
	str += "<li>";
	str += "<p class='sgnb_p'><a href='../product/product05_list.asp'>Á¦Ç°</a></p>";
	str += "</li>";
	str += "<li>";
	str += "<p class='sgnb_p'><a href='../product/product05_news_list.asp?sch_gubun=4'>´º½º</a></p>";
	str += "</li>";
	str += "<li>";
	str += "<p class='sgnb_p'><a href='../product/product05_color_sys.asp'>»ö»óÁ¤º¸</a></p>";
	str += "</li>";
	str += "<li>";
	str += "<p class='sgnb_p'><a href='../product/product05_educenter01.asp'>¿¬¼ö¼¾ÅÍ</a></p>";
	str += "</li>";
	str += "<li>";
	str += "<p class='sgnb_p'><a href='../product/product05_agent.asp'>´ë¸®Á¡</a></p>";
	str += "</li>";
	str += "<li>";
	str += "<p class='sgnb_p'><a href='../product/product05_qna_list.asp?sch_gubun=4'>°í°´Áö¿ø</a></p>";
	str += "</li>";
	//str += "<li>";
	//str += "<p class='sgnb_p'><a href='#'>Q&amp;A</a></p>";
	//str += "</li>";
	str += "</ul>";
	str += "</li>";
	str += "</ul>";

	document.write(str);
}


$(document).ready(function(){
	if(num == 1){
//		alert("1");
		$(".gnb > li:eq(0)").addClass('on');
	}else if(num == 2){
//		alert("2");
		$(".gnb > li:eq(1)").addClass('on');
	}else if(num == 3){
//		alert("3");
		$(".gnb > li:eq(2)").addClass('on');
	}else if(num == 4){
//		alert("4");
		$(".gnb > li:eq(3)").addClass('on');
	}else{
//		alert("5");
		$(".gnb > li").removeClass('on');
	}
});

