<!--
// ¼îÇÎ¸ôÀÌ¸§
var mart_id = "LETS080 - SHOP";

//¸¶¿ì½º ¿ìÅ¬¸¯ ±ÝÁö
document.onmousedown = mouseRightButtonDisabled;
function mouseRightButtonDisabled(){
	if ((event.button==2) ||  (event.button==3)){
		//alert("¸¶¿ì½º ¿À¸¥ÂÊ ¹öÆ°Àº »ç¿ëÇÏ½Ç ¼ö ¾ø½À´Ï´Ù");
		return false;
	}
}
document.onkeydown=KeyEventHandle;
document.onkeyup=KeyEventHandle;
function KeyEventHandle() {
        if((event.ctrlKey == true && (event.keyCode == 78 || event.keyCode == 82)) || (event.keyCode >= 112 && event.keyCode <= 123)) {
                event.keyCode = 0;
                event.cancelBubble = true;
                event.returnValue = false;
        }
}


//ÀÚÁÖ¹¯´ÂÁú¹®°ü·Ã ¼Ò½º

function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}

// ÀÌ¹ÌÁö ÁÖÀ§ Á¡¼±¾ø¾Ö±â ¼Ò½º
function bluring(){ 
if(event.srcElement.tagName=="A"||event.srcElement.tagName=="IMG") document.body.focus(); 
} 
document.onfocusin=bluring; 

//Å¸ÀÌÆ² ÁÖ¼Ò °íÁ¤
try {
 //top.document.title=mart_id+'-¹ÏÀ» ¼ö ÀÖ´Â ¼îÇÎ¸ô';
}catch (Exception){
}

// »óÅÂ¹Ù ÁÖ¼Ò °¨Ãß±â ¼Ò½º
function hidestatus(){
	//window.status='mart_id+'-¹ÏÀ» ¼ö ÀÖ´Â ¼îÇÎ¸ô';
	//return true;
}

if (document.layers)
document.captureEvents(Event.MOUSEOVER | Event.MOUSEOUT)

document.onmouseover=hidestatus
document.onmouseout=hidestatus

//»õÃ¢
function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}
//Áß¾Ó¿¡¼­ »õÃ¢¶ç¿ì´Â ¼Ò½º
function CenterWin(url,winname,features)
{
features = features.toLowerCase();
len = features.length;
sumchar= "";
for (i=1; i <= len; i++) // ºóÄ­ Á¦°Å
{ 
onechar = features.substr(i-1, 1);
if (onechar != " ") sumchar += onechar;
}

features = sumchar; 
sp = new Array();
sp = features.split(',', 10); // ¹è¿­¿¡ ¿É¼ÇÀ» ºÐ¸®ÇØ¼­ ÀÔ·Â
splen = sp.length; // ¹è¿­ °¹¼ö
for (i=0; i < splen; i++) // width, height °ªÀ» ±¸ÇÏ±â À§ÇÑ ºÎºÐ
{ 
if (sp[i].indexOf("width=") == 0) // width °ªÀÏ¶§ 
{ 
width = Number(sp[i].substring(6)); 
} else if (sp[i].indexOf("height=") == 0) // height °ªÀÏ¶§
{
height = Number(sp[i].substring(7)); 
}
}
sleft = (screen.width - width) / 2;
stop = (screen.height - height) / 2;
features = features + ",left=" + sleft + ",top=" + stop;
popwin = window.open(url,winname,features); 
}

//¼¿·ºÆ® ´ë¸Þ´º °ü·Ã ½ºÅ©¸³Æ®

// ³âµµ ÀÌµ¿
function change_year(obj) {
	if (obj.value.length > 0) {
		location.href = obj.value;
		return;
		//document.location.href = "/portfolio/port_01.htm?search_year=" + obj.value; 
	}
	else {
		alert("¼±ÅÃÇÏ¼¼¿ä");
		return;
		//document.location.href = "/portfolio/port_01.htm"; 
	}
}

//========================== Wish List ¿¡ Ãß°¡ÇÏ´Â ÇÔ¼ö ==================================
function wishlist(item_no){
	document.add.location.replace("../mypage/wishlist_add.html?item_no="+item_no);	
}

//ÄÞ¸¶ ³Ö±â(Á¤¼ö¸¸ ÇØ´ç) 
function comma(val){ 
	val = get_number(val); 
	if(val.length <= 3) return val; 

	var loop = Math.ceil(val.length / 3); 
	var offset = val.length % 3; 
	if(offset==0) offset = 3; 
	var ret = val.substring(0, offset); 
	for(i=1;i<loop;i++) { 
	ret += "," + val.substring(offset, offset+3); 
	offset += 3; } return ret; 
} 

//¹®ÀÚ¿­¿¡¼­ ¼ýÀÚ¸¸ °¡Á®°¡±â 
function get_number(str){ 
	var val = str; 
	var temp = ""; 
	var num = ""; 

	for(i=0; i<val.length; i++){ 
		temp = val.charAt(i); 
		if(temp >= "0" && temp <= "9") num += temp; 
	} 
	return num; 
}
//¼ýÀÚ¸¸ ÀÔ·ÂÇÏ±â 
function checkNumber(){
	var objEv = event.srcElement;
	var num ="0123456789,";
	event.returnValue = true;
	 
	for (var i=0;i<objEv.value.length;i++){
		if(-1 == num.indexOf(objEv.value.charAt(i)))
		event.returnValue = false;
	}
	 
	if (!event.returnValue)
	objEv.value="";
}
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_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_findObj(n, d) { //v4.01
  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 && d.getElementById) x=d.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_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);

//-->
