function gnb(){ 
	var gnb ='';
	gnb +='<ul class="gnb_navigation">';
	gnb +='<li class="first"><a href="./index.asp"><img src="/img/common/txt_gnb_home.gif" alt="HOME" /></a></li>';
	gnb +='<li><a href="/membership/real_name_confirm.asp"><img src="/img/common/txt_gnb_member_join.gif" alt="È¸¿ø°¡ÀÔ" /></a></li>';
	gnb +='<li><a href="/membership/login.asp"><img src="/img/common/txt_gnb_login.gif" alt="·Î±×ÀÎ" /></a></li>';
	gnb +='<li><a href="/membership/person_info_change.asp"><img src="/img/common/txt_gnb_mypage.gif" alt="¸¶ÀÌ ÆäÀÌÁö" /></a></li>';
	gnb +='<li><a href="/customer/customer_inquiry.asp"><img src="/img/common/txt_gnb_client_info.gif" alt="°í°´ ¹®ÀÇ" /></a></li>';
	gnb +='<li class="last"><a href="#"><img src="/img/common/txt_gnb_chainstore_info.gif" alt="°¡¸ÍÁ¡ ¹®ÀÇ" /></a></li>';
	gnb +='</ul>';
	document.write(gnb);
}

function gnb2(view){ 
	var gnb ='';
	gnb +='<ul class="gnb_navigation">';
	gnb +='<li class="first"><a href="./index.asp"><img src="/img/common/txt_gnb_home.gif" alt="HOME" /></a></li>';
	if (view =='1'){
	gnb +='<li><a href="/membership/real_name_confirm.asp"><img src="/img/common/txt_gnb_member_join.gif" alt="È¸¿ø°¡ÀÔ" /></a></li>';
	gnb +='<li><a href="/membership/login.asp"><img src="/img/common/txt_gnb_login.gif" alt="·Î±×ÀÎ" /></a></li>';
	}else{
	gnb +='<li><a href="/membership/logout.asp"><img src="/img/common/txt_gnb_logout.gif" alt="·Î±×¾Æ¿ô" /></a></li>';
	gnb +='<li><a href="/membership/person_info_change.asp"><img src="/img/common/txt_gnb_mypage.gif" alt="¸¶ÀÌ ÆäÀÌÁö" /></a></li>';
	}
	gnb +='<li><a href="/customer/customer_inquiry.asp"><img src="/img/common/txt_gnb_client_info.gif" alt="°í°´ ¹®ÀÇ" /></a></li>';
	gnb +='<li class="last"><a href="#"><img src="/img/common/txt_gnb_chainstore_info.gif" alt="°¡¸ÍÁ¡ ¹®ÀÇ" /></a></li>';
	gnb +='</ul>';
	document.write(gnb);
}

