var lgekor_url = "http://www.lge.co.kr";

//main contents
var _xml_main = "/cokr/asset/flash/main.xml";


// ÀÌ¹ÌÁö ¿À¹ö-¾Æ¿ô
function MM_preloadImages() { //v3.0

  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_findObj(n, d) { //v4.0
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && document.getElementById) x=document.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}


function MM_showHideLayers() { //v6.0
  var i,p,v,obj,args=MM_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v=='hide')?'hidden':v; }
    obj.visibility=v; }
}


// input¿¡ ÅØ½ºÆ® ³Ö±â
function clearText(thefield) {
    if (thefield.defaultValue==thefield.value)
        thefield.value = ""
}

// popup
function popsn(url,trgt,w,h) {
    window.open(url,trgt,'width='+w+',height='+h+',scrollbars=no,resizable=no,copyhistory=no,toolbar=no');
}
function popsy(url,trgt,w,h) {
    window.open(url,trgt,'width='+w+',height='+h+',scrollbars=yes,resizable=no,copyhistory=no,toolbar=no');
}


// ¿ìÆí¹øÈ£
function postnm() {
            window.open("/cokr/popup/pop_search_addr.jsp','pop','width=449,height=480,scrollbars=yes,resizable=no,copyhistory=no,toolbar=no");
        }

// select ¸µÅ©
function update(form){//default is 0;
var formindex=form.thislocation.selectedIndex;
self.location = form.thislocation.options[formindex].value;
}

// ÇÃ·¹ÀÌ¾î
function playIt(){
        if ((navigator.userAgent.indexOf('IE') > -1) && (navigator.platform == "Win32")) {
            MediaPlayer1.Play();
        }
    }

    function pauseIt(){
        if ((navigator.userAgent.indexOf('IE') > -1) && (navigator.platform == "Win32")) {
            MediaPlayer1.Pause();
        }
    }

    function stopIt(){
        if ((navigator.userAgent.indexOf('IE') > -1) && (navigator.platform == "Win32")) {
            MediaPlayer1.Stop();
            MediaPlayer1.CurrentPosition=0;

        }
    }


function playIt1(){
        if ((navigator.userAgent.indexOf('IE') > -1) && (navigator.platform == "Win32")) {
            MediaPlayer2.Play();
        }
    }

    function pauseIt1(){
        if ((navigator.userAgent.indexOf('IE') > -1) && (navigator.platform == "Win32")) {
            MediaPlayer2.Pause();
        }
    }

    function stopIt1(){
        if ((navigator.userAgent.indexOf('IE') > -1) && (navigator.platform == "Win32")) {
            MediaPlayer2.Stop();
            MediaPlayer2.CurrentPosition=0;

        }
    }



// ½ºÆ÷Ã÷¸¶ÄÉÆÃ Æ÷Åä°¶·¯¸®
function sptpg(url) {
            window.open(url,'spg','width=440,height=480,scrollbars=no,resizable=no,copyhistory=no,toolbar=no');
        }


// Áñ°ÜÃ£±â
var OldTab = null;
var layer = null, browser = null, timer = null;
var CheckedMenu=null, ReleaseCheck_Str=null,UndoCheck_Str=null;

/**
 * one depth ¸Þ´ºÀÇ ÇöÀç À§Ä¡¸¦ Ç¥½ÃÇÏ±â À§ÇÑ ÃÊ±âÈ­ ÇÔ¼ö
 **/
function MFXinitMenu(menu_1,menu_2,menu_3)
{
    if (menu_1!=null) {
        menu_1++;
        CheckedMenu = (menu_1<10) ? "0"+menu_1:menu_1;
        ReleaseCheck_Str="document.m"+CheckedMenu+".src='"+ lgekor_url +"/mypage/include/images/m"+CheckedMenu+"_of.gif'";
        UndoCheck_Str="document.m"+CheckedMenu+".src='"+ lgekor_url +"/mypage/include/images/m"+CheckedMenu+"_on.gif'";
        UndoCheck();
    }
}

/**
 * ÃÊ±âÈ­µÈ one depth ¸Þ´º ÇØÁ¦ ÇÔ¼ö
 **/
