
/* Flash Function(ÆÄÀÏ°æ·Î, °¡·Î, ¼¼·Î, ¾ÆÀÌµð, ¹è°æ»ö, º¯¼ö, À©µµ¿ì¸ðµå)*/

function flashWrite(url,w,h,id,bg,vars,win){
var flashStr=
"<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+"' align='middle'>"+
"<param name='allowScriptAccess' value='always' />"+
"<param name='movie' value='"+url+"' />"+
"<param name='FlashVars' value='"+vars+"' />"+
"<param name='wmode' value='"+win+"' />"+
"<param name='menu' value='false' />"+
"<param name='quality' value='high' />"+
"<param name='bgcolor' value='"+bg+"' />"+
"<param name='base' value='.'>"+

"<embed src='"+url+"' FlashVars='"+vars+"' wmode='"+win+"' menu='false' qinitTabMenu uality='high' bgcolor='"+bg+"' width='"+w+"' height='"+h+"' name='"+id+"' align='middle' allowScriptAccess='always' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/etflashplayer' />"+
"</object>";
document.write(flashStr);
}


/* IMAGE_ROLLOVER*/

function imgmenuOn(imgEl){
	imgEl.src = imgEl.src.replace(".gif", "_on.gif");
}

function imgmenuOut(imgEl){
	imgEl.src = imgEl.src.replace("_on.gif", ".gif");
}

function TabmenuOn(imgEl){
	imgEl.src = imgEl.src.replace(".gif", "_over.gif");
}

function TabmenuOut(imgEl){
	imgEl.src = imgEl.src.replace("_over.gif", ".gif");
}


/* Åõ¸í png Ä¡È¯ */
function setPng24(obj,switche) {
	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='';
	return '';
}

/* µû¶ó´Ù´Ï´Â top*/
ScroolTop = function(className, id) {
this.IE = document.all ? 1 : 0;
this.NN = document.layer ? 1 : 0;
this.N6 = document.getElementById ? 1 : 0;
if(this.IE) this.layer = document.all(id);
else if(this.NN) this.layer = document.layer[id];
else if(this.N6) this.layer = document.getElementById(id);
else return;
this.className = className;
this.top = this.oldY = parseInt(this.layer.style.top,10);
setInterval(this.className + ".move()", 10);
}
ScroolTop.prototype.move = function() {
	var diffY = (this.IE) ? document.documentElement.scrollTop+this.top : self.pageYOffset+this.top; // Ç¥ÁØ¿¡´Â document.documentElement.scrollTop
	if(diffY != this.oldY) {
		var percentY = .1 * (diffY - this.oldY);
		percentY = (percentY > 0) ? Math.ceil(percentY) : Math.floor(percentY);

		this.oldY += percentY;
		this.layer.style.top = this.oldY + "px";
	}
}

function ShowTab(n){
	if(document.getElementById("searchTab"+n).style.display == 'none'){
		for(var i=1; i<4; i++){
			var imgobj = document.getElementById("stab"+i);

			if(i != n){
				imgobj.src = imgobj.src.replace("_on.gif", ".gif");
				document.getElementById("searchTab"+i).style.display = 'none';
			}
			else{
				imgobj.src = imgobj.src.replace(".gif", "_on.gif");
				document.getElementById("searchTab"+i).style.display = '';
			}
		}
	}
}

function Show_tabfaq(n){
	for(var i=1; i<7; i++){
		var Tabmenu = document.getElementById("tab_faqm"+i);

		if(i != n){
			Tabmenu.style.display = 'none';
		}else{
			Tabmenu.style.display = '';
		}
	}
}


function ShowSMTab(n){
	for(var i=1; i<4; i++){
		var img = document.getElementById("stab"+i);

		if(i != n){
			img.src = img.src.replace("_on.gif", ".gif");
			document.getElementById("sm_Tab"+i).style.display = 'none';
		}
		else{
			img.src = img.src.replace(".gif", "_on.gif");
			document.getElementById("sm_Tab"+i).style.display = '';
		}
	}
}

