/***************************** title *********************************/
document.title=":: ÇÑ¿ï·Îº¸Æ½½º ¿ÀÅä·ÎS ::";



function bluring(){
if(event.srcElement.tagName=="A"||event.srcElement.tagName=="IMG") document.body.focus();}
document.onfocusin=bluring;


// pngÀÌ¹ÌÁö¼ÂÆÃ
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 bookMark(){
window.external.AddFavorite('http://minishop4989.com/','¹Ì´Ï¼¥ »ç±¸ÆÈ±¸')
}


/**************************** rollover *********************************/
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_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}



/**************************** ·¹ÀÌ¾îdiv *********************************/
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);



/**************************** GoTop *********************************/
function GoTop(){
	window.scrollTo(0,0);
}


/************************** LAYER SHOW HIDE ******************************/
function cu(stat){
	if (stat == 1){ 
		document.all.cu1.style.display = "block"; 
	} 
}

function cusc(stat){
	if (stat == 1){ 
		document.all.cusc1.style.display = "block"; 
		document.all.cusc2.style.display = "none"; 
		document.all.cusc3.style.display = "none";
	} else if (stat == 2){  
		document.all.cusc1.style.display = "none"; 
		document.all.cusc2.style.display = "block";
		document.all.cusc3.style.display = "none"; 
	} else if (stat == 3){  
		document.all.cusc1.style.display = "none"; 
		document.all.cusc2.style.display = "none";
		document.all.cusc3.style.display = "block";
	}
}



/************************** ÀÚÁÖÇÏ´ÂÁú¹® Å¬¸¯************************** /

function MenuToggle(currMenu) {
  if (document.all) {
    thisMenu = eval("document.all.menu[" + (currMenu-1) + "].style");

    if (thisMenu.display == "block") {
      thisMenu.display = "none";
    }
    else {
      for(i=0; i<document.all.menu.length; i++) {
        otherMenu = eval("document.all.menu["+i+"].style");

        otherMenu.display = "none";
      }
      thisMenu.display = "block";
    }
    return false;
  } else return true;
}



/************************** Åä±Û¸Þ´º ¼Ò½º **************************/

function toggleMenu(currMenu){
if (document.all){
thisMenu = eval('document.all.' + currMenu + '.style')
if (thisMenu.display == 'block') {
document.all.menu1.style.display = 'none'
thisMenu.display = 'none'
}
else {
document.all.menu1.style.display = 'none'
thisMenu.display = 'block'
}
return false
}else{
return true
}
}

/************************** ¿À¸¥ÂÊ ¸¶¿ì½º ¼±ÅÃ ±ÝÁö**************************/

var message="¿À¸¥ÂÊ ¸¶¿ì½º´Â »ç¿ëÇÏ½Ç ¼ö ¾ø½À´Ï´Ù.";

function clickIE4(){
	if (event.button==2){
		//alert(message);
		return false;
	}
}

function clickNS4(e){
	if (document.layers||document.getElementById&&!document.all){
		if (e.which==2||e.which==3){
			//alert(message);
			return false;
		}
	}
}

if (document.layers){
	document.captureEvents(Event.MOUSEDOWN);
	document.onmousedown=clickNS4;
}
else if (document.all&&!document.getElementById){
	document.onmousedown=clickIE4;
}

document.oncontextmenu=new Function("return false")




/************************* ÅØ½ºÆ® ¼±ÅÃ ±ÝÁö **************************/


function disableselect(e){
	return false
}

function reEnable(){
	return true
}

// IE4+ ¿ë ÄÚµå
document.onselectstart=new Function ("return false")

// NS6 ¿ë ÄÚµå
if (window.sidebar){
	document.onmousedown=disableselect
	document.onclick=reEnable
}




/**************************** ÆË¾÷ *********************************/
/*function getCookie(name)
{
   var Found = false 
   var start, end 
   var i = 0 

   while(i <= document.cookie.length)
   { 
      start = i 
      end = start + name.length 
      if(document.cookie.substring(start, end) == name) 
      { 
         Found = true 
         break 
      } 
      i++ 
   }

   if(Found == true)
   { 
      start = end + 1 
      end = document.cookie.indexOf(";", start) 
      if(end < start) end = document.cookie.length 
      return document.cookie.substring(start, end) 
   } 
   return "" 
} 

function openPopup() 
{ 
   var noticeCookie=getCookie("CookieName10"); 
   if (noticeCookie != "no10") 
   window.open('popup.htm','window1','width=685,height=561,top=0,left=0,scrollbars=no');

   /*var noticeCookie=getCookie("inward01"); 
   if (noticeCookie != "no01") 
   window.open('/popup/inward/20060720-pop.htm','window2','width=500,height=372,top=26,left=10,scrollbars=no');

   var noticeCookie=getCookie("training02"); 
   if (noticeCookie != "t02") 
   window.open('/popup/training/pop_06.07.21.htm','window3','width=572,height=468,top=52,left=20,scrollbars=yes');

}
openPopup(); */