function ReleaseCheck()
{
    if (ReleaseCheck_Str!=null) eval(ReleaseCheck_Str);
}

/**
 * ÇØÁ¦µÈ one depth ¸Þ´º º¹¿ø ÇÔ¼ö
 **/
function UndoCheck()
{
    if (UndoCheck_Str!=null) eval(UndoCheck_Str);
}

/**
 * one depth ¸Þ´º ÄÁÆ®·Ñ ÇÔ¼ö
 * @param     obj        °íÀ¯ ÀÌ¹ÌÁö ID ( m01~ m10 )
 * @param     mode     true : ÀÌ¹ÌÁö ON, false : ÀÌ¹ÌÁö OFF
 */
function Menu(obj,mode)
{
    if (mode) {
        if (obj!=CheckedMenu) ReleaseCheck();
        eval("document.m"+obj+".src='"+lgekor_url+"/mypage/include/images/m"+obj+"_on.gif'");
    }
    else {
        if (obj!=CheckedMenu) {
            UndoCheck();
            eval("document.m"+obj+".src='"+lgekor_url+"/mypage/include/images/m"+obj+"_of.gif'");
        }
    }
}

/**
 * two depth ¸Þ´º ÄÁÆ®·Ñ ÇÔ¼ö
 * @param     obj        °íÀ¯ ÀÌ¹ÌÁö ID ( d01~ d10 )
 * @param     mode     true : ÀÌ¹ÌÁö ON, false : ÀÌ¹ÌÁö OFF
 */
function SubMenu(obj,mode)
{
    if (mode)
        eval("document."+obj+".src='"+lgekor_url+"/mypage/include/images/"+obj+"_on.gif'");
    else
        eval("document."+obj+".src='"+lgekor_url+"/mypage/include/images/"+obj+"_of.gif'");
}

/**
 * ÇÏ´Ü tab ¸Þ´º ÄÁÆ®·Ñ ÇÔ¼ö
 * @param     obj      °íÀ¯ ÀÌ¹ÌÁö ID
 */
function TabMenu(obj)
{
    if( OldTab!=null && OldTab != obj )
        OldTab.style.display = 'none';

    if (obj.style.display == 'block')
        obj.style.display = 'none';
    else {
        OldTab=obj;
        obj.style.display = 'block';
    }
}

/**
 * ºê¶ó¿ìÀú Á¾·ù¿¡ ¸Â°Ô º¯¼ö ¼³Á¤
 */
if (document.all) { // IE
    layer = "document.all['L'+menu].style";
    browser = true;
}
else { // NS
    layer = "document.layers['L'+menu]";
    browser = false;
}

/**
 * ¸Þ´º ·¹ÀÌ¾î¸¦ È°¼ºÈ­½ÃÄÑÁÖ´Â ÇÔ¼ö
 * @param     arguments     È°¼ºÈ­½ÃÄÑÁÖ´Â ½ÍÀº ¸Þ´ºÀÇ °íÀ¯ID
 */
function ShowLayer() {
    if(timer) clearTimeout(timer);
    for(i=0; i<Layer_Cache.length; i++) {
        menu=Layer_Cache[i];
        eval(layer).visibility = "hidden";
    }
    for(i=0; i<arguments.length; i++) {
        menu=arguments[i];
        eval(layer).visibility = "visible";
    }
}

/**
 * ¸Þ´º ·¹ÀÌ¾î¸¦ ºñÈ°¼ºÈ°½ÃÄÑÁÖ´Â ÇÔ¼ö
 */
function HideLayer() { timer = setTimeout("ShowLayer()", 100); }

/**
 * ¸Þ´º ·¹ÀÌ¾îÀÇ ±âº»°ªÀ» ¼³Á¤ÇØÁÖ´Â ÇÔ¼ö
 * @param     Parent            ºÎ¸ð ·¹ÀÌ¾îÀÇ °íÀ¯ID
 * @param     Sub           ¼­ºê ·¹ÀÌ¾îÀÏ °æ¿ì ºÎ¸ð ·¹ÀÌ¾îÀÇ ¸Þ´º ÀÌ¹ÌÁöÀÇ °íÀ¯ID
 * @param     Left              ·¹ÀÌ¾îÀÇ x
 * @param     Top               ·¹ÀÌ¾îÀÇ y
 * @param     OverAction    ¸¶¿ì½º ¿À¹ö½Ã ½ÇÇà½ÃÅ³ ½ºÅ©¸³Æ®
 * @param     OutAction     ¸¶¿ì½º ¾Æ¿ô½Ã ½ÇÇà½ÃÅ³ ½ºÅ©¸³Æ®
 */
