
//라운드 박스 
function addClass(element,value) {
	if (!element.className) {
		element.className = value;
	} else {
		newClassName = element.className;
		newClassName += " ";
		newClassName += value;
		element.className = newClassName;
	}
}

function roundConer(classname) {
	var divEl = document.getElementsByTagName("div");
	for (i=0; i<divEl.length; i++) {
		if(divEl[i].className.indexOf(classname) != -1) {
			var wrap = divEl[i];
			wrap.style.position = "relative";
			var tar = wrap.getElementsByTagName("span")[0];	
			wrap.style.width = tar.offsetWidth + "px"
			wrap.style.height = tar.offsetHeight + "px"
			
			var TopLeft = document.createElement("div");
			var TopRight = document.createElement("div");
			var BottomLeft = document.createElement("div");
			var BottomRight = document.createElement("div");
			TopLeft.className = "tl";
			TopRight.className = "tr";
			BottomLeft.className = "bl";
			BottomRight.className = "br";

			wrap.appendChild(TopLeft);
			wrap.appendChild(TopRight);
			wrap.appendChild(BottomLeft);
			wrap.appendChild(BottomRight);

			if (tar.offsetWidth % 2 == 1) {		// IE6 보정
				addClass(TopRight,"right_for6");
				addClass(BottomRight,"right_for6");
			}
			if (tar.offsetHeight % 2 == 1) {
				addClass(BottomLeft,"bottom_for6");
				addClass(BottomRight,"bottom_for6");
			}
		}
	}
}

// 이미지롤오버
function imageOver(imgEl) {
	imgEl.src = imgEl.src.replace(".gif", "_on.gif");
}
function imageOut(imgEl) {
	imgEl.src = imgEl.src.replace("_on.gif", ".gif");
}
/* show/hide */
function layerShow(layer) {
	var layerid = document.getElementById(layer);
	layerid.style.display = "block";
}
function layerHide(layer) {
	var layerid = document.getElementById(layer);
	layerid.style.display = "none";
}
/* 토글*/
function togCall(cal) {
	if (typeof cal == "string") {
		if (cal.split("#")[1]) {
			imgcal = document.getElementById('btn-'+ cal.split("#")[1]);
			cal = document.getElementById(cal.split("#")[1]);
		} else {
			imgcal = document.getElementById('btn-'+cal);
			cal = document.getElementById(cal);
		}
	}
	if (cal.style.display != "block") {
		cal.style.display = "block";
		if(imgcal != '') {
			imgcal.alt = imgcal.alt.replace("보기", "닫기");
			imgcal.src = imgcal.src.replace("_on.gif", "_off.gif");
		}
	} else {
		cal.style.display = "none";
		if(imgcal != '') {
			imgcal.alt = imgcal.alt.replace("닫기", "보기");
			imgcal.src = imgcal.src.replace("_off.gif", "_on.gif");
		}
	}
}
/* 바로가기 토글*/
function toglst(cal) {
	if (typeof cal == "string") {
		if (cal.split("#")[1]) {
			cal = document.getElementById(cal.split("#")[1]);
		} else {
			cal = document.getElementById(cal);
		}
	}
	if (cal.style.display != "block") {
		cal.style.display = "block";
	} else {
		cal.style.display = "none";
	}
	var lnk = cal.getElementsByTagName("a");
	for (i=0; i<lnk.length; i++) {
		lnk[i].onclick = function() {
			cal.style.display = "none";
			document.getElementById('kindinp').value = this.title
		}
	}
}
/* boardToggle */
function boardToggle(el) {
	var toggleContainer = document.getElementById(el);
	triggers = toggleContainer.getElementsByTagName("a");

	for(i = 0; i < triggers.length; i++) {
		if (triggers.item(i).href.split("#")[1])
			triggers.item(i).targetEl = document.getElementById(triggers.item(i).href.split("#")[1]);

		if (!triggers.item(i).targetEl)
			continue;

		triggers.item(i).targetEl.style.display = "none";
		triggers.item(i).onclick = function () {
			if (toggleContainer.current == this) {
				this.targetEl.style.display = "none";
				this.className = "";
				toggleContainer.current = null;
			} else {
				if (toggleContainer.current) {
					toggleContainer.current.targetEl.style.display = "none";
					toggleContainer.current.className = "";
				}
				this.targetEl.style.display = "";
				this.className = "selected";
				toggleContainer.current = this;
			}
			return false;
		}
	}
}
/* 메인 페이프리 멤버스 혜택안내 */
function pCall(cal) {
	if (typeof cal == "string") {
		if (cal.split("#")[1]) {
			cal = document.getElementById(cal.split("#")[1]);
		} 
	}
	for(i = 1; i < 4; i++) {
		divcal = document.getElementById('pmem0'+ i );
		divcal.style.display = "none";
	}
	cal.style.display = "block";
}

/* initTab */
function initTabMenu(tabContainerID) {
	var tabContainer = document.getElementById(tabContainerID);
	var tabAnchor = tabContainer.getElementsByTagName("ul")[0].getElementsByTagName("a");
	var i = 0;

	for(i=0; i<tabAnchor.length; i++) {
		if (tabAnchor.item(i).className == "tab")
			thismenu = tabAnchor.item(i);
		else
			continue;

		thismenu.container = tabContainer;
		thismenu.targetEl = document.getElementById(tabAnchor.item(i).href.split("#")[1]);
		thismenu.targetEl.style.display = "none";
		thismenu.imgEl = thismenu.getElementsByTagName("img").item(0);
		thismenu.onclick = function tabMenuClick() {
			currentmenu = this.container.current;
			if (currentmenu == this)
				return false;

			if (currentmenu) {
				currentmenu.targetEl.style.display = "none";
				if (currentmenu.imgEl) {
					currentmenu.imgEl.src = currentmenu.imgEl.src.replace("_on.gif", "_off.gif");
				} else {
					currentmenu.className = currentmenu.className.replace("on", "");
				}
			}

			this.targetEl.style.display = "block";
			if (this.imgEl) {
				this.imgEl.src = this.imgEl.src.replace("_off.gif", "_on.gif");
			} else {
				this.className += " on";
			}
			this.container.current = this;

			return false;
		};

		if (!thismenu.container.first)
			thismenu.container.first = thismenu;
	}
	if (tabContainer.first)
		tabContainer.first.onclick();
}