function navigation(){
	Flash('top_menu','/inc/fla/top_menu.swf','990','50','#FFF','transparent');
}
function footer(){ 
	var footer ='';
	footer +='<div class="footer_area">';
	footer +='<p class="footer_logo"><img src="/img/common/logo_footer.gif" alt="MUSCUS" /></p>';
	footer +='<div class="footer_address">';
	footer +='<ul class="company_one">';
	footer +='<li class="first"><a href="/popup/personal_join_raw.asp" onclick="pop(this.href,\'personal_pop\',\'600\',\'600\'); return false;"><img src="/img/common/txt_footer_person_join.gif" alt="°³ÀÎÁ¤º¸Ãë±Þ¹æÄ§" /></a></li>';
	footer +='<li><a href="/popup/member_agreement.asp" onclick="pop(this.href,\'personal_pop\',\'600\',\'600\'); return false;"><img src="/img/common/txt_footer_use_raw.gif" alt="ÀÌ¿ë¾à°ü" /></a></li>';
	footer +='<li><a href="/sitemap/sitemap.asp"><img src="/img/common/txt_footer_sitemap.gif" alt="»çÀÌÆ®¸Ê" /></a></li>';
	footer +='<li><a href="/muscus/contact_us.asp"><img src="/img/common/txt_footer_qna.gif" alt="»çÀÌÆ®¸Ê" /></a></li>';
	footer +='</ul>';
	footer +='<p class="address"><img src="/img/common/txt_footer_address.gif" alt="¼­¿ïÆ¯º°½Ã °­³²±¸ ¿ª»ïµ¿ 725-24 »ï¿ìºôµù 2Ãþ (110-789) / COPYRIGHT(C) 2009 MUSCUS ALL RIGHT RESERVED" /></p>';
	footer +='</div>';
	footer +='<ul class="company_best">';
	footer +='<li><a><img src="/img/icon/ico_footer_master_brand.gif" alt="master_brand" class="master_brand" /></a></li>';
	/*footer +='<li><a><img src="/img/icon/ico_footer_kswci.gif" alt="kswci" class="kswci" /></a></li>';*/
	footer +='<ul>';
	footer +='</div>';
	document.write(footer);
}
/*ÇÃ·¡½Ã ½ºÅ©¸³Æ®(ÇÃ·¡½Ã ³×ÀÓ,ÁÖ¼Ò,³ÐÀÌ°ª,³ôÀÌ°ª,¹è°æ»ö,wmode°ª)*/
function Flash(id,url,w,h,bg,t){
	document.writeln("<object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' codebase='http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0' width="+w+" height="+h+" id="+id+">");
	document.writeln("<param name='movie' value="+url+" />");
	document.writeln("<param name='wmode' value="+t+" />");
	document.writeln("<param name='bgcolor' value="+bg+" />");
	document.writeln("<param name='allowScriptAccess' value='always' />");
	document.writeln("<param name='quality' value='high' />");
	document.writeln("<param name='menu' value='false' />");
	document.writeln("<embed src="+url+" wmode="+t+" width="+w+" height="+h+" name="+id+" bgcolor="+bg+" allowScriptAccess='always' quality='high' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer' />");
	document.writeln("</object>");
}
/*½ºÅ©·Ñ¹Ù ¾ø´Â ÆË¾÷*/
function pop(url,name,w,h){
	var xPos = (window.screen.availWidth - w)/2;
	var yPos = (window.screen.availHeight - h)/2;
	win = window.open(url,name,'width='+w+',height='+h+',left='+xPos+',top='+yPos+',scrollbars=no,status=1');
	win.focus();
}
/*½ºÅ©·Ñ¹Ù ÀÖ´Â ÆË¾÷*/
function pops(url,name,w,h){
	var xPos = (window.screen.availWidth - w)/2;
	var yPos = (window.screen.availHeight - h)/2;
	win = window.open(url,name,'width='+w+',height='+h+',left='+xPos+',top='+yPos+',scrollbars=yes');
	win.focus();
}
/*»õÃ¢ ¶ç¿ì±â _blank¿Í °°Àº Çö»ó*/
function newwin(url){
	window.open(url,'new','location=1,directories=1,resizable=1,status=1,toolbar=1,menubar=1,scrollbars=1')
}
/*ÆË¾÷Ã¢ ´Ý±â*/
function closewin(){
	window.close();
}
/*ÆË¾÷Ã¢ ´ÝÈ÷°í ÆäÀÌÁö ÀüÈ¯*/
function goURL(url) {
	self.close();
	opener.top.location.href=url;
}
/*·¹ÀÌ¾î ½ºÅ©¸³Æ®(id¸í)_¿­¸®°í ´ÝÈû*/
function show_layer(obj){
	var obj_name=document.getElementById(obj);
	if(obj_name.style.display == 'block'){
		obj_name.style.display='none';
	}else{
		obj_name.style.display='block';
	}
}
function close_layer(obj){
	var obj_name=document.getElementById(obj);
	obj_name.style.display='none';
}
/*¾ÆÀÌÇÁ·¹ÀÓ¸®»çÀÌÂ¡*/
function resizeFrame(iframeObj){
	var innerBody = iframeObj.contentWindow.document.body;
	oldEvent = innerBody.onclick;
	innerBody.onclick = function(){ resizeFrame(iframeObj, 1);oldEvent; };
	var innerHeight = innerBody.scrollHeight + (innerBody.offsetHeight - innerBody.clientHeight);
	iframeObj.style.height = innerHeight + 'px';
	var innerWidth = innerBody.scrollWidth + (innerBody.offsetWidth - innerBody.clientWidth);
	iframeObj.style.width = innerWidth + 'px';
	if( !arguments[1] )        /* Æ¯Á¤ ÀÌº¥Æ®·Î ÀÎÇÑ È£Ãâ½Ã ½ºÅ©·ÑÀ» ±×³É µÐ´Ù. */
		this.scrollTo(1,1);
}
/*FAQ ÅÇ¸Þ´º ½ºÅ©¸³Æ®(id³×ÀÓ,id¹øÈ£,³×ÀÓÀ¸·Î °è»êÇÏ´Â ÃÑ°¹¼ö)*/
function show_img_sub(obj,num,total){
	var max = document.getElementsByName(total);
	for(var i=1; i<=max.length; i++){
		var txt=max[i-1].src;
		var lastIndex=txt.lastIndexOf("_");
		if(i == num){
			if(txt.substring(lastIndex+1) != '.gif'){
				document.getElementById(obj+i).style.display = 'block';
				max[i-1].src = max[i-1].src.replace(".gif","_.gif");
			}
		}else{
			document.getElementById(obj+i).style.display = 'none';
			max[i-1].src = max[i-1].src.replace("_.gif",".gif");
		}
	}
}
/*FAQ Áú¹®´äº¯ ½ºÅ©¸³Æ®*/
function show_faq_layer(obj,num,total){
	for(var i=1; i<=total; i++){
		if(i == num){
			document.getElementById(obj+num).style.display = 'block';
			document.getElementById(obj+num).parentNode.getElementsByTagName('dt')[0].className = 'open';
		}else{
			document.getElementById(obj+i).style.display = 'none';
			document.getElementById(obj+i).parentNode.getElementsByTagName('dt')[0].className = '';
		}
	}
}
/*ie png ÆÄÀÏ*/
function setPng24(obj) { 
	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="img/blank.gif";
	return ""; 
}
/*ÀÌ¹ÌÁö ·Ñ¿À¹ö ¹Ù´õ »ý¼º*/
function over_border(obj,num){ 
	var border = document.createElement("IMG");
	with (border) {
		src = '/img/store/img_rollover_picture.gif';
		id = 'img_over'+num;
		className = 'over_abs';
		style.display = 'none';
		style.position = 'absolute';
		style.left = 0;
		style.top = 0;
		style.Zindex = 10;
	}
	obj.appendChild(border);
	var layer = document.getElementById('img_over'+num);
	layer.style.display = 'block';
	layer.onmouseout = function(){
		this.style.display = 'none';
	}
}