function Print_tab(n){
	if(document.getElementById("tab_print"+n).style.display == 'none'){
		for(var i=1; i<6; i++){
			var img = document.getElementById("Ptab"+i);

			if(i != n){
				img.src = img.src.replace("_on.gif", ".gif");
				document.getElementById("tab_print"+i).style.display = 'none';
			}
			else{
				img.src = img.src.replace(".gif", "_on.gif");
				document.getElementById("tab_print"+i).style.display = '';
			}
		}
	}
}

function Studio_tab(n){
	if(document.getElementById("ptype"+n).style.display == 'none'){
		for(var i=1; i<6; i++){
			
			if(i != n){
				document.getElementById("mn"+i).innerHTML="<a href='javascript:Studio_tab("+i+");'><img src='http://img3.imory.co.kr/front/images/main/mn_studio0"+i+".gif' onMouseOver='TabmenuOn(this);' onMouseOut='TabmenuOut(this);' /></a>"
				document.getElementById("ptype"+i).style.display = 'none';
			}
			else{
				document.getElementById("mn"+n).innerHTML="<a href='javascript:Studio_tab("+n+");'><img src='http://img3.imory.co.kr/front/images/main/mn_studio0"+n+"_on.gif' /></a>"
				document.getElementById("ptype"+i).style.display = '';
			}
		}
	}
}

function ShowQuick() {
	if(document.getElementById('squick_open').style.display == ''){
		document.getElementById('squick_open').style.display = 'none';
		document.getElementById('squick_close').style.display = '';
	}else{
		document.getElementById('squick_close').style.display = 'none';
		document.getElementById('squick_open').style.display = '';
	}
}

function Showlayer(id,objTop,objLeft) {
	document.getElementById(id).style.display='';
	document.getElementById(id).style.top = objTop;
	document.getElementById(id).style.left = objLeft;
}

function Hiddenlayer(id) {
	document.getElementById(id).style.display='none';
}

function CaleShow(id,objTop,objLeft) {
	document.getElementById('calendar'+id).style.display='';
	document.getElementById('calendar'+id).style.top = objTop;
	document.getElementById('calendar'+id).style.left = objLeft;
}

function CaleHidden(id) {
	document.getElementById('calendar'+id).style.display='none';
}

function ShowInfo(id,objTop,objLeft,tit,price){
	vtxt="<dl><dt>"+tit+"</dt><dd>£Ü "+price+"¿ø</dd></dl>";
	document.getElementById(id).innerHTML = vtxt;
	document.getElementById(id).style.display='';
	document.getElementById(id).style.top = objTop;
	document.getElementById(id).style.left = objLeft;
}

function ShowCombo(id){
	if (document.getElementById(id).style.display=='none'){
		document.getElementById(id).style.display='';
	}else{
		document.getElementById(id).style.display='none';
	}
}
function HideCombo(id){
	if (document.getElementById(id).style.display==''){
		document.getElementById(id).style.display='none';
	}
}


function ShowSearch() {
	var fSwf= document.getElementById('fSearch');
	fSwf.style.display = "";
	fSwf.innerHTML = "<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='977' height='380' id='searchSwf' align='middle'><param name='allowScriptAccess' value='always' /><param name='movie' value='/front/common/ext/flash/search/fast_search.swf' /><param name='FlashVars' value='' /><param name='wmode' value='transparent' /><param name='menu' value='false' /><param name='quality' value='high' /><param name='bgcolor' value='' /><param name='base' value='.'><embed src='/front/common/ext/flash/search/fast_search.swf' FlashVars='' wmode='transparent' menu='false' qinitTabMenu uality='high' bgcolor='' width='977' height='380' name='searchSwf' align='middle' allowScriptAccess='always' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/etflashplayer' /></object>";
}
function HiddenSearch() {
	var fSwf = document.getElementById('fSearch');
	fSwf.style.display = "none";
	fSwf.innerHTML = "";
}