function Top(){
document.write('<ul class="AccessibilityWrap">');
document.write('	<li><a href="#topGnbGo" rel="topGnb">대메뉴 바로가기</a></li>');
document.write('	<li><a href="#unitySrhMenuGo" rel="unitySrhMenu">통합검색 바로가기</a></li>');
document.write('	<li><a href="#ContentGo" rel="Content">컨텐츠 바로가기</a></li>');
document.write('	<li><a href="#lmMenuGo" rel="leftMenu">서브메뉴 바로가기</a></li>');
document.write('	<li><a href="#quickGo" rel="quick">퀵메뉴 바로가기</a></li>');
document.write('</ul>');

document.write('	<div id="page">');
	
document.write('		<!-- s: header -->');
document.write('		<div id="header"><a name="top"></a>');
document.write('			<h1><a href="../main/main_index.html"><img src="/images/common/logo.gif" alt="웅진페이프리 사랑을 돌려드립니다." /></a></h1>');

document.write('			<div class="topGnb" id="topGnb"><a name="topGnbGo"></a><img src="/images/dummy/gnb.gif" alt="" onmouseover="imageOver(this);" onmouseout="imageOut(this);" usemap="#gnb" /></div>');
document.write('			<map name="gnb">');
document.write('				<area alt="마이페이지" coords="63,2,169,41" href="../mypage/mypage_index.html">');
document.write('				<area alt="페이프리멤버스" coords="172,4,308,42" href="../pmem/pmem_index.html">');
document.write('				<area alt="커뮤니티" coords="312,2,386,40" href="../comt/comt_index.html">');
document.write('				<area alt="고객센터" coords="389,2,477,39" href="../cus/cus_index.html">');
document.write('				<area alt="이벤트" coords="482,2,574,41" href="../event/event_index.html">');
document.write('				<area alt="쇼핑몰" coords="798,1,934,43" href="../pmall/pmall_index.html">');
document.write('			</map>');

document.write('			<ul class="topUtil">');
document.write('				<li><img src="/images/common/topUtil_01.gif" alt="로그인" /></li>');
document.write('				<li><img src="/images/common/topUtil_02.gif" alt="회원가입" /></li>');
document.write('				<li><img src="/images/common/topUtil_03.gif" alt="즐겨찾기등록" /></li>');
document.write('			</ul>');

document.write('			<div class="topSearch"><a name="unitySrhMenuGo"></a>');
document.write('				<fieldset>');
document.write('				<legend>검색 입력 폼</legend>');
document.write('					<div class="slct">');
document.write('						<input type="text" class="tyTxt" />');
document.write('					</div>');
document.write('					<a href="#"><img src="/images/btn/btn_search.gif" alt="검색" /></a>');
document.write('				</fieldset>');
document.write('			</div>');
document.write('			<div class="topBanner"><img src="/images/common/topBanner.gif" alt="탑베너" /></div>');
document.write('		</div>');
document.write('		<!-- e: header -->');
}

function LineMap(){
document.write('		<!-- s: linemap -->');
document.write('		<div id="linemap">');
document.write('			<a href="#" class="home">홈</a> <a href="#">마이페이지</a>  <a href="#" class="current">마이페이지</a>');
document.write('		</div>');
document.write('		<!-- e: linemap -->');
}

function SubMenu(){
document.write('		<!-- s: Sub Menu -->');
document.write('		<div id="subMenu"><a name="lmMenuGo"></a>');
document.write('			<img src="/images/dummy/leftMu.gif" alt="레프트메뉴" />');
document.write('		</div>');
document.write('		<!-- e: Sub Menu -->');
}
function SubMenu_W(){
document.write('		<!-- s: Sub Menu -->');
document.write('		<div id="subMenu"><a name="lmMenuGo"></a>');
document.write('			<img src="/images/dummy/leftMu_W.gif" alt="레프트메뉴" />');
document.write('			<div class="wltLink">');
document.write('				<ul>');
document.write('					<li><a href="#"><img src="/images/wclass/wlt_sms.gif" alt="sms보내기" /></a></li>');
document.write('					<li><a href="#"><img src="/images/wclass/wlt_chat.gif" alt="1:1채팅상담" /></a></li>');
document.write('				</ul>');
document.write('			</div>');
document.write('			<div class="wltbn"><a href="#"><img src="/images/wclass/wlt_daylotty.gif" alt="W_일일복권" /></a></div>');
document.write('		</div>');
document.write('		<!-- e: Sub Menu -->');
}

