
//ie-patch°ü·Ã Ãß°¡ 
function iePatchIt(flashID) {
	document.write(flashID.innerHTML);flashID.id="";
}
function Img(n,tog){eval("document.m"+n+".src=m"+n+"_"+tog+".src"); } //ÀÌ¹ÌÁö ·Ñ¿À¹ö
function pop(url,name,w,h){ window.open(url,name,'width='+w+',height='+h+',scrollbars=no') } //Popup(½ºÅ©·Ñ¹Ù¾øÀ½)
function pops(url,name,w,h){ window.open(url,name,'width='+w+',height='+h+',scrollbars=yes') } //Popup(½ºÅ©·Ñ¹ÙÀÖÀ½)


//ÇÏÀÌÆÛ¸µÅ©
function home(){location.href="/index.jsp";} //
function duowed(){location.href="/branch/product/duowed.jsp";} //
function leehwa(){location.href="/branch/product/leehwa.jsp";} //
function brochure(){ window.open('http://mip.cybermed.co.kr/lotte/dm/wedding/wedding.html','brochure','width=1024,height=768,scrollbars=yes');}
function dress(did){ location.href="/guide/consulting/mantoman.jsp?sseq=D&s_num="+did;}
function studio(sid){ location.href="/guide/consulting/mantoman.jsp?sseq=S&s_num="+sid;}
function makeup(mid){ location.href="/guide/consulting/mantoman.jsp?sseq=H&s_num="+mid;}
function bouquet(bid){ location.href="/guide/consulting/mantoman.jsp?sseq=C&s_num="+bid;}
function wear(wid){ location.href="/guide/consulting/mantoman.jsp?sseq=K&s_num="+wid;}

function daegu(sseq,wid){ 
	location.href="/guide/consulting/mantoman.jsp?area=D&sseq="+sseq+"&s_num="+wid;
	//alert(sseq);
	//alert("___"+sseq+"++"+wid);
	}
function pusan(sseq,wid){ location.href="/guide/consulting/mantoman.jsp?area=B&sseq="+sseq+"&s_num="+wid;}

function join(){location.href="/join/join.jsp";}


/*center*/
u1="/center/index.jsp";
u11="/center/center.jsp";
u12="/center/service.jsp";
u13="/center/mileage.jsp";
u14="/center/benifit.jsp";

u10="http://www.lottewed.com/center/mileage.jsp";		//¿þµù¸¶ÀÏ¸®Áö
u101="/my/registry.jsp";
u102="/my/registry.jsp";
u103="/my/card.jsp";


u2="/guide/index.jsp";
u21="/guide/consulting/mantoman.jsp";
u211="/guide/consulting/mantoman.jsp";	// 1:1ÄÁ¼³ÆÃ
u212="/guide/consulting/self.jsp";			// ¼¿ÇÁ ÄÁ¼³ÆÃ

u22="/guide/photo/photo.jsp";				//°áÈ¥½Ä ÁØºñ
u221="/guide/photo/photo.jsp";				// ¿þµùÆ÷Åä
u222="/guide/makeup/makeup.jsp";		// ¸ÞÀÌÅ©¾÷/Çì¾î
u223="/guide/dress/dress.jsp";				// ¿þµùµå·¹½º
u224="/guide/bouquet/bouquet.jsp";	 	// ¿þµùºÎÄÉ
u225="/guide/skin/skin.jsp";					// ÇÇºÎ°ü¸®
u226="/guide/wear/wear.jsp";				// ÇÑº¹
u227="/guide/house/house.jsp";			// ½ÅÈ¥Áý
u228="/guide/card/card.jsp";					// Ã»Ã¸Àå
u229="/guide/meeting/meeting.jsp";		// »ó°ß·Ê

u23="/guide/furniture/furniture.jsp";		//È¥¼ö ÁØºñ
u231="/guide/furniture/furniture.jsp";		 // °¡±¸
u232="/guide/kitchen/kitchen.jsp";			// ÁÖ¹æ¿ëÇ°/Ä§±¸
u233="/guide/gift/gift.jsp";						// ¿¹¹°/¿¹´Ü
u234="/guide/appliance/appliance.jsp";	// °¡Àü


