lgekor_url = "http://www.lge.co.kr";
lgekor_lls = "http://www.lge.co.kr";
lge_home="http://www.lge.co.kr";
brand_home = lgekor_url+"/brand/dios_family/index.jsp";
lgnara_url = "http://www2.lge.co.kr";


/* 7. LGÀüÀÚ ÆÐ¹Ð¸®*/

mem_00=lgekor_url+"/cokr/member/MemberLogoutCmd.laf?returnurl="+brand_home;			// ·Î±×¾Æ¿ô
mem_01=lgekor_lls+"/brand/dios_family/member/MemberLoginFormCmd.laf?brand=DIOSFAMILY";  // ·Î±×ÀÎ
mem_02=lgekor_lls+"/brand/diosfamily/member/MemberJoinCheckFormCmd.laf?brand=DIOSFAMILY";   // È¸¿ø°¡ÀÔ
mem_03=lgekor_lls+"/brand/dios_family/member/MemberIdPwCheckFormCmd.laf?brand=DIOSFAMILY"; // ¾ÆÀÌµð/ºñ¹Ð¹øÈ£ È®ÀÎ
mem_04=lgekor_lls+"/brand/dios_family/member/MemberFamilyCheckFormCmd.laf?brand=DIOSFAMILY"; // LGÀüÀÚ ÆÐ¹Ð¸® ¾ÆÀÌµð ¾È³»
mem_05=lgekor_lls+"/brand/dios_family/member/name_check.jsp?brand=DIOSFAMILY";   // ½Ç¸íÈ®ÀÎ ¼­ºñ½º
mem_06=lgekor_url+"/brand/dios_family/member/provision.jsp?brand=DIOSFAMILY";    // ÀÌ¿ë¾à°ü
mem_07=lgekor_url+"/brand/dios_family/member/privacy.jsp?brand=DIOSFAMILY";  // °³ÀÎº¸È£Á¤Ã¥

mem_08=lgekor_url+"/brand/dios_family/popup/pop_email_refusal.jsp?brand=DIOSFAMILY";  // ÀÌ¸ÞÀÏ ¹«´Ü¼öÁý°ÅºÎ



function GoMenu(name, win) {    
//    var LeftPosition = (screen.width) ?        (screen.width-400)/2 : 0;
//    var TopPosition = (screen.height) ?        (screen.height-200)/2 : 0;    

	try{
		if (eval(name) == "") {
			alert("¼­ºñ½º ÁØºñÁßÀÔ´Ï´Ù.");
			return;    
		} else if (name == "lge_home") { 	// ÀüÀÚ ´ëÇ¥
		    window.open(eval(name));   
		} else {
            if (win == "opener") {						
				
				try {
					opener.opener.document.location.href = eval(name);
					opener.opener.focus();
				} catch ( ex ) {
					opener.top.document.location.href = eval(name);
				}
				self.close();
			} else if( win == "opener_parent_opener" ){
				//ÆË¾÷¿¡¼­ ºÎ¸ðÃ¢À¸·Î ¸µÅ© ÀÌµ¿
				//µð¿À½º ½Ä½Ã¼¼Ã´±â ÀÌº¥Æ®¿¡¸¸ Àû¿ëµÈ ¼Ò½º : ´Ù¸¥ ºÎºÐ¿¡¼­´Â »ç¿ëÇØ¼­´Â ¾ÈµÊ
			    opener.opener.document.location.href = eval(name);
				opener.self.close();
			    self.close();
		    } else {
			    document.location.href = eval(name);
		    }
		}
	} catch(e) {
		alert("["+name+"] Á¤ÀÇµÇÁö ¾ÊÀº ¸Þ´º ÀÔ´Ï´Ù.");
	}

}