function Bottom(){
document.write('		<!-- s: footer -->');
document.write('		<div id="footer">');
document.write('			<ul class="fmu">');
document.write('				<li><a href="#"><img src="/images/common/fmu_infolaw.gif" alt="개인정보취급방침" /></a></li>');
document.write('				<li><a href="#"><img src="/images/common/fmu_uselaw.gif" alt="이용약관" /></a></li>');
document.write('				<li><a href="#"><img src="/images/common/fmu_noemail.gif" alt="이메일무단수집거부" /></a></li>');
document.write('				<li><a href="#"><img src="/images/common/fmu_propose.gif" alt="제휴제안" /></a></li>');
document.write('				<!--li><a href="#"><img src="/images/common/fmu_sitemap.gif" alt="사이트맵" /></a></li-->');
document.write('			</ul>');
document.write('			<div class="finfo">');
document.write('				<img src="/images/common/footer_logo.gif" class="flogo" alt="웅진코웨이" />');
document.write('				<address><img src="/images/common/footer_addr.gif" alt="서울시 중구 을지로2가 내외빌딩 10층  사업장 주소 : 충남 공주시 유구읍 658 사업장등록번호 : 307-81-06054  통신판매번호 : 제 2005-21호 대표이사 : 홍준기  고객센터 : 1588-5100" usemap="#MapFooterAddr" /></address>');
document.write('				<map name="MapFooterAddr" id="MapFooterAddr"><area shape="rect" coords="338,12,416,26" href="http://www.ftc.go.kr/info/bizinfo/communicationList.jsp" target="_blank" alt="사업자정보확인"/></map>');
document.write('				<p><img src="/images/common/footer_copy.gif" alt="COPYRIGHTⓒ WOONGJIN COWAY CO. LTD. ALL RIGHTS RESERVED." /></p>');
document.write('			</div>');
document.write('			<div class="fsite">');
document.write('				<a href="#"><img src="/images/common/footer_sitefamily.gif" alt="family site" /></a>');
document.write('			</div>');
document.write('		</div>');
document.write('		<!-- e: footer -->');
document.write('	</div><!-- e: page -->');

document.write('	<!-- s: quick -->');
document.write('	<div id="quick" class="quickRight"><a name="quickGo"></a>');
document.write('		<div class="shopMenu">');
document.write('			<h2><img src="/images/common/qmu_tit.gif" alt="QUICK" /></h2>');
document.write('			<ul>');
document.write('				<li><a href="#"><img src="/images/common/qmu_point.gif" alt="페이프리 포인트" /></a><span>500점</span></li>');
document.write('				<li><a href="#"><img src="/images/common/qmu_cupon.gif" alt="쿠폰" /></a><span>2개</span></li>');
document.write('				<li><a href="#"><img src="/images/common/qmu_benefit.gif" alt="계산기" /></a></li>');
document.write('				<li><a href="#"><img src="/images/common/qmu_dict.gif" alt="용어사전" /></a></li>');
document.write('			</ul>');
document.write('		</div>');
document.write('		<div class="quickBanner"><img src="/images/common/quickBanner.jpg" alt="" /></div>');
document.write('		<div class="scrollTop"><a href="#top"><img src="/images/common/scrollTop.gif" alt="TOP" /></a></div>');
document.write('	</div>');
document.write('	<!-- e: quick -->');
}

function boardListTop(){
document.write('<form action="" method="post">');
document.write('			<div class="boardTop">');
document.write('				<div class="sideLeft">');
document.write('						<span class="txt">');
document.write('							전체 <em class="pointOrg">100</em>개 &nbsp;&nbsp;');
document.write('							페이지 <em class="pointOrg">1/3</em>');
document.write('						</span>&nbsp;');
document.write('						<select size="1" name="sort" id="sort">');
document.write('							<option>조회순</option>');
document.write('							<option>최저가격순</option>');
document.write('						</select>');
document.write('				</div>');

document.write('				<div class="sideRight">');
document.write('						<select size="1" name="search" id="search">');
document.write('							<option>제목</option>');
document.write('							<option>내용</option>');
document.write('						</select>');

document.write('						<input type="text" class="basic" size="50" value="검색 키워드를 입력하세요" />');							
document.write('						<a href="#"><img src="/images/btn/btnS_search.gif" alt="검색" /></a>');
document.write('				</div>');
document.write('			</div><!-- e: boardTop -->');
document.write('</form>');

}

function boardListTop_text(){
document.write('<form action="vars.php" method="post" class="niceform">');
document.write('<div style="border:1px solid #ff6600;margin-left:0;height:30px;">');

document.write('<dl>');
document.write('	<dd style="float:left">');
document.write('	<span>');
document.write('							전체 <em class="pointOrg">100</em>개 &nbsp;&nbsp;');
document.write('							페이지 <em class="pointOrg">1/3</em>');
document.write('		</span>');
document.write('	</dd>');
document.write('	<dd style="float:left"><select size="1"  name="mySelect1" id="dobMonth"  class="width_80">');
document.write('							<option selected="selected">조회순</option>');
document.write('							<option>최저가격순</option>');
document.write('						</select></dd>');
document.write('	<dd style="float:left;padding-leftL30px;"><select size="1"  name="mySelect2" id="dobDay" class="width_120">');
document.write('							<option>제목</option>');
document.write('							<option>최저가격순</option>');
document.write('						</select></dd>');
document.write('	<dd style="float:left">');
document.write('	<input type="text" class="basic" size="5" value="검색 키워드를 입력하세요" />	');						
			
document.write('		<a href="#"><img src="/images/btn/btnS_search.gif" alt="검색" /></a></dd>');
document.write('</dl>	');	

document.write('	</div>');
document.write('</form>');
}