//u3="/branch/product/product_list.jsp?branch_code="+branch_code+"&s_product_category=001";
u3="/gallery/index.jsp";
u31=u21;	//ÃßÃµÆÐÅ°Áö
u311=u211;	//ÃßÃµÆÐÅ°Áö
u312=u212;	//ÃßÃµÆÐÅ°Áö
u32="/gallery/product_list.jsp?s_product_category=001";	 //-µå·¹½º/ÅÎ½Ãµµ 
u33="/gallery/product_list.jsp?s_product_category=002";	 //-½ºÆ©µð¿À      
u34="/gallery/product_list.jsp?s_product_category=003";	 //-Çì¾î/¸ÞÀÌÅ©¾÷ 
u35="/gallery/product_list.jsp?s_product_category=004";	 //-ºÎÄÉ/ÃàÇÏ¿¬ÁÖ 
u36="/gallery/product_list.jsp?s_product_category=005";	 //-ÇÑº¹/Æó¹é     
u37=u647="/gallery/product_honeymoon.jsp";	//½ÅÈ¥¿©Çà
u38="/branch/main/product_dress.jsp";
u381="/branch/main/product_dress.jsp";
u382="/branch/jamsil/product_dress.jsp";
u383="/branch/pusan/product_dress.jsp";
u384="/branch/daegu/product_dress.jsp";



//¿þµù½ºÅä¸®
u4="/story/index.jsp";
u41="/story/wedding.jsp";//¿þµùQ&A
u42="/story/tour.jsp";//¿©ÇàQ&A
u43="/story/couple.jsp";//½Å¶û½ÅºÎÀÌ¾ß±â
u44="/story/photo.jsp";//Æ÷Åä½ºÅä¸®
u45="/story/card.jsp";//E-Ã»Ã¸Àå

//¸¶ÀÌ¿þµå
u5="/my/index.jsp";
u51="/my/mileage.jsp";//¸¶ÀÏ¸®ÁöÁ¶È¸
u52="/my/schedule.jsp";//¿þµù½ºÄÉÁÙ
u53="/my/calculator.jsp";//¿þµù¿¹»ê°ü¸®
u54="/my/consultant.jsp";//¸¶ÀÌ ÄÁ¼³ÅÏÆ®
u55="/my/registry.jsp";//¸¶ÀÌ·¹Áö½ºÆ®¸®
u56="/my/modify.jsp";//È¸¿øÁ¤º¸¼öÁ¤

/*°¶·¯¸®*/

