document.write("<div id=\"LayerTicker\" name=LayerTicker\" style=\"display:; position:absolute; left:915; top:235; z-index:12;\">");
document.write("<table cellpadding=0 cellspacing=0 border=0 align=center>");
document.write("<tr>");
document.write("<td width=70>");
document.write("<SCRIPT>var ff = mf('/flash/quick_2008.swf', 'quic', '70', '180', 'transparent');dc_write(ff);</SCRIPT>");
document.write("</td>");
document.write("</tr>");
document.write("<map name=\"MapTickerM\" id=\"MapTickerM\">");
document.write("<area shape=\"rect\" coords=\"12,146,64,163\" href=\"/company/aindex.asp\" />");
document.write("<area shape=\"rect\" coords=\"12,167,66,187\" href=\"/shop/index.asp\" />");
document.write("<area shape=\"rect\" coords=\"13,189,65,208\" href=\"/point/gameMain.asp\" />");
document.write("</map>");
document.write("</table>");
document.write("</div>");
window.onresize = moveTicker1;

function moveTicker1() {
  var xMax = document.body.clientWidth;
	if(xMax < 1004) {
		xMax = 1004;
	}
  var xOffset = (xMax-80);
  var divMenu = document.all["LayerTicker"].style;
  //divMenu.left = xOffset;
  divMenu.left = 915;
  divMenu.top = 235;
}
moveTicker1();

var bNetscape4plus = (navigator.appName == "Netscape" && navigator.appVersion.substring(0,1) >= "4");
var bExplorer4plus = (navigator.appName == "Microsoft Internet Explorer" && navigator.appVersion.substring(0,1) >= "4");

function CheckUIElements() {
  var ytickerFrom, ytickerTo, yButtonFrom, yButtonTo, yOffset, timeoutNextCheck;

  if ( bNetscape4plus ) { // ³×Ã÷ÄÉÀÌÇÁ ¿ë ¼³Á¤
    ytickerFrom   = document["LayerTicker"].top;
    ytickerTo     = top.pageYOffset + 235;   // À§ÂÊ À§Ä¡
  }
  else if ( bExplorer4plus ) {  // IE ¿ë ¼³Á¤
    ytickerFrom   = parseInt (LayerTicker.style.top, 10);
    ytickerTo     = document.body.scrollTop + 235; // À§ÂÊ À§Ä¡
  }

  timeoutNextCheck = 100;

  if ( Math.abs (yButtonFrom - (ytickerTo + 152)) < 6 && yButtonTo < yButtonFrom ) {
    setTimeout ("CheckUIElements()", timeoutNextCheck);
    return;s
  }

  if ( yButtonFrom != yButtonTo ) {
    yOffset = Math.ceil( Math.abs( yButtonTo - yButtonFrom ) / 10 );
    if ( yButtonTo < yButtonFrom )
      yOffset = -yOffset;

    if ( bNetscape4plus )
      document["divLinkButton"].top += yOffset;
    else if ( bExplorer4plus )
      divLinkButton.style.top = parseInt (divLinkButton.style.top, 10) + yOffset;

    timeoutNextCheck = 10;
  }
  if ( ytickerFrom != ytickerTo ) {
    yOffset = Math.ceil( Math.abs( ytickerTo - ytickerFrom ) / 5 );
    if ( ytickerTo < ytickerFrom )
      yOffset = -yOffset;

    if ( bNetscape4plus )
      document["LayerTicker"].top += yOffset;
    else if ( bExplorer4plus )
      LayerTicker.style.top = parseInt (LayerTicker.style.top, 10) + yOffset;

    timeoutNextCheck = 10;
  }

  setTimeout ("CheckUIElements()", timeoutNextCheck);
}

function moveTicker2() {
  var y;

  // ÇÁ·¹ÀÓ ¿¡¼­ ¹þ¾î³ª°Ô ÇÏ´Â ÇÔ¼öÀÔ´Ï´Ù. ÇÁ·¹ÀÓ¿¡ ³ÖÀ¸·Á¸é »èÁ¦ÇÏ¼¼¿ä
  if ( top.frames.length )
   //       top.location.href = self.location.href;

  // Æä¿¡Áö ·Îµù½Ã Æ÷Áö¼Ç
  if ( bNetscape4plus ) {
    document["LayerTicker"].top = top.pageYOffset + 23;
    document["LayerTicker"].visibility = "visible";
  }
  else if ( bExplorer4plus ) {
    LayerTicker.style.top = document.body.scrollTop + 23;
    LayerTicker.style.visibility = "visible";
  }

  // initializing UI update timer
  CheckUIElements();
  //if ( bExplorer4plus )
  //  setTimeout ( "FlashTitleStepIt(255)", 10 );
  return true;
}
moveTicker2();