function ShopTop(){
document.write('<ul style="position:absolute;top:10px;left:-100px;width:80px;font-size:8pt;padding:5px;line-hegiht:150%;">');
document.write('<li><br><strong><a href="../gate.html">html 파일 리스트</strong></a></li>');
document.write('</ul>');

document.write('<ul class="AccessibilityWrap">');
document.write('	<li><a href="#globalMenuGo" rel="globalMenu">상단메뉴 바로가기</a></li>');
document.write('	<li><a href="#unitySrhMenuGo" rel="unitySearchMenu">통합검색 바로가기</a></li>');
document.write('	<li><a href="#ContentGo" rel="Content">콘텐츠 바로가기</a></li>');
document.write('	<li><a href="#subMenuGo" rel="subMenu">서브메뉴바로가기</a></li>');
document.write('	<li><a href="#quickGo2" rel="quick">퀵바로가기</a></li>');
document.write('</ul>');

document.write('	<div id="page">');
	
document.write('		<!-- s: header -->');
document.write('		<div id="header"><a name="top"></a>');
document.write('			<div class="globalNavi"><a name="globalMenuGo"></a>');
document.write('				<ul>');
document.write('					<li class="fir"><a href="../mypage/mypage_index.html"><img src="/images/shop/common/globalNavi_01.gif" alt="마이페이지" /></a></li>');
document.write('					<li><a href="../pmem/pmem_index.html"><img src="/images/shop/common/globalNavi_02.gif" alt="페이프리멤버스" /></a></li>');
document.write('					<li><a href="../comt/comt_index.html"><img src="/images/shop/common/globalNavi_03.gif" alt="커뮤니티" /></a></li>');
document.write('					<li><a href="../cus/cus_index.html"><img src="/images/shop/common/globalNavi_04.gif" alt="고객센터" /></a></li>');
document.write('					<li><a href="../event/event_index.html"><img src="/images/shop/common/globalNavi_05.gif" alt="이벤트" /></a></li>');
document.write('				</ul>');
document.write('			</div>');

document.write('			<h1><a href="pmall_index.html"><img src="/images/shop/title/payFreeMall.gif" alt="payFree Mall" /></a></h1>');
document.write('			<ul class="topNavi">');
document.write('				<li class="fir"><a href="#"><img src="/images/shop/common/topNavi_01.gif" alt="로그인" /></a></li>');
document.write('				<li><a href="#"><img src="/images/shop/common/topNavi_02.gif" alt="회원가입" /></a></li>');
document.write('				<li><a href="#"><img src="/images/shop/common/topNavi_03.gif" alt="마이쇼핑" /></a></li>');
document.write('				<li><a href="#"><img src="/images/shop/common/topNavi_04.gif" alt="주문배송조회" /></a></li>');
document.write('				<li><a href="#"><img src="/images/shop/common/topNavi_05.gif" alt="장바구니" /></a></li>');
document.write('				<li><a href="#"><img src="/images/shop/common/topNavi_06.gif" alt="고객센터" /></a></li>');
document.write('			</ul>');
document.write('			<div class="topBanner"><img src="/images/shop/common/summerFlash.gif" alt="" /></div>');

document.write('			<div class="snbArea">');
document.write('				<div class="topSearch"><a name="unitySrhMenuGo"></a>');
document.write('					<fieldset>');
document.write('					<legend>검색 입력 폼</legend>');
document.write('						<input type="text" class="tyTxt" />');
document.write('						<a href="#"><img src="/images/shop/btn/btn_search.gif" alt="검색" /></a>');
document.write('					</fieldset>');
document.write('				</div>');
document.write('				<div class="snbBtn"><a href="#"><img src="/images/shop/btn/btn_reviewarea.gif" alt="제품리뷰공간" /></a></div>');
document.write('			</div>');
document.write('		</div>');
document.write('		<!-- e: header -->');
}

function ShopSnb(){
document.write('		<div id="category" class="snb snbOff">');
document.write('			<h1><img src="/images/shop/btn/btn_openSnb.gif" onmouseover="imageOver(this);" onmouseout="imageOut(this);" alt="카테고리 열기" /></h1>');
document.write('		</div>');
}

function ShopSnbFull(){
document.write('		<div id="category" class="snb snbOn">');
document.write('			<h1><img src="/images/shop/btn/btn_openSnb.gif" onmouseover="imageOver(this);" onmouseout="imageOut(this);" alt="카테고리 열기" /></h1>');
document.write('			<div class="snbBody">');
document.write('				<h2><img src="/images/shop/title/menu_cate01.gif" alt="" /></h2>');
document.write('				<ul class="subMenu">');
document.write('					<li><a href="prod_guide.html">코웨이정수기</a></li>');
document.write('					<li><a href="#">케어스청정기</a></li>');
document.write('					<li><a href="#">룰루비데</a></li>');
document.write('					<li><a href="#">룰루연수기</a></li>');
document.write('					<li><a href="#">클리배음식물처리기</a></li>');
document.write('					<li><a href="#">뷔셀</a></li>');
document.write('					<li><a href="#">쿠체&쿠첸</a></li>');
document.write('					<li><a href="#">패키지할인</a></li>');
document.write('					<li><a href="#">단체할인</a></li>');
document.write('					<li><a href="#">리퍼브제품</a></li>');
document.write('				</ul>');
//document.write('				<h2><img src="/images/shop/title/menu_cate02.gif" alt="" /></h2>');
//document.write('				<ul class="subMenu">');
//document.write('					<li><a href="#">금융/보험</a></li>');
//document.write('					<li><a href="#">이동통신/인터넷</a></li>');
//document.write('					<li><a href="#">교육/도서</a></li>');
//document.write('					<li><a href="#">식품</a></li>');
//document.write('					<li><a href="#">여행</a></li>');
//document.write('					<li><a href="#">화장품</a></li>');
//document.write('					<li><a href="#">쇼핑</a></li>');
//document.write('					<li><a href="#">서비스</a></li>');
//document.write('				</ul>');
document.write('			</div>');
document.write('			<div class="allcategBot"></div>');
document.write('		</div>');
}

