 
  /******************** Check Browser ********************/ 

  // [Àü¿ªº¯¼ö] ºê¶ó¿ìÀú Ã¼Å© 
  IE4=false // Internet Explorer v5.4 ÀÌÇÏ 
  IE6=false // Internet Explorer v5.5 ÀÌ»ó 
  NN4=false // Netscape Navigater v4.x ÀÌÇÏ 
  NN6=false // Netscape Navigater v6.0 ÀÌ»ó 
  if (document.all) { 
  if (document.getElementById) { IE6=true } 
  else { IE4=true } 
  } else { 
  if (document.getElementById) { NN6=true } 
  } 
  if (document.layers) { NN4=true } 

  /******************** Handle Layer ********************/ 
  
  // [ÇÔ¼ö] ·¹ÀÌ¾î °´Ã¼ 
  function getLayerObject(layerName) { 
  with (document) { 
    if (IE4) { return all[layerName].style } 
    if (NN4) { return layers[layerName] } 
    if (IE6 || NN6) { return getElementById(layerName).style } 
  } 
  return null 
  } 

  // [ÇÔ¼ö] ·¹ÀÌ¾î ¼Ó¼º Á¶È¸ 
  function getLayerProperty(layerName,property) { 
  with (getLayerObject(layerName)) { 
    switch (property) { 
    case "visibility" : 
      return eval(property) 
    case "left" : 
    case "top" : 
    case "zIndex" : 
      return parseInt(eval(property)) 
    case "width" : 
    case "height" : 
      if (NN4) { return parseInt(eval("document."+property)) } 
      return parseInt(eval(property)) 
    case "clip.top" : 
    case "clip.right" : 
    case "clip.bottom" : 
    case "clip.left" : 
      if (NN4) { return parseInt(eval(property)) } 
      if (IE4 || IE6 || NN6) { return parseInt(clip.split("rect(")[1].split(")")[0].split("px")[getClipPropertyToIndex(property)]) } 
    } 
  } 
  return "" 
  } 
  
  // [ÇÔ¼ö] ·¹ÀÌ¾î ¿µ¿ª ¼Ó¼º ¹øÈ£ 
  function getClipPropertyToIndex(property) { 
  switch (property) { 
    case "clip.top"    : return 0 
    case "clip.right"  : return 1 
    case "clip.bottom" : return 2 
    case "clip.left"  : return 3 
  } 
  return -1 
  } 

  // [ÇÔ¼ö] °ª+px 
  function getAddedPixel(value) { 
  if (NN4 || (isNaN(value))) { return value } 
  return value+"px" 
  } 

  // [ÇÔ¼ö] ·¹ÀÌ¾î ¿µ¿ª°ª 
  function getClipValue(clipobject,property,value) { 
  if (NN4) { return value } 
  value=parseInt(value) 
  var clipvalue=clipobject.split("rect(")[1].split(")")[0].split("px") 
  clipvalue[getClipPropertyToIndex(property)]=value 
  return "rect("+clipvalue[0]+"px "+clipvalue[1]+"px "+clipvalue[2]+"px "+clipvalue[3]+"px)" 
  } 

  // [ÇÔ¼ö] ·¹ÀÌ¾î º¸ÀÌ±â/°¨Ãß±â °ª 
  function getLayerVisibilityValue(value) { 
  if (IE4 || IE6 || NN6) { 
    if (value=="show") { return "visible" } 
    if (value=="hide") { return "hidden" } 
  } 
  return value 
  } 

  // [ÇÔ¼ö] ·¹ÀÌ¾î ¼Ó¼º°ª ÁöÁ¤ 
  function setLayerProperty(layerName,property,value) { 
  with (getLayerObject(layerName)) { 
    switch (property) { 
    case "visibility" : 
      visibility=getLayerVisibilityValue(value) 
      break 
    case "left" : 
      left=getAddedPixel(value) 
      break 
    case "top" : 
      top=getAddedPixel(value) 
      break 
    case "zIndex" : 
      zIndex=value 
      break 
     case "width" : 
      if (NN4) { document.width=value } 
      else { width=getAddedPixel(value) } 
      break 
     case "height" : 
      if (NN4) { document.height=value } 
      else { height=getAddedPixel(value) } 
      break 
    case "clip.top" : 
      if (NN4) { clip.top=getClipValue(clip,property,value) } 
      else { clip=getClipValue(clip,property,value) } 
      break 
    case "clip.right" : 
      if (NN4) { clip.right=getClipValue(clip,property,value) } 
      else { clip=getClipValue(clip,property,value) } 
      break 
    case "clip.bottom" : 
      if (NN4) { clip.bottom=getClipValue(clip,property,value) } 
      else { clip=getClipValue(clip,property,value) } 
      break 
    case "clip.left" : 
      if (NN4) { clip.left=getClipValue(clip,property,value) } 
      else { clip=getClipValue(clip,property,value) } 
      break 
    } 
  } 
  } 

  // [ÇÔ¼ö] ·¹ÀÌ¾î º¸ÀÌ±â 
  function showLayer(layerName) { 
  setLayerProperty(layerName,"visibility","show") 
  } 

  // [ÇÔ¼ö] ·¹ÀÌ¾î °¨Ãß±â 
  function hideLayer(layerName) { 
  setLayerProperty(layerName,"visibility","hide") 
  } 

  // [ÇÔ¼ö] ·¹ÀÌ¾î ÀÌµ¿ 
  function moveByLayer(layerName,dx,dy) { 
  setLayerProperty(layerName,"left",getLayerProperty(layerName,"left")+dx) 
  setLayerProperty(layerName,"top",getLayerProperty(layerName,"top")+dy) 
  } 

  // [ÇÔ¼ö] ·¹ÀÌ¾î ÁÂÇ¥ÀÌµ¿ 
  function moveToLayer(layerName,newx,newy) { 
  setLayerProperty(layerName,"left",newx) 
  setLayerProperty(layerName,"top",newy) 
  } 

  // [ÇÔ¼ö] ·¹ÀÌ¾î ¿µ¿ª º¯°æ 
  function changeByLayerClip(layerName,dtop,dright,dbottom,dleft) { 
  setLayerProperty(layerName,"clip.top",getLayerProperty(layerName,"clip.top")+dtop) 
  setLayerProperty(layerName,"clip.bottom",getLayerProperty(layerName,"clip.bottom")+dbottom) 
  setLayerProperty(layerName,"clip.left",getLayerProperty(layerName,"clip.left")+dleft) 
  setLayerProperty(layerName,"clip.right",getLayerProperty(layerName,"clip.right")+dright) 
  } 


  // [ÇÔ¼ö] ·¹ÀÌ¾î ¿µ¿ª ÁÂÇ¥º¯°æ 
  function changeToLayerClip(layerName,newtop,newright,newbottom,newleft) { 
  setLayerProperty(layerName,"clip.top",newtop) 
  setLayerProperty(layerName,"clip.bottom",newbottom) 
  setLayerProperty(layerName,"clip.left",newleft) 
  setLayerProperty(layerName,"clip.right",newright) 
  } 

  // [ÇÔ¼ö] ·¹ÀÌ¾î °è¼ÓÀÌµ¿ ÃÊ±âÈ­ 
  function initLayerSlide(layerName,idx,idy,idt,iisLayerSliding,islideLayerFunction) { 
  with (getLayerObject(layerName)) { 
    isLayerSliding=false 
    left0=getAddedPixel(getLayerProperty(layerName,"left")) // Ã³À½ À§Ä¡ 
    top0=getAddedPixel(getLayerProperty(layerName,"top")) 
    dx=idx // ÇÑ¹ø¿¡ ÀÌµ¿ÇÒ °Å¸® 
    dy=idy 
    dt=idt // ÇÑ¹ø ÀÌµ¿ÇÒ ½Ã°£°£°Ý 
    slideLayerFunction=islideLayerFunction 
    isLayerSliding=iisLayerSliding // ÀÌµ¿Áß? 
  } 
  } 

  // [ÇÔ¼ö] ·¹ÀÌ¾î ¿µ¿ª °è¼ÓÀÌµ¿ ÃÊ±âÈ­ 
  function initLayerClipSlide(layerName,idtop,idright,idbottom,idleft,iclipdt,iisLayerClipSliding,islideLayerClipFunction) { 
  with (getLayerObject(layerName)) { 
    isLayerClipSliding=false 
    cliptop0=getAddedPixel(getLayerProperty(layerName,'clip.top')) // Ã³À½ ¿µ¿ª 
    clipbottom0=getAddedPixel(getLayerProperty(layerName,'clip.bottom')) 
    clipleft0=getAddedPixel(getLayerProperty(layerName,'clip.left')) 
    clipright0=getAddedPixel(getLayerProperty(layerName,'clip.right')) 
    dtop=idtop // ÇÑ¹ø¿¡ ÀÌµ¿ÇÒ °Å¸® 
    dright=idright 
    dbottom=idbottom 
    dleft=idleft 
    clipdt=iclipdt // ÇÑ¹ø ÀÌµ¿ÇÒ ½Ã°£°£°Ý 
    slideLayerClipFunction=islideLayerClipFunction 
    isLayerClipSliding=iisLayerClipSliding // ÀÌµ¿Áß? 
  } 
  } 

  // [ÇÔ¼ö] ·¹ÀÌ¾î, ·¹ÀÌ¾î ¿µ¿ª °è¼ÓÀÌµ¿ÈÄ ¸ØÃã ½ÃÀÛ 
  function slideAndStopLayerAndClipDefault(layerName) { 
  with (getLayerObject(layerName)) { 
    if (isLayerSliding) { // ÇöÀç ÀÌµ¿Áß? 
    slidingNo++ // ÇöÀç ÀÌµ¿È½¼ö+1 
    if (slidingNo<stopNoAfterSliding) { // ÇöÀç ÀÌµ¿È½¼ö<Á¤ÁöÇÒ ÀÌµ¿È½¼ö¸é, 
      moveByLayer(layerName,dx,dy) // ·¹ÀÌ¾î ½½¶óÀÌµù 
      changeByLayerClip(layerName,dtop,dright,dbottom,dleft) // ·¹ÀÌ¾î¿µ¿ª ½½¶óÀÌµù 
      setTimeout(slideLayerFunction,dt) // ·¹ÀÌ¾î, ·¹ÀÌ¾î ¿µ¿ª °è¼ÓÀÌµ¿ÈÄ ¸ØÃã °è¼Ó 
    } else  { // ¾Æ´Ï¸é 
      slidingNo%=stopNoAfterSliding // ÇöÀç ÀÌµ¿È½¼ö=ÇöÀç ÀÌµ¿È½¼ö%Á¤ÁöÇÒ ÀÌµ¿È½¼ö 
      nowViewingClip++ // ÇöÀç Å¬¸³¹øÈ£+1 
      if (nowViewingClip<totalClip) { setTimeout(slideLayerFunction,stopTimeAfterSliding) } // ¸¶Áö¸· Å¬¸³ ÀÌµ¿ ÀüÀÌ¸é Á¤Áö½Ã°£¸¸Å­ ¸ØÃã 
      else { // ¾Æ´Ï¸é 
      nowViewingClip%=totalClip // ÇöÀç Å¬¸³¹øÈ£=ÇöÀç Å¬¸³¹øÈ£%ÀüÃ¼ Å¬¸³¼ö 
      moveToLayer(layerName,left0,top0) // Ã³À½ À§Ä¡·Î ·¹ÀÌ¾î ÀÌµ¿ 
        changeToLayerClip(layerName,cliptop0,clipright0,clipbottom0,clipleft0) // Ã³À½ ¿µ¿ªÀ¸·Î ·¹ÀÌ¾î¿µ¿ª ÀÌµ¿ 
      setTimeout(slideLayerFunction,dt) // ·¹ÀÌ¾î, ·¹ÀÌ¾î ¿µ¿ª °è¼ÓÀÌµ¿ÈÄ ¸ØÃã °è¼Ó 
      } 
    } 
    } 
  } 
  } 

  // [ÇÔ¼ö] ·¹ÀÌ¾î, ·¹ÀÌ¾î ¿µ¿ª °è¼ÓÀÌµ¿ÈÄ ¸ØÃã ÃÊ±âÈ­ 
  function setLayerAndClipSlideAndStop(layerName,idx,idy,idtop,idright,idbottom,idleft,idt,istopNoAfterSliding,istopTimeAfterSliding,itotalClip,iisSliding,islideLayerFunction) { 
  with (getLayerObject(layerName)) { 
    slidingNo=0 // ÇöÀç ÀÌµ¿È½¼ö 
    stopNoAfterSliding=istopNoAfterSliding+1 // Á¤ÁöÇÒ ÀÌµ¿È½¼ö 
    stopTimeAfterSliding=istopTimeAfterSliding // Á¤Áö½Ã°£ 
    nowViewingClip=0 // ÇöÀç Å¬¸³¹øÈ£ 
    totalClip=itotalClip+1 // ÀüÃ¼ Å¬¸³¼ö 
    if (!islideLayerFunction) { islideLayerFunction="slideAndStopLayerAndClipDefault('"+layerName+"')" } 
    initLayerSlide(layerName,idx,idy,idt,iisSliding,islideLayerFunction) 
    initLayerClipSlide(layerName,idtop,idright,idbottom,idleft,idt,iisSliding,islideLayerFunction) 
    if (isLayerSliding) { setTimeout(slideLayerFunction,dt) } 
  } 
  } 

  /******************** Main Program ********************/ 
  // [ÇÔ¼ö] ÆäÀÌÁö ·ÎµåÈÄ ½ÇÇà 
function introRankingGoods(layerName) {
	setLayerAndClipSlideAndStop(layerName,0,-4,0,0,126,0,10,20,4000,19,true,"slideAndStopLayerAndClipDefault('"+layerName+"')") 
}

function newGoodsRoling(layerName) {
	setLayerAndClipSlideAndStop(layerName,0,-4,0,0,126,0,10,20,4000,19,true,"slideAndStopLayerAndClipDefault('"+layerName+"')") 
}

function processAfterPageLoad(layerName) { 
  setLayerAndClipSlideAndStop(layerName,0,-3.95,0,0,126,0,10,20,4000,19,true,"slideAndStopLayerAndClipDefault('"+layerName+"')") 
} 