function pageTop(){
	window.scrollTo(0, 0);
}

function WeddingLayer(id,objTop,objLeft,tit,cont) {
	document.getElementById('layerinfo_tit').innerHTML=tit;
	document.getElementById('layerinfo_cont').innerHTML=cont;
	document.getElementById(id).style.display='';
	document.getElementById(id).style.top=objTop;
	document.getElementById(id).style.left=objLeft;
}


function ShowSchedule(){

	var obj_layer = document.getElementById('ScheduleLayer');
	
	var st=document.body.scrollTop;
	var sl=document.body.scrollLeft;
	
	var sTop = st+event.y-5;
	var sLeft = sl+event.x-63;

	obj_layer.style.display="";
	obj_layer.style.top=sTop;
	obj_layer.style.left=sLeft;
}


/*POPUP*/

function pop_friend(){ //¸ÞÀÎ- Ä£±¸ÃßÃµÇÏ±â
	window.open("/front/Main/P_Recom_Friend01.jsp", "P_Recom_Friend", "scrollbars=no,status=no,toolbar=no,resizable=no,location=no,menu=no,width=600,height=835");
}

function pop_login(){ //·Î±×ÀÎ-È¸¿ø
	window.open("/front/Member/P_Login.jsp", "P_Login", "scrollbars=no,status=no,toolbar=no,resizable=no,location=no,menu=no,width=431,height=335");
}
function pop_loginguest(){ //·Î±×ÀÎ-ºñÈ¸¿ø
	window.open("/front/Member/P_Login_guest.jsp", "P_Login_guest", "scrollbars=no,status=no,toolbar=no,resizable=no,location=no,menu=no,width=431,height=345");
}

function pop_pwemail(){ //PW ÀÌ¸ÞÀÏ·Î ¹ß¼Û
	window.open("/front/Member/P_MatchPW_Email.jsp", "P_MatchPW_Email", "scrollbars=no,status=no,toolbar=no,resizable=no,location=no,menu=no,width=431,height=355");
}
function pop_pwhint(){ //PW ÈùÆ®
	window.open("/front/Member/P_MatchPW_Hint01.jsp", "P_MatchPW_Hint01", "scrollbars=no,status=no,toolbar=no,resizable=no,location=no,menu=no,width=431,height=355");
}
function pop_pwphone(){ //PW ÈùÆ® - ÇÚµåÆù
	window.open("/front/Member/P_MatchPW_Phone01.jsp", "P_MatchPW_Phone01", "scrollbars=no,status=no,toolbar=no,resizable=no,location=no,menu=no,width=431,height=355");
}
function pop_agree(){ //ºÎ¸ðµ¿ÀÇÀýÂ÷
	window.open("/front/Member/P_JoinAgree01.jsp", "P_JoinAgree", "scrollbars=no,status=no,toolbar=no,resizable=no,location=no,menu=no,width=431,height=355");
}
function pop_agree_email(){ //ºÎ¸ðµ¿ÀÇÀýÂ÷(ÀÌ¸ÞÀÏ)
	window.open("/front/Member/P_JoinAgree01_Email.jsp", "P_JoinAgree", "scrollbars=no,status=no,toolbar=no,resizable=no,location=no,menu=no,width=431,height=355");
}
function pop_agree_auth(){ //½Ç¸íÀÎÁõ
	window.open("/front/Member/P_JoinAgreeAuth.jsp", "P_JoinAgreeAuth", "scrollbars=no,status=no,toolbar=no,resizable=no,location=no,menu=no,width=431,height=310");
}
function pop_webhard(){ //¾ÆÀÌ¸ð¸®À¥ÇÏµå
	window.open("/front/Member/P_WebHard.jsp", "P_WebHard", "scrollbars=no,status=no,toolbar=no,resizable=no,location=no,menu=no,width=431,height=355");
}
function pop_idchk(){ //¾ÆÀÌµðÁßº¹Ã¼Å©
	window.open("/front/Member/P_JoinIDCheck.jsp", "P_JoinIDCheck", "scrollbars=no,status=no,toolbar=no,resizable=no,location=no,menu=no,width=431,height=280");
}
function pop_nickchk(){ //´ÐÁßº¹Ã¼Å©
	window.open("/front/Member/P_JoinNickCheck.jsp", "P_JoinNickCheck", "scrollbars=no,status=no,toolbar=no,resizable=no,location=no,menu=no,width=431,height=280");
}
function pop_post(){ //¿ìÆí¹øÈ£°Ë»ö
	window.open("/front/Member/P_JoinPost.jsp", "P_JoinPost", "scrollbars=no,status=no,toolbar=no,resizable=no,location=no,menu=no,width=431,height=310");
}
function pop_business(){ //¾÷Á¾°Ë»ö
	window.open("/front/Member/P_JoinBusiness.jsp", "P_JoinBusiness", "scrollbars=no,status=no,toolbar=no,resizable=no,location=no,menu=no,width=431,height=355");
}