// ¿ë¾î»çÀüÃ¢ 
function GoPopupDic() {
	try{
		if (popup_dic == "") {
			alert("¼­ºñ½º ÁØºñÁßÀÔ´Ï´Ù.");
			return;    
		}
		 else 
		{
			popsy(popup_dic,'popup_dic',700, 600);
		}
	} catch(e) {
		alert("["+name+"] Á¤ÀÇµÇÁö ¾ÊÀº ¸Þ´º ÀÔ´Ï´Ù.");
	}
}



/* È¸¿ø°¡ÀÔ */
function GoUserAdd() {
	var return_url = location.href;


	var cmp_url = return_url.substring(0, eval('mem_01').length);
	if (cmp_url==mem_01) {
		return_url = brand_home;
	}

	cmp_url = return_url.substring(0, eval('mem_02').length);
	if (cmp_url==mem_02) {
		return_url = brand_home;
	}


	return_url = encodeURIComponent(return_url);

	document.location.href = eval('mem_02')+"&return_url="+return_url;
}




/* ·Î±×ÀÎ */
function GoLogin() {
	var return_url = location.href;


	var cmp_url = return_url.substring(0, eval('mem_01').length);
	if (cmp_url==mem_01) {
		return_url = brand_home;
	}

	cmp_url = return_url.substring(0, eval('mem_02').length);
	if (cmp_url==mem_02) {
		return_url = brand_home;
	}
	if (return_url.indexOf('?')<0) {		// ÆÄ¶ó¸ÞÅ¸°¡ ¾ø°Å³ª Post¹æ½ÄÀÎ °æ¿ì
		return_url = eval('brand_home');
	}

	return_url = encodeURIComponent(return_url);

	document.location.href = eval('mem_01')+"&return_url="+return_url;
}

//¸ðµç ºê·£µå¸ÞÀÎÀº index.jsp ·Î ¿¬°á index.jsp ÆÄÀÏ¿¡¼­ ½ÇÁ¦ ¸ÞÀÎÆäÀÌÁö·Î ÀÌµ¿..
    cyking        = lgekor_url+"/brand/cyking/index.jsp";
    dios          = lgekor_url+"/brand/dios/index.jsp";
    flatron       = lgekor_url+"/brand/flatron/index.jsp";
    hometheater   = lgekor_url+"/brand/hometheater/index.jsp";
    kimchi        = lgekor_url+"/brand/kimchi/index.jsp";
    klena         = lgekor_url+"/brand/klena/index.jsp";
    preo          = lgekor_url+"/brand/preo/index.jsp";
    storage       = lgekor_url+"/brand/storage/index.jsp";
    tromm         = lgekor_url+"/brand/tromm/index.jsp";
    whisen        = lgekor_url+"/brand/whisen/index.jsp";
    xcanvas       = lgekor_url+"/brand/xcanvas/index.jsp";
    xnote         = lgekor_url+"/brand/xnote/index.jsp";
    xtick         = lgekor_url+"/brand/xtick/index.jsp";
    xfree         = "http://www.lgxfree.co.kr";
    cyon          = "http://www.cyon.co.kr";
 diosfamily    = "http://dios.lge.co.kr";
 diosbuiltin    = "http://builtin.lge.co.kr";

    function GoBrand( name ) {
        window.open(eval(name), "_blank",  '' );
    }//GoBrand()...End
    
//¼î·ë 2008.07.22
function OpenShowRoom(brand, flag, isFull) {
	var option = "";
	if(isFull == null || isFull == 0){
		option = "top=5,left=5,scrollbars=no,toolbar=no,location=no,directories=no,status=no,resizable=yes,menubar=no,width=1024,height=768";
	}else{
		option = "fullscreen=1,top=0,left=0,scrollbars=no,toolbar=no,location=no,directories=no,status=no,resizable=yes,menubar=no,width=1024,height=768";
	}
	window.open("/cokr/showroom/showroom.jsp?fBrand=DIOSFAMILY&sBrand="+brand+"&flag="+flag, "showpop", option);
} 