/*u6="/gallery/index.jsp";
u61="/guide/index.jsp";
u611="/guide/consulting/mantoman.jsp";	// 1:1ÄÁ¼³ÆÃ
u612="/guide/consulting/self.jsp";			// ¼¿ÇÁ ÄÁ¼³ÆÃ
u62="/gallery/product_list.jsp?s_product_category=001";
u63="/gallery/product_list.jsp?s_product_category=002";
u64="/gallery/product_list.jsp?s_product_category=003";
u65="/gallery/product_list.jsp?s_product_category=004";
u66="/gallery/product_list.jsp?s_product_category=005";
u67="/gallery/product_honeymoon.jsp";*/
/*
u62=u621="/branch/marriage_wear.jsp?branch_code=001";
	u622="/branch/marriage_fashion.jsp?branch_code=001";
	u623="/branch/marriage_life.jsp?branch_code=001";
//	u624="/branch/marriage_food.jsp";
u63="/branch/event.jsp?branch_code=001";	//¿þµùÀÌº¥Æ®u63="/branch/main/event.jsp?branch_code=001";//
//u64="/branch/exhibition.jsp?branch_code=001";	//È¥¼ö»óÇ°î÷u64="/branch/main/exhibition.jsp?branch_code=001";//
u64="/branch/main/product_dress.jsp";	 //¿þµù»óÇ° ¼Ò°³
//	u641="/branch/main/product_package.jsp";	 //-ÃßÃµÆÐÅ°Áö
	u642="/branch/main/product_dress.jsp";	 //-µå·¹½º/ÅÎ½Ãµµ
	u643="/branch/main/product_studio.jsp";	 //-½ºÆ©µð¿À
	u644="/branch/main/product_makeup.jsp";	 //-Çì¾î/¸ÞÀÌÅ©¾÷
	u645="/branch/main/product_bouquet.jsp";	 //-ºÎÄÉ/ÃàÇÏ¿¬ÁÖ
	u646="/branch/main/product_wear.jsp";	 //-ÇÑº¹/Æó¹é
	u647="/branch/main/product_honeymoon.jsp";	 //-½ÅÈ¥¿©Çà
u65="/branch/main/manager.jsp";	//¿þµù ¸Å´ÏÁ® ¼Ò°³
u66="/branch/news.jsp?branch_code=001";	//¿þµù¼¾ÅÍ ´º½º


u7="/branch/jamsil/index.jsp";
u71="/branch/jamsil/info.jsp";	//Àá½ÇÁ¡ ¾È³»
u72=u721="/branch/marriage_wear.jsp?branch_code=002";
	u722="/branch/marriage_fashion.jsp?branch_code=002";
	u723="/branch/marriage_life.jsp?branch_code=002";
//	u724="/branch/marriage_food.jsp";
u73="/branch/event.jsp?branch_code=002";	//¿þµùÀÌº¥Æ®u73="/branch/main/event.jsp?branch_code=002";//
//u74="/branch/exhibition.jsp?branch_code=002";	//È¥¼ö»óÇ°î÷u74="/branch/main/exhibition.jsp?branch_code=002";//
u74="/branch/jamsil/product_dress.jsp";	 //¿þµù»óÇ° ¼Ò°³
//	u741="/branch/jamsil/product_package.jsp";	 //-ÃßÃµÆÐÅ°Áö
	u742="/branch/jamsil/product_dress.jsp";	 //-µå·¹½º/ÅÎ½Ãµµ
	u743="/branch/jamsil/product_studio.jsp";	 //-½ºÆ©µð¿À
	u744="/branch/jamsil/product_makeup.jsp";	 //-Çì¾î/¸ÞÀÌÅ©¾÷
	u745="/branch/jamsil/product_bouquet.jsp";	 //-ºÎÄÉ/ÃàÇÏ¿¬ÁÖ
	u746="/branch/jamsil/product_wear.jsp";	 //-ÇÑº¹/Æó¹é
	u747="/branch/jamsil/product_honeymoon.jsp";	 //-½ÅÈ¥¿©Çà
u75="/branch/jamsil/manager.jsp";	//¿þµù ¸Å´ÏÁ® ¼Ò°³
u76="/branch/news.jsp?branch_code=002";	//¿þµù¼¾ÅÍ ´º½º

u8="/branch/daegu/index.jsp";
u81="/branch/daegu/info.jsp";	//´ë±¸Á¡ ¾È³»
u82=u821="/branch/marriage_wear.jsp?branch_code=014";
	u822="/branch/marriage_fashion.jsp?branch_code=014";
	u823="/branch/marriage_life.jsp?branch_code=014";
//	u824="/branch/marriage_food.jsp";
u83="/branch/event.jsp?branch_code=014";	//¿þµùÀÌº¥Æ®u83="/branch/main/event.jsp?branch_code=014";//
//u84="/branch/exhibition.jsp?branch_code=014";	//È¥¼ö»óÇ°î÷u84="/branch/main/exhibition.jsp?branch_code=014";//
u84="/branch/daegu/product_dress.jsp";	 //¿þµù»óÇ° ¼Ò°³
//	u841="/branch/daegu/product.jsp";	 //-ÃßÃµÆÐÅ°Áö
	u842="/branch/daegu/product_dress.jsp";	 //-µå·¹½º/ÅÎ½Ãµµ
	u843="/branch/daegu/product_studio.jsp";	 //-½ºÆ©µð¿À
	u844="/branch/daegu/product_makeup.jsp";	 //-Çì¾î/¸ÞÀÌÅ©¾÷
	u845="/branch/daegu/product_bouquet.jsp";	 //-ºÎÄÉ/ÃàÇÏ¿¬ÁÖ
	u846="/branch/daegu/product_wear.jsp";	 //-ÇÑº¹/Æó¹é
	u847="/branch/daegu/product_honeymoon.jsp";	 //-½ÅÈ¥¿©Çà
u85="/branch/daegu/manager.jsp";	//¿þµù ¸Å´ÏÁ® ¼Ò°³
u86="/branch/news.jsp?branch_code=014";	//¿þµù¼¾ÅÍ ´º½º

u9="/branch/pusan/index.jsp";
u91="/branch/pusan/info.jsp";	//ºÎ»êÁ¡ ¾È³»
u92=u921="/branch/marriage_wear.jsp?branch_code=013";
	u922="/branch/marriage_fashion.jsp?branch_code=013";
	u923="/branch/marriage_life.jsp?branch_code=013";
//	u924="/branch/marriage_food.jsp";
u93="/branch/event.jsp?branch_code=013";	//¿þµùÀÌº¥Æ®u93="/branch/main/event.jsp?branch_code=013";//
//u94="/branch/exhibition.jsp?branch_code=013";	//È¥¼ö»óÇ°î÷u94="/branch/main/exhibition.jsp?branch_code=013";//
u94="/branch/pusan/product_dress.jsp";	 //¿þµù»óÇ° ¼Ò°³
//	u941="/branch/pusan/product_package.jsp";	 //-ÃßÃµÆÐÅ°Áö
	u942="/branch/pusan/product_dress.jsp";	 //-µå·¹½º/ÅÎ½Ãµµ
	u943="/branch/pusan/product_studio.jsp";	 //-½ºÆ©µð¿À
	u944="/branch/pusan/product_makeup.jsp";	 //-Çì¾î/¸ÞÀÌÅ©¾÷
	u945="/branch/pusan/product_bouquet.jsp";	 //-ºÎÄÉ/ÃàÇÏ¿¬ÁÖ
	u946="/branch/pusan/product_wear.jsp";	 //-ÇÑº¹/Æó¹é
	u947="/branch/pusan/product_honeymoon.jsp";	 //-½ÅÈ¥¿©Çà
u95="/branch/pusan/manager.jsp";	//¿þµù ¸Å´ÏÁ® ¼Ò°³
u96="/branch/news.jsp?branch_code=013";	//¿þµù¼¾ÅÍ ´º½º
*/