function pop_bestquality(){ //ÃÖ°íÇ°Áú º¸ÁõÁ¦µµ
	window.open("/front/Print/display/P_BestQuality.jsp", "P_BestQuality", "scrollbars=no,status=no,toolbar=no,resizable=no,location=no,menu=no,width=641,height=480");
}
function pop_contentspaper(){ //ÀÎÈ­ ¿É¼Ç¾È³»
	window.open("/front/Print/display/P_ContentsPaper.jsp", "P_ContentsPaper", "scrollbars=no,status=no,toolbar=no,resizable=no,location=no,menu=no,width=641,height=624");
}
function pop_eyemagic(){ // ¾ÆÀÌ¸ÅÁ÷¼­ºñ½º
	window.open("/front/Print/display/P_Eyemagic.jsp", "P_ContentsPaper", "scrollbars=no,status=no,toolbar=no,resizable=no,location=no,menu=no,width=676,height=680");
}

function pop_photopride(){ //»Ë³»±â ÀÛÇ°
	window.open("/front/Photo/display/P_PhotoPride.jsp", "P_PhotoPride", "scrollbars=no,status=no,toolbar=no,resizable=no,location=no,menu=no,width=671,height=550");
}
function pop_selectcover(){ //Ç¥Áö¿ø´Ü ¼±ÅÃ
	window.open("/front/Photo/display/P_SelectCover.jsp", "P_SelectCover", "scrollbars=no,status=no,toolbar=no,resizable=no,location=no,menu=no,width=431,height=415");
}
function pop_dvdguide(){ //DVD Á¦ÀÛ °¡ÀÌµå
	window.open("/front/Photo/display/P_DVDGuide.jsp", "P_DVDGuide", "scrollbars=no,status=no,toolbar=no,resizable=no,location=no,menu=no,width=641,height=545");
}
function pop_bigsale(){ // ¾Ù¹ü ´ë·®ÇÒÀÎ°¡
	window.open("/front/Photo/display/P_BigSale.jsp", "P_BigSale", "scrollbars=no,status=no,toolbar=no,resizable=no,location=no,menu=no,width=641,height=655");
}

function pop_studio(){ //½ºÆ©µð¿À ÃÔ¿µ½ºÄÉÁÙ º¸±â
	window.open("/front/Studio/display/P_StudioSchedule.jsp", "P_StudioSchedule", "scrollbars=no,status=no,toolbar=no,resizable=no,location=no,menu=no,width=451,height=540");
}
function pop_gallery(){ //¹Ì´Ï¼¥ °¶·¯¸®
	window.open("/front/Studio/minishop/P_Gallery.jsp", "P_Gallery", "scrollbars=yes,status=no,toolbar=no,resizable=no,location=no,menu=no,width=901,height=750");
}