function ShopBottom(){
document.write('<!-- s: footer -->');
document.write('		<div id="footer">');
document.write('			<ul class="fmu">');
document.write('				<li><a href="#"><img src="/images/common/fmu_infolaw.gif" alt="개인정보취급방침" /></a></li>');
document.write('				<li><a href="#"><img src="/images/common/fmu_uselaw.gif" alt="이용약관" /></a></li>');
document.write('				<li><a href="#"><img src="/images/common/fmu_noemail.gif" alt="이메일무단수집거부" /></a></li>');
document.write('				<li><a href="#"><img src="/images/common/fmu_propose.gif" alt="제휴제안" /></a></li>');
document.write('				<!--li><a href="#"><img src="/images/common/fmu_sitemap.gif" alt="사이트맵" /></a></li-->');
document.write('			</ul>');
document.write('			<div class="finfo">');
document.write('				<img src="/images/common/footer_logo.gif" class="flogo" alt="웅진코웨이" />');
document.write('				<address><img src="/images/common/footer_addr.gif" alt="서울시 중구 을지로2가 내외빌딩 10층  사업장 주소 : 충남 공주시 유구읍 658 사업장등록번호 : 307-81-06054  통신판매번호 : 제 2005-21호 대표이사 : 홍준기  고객센터 : 1588-5100" usemap="#MapFooterAddr" /></address>');
document.write('				<map name="MapFooterAddr" id="MapFooterAddr"><area shape="rect" coords="338,12,416,26" href="http://www.ftc.go.kr/info/bizinfo/communicationList.jsp" target="_blank" alt="사업자정보확인"/></map>');
document.write('				<p><img src="/images/common/footer_copy.gif" alt="COPYRIGHTⓒ WOONGJIN COWAY CO. LTD. ALL RIGHTS RESERVED." /></p>');
document.write('			</div>');
document.write('			<div class="fsite">');
document.write('				<a href="#"><img src="/images/common/footer_sitefamily.gif" alt="family site" /></a>');
document.write('			</div>');
document.write('		</div>');
document.write('		<!-- e: footer -->');

document.write('	<!-- s: quick -->');
document.write('	<div id="quick" style="top:80px;left:950px;"><a name="quickGo2"></a>');
document.write('		<div class="quickshopMu">');
document.write('			<h2><img src="/images/shop/common/qmu_tit.gif" alt="QUICK" /></h2>');
document.write('			<ul>');
document.write('				<li><a href="#"><img src="/images/shop/common/qmu_point.gif" alt="페이프리 포인트" /></a><span>500점</span></li>');
document.write('				<li><a href="#"><img src="/images/shop/common/qmu_cupon.gif" alt="쿠폰" /></a><span>2개</span></li>');
document.write('				<li><a href="#"><img src="/images/shop/common/qmu_put.gif" alt="관심상품" /></a></li>');
document.write('				<li><a href="#"><img src="/images/shop/common/qmu_basket.gif" alt="장바구니" /></a></li>');
document.write('				<li><a href="#"><img src="/images/shop/common/qmu_review.gif" alt="제품리뷰" /></a></li>');
document.write('				<li><a href="#"><img src="/images/shop/common/qmu_dict.gif" alt="용어사전" /></a></li>');
document.write('			</ul>');
document.write('		</div>');
document.write('		<div class="fastProd"><a href="#"><img src="/images/shop/common/quickProd.gif" class="fbtn" alt="오늘본상품" /></a>');
document.write('			<!-- s : 최근본상품 -->');
document.write('			<div class="fastProdBox" style="display:none;">');
document.write('				<h2><img src="/images/shop/common/quickProd_tit.gif" alt="오늘본상품" /></h2>');
document.write('				<span class="closebtn"><a href="#" onclick="return false;"><img src="/images/shop/btn/btn_closefast.gif" alt="오늘본상품 닫기" /></a></span>');
document.write('				<ul>');
document.write('					<li><a href="#"><img src="/images/shop/dummy/proThumImgListT.gif" alt="코웨이정수기" /></a></li>');
document.write('					<li><a href="#"><img src="/images/shop/dummy/proThumImgListT.gif" alt="코웨이정수기" /></a></li>');
document.write('					<li><a href="#"><img src="/images/shop/dummy/proThumImgListT.gif" alt="코웨이정수기" /></a></li>');
document.write('				</ul>');
document.write('			</div>');
document.write('			<!-- e : 최근본상품 -->');
document.write('		</div>');
document.write('		<div class="quickBanner"><a href="#"><img src="/images/common/quickBanner.jpg" alt="open구매사은" /></a></div>');
document.write('		<div class="scrollTop"><a href="#top"><img src="/images/common/scrollTop.gif" alt="TOP" /></a></div>');
document.write('	</div>');
document.write('	<!-- e: quick -->');

document.write('	</div><!-- e: page -->');
}

function ShoppingBag(){
document.write('	<style type="text/css">html {_overflow:hidden;}</style>');
document.write('	<div id="shoppingBagOff" class="shpingBag" style="bottom:-16px;"><a name="quickGo"></a>');
document.write('		<div class="openShpBag"><a href="#shoppingBagOn"><img src="/images/shop/btn/btn_shpgBag.gif" alt="쇼핑백 열기" /></a></div>');
document.write('		<div class="shpgBagTop">');
document.write('			<h1><img src="/images/shop/common/tit_shpBag.gif" alt="쇼핑백" /></h1>');
document.write('			<ul>');
document.write('				<li><a href="#"><em><img src="/images/shop/common/tit_shpBag01_off.gif" alt="오늘 본 상품" /></em><span>15</span></a></li>');
document.write('				<li><a href="#"><em><img src="/images/shop/common/tit_shpBag02_off.gif" alt="장바구니" /></em><span>5</span></a></li>');
document.write('				<li><a href="#"><em><img src="/images/shop/common/tit_shpBag03_off.gif" alt="관심상품" /></em><span>5</span></a></li>');
document.write('				<li><a href="#"><em><img src="/images/shop/common/tit_shpBag04_off.gif" alt="패키지" /></em><span>5</span></a></li>');
document.write('			</ul>');
document.write('		</div>');
document.write('	</div>');
}