function LayerInfo(Parent,Left,Top,OverAction,OutAction) {
    this.parent  = (Parent<10) ? "0"+Parent:Parent;
    this.left  = Left;
    this.top   = Top;
    this.overaction = OverAction;
    this.outaction = OutAction;
    this.info  = "";
    for(i=5; i<arguments.length; i++) {
        if(document.all) { this.info += arguments[i]; }
        else { this.info += arguments[i]; }
    }
}

/**
 * ¸Þ´º ·¹ÀÌ¾î¸¦ ÀúÀåÇÒ ¹è¿­ »ý¼º
 */
Layer = new Array();

/**
 * ¸Þ´º ·¹ÀÌ¾î ¹è¿­¿¡ ±âº»°ª ÀúÀå
 * @set      Layer[1] ~ Layer[10]       two depth ·¹ÀÌ¾î
 * @set      Layer[101] ~ Layer[199]        Layer[1]ÀÇ three depth ·¹ÀÌ¾î
 * @set      Layer[201] ~ Layer[299]        Layer[2]ÀÇ three depth ·¹ÀÌ¾î
 */

/**
 * ¸Þ´º ·¹ÀÌ¾î°¡ ÀúÀåµÈ Layer¹è¿­Áß »ç¿ëµÈ °ª¸¸À» Ä³½¬ÇÏ±â À§ÇÑ ¹è¿­ »ý¼º
 */
Layer_Cache = new Array();
j = 0;

/**
 * ¸Å´º ·¹ÀÌ¾î Ãâ·Â
 */
for(i=1; i<Layer.length; i++) {
    if (Layer[i]) {
        if(browser) { // IE
            document.write("<SPAN onMouseOver=\"Menu('"+Layer[i].parent+"',true); "+Layer[i].overaction+" clearTimeout(timer); \" onMouseOut=\"Menu('"+Layer[i].parent+"',false); "+Layer[i].outaction+" HideLayer("+i+")\" ID='L"+i+"' STYLE='position:absolute; visibility:hidden; top:"+Layer[i].top+"; left:"+Layer[i].left+";'>"+Layer[i].info+"</SPAN>");
        }
        else {        // NS
            document.write("<LAYER onMouseOver=\"Menu('"+Layer[i].parent+"',true); "+Layer[i].overaction+" clearTimeout(timer)\" onMouseOut=\"Menu('"+Layer[i].parent+"',false); "+Layer[i].outaction+" HideLayer("+i+")\" ID='L"+i+"' POSITION=ABSOLUTE VISIBILITY=HIDDEN TOP="+Layer[i].top+" LEFT="+Layer[i].left+">"+Layer[i].info+"</LAYER>");
        }
        Layer_Cache[j++] = i;
    }
}

/* onmouse layer */

    var cursor = new Array();

    function eventOver() {
    	try {
    		cursor["x"] = (document.layers) ? loc.pageX : document.body.scrollLeft + event.clientX
        	cursor["y"] = (document.layers) ? loc.pageX : document.body.scrollTop + event.clientY
    	} catch(e) {}
    }

    document.onmousemove = eventOver;

    function layerView() {
        if (card.style.display == "none")
            card.style.display = "inline";

        card.style.pixelLeft = cursor["x"] - card.clientWidth; // + - ÇÈ¼¿ ¼ö; (¸¸Å­ À§Ä¡ ÀÌµ¿)
        card.style.pixelTop = cursor["y"] // - card.clientHeight; -> ³Ö¾îÁÖ¸é À§, ?ÁÖ¸é ¾Æ·¡.
    }
        function layerNoView() {
        card.style.display = "none";
    }

    /* ´ëÇ¥»çÀÌÆ® ¸ÞÀÎÀÇ Ã¤¿ë°ø°í 1ÁÙ */
    function recM(){
        document.write(recruit_lgem);
    }