function pop_cartaddress(){ //°ú°Å ¹è¼ÛÁö Á¤º¸
	window.open("/front/Cart/P_CartReport_Address.jsp", "P_CartReport_Address", "scrollbars=no,status=no,toolbar=no,resizable=no,location=no,menu=no,width=531,height=400");
}
function pop_cartprint(){ //»çÁøÀÎÈ­ ¿É¼ÇÁ¤º¸
	window.open("/front/Cart/P_CartReport_print.jsp", "P_CartReport_print", "scrollbars=no,status=no,toolbar=no,resizable=no,location=no,menu=no,width=641,height=435");
}
function pop_cartbook(){ //Æ÷ÅäºÏ½ºÅä¾î ¿É¼ÇÁ¤º¸
	window.open("/front/Cart/P_CartReport_book.jsp", "P_CartReport_book", "scrollbars=no,status=no,toolbar=no,resizable=no,location=no,menu=no,width=431,height=300");
}

function pop_showphoto(){ //»çÁøº¸±â
	window.open("/front/Gallery/P_ShowPhoto.jsp", "P_ShowPhoto", "scrollbars=no,status=no,toolbar=no,resizable=no,location=no,menu=no,width=651,height=500");
}
function pop_showproduct(){ //»óÇ°º¸±â
	window.open("/front/Gallery/P_ShowProduct.jsp", "P_ShowProduct", "scrollbars=no,status=no,toolbar=no,resizable=no,location=no,menu=no,width=795,height=690");
}