function ShoppingBagOn(){
document.write('	<style type="text/css">html {_overflow:hidden;}</style>');
document.write('	<div id="shoppingBagOn" class="shpingBag" style="bottom:0px;"><a name="quickGo"></a>');
document.write('		<div class="openShpBag"><a href="#shoppingBagOff"><img src="/images/shop/btn/btn_closeShpBag.gif" alt="쇼핑백닫기" /></a></div>');
document.write('		<div class="shpgBagTop">');
document.write('			<h1><img src="/images/shop/common/tit_shpBag.gif" alt="쇼핑백" /></h1>');
document.write('			<ul>');
document.write('				<li class="on"><a href="#"><em><img src="/images/shop/common/tit_shpBag01_on.gif" alt="오늘 본 상품" /></em><span>15</span></a></li>');
document.write('				<li><a href="#"><em><img src="/images/shop/common/tit_shpBag02_off.gif" alt="장바구니" /></em><span>5</span></a></li>');
document.write('				<li><a href="#"><em><img src="/images/shop/common/tit_shpBag03_off.gif" alt="관심상품" /></em><span>5</span></a></li>');
document.write('				<li><a href="#"><em><img src="/images/shop/common/tit_shpBag04_off.gif" alt="패키지" /></em><span>5</span></a></li>');
document.write('			</ul>');
document.write('		</div>');
document.write('		<!-- s : 오늘 본 상품 -->');
document.write('		<div class="shpgBagBody">');
document.write('			<p class="notice">오늘 본 상품은 최대 10개까지 저장됩니다. 상세내용을 보시려면 상품을 클릭하시기 바랍니다.</p>');
document.write('			<div class="shpBagList">');
document.write('				<span class="leftArrow"><a href="#"><img src="/images/shop/btn/btn_beforeProdDetailImg_on.gif" alt="앞으로" /></a></span>');
document.write('				<div class="shpBagT">');
document.write('				<ul style="width:835px;">');
document.write('					<li>');
document.write('						<a href="#"><img src="/images/shop/dummy/proThumImgListT.gif" class="listImg" alt="상품이미지" /></a>');
document.write('						<div class="tit"><strong>[일반정수기]</strong><br /><a href="#">코웨이정수기 P-07CL </a></div>');
document.write('						<dl>');
document.write('							<dt>렌탈료</dt>');
document.write('							<dd>월 23,500원</dd>');
document.write('							<dt>일시불</dt>');
document.write('							<dd>814,000원</dd>');
document.write('						</dl>');
document.write('					</li>');
document.write('					<li>');
document.write('						<a href="#"><img src="/images/shop/dummy/proThumImgListT.gif" class="listImg" alt="상품이미지" /></a>');
document.write('						<div class="tit"><strong>[일반정수기]</strong><br /><a href="#">코웨이정수기 P-07CL</a></div>');
document.write('						<dl>');
document.write('							<dt>일시불</dt>');
document.write('							<dd>814,000원</dd>');
document.write('						</dl>');
document.write('					</li>');
document.write('					<li>');
document.write('						<a href="#"><img src="/images/shop/dummy/proThumImgListT.gif" class="listImg" alt="상품이미지" /></a>');
document.write('						<div class="tit"><strong>[코웨이 정수기/일반연수기]</strong><br /><a href="#">코웨이정수기 P-07CL</a></div>');
document.write('						<dl>');
document.write('							<dt>렌탈료등록비</dt>');
document.write('							<dd>100,500원</dd>');
document.write('						</dl>');
document.write('					</li>');
document.write('					<li>');
document.write('						<a href="#"><img src="/images/shop/dummy/proThumImgListT.gif" class="listImg" alt="상품이미지" /></a>');
document.write('						<div class="tit"><strong>[일반정수기]</strong><br /><a href="#">코웨이정수기 P-07CL</a></div>');
document.write('						<p>플러스원 패키지</p>');
document.write('					</li>');
document.write('					<li>');
document.write('						<a href="#"><img src="/images/shop/dummy/proThumImgListT.gif" class="listImg" alt="상품이미지" /></a>');
document.write('						<div class="tit"><strong>[식품/다이어트]</strong><br /><a href="#">과체중 성인의 체지방...</a></div>');
document.write('						<dl>');
document.write('							<dt>정상가</dt>');
document.write('							<dd><del>50,000원</del></dd>');
document.write('							<dt>할인가</dt>');
document.write('							<dd>40,000원</dd>');
document.write('						</dl>');
document.write('					</li>');
document.write('				</ul>');
document.write('				</div>');
document.write('				<span class="rightArrow"><a href="#"><img src="/images/shop/btn/btn_afterProdDetailImg_on.gif" alt="뒤로" /></a></span>');
document.write('			</div>');
document.write('		</div>');
document.write('		<!-- e : 오늘 본 상품 -->');
document.write('	</div>');
}

function ShopSubMenu(){
document.write('		<!-- s: Sub Menu -->');
document.write('		<div id="subMenu"><a name="lmMenuGo"></a>');
document.write('			<div class="leftInfo">');
document.write('				<h2><img src="/images/shop/myshop/ltit_myinfo.gif" alt="나의 혜택정보" /></h2>');
document.write('				<dl class="fir">');
document.write('					<dt><img src="/images/shop/myshop/ltxt_cupon.gif" alt="쿠폰" /></dt>');
document.write('					<dd><strong class="pointRed">3</strong>개</dd>');
document.write('				</dl>');
document.write('				<dl>');
document.write('					<dt><img src="/images/shop/myshop/ltxt_point.gif" alt="페이프리포인트" /></dt>');
document.write('					<dd><strong class="pointRed">3,000</strong>점</dd>');
document.write('				</dl>');
document.write('				<dl>');
document.write('					<dt><img src="/images/shop/myshop/ltxt_sheswell.gif" alt="쉬즈웰포인트" /></dt>');
document.write('					<dd><strong class="pointRed">43,000</strong>점</dd>');
document.write('				</dl>');
document.write('			</div>');
document.write('			<img src="/images/shop/dummy/leftMu.gif" alt="레프트메뉴" />');
document.write('		</div>');
document.write('		<!-- e: Sub Menu -->');
}