function go( ) {
    if( (document.Top.kwd.value) != ""){
        //document.Top.action = lgekor_url + "/cokr/search/searchResultAll.jsp";
		//document.Top.action = lgekor_url + "/search_b2c/searchMain.jsp?kwd=" + document.Top.Query.value;
        //document.Top.submit();
		//document.Top1.kwd.value = document.Top.Query.value;
		document.Top.action = lgekor_url + "/search_b2c/searchMain.jsp";
		alert(document.Top.action);
		//document.Top.submit();
    }else{
        alert('°Ë»ö¾î¸¦ ÀÔ·ÂÇÏ¼¼¿ä.');
        document.Top.kwd.focus();
    }
}

function TopEnterCheck( ) {
  if ( window.event && window.event.keyCode == 13 ){
    go( );
  }else{
    return true;
  }
}

function mainSearch ( strQuery ) {
    if( strQuery != ""){
		location.href = lgekor_url + "/cokr/search/searchResultAll.jsp?Query=" + strQuery + "&PageName=Top&isFirst=ok" ;
    }else{
        alert('°Ë»ö¾î¸¦ ÀÔ·ÂÇÏ¼¼¿ä.');
    }
}

//Å¬¸¯¸¶ÀÎ´õ(·Î±×ºÐ¼®)¸¦ À§ÇØ Ãß°¡µÈ ½ºÅ©¸³Æ®-----½ÃÀÛ-----------
function getCookie(name){
    var cname = name + "=";
    var dc = document.cookie;

    if (dc.length > 0) {
        begin = dc.indexOf(cname);

        if (begin != -1) {
            begin += cname.length;
            end = dc.indexOf(";", begin);

            if (end == -1) end = dc.length;
            return unescape(dc.substring(begin, end));
        }
    }
    return "";
}

function setCookie(name, value){
    var argv = setCookie.arguments;
    var argc = setCookie.arguments.length;
    var expires = (2 < argc) ? argv[2] : null;
    var path = "/";
    var domain = (4 < argc) ? argv[4] : null;
    var secure = (5 < argc) ? argv[5] : false;
    document.cookie = name + "=" + value + ((expires == null) ? "" : ("; expires="+expires.toGMTString())) +
                      ((path == null) ? "" : ("; path=" + path)) +
                      ((domain == null) ? "" : ("; domain=" + domain)) +
                      ((secure == true) ? "; secure" : "");
}