function link(){ //link(1,2)
	var url = "";
	var depth = arguments.length;
	try {
		if(depth==0) return;
/*
if (arguments[0]=="5" && arguments[1] =="5") {
			window.open('/cyberpr/mania/living/living.jsp','living','width=765,height=570,scrollbars=no');
			return;
		}
*/
		else if(depth==1) url = eval("u"+ arguments[0]);
		else if(depth==2) url = eval("u"+ arguments[0]+arguments[1]);
		else if(depth==3) url = eval("u"+ arguments[0]+arguments[1]+arguments[2]);
		else if(depth==4) url = eval("u"+ arguments[0]+arguments[1]+arguments[2]+arguments[3]);

		if(url=="") alert("ÁØºñÁßÀÔ´Ï´Ù.");
		else location.href = url;

	}catch(e) { alert("ÁØºñÁßÀÔ´Ï´Ù."); }
}

function marginB(){ //ÄÁÅÙÃ÷ÆäÀÌÁö ¿©¹éÀ» ÁÖ±âÀ§ÇÑ Å×ÀÌºí
document.write("<table cellpadding=0 cellspacing=0 border=0 width=500 height=40><tr><td></td></tr></table>");
}


//Select Box
function setSelectBox(selName){
	sel = eval("document.all."+selName);

	borderColor = sel.bordercolor;
	selWidth = parseInt(sel.width);
	bgColor = sel.bgcolor;
	rectLeft = selWidth-2;
	spanWidth = selWidth;

	//span tag
	header  = "<span style='position:relative;margin-right:0px;";
	header += "width:"+spanWidth+";height:20px;border:1px solid "+borderColor+";background-color:"+bgColor+";'>\n";
	header += "<span style='position: absolute;left:-1px;top:-1px;";
	header += "width:"+selWidth+";height:20px;clip:rect(2,"+rectLeft+",18,2);'>\n";
	footer = "</span></span>";

	sel.style.backgroundColor = bgColor;
	sel.style.width = selWidth;

	sel.outerHTML = header+sel.outerHTML+footer;
}