function paging(){
document.write('<a href="#"><img src="/images/board/boardFirst.gif" alt="처음리스트" /></a><a href="#"><img src="/images/board/boardPrev.gif" alt="이전리스트" class="right" /></a>');
document.write('<a href="#" class="number on">1</a>');
document.write('<a href="#" class="number">2</a>');
document.write('<a href="#" class="number">3</a>');
document.write('<a href="#" class="number">4</a>');
document.write('<a href="#" class="number">5</a>');
document.write('<a href="#" class="number">6</a>');
document.write('<a href="#" class="number">7</a>');
document.write('<a href="#" class="number">8</a>');
document.write('<a href="#" class="number">9</a>');
document.write('<a href="#" class="number">10</a>');
document.write('<a href="#"><img src="/images/board/boardNext.gif" alt="다음리스트" class="left" /></a><a href="#"><img src="/images/board/boardLast.gif" alt="마지막리스트" /></a>');
}

//=======================================================================//
//기존 flash.js 함수의 insertFlash 포함함
function thisMovie(movieName) 
{
    if (navigator.appName.indexOf("Microsoft") != -1) {
        return window[movieName];
    } else {
        return document[movieName];
    }
}

function fnFlashLoad() { 
    // depth1, depth2, depth3
    thisMovie("gnb").fnSetMenu(1,2,1); 
    thisMovie("lnb").fnSetMenu(1,6,0);
}
        
function LNB_size(size) 
{
    document.getElementById("lnb").height = size;
    document.getElementById("lnb_embed").height = size;
}
        
// 플래시 삽입함수 (파일경로 및 쿼리스트링, id, 가로길이, 세로길이, wmode)
// id값은 반드시 설정하고, 한페이지에 같은 id를 중복하여 사용할 수 없음
function insertFlash(url, id, width, height, wmode) 
{
	if(wmode == null) 
	    wmode = "window";
	
	document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0" width="' + width + '" height="' + height + '" id="' + id + '" align="middle">');
	document.write('	<param name="allowScriptAccess" value="always">');
	document.write('	<param name="movie" value="' + url + '">');
	document.write('	<param name="wmode" value="' + wmode + '">');
	document.write('	<param name="quality" value="high">');
	document.write('	<param name="bgcolor" value="#ffffff">');
	document.write('	<embed src="' + url + '" quality="high" wmode="' + wmode + '" bgcolor="#ffffff" width="' + width + '" height="' + height + '" id="' + id + '_embed" name="' + id + '" align="middle" allowScriptAccess="always" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer">');
	document.write('</object>');
}


function find_id(){
	document.location = "/member/carrot/member/pop_find_id.aspx";
	//window.open('/member/carrot/member/pop_find_id.aspx','find_id','resizable=no, width=480, height=330,scrollbars=yes');
}

function Top(menuNum,mType,uType)
{
document.write('			<!-- s: TOP -->');
document.write('			<div id="header">');
document.write('				<a name="top"></a>');
document.write('				<h1><a href="http://www.payfree.co.kr/Default.aspx"><img src="/member/carrot/Images/common/logo.gif" alt="웅진페이프리 사랑을 돌려드립니다." /></a></h1>');
document.write('				<!-- GNB FLASH -->');
document.write('				<div class="topGnb" id="topGnb">');

insertFlash("/member/carrot/common/flash/gnb.swf?menuNum="+menuNum+"&mType="+mType+"&uType="+uType+"&xmlData=/member/carrot/common/flash/gnb.xml", 'gnb', '946', '79', 'transparent');
window.gnb = document.getElementById('gnb');
window.gnb_embed = document.getElementById('gnb_embed');

document.write('				</div>');
document.write('				<!-- GNB FLASH -->');
document.write('				<ul class="topUtil">');
document.write('					<!--li><img src="http://www.payfree.co.kr/Images/common/topUtil_01.gif" /></li>');
document.write('					<li><a href="/member/carrot/member/join_gate.aspx"><img src="/member/carrot/Images/common/topUtil_02.gif" alt="회원가입" /></a></li>');
document.write('					<li><a href="javascript:fnAddFavorites();"><img src="/member/carrot/Images/common/topUtil_03.gif" alt="즐겨찾기등록" /></a></li-->');
document.write('				</ul>');
document.write('				<div class="topBanner"><a href="http://www.payfree.co.kr/W_Class/WclassInfo.aspx"><img src="/member/carrot/Images/common/topBanner.gif" alt="탑베너" /></a></div>');
document.write('			</div>');
document.write('			<!-- e: TOP -->');
}

function SubMenu(menuNum,mType,uType){
document.write('		<div id="subMenu">');

insertFlash("/member/carrot/common/flash/lnb.swf?menuNum="+menuNum+"&mType="+mType+"&uType="+uType+"&xmlData=/member/carrot/common/flash/lnb.xml", 'lnb', '173', '600', 'transparent');
window.lnb = document.getElementById('lnb');
window.lnb_embed = document.getElementById('lnb_embed');

document.write('	    </div>');
}

function fnEmailProtect() {
	var popEmailProtect = window.open("http://www.payfree.co.kr/Common/PopUp/PopEmailProtect.aspx", "popEmailProtect", "width=500, height=180");
	popEmailProtect.focus();
}