if(getCookie("pcid") == null || getCookie("pcid") == ""){
    var cookieval = new Date();
    cookieval = cookieval.getTime();
    var rStr_1 = "" + Math.random();
    var rStr_2 = "" + Math.random();
    var rStr_3 = "" + Math.random();
    var rStr_4 = "" + Math.random();
    var rStr_5 = "" + Math.random();
    rStr_1 = rStr_1.charAt(2);
    rStr_2 = rStr_2.charAt(2);
    rStr_3 = rStr_3.charAt(2);
    rStr_4 = rStr_4.charAt(2);
    rStr_5 = rStr_5.charAt(2);

    var uv_expired_data = new Date(2011,1,1);
    cookieval = cookieval + rStr_1 + rStr_2 + rStr_3 + rStr_4 + rStr_5;
//  alert("set cookie");
    setCookie("pcid", cookieval , uv_expired_data, null, "www7.lge.co.kr", false);
// alert("set cookie") ;
}
//Å¬¸¯¸¶ÀÎ´õ(·Î±×ºÐ¼®)¸¦ À§ÇØ Ãß°¡µÈ ½ºÅ©¸³Æ®-----³¡-----------



 /**
 *  Copyright(ÀúÀÛ±Ç) Do Not Erase This Comment!!! (ÀÌ ÁÖ¼®¹®À» Áö¿ìÁö ¸»°Í)
 *
 *  In the case of modifing source, you should email to all the authors
 *  in the below author list for information ( such as all set of modified sources,
 *  information of modifications, etc..)
 *  If provided modifications are proved reasonable, we may update imgbutton.htc
 *  reflecting your ideas on modifications
 *  Furthermore, if your modifications are proved valuable, it is possible to add
 *  your information on the authors list under deliberation.
 *
 *  (Caution!) DO NOT redistribute without permission.
 *             Distribution to outside of LG CNS is NOT permitted.
 *
 *  ¼Ò½º¸¦ º¯°æÇÏ¿© »ç¿ëÇÏ´Â °æ¿ì ¾Æ·¡ÀÇ ÀúÀÚ ¸®½ºÆ®¿¡ µî·ÏµÈ ¸ðµç ÀúÀÛÀÚ¿¡°Ô
 *  º¯°æµÈ ¼Ò½º ÀüÃ¼¿Í º¯°æµÈ »çÇ×À» mail·Î ¾Ë·Á¾ß ÇÑ´Ù.
 *  ÀúÀÛÀÚ´Â Á¦°øµÈ ¼Ò½º°¡ À¯¿ëÇÏ´Ù°í ÆÇ´ÜµÇ´Â °æ¿ì ÇØ´ç »çÇ×À» ¹Ý¿µÇÒ ¼ö ÀÖ´Ù.
 *  Áß¿äÇÑ Idea¸¦ Á¦°øÇÏ¿´´Ù°í ÆÇ´ÜµÇ´Â °æ¿ì ÇùÀÇÇÏ¿¡ ÀúÀÚ List¿¡ ¹Ý¿µÇÒ ¼ö ÀÖ´Ù.
 *
 *  (ÁÖÀÇ!) ¿øÀúÀÚÀÇ Çã¶ô¾øÀÌ Àç¹èÆ÷ ÇÒ ¼ö ¾øÀ¸¸ç LG CNS ¿ÜºÎ·ÎÀÇ À¯ÃâÀ» ÇÏ¿©¼­´Â ¾ÈµÈ´Ù.
 *
 **
 * AUTHORS LIST       E-MAIL                   HOMEPAGE
 * TK Shin            tkyushin@lgcns.com       http://www7.javatoy.net
 *
 **
 ** MODIFICATION HISTORY
 ** DATE       Version    DEVELOPER        DESCRIPTION
 ** 2006/02/06 0.8        Shin Tack Kyu    Initial Release
 **
 ** Detail Build HISTORY
 ** DATE        BUILD  DESCRIPTION
 ** 2006/02/06 a100   alpha Release
 */

/*
document.attachEvent ("onreadystatechange", function() {
   if (document.readyState=="complete")   {
      if (window.objectPatch) window.objectPatch();
   }
})

function objectPatch() {
	var os = document.getElementsByTagName("object");
	for (var idx=0; idx < os.length; idx++) {
		var peer = os[idx];
		var clsid = peer.getAttribute("classid");
		if (!clsid || peer.getAttribute("id") == "lge_main" ) continue;
		switch (clsid.toLowerCase()) {
			case "clsid:bb4533a0-85e0-4657-9bf2-e8e7b100d47e" :  // combo
			case "clsid:71e7aca0-ef63-4055-9894-229b056e9c31" :  // grid
			case "clsid:6bf52a52-394a-11d3-b153-00c04f79faa6" :  // media player
			case "clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" :  // flash
						var html = peer.outerHTML;
	  				peer.outerHTML = html;
	  				break;
	  	default:
						var html = peer.outerHTML;
	  				peer.outerHTML = html;
	  				break;
		}


	}
}
*/

//ÀÍ½ºÇÃ·Î·¯¿¡¼­ 2006³â 4¿ùºÎÅÍ object, embed ÅÂ±×¸¦ »ç¿ëÇÒ ¼ö ¾ø°Ô µÇ¾ú±â ¶§¹®¿¡
//´Ù¸¥ ÅÂ±×¸¦ »ç¿ëÇÏ°í, ½ºÅ©¸³Æ®·Î replaceÇØÁÖ´Â ³»¿ëÀÔ´Ï´Ù.

function parseLgObj(obj) {
	var HD = "LG";
	var UMA = Array("OBJECT", "EMBED");

	var str;
	var len;

	len = UMA.length;
	str = obj.innerHTML;
	for(i = 0; i < len; i++) {
		str = eval("str.replace(/" + HD + UMA[i] +"/g, \"" + UMA[i] + "\");");
	}

	obj.innerHTML = str;
}