function pop_mileagechange(){ //¸¶ÀÏ¸®ÁöÀüÈ¯
	window.open("/front/Mypage/benefit/P_MileageChange.jsp", "P_MileageChange", "scrollbars=no,status=no,toolbar=no,resizable=no,location=no,menu=no,width=531,height=600");
}
function pop_couponprod(){ //»ç¿ë°¡´É ÄíÆùÀû¿ë»óÇ°
	window.open("/front/Mypage/benefit/P_CouponProduct.jsp", "P_CouponProduct", "scrollbars=no,status=no,toolbar=no,resizable=no,location=no,menu=no,width=641,height=435");
}
function pop_price(){ //»óÇ° °¡°Ý´ëº° ¼ö¼ö·á
	window.open("/front/Mypage/seller/P_Price.jsp", "P_Price", "scrollbars=no,status=no,toolbar=no,resizable=no,location=no,menu=no,width=431,height=340");
}
function pop_coupon(){ //ÄíÆù¹ßÇà
	window.open("/front/Mypage/seller/P_Coupon.jsp", "P_Coupon", "scrollbars=no,status=no,toolbar=no,resizable=no,location=no,menu=no,width=431,height=450");
}
function pop_scoupon(){ //ÆÇ¸ÅÀÚÄíÆù¹Þ±â
	window.open("/front/Mypage/seller/P_Coupon_down.jsp", "P_Coupon", "scrollbars=no,status=no,toolbar=no,resizable=no,location=no,menu=no,width=531,height=500");
}
function pop_sellergrade(){ //ÆÇ¸ÅÀÚ µî±Þ ¹× ÇýÅÃ
	window.open("/front/Mypage/seller/P_SellerGrade.jsp", "P_Coupon", "scrollbars=no,status=no,toolbar=no,resizable=no,location=no,menu=no,width=431,height=500");
}
function pop_formselect(){//Ç¥ÁØ¾ç½Ä
	window.open("/front/Mypage/seller/P_FormSelect.jsp", "P_FormSelect", "scrollbars=no,status=no,toolbar=no,resizable=no,location=no,menu=no,width=791,height=400");
}
function pop_ordercancel(){ //ÁÖ¹®Ãë¼Ò
	window.open("/front/Mypage/order/P_OrderCancel.jsp", "P_OrderCancel", "scrollbars=no,status=no,toolbar=no,resizable=no,location=no,menu=no,width=531,height=600");
}
function pop_productWrite(){ //»óÇ°Æò¾²±â
	window.open("/front/Mypage/order/P_MyProduct_Write.jsp", "P_ProductWrite", "scrollbars=no,status=no,toolbar=no,resizable=no,location=no,menu=no,width=650,height=450");
}
function pop_orderchange(){ //±³È¯½ÅÃ»
	window.open("/front/Mypage/order/P_OrderChange.jsp", "P_OrderChange", "scrollbars=no,status=no,toolbar=no,resizable=no,location=no,menu=no,width=531,height=600");
}
function pop_receiptapp(){ //¼¼±Ý°è»ê¼­½ÅÃ»
	window.open("/front/Mypage/order/P_ReceiptApp.jsp", "P_ReceiptApp", "scrollbars=no,status=no,toolbar=no,resizable=no,location=no,menu=no,width=501,height=520");
}
function pop_lgmember(){ //LGÀÓÁ÷¿øµî·Ï
	window.open("/front/Mypage/member/P_LGMember.jsp", "P_LGMember", "scrollbars=no,status=no,toolbar=no,resizable=no,location=no,menu=no,width=491,height=410");
}
function pop_memgrade(){ //µî±Þº°ÇýÅÃ
	window.open("/front/Mypage/member/P_MemGrade.jsp", "P_MemGrade", "scrollbars=no,status=no,toolbar=no,resizable=no,location=no,menu=no,width=531,height=440");
}
function pop_productNew(){ //¿É¼ÇÁ¤º¸ ÀÚ¼¼È÷º¸±â
	window.open("/front/Mypage/seller/P_ProductNew.jsp", "P_ProductNew", "scrollbars=no,status=no,toolbar=no,resizable=no,location=no,menu=no,width=531,height=600");
}
function pop_vaccine01(){ //ÇØÅ·Â÷´ÜÇÁ·Î±×·¥ ½ÇÇàÁß
	window.open("/front/common/etc/P_Vaccine_Progress.jsp", "P_Vaccine_Progress", "scrollbars=no,status=no,toolbar=no,resizable=no,location=no,menu=no,width=550,height=552");
}
function pop_vaccine02(){ //ÇØÅ·Â÷´ÜÇÁ·Î±×·¥ ½ÇÇàÁß
	window.open("/front/common/etc/P_Vaccine_Guide.jsp", "P_Vaccine_Guide", "scrollbars=no,status=no,toolbar=no,resizable=no,location=no,menu=no,width=550,height=556");
}
function pop_SellerCInfo(){ //ÇØÅ·Â÷´ÜÇÁ·Î±×·¥ ½ÇÇàÁß
	window.open("/front/Main/P_SellerChange_Info.jsp", "P_SellerCInfo", "scrollbars=no,status=no,toolbar=no,resizable=no,location=no,menu=no,width=531,height=556");
}
function pop_sendmail01(){ //Ä«µå¸ÞÀÏº¸³»±â
	window.open("/front/Photohard/P_SendMail01.jsp", "P_SendMail01", "scrollbars=no,status=no,toolbar=no,resizable=no,location=no,menu=no,width=648,height=535");
}
function pop_sendmail02(){ //Ä«µå¸ÞÀÏº¸³»±â
	window.open("/front/Photohard/P_SendMail02.jsp", "P_SendMail02", "scrollbars=no,status=no,toolbar=no,resizable=no,location=no,menu=no,width=648,height=535");
}
function pop_sendmail03(){ //Ä«µå¸ÞÀÏº¸³»±â
	window.open("/front/Photohard/P_SendMail03.jsp", "P_SendMail03", "scrollbars=no,status=no,toolbar=no,resizable=no,location=no,menu=no,width=648,height=552");
}
function pop_proud(){ //»Ì³»±â
	window.open("/front/Gallery/P_Proud.jsp", "P_Proud", "scrollbars=no,status=no,toolbar=no,resizable=no,location=no,menu=no,width=645,height=488");
}
function pop_display(){ //°¶·¯¸® Àü½ÃÇÏ±â
	window.open("/front/Gallery/P_Display.jsp", "P_Display", "scrollbars=no,status=no,toolbar=no,resizable=no,location=no,menu=no,width=645,height=483");
}