function Bottom(){
document.write('	<div id="footer">');
document.write('	        <ul class="fmu">');
document.write('		        <li><a href="https://help.coway.co.kr/member/carrot/member/privacy.aspx"><img alt="개인정보취급방침" src="/member/carrot/images/common/fmu_infolaw.gif"/></a></li>');
document.write('		        <li><a href="https://help.coway.co.kr/member/carrot/member/service.aspx"><img alt="이용약관" src="/member/carrot/images/common/fmu_uselaw.gif"/></a></li>');
document.write('		        <li><a href="javascript:fnEmailProtect();"><img alt="이메일무단수집거부" src="/member/carrot/images/common/fmu_noemail.gif"/></a></li>');
document.write('		        <li><a href="http://www.payfree.co.kr/Common/Footer/ProposeWrite.aspx"><img alt="제휴제안" src="/member/carrot/images/common/fmu_propose.gif"/></a></li>');
document.write('		        <!--li><a href="http://www.payfree.co.kr/SiteMap.aspx"><img alt="사이트맵" src="/member/carrot/images/common/fmu_sitemap.gif"/></a></li-->');
document.write('	        </ul>');
document.write('	        <div class="finfo">');
document.write('		        <img alt="웅진코웨이" class="flogo" src="http://www.payfree.co.kr/images/common/footer_logo.gif"/>');
document.write('				<address><img src="/images/common/footer_addr.gif" alt="서울시 중구 을지로2가 내외빌딩 10층  사업장 주소 : 충남 공주시 유구읍 658 사업장등록번호 : 307-81-06054  통신판매번호 : 제 2005-21호 대표이사 : 홍준기  고객센터 : 1588-5100" usemap="#MapFooterAddr" /></address>');
document.write('				<map name="MapFooterAddr" id="MapFooterAddr"><area shape="rect" coords="338,12,416,26" href="http://www.ftc.go.kr/info/bizinfo/communicationList.jsp" target="_blank" alt="사업자정보확인"/></map>');
document.write('		        <p><img alt="COPYRIGHTⓒ WOONGJIN COWAY CO. LTD. ALL RIGHTS RESERVED." src="/member/carrot/images/common/footer_copy.gif"/></p>');
document.write('	        </div>');
document.write('	        <!--div class="fsite">');
document.write('		        <a href="#"><img alt="family site" src="/member/carrot/images/common/footer_sitefamily.gif"/></a>');
document.write('	        </div-->');
document.write('        </div>');
}



//라운드 박스 
function addClass(element,value) {
	if (!element.className) {
		element.className = value;
	} else {
		newClassName = element.className;
		newClassName += " ";
		newClassName += value;
		element.className = newClassName;
	}
}

function roundConer(classname) {
	var divEl = document.getElementsByTagName("div");
	for (i=0; i<divEl.length; i++) {
		if(divEl[i].className.indexOf(classname) != -1) {
			var wrap = divEl[i];
			wrap.style.position = "relative";
			var tar = wrap.getElementsByTagName("span")[0];	
			wrap.style.width = tar.offsetWidth + "px"
			wrap.style.height = tar.offsetHeight + "px"
			
			var TopLeft = document.createElement("div");
			var TopRight = document.createElement("div");
			var BottomLeft = document.createElement("div");
			var BottomRight = document.createElement("div");
			TopLeft.className = "tl";
			TopRight.className = "tr";
			BottomLeft.className = "bl";
			BottomRight.className = "br";

			wrap.appendChild(TopLeft);
			wrap.appendChild(TopRight);
			wrap.appendChild(BottomLeft);
			wrap.appendChild(BottomRight);

			if (tar.offsetWidth % 2 == 1) {		// IE6 보정
				addClass(TopRight,"right_for6");
				addClass(BottomRight,"right_for6");
			}
			if (tar.offsetHeight % 2 == 1) {
				addClass(BottomLeft,"bottom_for6");
				addClass(BottomRight,"bottom_for6");
			}
		}
	}
}

// 이미지롤오버
function imageOver(imgEl) {
	imgEl.src = imgEl.src.replace(".gif", "_on.gif");
}
function imageOut(imgEl) {
	imgEl.src = imgEl.src.replace("_on.gif", ".gif");
}
/* show/hide */
function layerShow(layer) {
	var layerid = document.getElementById(layer);
	layerid.style.display = "block";
}
function layerHide(layer) {
	var layerid = document.getElementById(layer);
	layerid.style.display = "none";
}
/* 토글*/
function togCall(cal) {
	if (typeof cal == "string") {
		if (cal.split("#")[1]) {
			imgcal = document.getElementById('btn-'+ cal.split("#")[1]);
			cal = document.getElementById(cal.split("#")[1]);
		} else {
			imgcal = document.getElementById('btn-'+cal);
			cal = document.getElementById(cal);
		}
	}
	if (cal.style.display != "block") {
		cal.style.display = "block";
		if(imgcal != '') {
			imgcal.alt = imgcal.alt.replace("보기", "닫기");
			imgcal.src = imgcal.src.replace("_on.gif", "_off.gif");
		}
	} else {
		cal.style.display = "none";
		if(imgcal != '') {
			imgcal.alt = imgcal.alt.replace("닫기", "보기");
			imgcal.src = imgcal.src.replace("_off.gif", "_on.gif");
		}
	}
}
/* 바로가기 토글*/
function toglst(cal) {
	if (typeof cal == "string") {
		if (cal.split("#")[1]) {
			cal = document.getElementById(cal.split("#")[1]);
		} else {
			cal = document.getElementById(cal);
		}
	}
	if (cal.style.display != "block") {
		cal.style.display = "block";
	} else {
		cal.style.display = "none";
	}
	var lnk = cal.getElementsByTagName("a");
	for (i=0; i<lnk.length; i++) {
		lnk[i].onclick = function() {
			cal.style.display = "none";
			document.getElementById('kindinp').value = this.title
		}
	}
}