function Call_Swf_View(URL,SizeX,SizeY,Transparent_YN){

	document.write('			<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" ');
	document.write(	'				codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" ');
	document.write(	'				width="'+SizeX+'" height="'+SizeY+'" id="menuLink" align="middle">');
	document.write(	'				<param name="movie" value="'+URL+'" />');
	document.write(	'				<param name="quality" value="high" />');

	if(Transparent_YN == 'Y') {
		document.write(	'				<param name="wmode" value="transparent"/>');
		document.write(	'				<param name="bgcolor" value="#ffffff" />');
	}

	document.write(	'				<embed src="'+URL+'" quality="high" ');
	document.write(	'						bgcolor="#ffffff" width="'+SizeX+'" height="'+SizeY+'" name="menuLink"');
	document.write(	'						align="middle" ');
	document.write(	'						type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />');
	document.write(	'		</object>		');

}


function Call_Swf_View2(URL,SizeX,SizeY,Transparent_YN){

	document.write('			<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" ');
	document.write(	'				codebase="https://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" ');
	document.write(	'				width="'+SizeX+'" height="'+SizeY+'" id="menuLink" align="middle">');
	document.write(	'				<param name="movie" value="'+URL+'" />');
	document.write(	'				<param name="quality" value="high" />');

	if(Transparent_YN == 'Y') {
		document.write(	'				<param name="wmode" value="transparent"/>');
		document.write(	'				<param name="bgcolor" value="#ffffff" />');
	}

	document.write(	'				<embed src="'+URL+'" quality="high" ');
	document.write(	'						bgcolor="#ffffff" width="'+SizeX+'" height="'+SizeY+'" name="menuLink"');
	document.write(	'						align="middle" ');
	document.write(	'						type="application/x-shockwave-flash" pluginspage="https://www.macromedia.com/go/getflashplayer" />');
	document.write(	'		</object>		');

}



function Call_Swf_View3(URL,SizeX,SizeY,Transparent_YN){

	document.write('			<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" ');
	document.write(	'				codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" ');
	document.write(	'				width="'+SizeX+'" height="'+SizeY+'" id="lg" align="middle">');
	document.write(	'				<param name="allowScriptAccess" value="always" />');
	document.write(	'				<param name="allowFullScreen" value="false" />');
	document.write(	'				<param name="movie" value="'+URL+'" />');
	document.write(	'				<param name="quality" value="high" />');

	if(Transparent_YN == 'Y') {
		document.write(	'				<param name="wmode" value="transparent"/>');
		document.write(	'				<param name="bgcolor" value="#ffffff" />');
	}

	document.write(	'				<embed src="'+URL+'" quality="high" ');
	document.write(	'						bgcolor="#ffffff" width="'+SizeX+'" height="'+SizeY+'" name="lg"');
	document.write(	'						align="middle" ');
	document.write(	'						allowScriptAccess="always" ');
	document.write(	'						allowFullScreen="false" ');
	document.write(	'						type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />');
	document.write(	'		   </object>');

}

//´Ù¿î·Îµå ÁöÁ¤µÇÁö ¾ÊÀº ¿À·ù ¶§¹®¿¡ ÆË¾÷Ã¢ ¶ç¿ì°í locationº¯°æ
function downFilePoupMove(path,file)
{

	if (file == "") {
		alert("ÆÄÀÏÀÌ ¾ø½À´Ï´Ù");
	} else {

		var winFocus;
		var w = 1;
		var h = 1;

		var winl = 750;
		var wint = 410;

		winFocus = window.open(path+file,'downFilePop','left='+winl+', top='+wint+', width='+w+', height='+h+', toolbar=no,location=no,status=no,menubar=no,scrollbars=no,resizable=no');
	}
}