function pop_cartquick(){ //Äü¼­ºñ½ººñ¿ë ÀÚ¼¼È÷º¸±â
	window.open("/front/cart/P_CartReport_quick.jsp", "P_CartQuick", "scrollbars=no,status=no,toolbar=no,resizable=no,location=no,menu=no,width=531,height=620");
}



function FooterMenu(val){
	switch(val) { 
		case 1 : url='/front/Guide/etc/Cooper.jsp';name='1';w="531";h="600"; break;
		case 2 : url='/front/Guide/etc/Adask.jsp';name='2';w="531";h="600"; break;
		case 3 : url='/front/Guide/etc/Mallask.jsp';name='3';w="531";h="600"; break;
		case 4 : url='/front/Guide/etc/Rule.jsp';name='4';w="531";h="600"; break;
		case 5 : url='/front/Guide/etc/Policy.jsp';name='5';w="531";h="600"; break;
		case 6 : url='/front/Guide/etc/Mileage.jsp';name='6';w="531";h="600"; break;
		case 7 : url='/front/Guide/etc/Separateask.jsp';name='7';w="531";h="360"; break;
		case 8 : url='/front/Webzin/wed_ask.jsp';name='8';w="531";h="340"; break;
		case 9 : url='/front/Guide/etc/Rule_ew.jsp';name='9';w="531";h="600"; break;
	}
	window.open(url, "fm"+name, "scrollbars=no,status=no,toolbar=no,resizable=no,location=no,menu=no,width="+w+",height="+h+"");
	
}
function CouponMenu(val){
	switch(val) { 
		case 1 : url='/front/Guide/etc/coupon.jsp';name='1';w="471";h="506"; break;
	}
	window.open(url, "fm"+name, "scrollbars=no,status=no,toolbar=no,resizable=no,location=no,menu=no,width="+w+",height="+h+"");
	
}


	/* »óÇ°»ó¼¼ ÀÌ¹ÌÁö ´õº¸±â*/

	function  loadListImage(i, topIndex){
		var sImg,link;
		no = i + topIndex;
		sImg = eval('document.images.sImg' + i);
		if(photoList[no] == null){
			sImg.style.display='none';
			return;
		}
		sImg.src = photoList[no].sImage.src = photoList[no].sImageSrc;
		if(!photoList[no].sImage.complete){
			setTimeout("loadListImage("+i+","+topIndex+")",100);
			return;
		}
		
		sImg.src = photoList[i + topIndex].sImage.src;
		link = document.getElementById('link' + i);
		link.href = photoList[i + topIndex].link;
	}
	
	function changeImgList(topIndex) {
		if(photoList.length < 8 || topIndex == 0){
			document.images.btn_up.style.cursor = "default";
		} else {
			document.images.btn_up.style.cursor = "hand";
		}
		if(photoList.length < 8 || topIndex == photoList.length - 7){
			document.images.btn_down.style.cursor = "default";
		} else {
			document.images.btn_down.style.cursor = "hand";
		} 
		for(i=0; i<7; i++){
			loadListImage(i , topIndex);
		}
	}
	
	function imgListUp() {
		if(photoList.length < 8 || topImageIdx == 0) { return; }
		changeImgList(--topImageIdx);
	}
	
	function imgListDown() {
		if(photoList.length < 8 || topImageIdx == photoList.length - 7) { return; }
		changeImgList(++topImageIdx);
	}
	
	function changeList( k ) {

		var ad = document.getElementById('ad0');

		if ( k < prnt.length ) {
			ad.innerHTML = prnt[k];
		}
	}

	function ListUp() {
		if ( adls == 0 ) { return; }
		adls--;
		changeList(adls);
	}

	function ListDown() {
		if ( adls >= prnt.length ) { return; }
		adls++;
		changeList(adls);
	}

	//* ´õº¸±â ÀÌ¹ÌÁö ¸®½ºÆ® ½ÃÀÛ*/
	var adls = 0;
	var prnt = new Array();

	
	prnt[0] = "";
					 
	prnt[0] += "<div class='Smpl' onclick=\"changeView('http://img3.imory.co.kr/front/images/common/layout/', '/user/wh/www/front/images/common/layout/', 'product_01.gif','' )\" style='cursor:hand'><img src='http://img3.imory.co.kr/front/images/common/layout/product_01.gif' width='65' height='65' vspace='12' style='border:1px solid #FF7E00;'></div>";
		
	prnt[0] += "<div class='Smpl' onclick=\"changeView('http://img3.imory.co.kr/front/images/common/layout/', '/user/wh/www/front/images/common/layout/', 'product_02.gif','' )\" style='cursor:hand'><img src='http://img3.imory.co.kr/front/images/common/layout/product_02.gif' width='65' height='65' vspace='12'></div>";
	
	prnt[0] += "<div class='Smpl' onclick=\"changeView('http://img3.imory.co.kr/front/images/common/layout/', '/user/wh/www/front/images/common/layout/', 'product_03.gif','' )\" style='cursor:hand'><img src='http://img3.imory.co.kr/front/images/common/layout/product_03.gif' width='65' height='65' vspace='12'></div>";
	
	prnt[1] = "";
	
	prnt[1] += "<div class='Smpl' onclick=\"changeView('http://img3.imory.co.kr/front/images/common/layout/', '/user/wh/www/front/images/common/layout/', 'product_04.gif','' )\" style='cursor:hand'><img src='http://img3.imory.co.kr/front/images/common/layout/product_04.gif' width='65' height='65' vspace='12'></div>";
	
	prnt[1] += "<div class='Smpl' onclick=\"changeView('http://img3.imory.co.kr/front/images/common/layout/', '/user/wh/www/front/images/common/layout/', 'product_05.gif','' )\" style='cursor:hand'><img src='http://img3.imory.co.kr/front/images/common/layout/product_05.gif' width='65' height='65' vspace='12'></div>";
	
	

	//* ´õº¸±â ÀÌ¹ÌÁö ¸®½ºÆ® ³¡*/


	/* ´õº¸±â ÀÌ¹ÌÁö Å¬¸¯½Ã ÀÌ¹ÌÁö º¯°æ*/
	function changeView( webPath, sysPath, fileNm , title ){
		
		var viewer = document.getElementById( "viewer" );
		var viewtitle = document.getElementById( "viewtitle" );
		var files		= document.getElementById( "files" );
		var orgs	
	= document.getElementById( "orgv" );
		viewer.src = webPath+fileNm;
		viewer.onclick = function ()	{ 
			viewImage( webPath, fileNm );
		}
		files.onclick = function ()	{ 
			ufoDownload( sysPath, fileNm );
		}
		orgs.onclick = function ()	{ 
			viewImage( webPath, fileNm );
		}
	}	


	/* »çÁøÀÎÈ­ Áõ¸íÀÎÈ­ ½ºÅ²´õº¸±â*/
	function fn_changeDiv(divName) {
	  var ele = document.getElementsByName(divName);

	  if (ele.length > 1) {
	   for (var i=0; i < ele.length; i++) {
		if (ele[i].style.display == "none") {
		 ele[i].style.display = "block";
		} else {
		 ele[i].style.display = "none";
		}
	   }
	  }
	 }


/* »ó¼¼ °áÁ¦¾È³» */
function layOver(name) {
 submenu = eval("layer"+name+".style");
 submenu.display = "block";
}
function layOut(name) {
 submenu = eval("layer"+name+".style");
 submenu.display = "none";
}
