function flash_link(link_value)
{
	if(link_value=="100"){location.href="/about/origin.asp";
	}else if(link_value=="120"){location.href="/about/history.asp";
	}else if(link_value=="130"){location.href="/about/concept.asp";

	}else if(link_value=="200"){location.href="/style/products.asp";
	}else if(link_value=="212"){location.href="/style/products2.asp";
	}else if(link_value=="213"){location.href="/style/products3.asp";
	}else if(link_value=="214"){location.href="/style/products4.asp";
	}else if(link_value=="220"){location.href="/style/coordination.asp";
	}else if(link_value=="230"){location.href="/style/ecatalogue.asp";

	}else if(link_value=="300"){location.href="/pr/news.asp";
	}else if(link_value=="320"){location.href="/pr/pr.asp";

	}else if(link_value=="400"){location.href="/shop/overseas.asp";
	}else if(link_value=="420"){location.href="javascript:domestic()";
	}else if(link_value=="430"){location.href="/shop/agency.asp";

	}else if(link_value=="500"){location.href="/cs/faq.asp";
	}else if(link_value=="520"){location.href="/cs/qna.asp";
	}else if(link_value=="530"){location.href="/cs/as.asp";

	}else{location.href="/vn2007.asp";
	}
}

function domestic(){
	alert('2007³â 9¿ù µµ»ê·Î º»Á¡ ¿ÀÇÂ ¿¹Á¤ÀÔ´Ï´Ù.');{
	location.href="shop/agency.asp"
	}
}

function preparation(){
	alert('ÇöÀç »óÇ°À» ÁØºñÁßÀÔ´Ï´Ù.');{
	location.href="/style/products.asp"
	}
}

function preparation2(){
	alert('°¢Á¾ ¸ÅÃ¼±¤°í¸¦ ÁØºñÁßÀÔ´Ï´Ù.');{
	location.href="/pr/ad.asp"
	}
}

function bluring(){
	if(event.srcElement.tagName=="A"||event.srcElement.tagName=="IMG") document.body.focus();
}
document.onfocusin=bluring;


function setPng24(obj) { 
    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 ''; 
} 

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);
}