function downFilePoupMove2(path,file)
{

	if (file == "") {
		alert("ÆÄÀÏÀÌ ¾ø½À´Ï´Ù");
	} else {

		var winFocus;
		var w = 1;
		var h = 1;

		var winl = 750;
		var wint = 410;

		winFocus = window.open('/common/download1.jsp?path='+path+'&fileName='+file+'&originFileName='+file,'downFilePop','left='+winl+', top='+wint+', width='+w+', height='+h+', toolbar=no,location=no,status=no,menubar=no,scrollbars=no,resizable=no');
	}
}

function goKwdGNB(kwd) {

	var url = "/search_b2c/searchMain.jsp?kwd="+kwd;

	parent.location.href = url + "&brandCd=COKR";
}

function win_pop_rss(){
  window.open('/cokr/news/rss.jsp','','width=590,height=600,toolbar=no,location=no,status=no,menubar=no,scrollbars=yes,resizable=no')
 }

function flashEmbeded(pSwfUrl, wt, ht, fmode, xml) {
	var pathArr = pSwfUrl.split("/");
	var flashID = pathArr[pathArr.length-1].split(".")[0];
	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='"+wt+"' height='"+ht+"' id='"+flashID+"' align='middle'>");
	document.write("<param name='allowScriptAccess' value='always' />");
	document.write("<param name='movie' value='"+pSwfUrl+"' />");
	document.write("<param name='quality' value='high' />");
	document.write("<param name='FlashVars' value='xml="+xml+"' />");
	document.write("<param name='wmode' value='"+fmode+"' />");
	document.write("<param name='bgcolor' value='#FFFFFF' />");
	document.write("<embed src='"+pSwfUrl+"' FlashVars='xml="+xml+"' wmode='"+fmode+"' quality='high' width='"+wt+"' height='"+ht+"' name='nlnb' align='middle' allowScriptAccess='always' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer' />");
	document.write("</object>");
}