/*¶ó¿îµåÅ×ÀÌºí*/
function roundTable(objID) {
       var obj = document.getElementById(objID);
       var Parent, objTmp, Table, TBody, TR, TD;
       var bdcolor, bgcolor, Space;
       var trIDX, tdIDX, MAX;
       var styleWidth, styleHeight;

       // get parent node
       Parent = obj.parentNode;
       objTmp = document.createElement('SPAN');
       Parent.insertBefore(objTmp, obj);
       Parent.removeChild(obj);

       // get attribute
       bdcolor = obj.getAttribute('rborder');
       bgcolor = obj.getAttribute('rbgcolor');
       radius = parseInt(obj.getAttribute('radius'));
       if (radius == null || radius < 1) radius = 1;
       else if (radius > 6) radius = 6;

       MAX = radius * 2 + 1;

       /*
              create table {{
       */
       Table = document.createElement('TABLE');
       TBody = document.createElement('TBODY');

       Table.cellSpacing = 0;
       Table.cellPadding = 0;

       for (trIDX=0; trIDX < MAX; trIDX++) {
              TR = document.createElement('TR');
              Space = Math.abs(trIDX - parseInt(radius));
              for (tdIDX=0; tdIDX < MAX; tdIDX++) {
                     TD = document.createElement('TD');

                     styleWidth = '1px'; styleHeight = '1px';
                     if (tdIDX == 0 || tdIDX == MAX - 1) styleHeight = null;
                     else if (trIDX == 0 || trIDX == MAX - 1) styleWidth = null;
                     else if (radius > 2) {
                            if (Math.abs(tdIDX - radius) == 1) styleWidth = '2px';
                            if (Math.abs(trIDX - radius) == 1) styleHeight = '2px';
                     }

                     if (styleWidth != null) TD.style.width = styleWidth;
                     if (styleHeight != null) TD.style.height = styleHeight;

                     if (Space == tdIDX || Space == MAX - tdIDX - 1) TD.style.backgroundColor = bdcolor;
                     else if (tdIDX > Space && Space < MAX - tdIDX - 1)  TD.style.backgroundColor = bgcolor;

                     if (Space == 0 && tdIDX == radius) TD.appendChild(obj);
                     TR.appendChild(TD);
              }
              TBody.appendChild(TR);
       }

       /*
              }}
       */

       Table.appendChild(TBody);

       // insert table and remove original table
       Parent.insertBefore(Table, objTmp);
}


function blur() {//ÀüÃ¼ ¸µÅ© Blur
for (i = 0; i < document.links.length; i++)
if(document.links[i].name!="focus")
document.links[i].onfocus = document.links[i].blur;
}
window.onload=blur;


//***************************branch info***************************
b11="http://www.lottewed.com/branch/index.jsp?branch_code=001";
b12="http://www.lottewed.com/branch/index.jsp?branch_code=002";
b13="http://www.lottewed.com/branch/index.jsp?branch_code=003";
b14="http://www.lottewed.com/branch/index.jsp?branch_code=006";
b15="http://www.lottewed.com/branch/index.jsp?branch_code=007";
b16="http://www.lottewed.com/branch/index.jsp?branch_code=024";
                                                               
b21="http://www.lottewed.com/branch/index.jsp?branch_code=008";
b22="http://www.lottewed.com/branch/index.jsp?branch_code=010";
b23="http://www.lottewed.com/branch/index.jsp?branch_code=011";
b24="http://www.lottewed.com/branch/index.jsp?branch_code=012";
                                                               
b31="http://www.lottewed.com/branch/index.jsp?branch_code=015";
                                                               
b41="http://www.lottewed.com/branch/index.jsp?branch_code=016";
b42="http://www.lottewed.com/branch/index.jsp?branch_code=023";
                                                               
b51="http://www.lottewed.com/branch/index.jsp?branch_code=013";
b52="http://www.lottewed.com/branch/index.jsp?branch_code=014";
b53="http://www.lottewed.com/branch/index.jsp?branch_code=017";
b54="http://www.lottewed.com/branch/index.jsp?branch_code=020";
b55="http://www.lottewed.com/branch/index.jsp?branch_code=027";

function branchinfo(){
	var url = "";
	var depth = arguments.length;
	try {
		if(depth==0) return;
		else if(depth==1) url = eval("b"+ arguments[0]);
		else if(depth==2) url = eval("b"+ arguments[0]+arguments[1]);
		else if(depth==3) url = eval("b"+ arguments[0]+arguments[1]+arguments[2]);
		else if(depth==4) url = eval("b"+ arguments[0]+arguments[1]+arguments[2]+arguments[3]);

		if(url=="") alert("ÁØºñÁßÀÔ´Ï´Ù.");
		else location.href = url;

	}catch(e) { alert("ÁØºñÁßÀÔ´Ï´Ù."); }
}