function getUnitType(str){
var unitType = [
		/*   0  */		""		    ,
		/*   1   */		"(J)Rt"		,
		/*   2   */		"(US)Rt"	,
		/*   3   */		"¢ª"		    ,
		/*   4   */		"ÀÎ¿ë"		,
		/*   5   */		"Æò"		    ,
		/*   6   */		"A"			,
		/*   7   */		"Btu/h"		,
		/*   8   */		"¡É"		    ,
		/*   9   */		"cd/§³"		,
		/*   10  */		"cell"		,
		/*   11  */		"cm"		,
		/*   12  */		"dB"		,
		/*   13  */		"g"			,
		/*   14  */		"GHz"		,
		/*   15  */		"ha"		,
		/*   16  */		"HP"		,
		/*   17  */		"Hz"		,
		/*   18  */		"inch"		,
		/*   19  */		"kcal/h"	,
		/*   20  */		"kg"		,
		/*   21  */		"kg/h"		,
		/*   22  */		"kHz"		,
		/*   23  */		"kW"		,
		/*   24  */		"L"			,
		/*   25  */		"Lux"		,
		/*   26  */		"m"			,
		/*   27  */		"M Colors"	,
		/*   28  */		"MB Cache"	,
		/*   29  */		"MHz"		,
		/*   30 */		"MHz FSB"	,
		/*   31  */		"mm"		,
		/*   32  */		"mm(HxV)"	,
		/*   33  */		"ms"		,
		/*   34  */		"§©/h"		,
		/*   35  */		"§³"		    ,
		/*   36  */		"rpm"		,
		/*   37  */		"t"			,
		/*   38  */		"V"			,
		/*   39  */		"Vac"		,
		/*   40  */		"W(On)"		,
		/*   41  */		"¥Õ"		    ,
		/*   42  */		"W"			,
		/*   43  */		"¥Õ"		    ,
		/*   44  */		"cc/h"		,
		/*   45  */		"GB"		,
		/*   46  */     "kW/h"      ,
		/*   47  */     "MB"        ,
		/*   48  */     "W/h"       ,
		/*   49  */     "kWh"		,
		/*   50  */     "kWh/¿ù"		,
		/*   51  */     "min"		,
		/*   52  */     "L/h"		,
		/*   53  */     "KB"		,
		/*   54  */     "mW"		,
		/*   55  */     "§Ù"			,
		/*   56  */     "KB Cache"	,
		/*   57  */		"Kpa"		,
		/*   58  */		"¸Å"			,
		/*   59  */		"dpi"		,
		/*   60  */		"Kbps"		,
		/*   61  */		"°³"			,
		/*   62  */		""			, 	//ÃßÈÄ¸¦ À§ÇØ »ý¼º
		/*   63  */		""			, 	//ÃßÈÄ¸¦ À§ÇØ »ý¼º
		/*   64  */		""			, 	//ÃßÈÄ¸¦ À§ÇØ »ý¼º
		/*   65  */		""	,			//ÃßÈÄ¸¦ À§ÇØ »ý¼º

		/*   66  */  ""   ,  //ÃßÈÄ¸¦ À§ÇØ »ý¼º
        /*   67  */  ""   ,  //ÃßÈÄ¸¦ À§ÇØ »ý¼º
        /*   68  */  ""   ,  //ÃßÈÄ¸¦ À§ÇØ »ý¼º
        /*   69  */  ""   ,  //ÃßÈÄ¸¦ À§ÇØ »ý¼º
        /*   70  */  ""   ,  //ÃßÈÄ¸¦ À§ÇØ »ý¼º
        /*   71  */  ""   ,  //ÃßÈÄ¸¦ À§ÇØ »ý¼º
        /*   72  */  ""   ,  //ÃßÈÄ¸¦ À§ÇØ »ý¼º
        /*   73  */  ""   ,  //ÃßÈÄ¸¦ À§ÇØ »ý¼º
        /*   74  */  ""   ,  //ÃßÈÄ¸¦ À§ÇØ »ý¼º
        /*   75  */  ""   ,  //ÃßÈÄ¸¦ À§ÇØ »ý¼º
        /*   76  */  ""   ,  //ÃßÈÄ¸¦ À§ÇØ »ý¼º
        /*   77  */  ""   ,  //ÃßÈÄ¸¦ À§ÇØ »ý¼º
        /*   78  */  ""   ,  //ÃßÈÄ¸¦ À§ÇØ »ý¼º
        /*   79  */  ""   ,  //ÃßÈÄ¸¦ À§ÇØ »ý¼º

        /*   80  */  ""   ,  //ÃßÈÄ¸¦ À§ÇØ »ý¼º
        /*   81  */  ""   ,  //ÃßÈÄ¸¦ À§ÇØ »ý¼º
        /*   82  */  ""   ,  //ÃßÈÄ¸¦ À§ÇØ »ý¼º
        /*   83  */  ""   ,  //ÃßÈÄ¸¦ À§ÇØ »ý¼º
        /*   84  */  ""   ,  //ÃßÈÄ¸¦ À§ÇØ »ý¼º
        /*   85  */  ""   ,  //ÃßÈÄ¸¦ À§ÇØ »ý¼º
        /*   86  */  ""   ,  //ÃßÈÄ¸¦ À§ÇØ »ý¼º

        /*87 ÀÔ·ÂÀü¾Ð    */  "V/AC" ,
        /*88 ±¤¼Ó        */    "lm" ,
        /*89             */    "" ,
        /*90 ¿¬»ö¼º(CRI) */  "Ra" ,
        /*91 »ö¿Âµµ      */     "K"
   ];

	var val = unitType[str];
	return val;

}

function indexFlashLink(prdid){
	if( prdid == null || prdid == ""){
		alert('Ãâ½Ã ÁØºñÁßÀÔ´Ï´Ù.');
	}else{
		location.href = "/cokr/product/main/catalog/LgeFrontProductDetailCmd.laf?prdid="+prdid;
	}
}

function specOn(num){
	document.getElementById("spec"+num).src = document.getElementById("spec" + num).src.replace(".jpg", "_on.jpg");
}

function specOff(num){
	document.getElementById("spec"+num).src = document.getElementById("spec" + num).src.replace("_on.jpg", ".jpg");
}

function imgOver(obj){
	obj.src = obj.src.replace('_off', '_on');
}

function imgOut(obj, type){
	if(type != "on") {
		obj.src = obj.src.replace('_on', '_off');
	}
}
function open_layer(num){
	for(i=1;i<=7;i++){
		document.getElementById("layer"+i).style.display = "none";
			}
	document.getElementById("layer"+num).style.display = "block";
	}


