// fontSize Defalut
var fontSize = 12;
// fontColorIndex Defalut(0Àº ±ÛÀÚ»ö)
var fontColorIndex = 0;
// fontColorIndex Defalut(0Àº ¹ÙÅÁ»ö)
var bgColorIndex = 0;

//±ÛÀÚ»ö ¹è¿­
fontColor = new Array();
fontColor[0] = "";
fontColor[1] = "";
fontColor[2] = "#ffff00";
fontColor[3] = "#ffffff";
fontColor[4] = "#6666ff";
fontColor[5] = "#ff6666";
fontColor[6] = "#ff66ff";
fontColor[7] = "#66ff66";

//¹è°æ»ö ¹è¿­
bgColor = new Array();
bgColor[0] = "";
bgColor[1] = "";
bgColor[2] = "#000000";
bgColor[3] = "#6666ff";
bgColor[4] = "#ff6666";
bgColor[5] = "#ff66ff";
bgColor[6] = "#66ff66";

var zoomRate = 20;
var maxRate = 200;
var minRate = 100;
var curRate = 100;

/* À½¼º ÁßÁö¹öÆ° ´­·¶À»¶§ (ON->OFF) */
var tts_onstop_href = "javascript:f_voiceStart('start')";
var tts_onstop_src = "/tts/voiceon.gif";
var tts_onstop_alt = 'À½¼º ½ÃÀÛ';
var tts_onstop_title = 'À½¼º ½ÃÀÛ';
/* À½¼º ½ÃÀÛ¹öÆ° ´­·¶À»¶§ (OFF->ON) ON ÀÌ¹ÌÁö Ãß°¡ÇØÁÖ¼¼¿ä!! */
var tts_onstart_href = "javascript:f_voiceStart('stop')";
var tts_onstart_src = "/tts/voiceoff.gif";
var tts_onstart_alt = 'À½¼º ÁßÁö';
var tts_onstart_title = 'À½¼º ÁßÁö';

/*----------------------------------------------------------------------------*/
/* NAME : f_playinput()                                                       */
/* DESC : ¼­ºêÆäÀÌÁö¿¡¼­ »ç¿ëÀÚ°¡ ÀÔ·ÂÇÑ ÅØ½ºÆ®¸¦ À½¼ºÀ¸·Î ÇÕ¼ºÇÏ¿© Àç»ýÇÑ´Ù. */
/*----------------------------------------------------------------------------*/
function f_playinput(inText){

  if(readCookie("voiceStart")== "start"){
    sRes = IsAvailable();
    if( sRes == 1 )
    {
      sBot.OnSendText(inText);
    }
  }
}

/*----------------------------------------------------------------------------*/
/* NAME : f_playinput_d()													  */
/* DESC : ¼­ºêÆäÀÌÁö¿¡¼­ »ç¿ëÀÚ°¡ ÀÔ·ÂÇÑ ÅØ½ºÆ®¸¦ À½Àý´ÜÀ§·Î ÇÕ¼ºÇÏ¿© Àç»ýÇÑ´Ù*/
/*----------------------------------------------------------------------------*/
function f_playinput_d(inText){

  if(readCookie("voiceStart")== "start"){
    sRes = IsAvailable();
    if( sRes == 1 )
    {
      sBot.OnSendText( inText );
    }
  }
}


/*----------------------------------------------------------------------------*/
/* NAME : f_selectVoice2()													  */
/* DESC : ÄÞº¸¹Ú½º¿¡ onChangeµÆÀ» ¶§ À½¼º									  */

/*----------------------------------------------------------------------------*/
function f_selectVoice2(obj) {
  var opts = obj.options;
  var strText  = "";

  if (readCookie("voiceStart")== "start"){
    for (var i=0; i<opts.length; i++) {
      if ( opts[i].selected ) strText = opts[i].text;
    }
    f_playinput(strText);
  }
}

/*----------------------------------------------------------------------------*/
/* NAME : f_selectVoice()													  */
/* DESC : ¼¿·ºÆ® ¹Ú½º¿¡ onFocusµÆÀ» ¶§ À½¼º									  */

/*----------------------------------------------------------------------------*/
function f_selectVoice(str, obj) {
  var opts = obj.options;
  var strText  = "";

  if (readCookie("voiceStart")== "start"){
    for (var i=0; i<opts.length; i++) {
      if ( opts[i].selected ) strText = (String)(str+ ". »óÇÏ È­»ìÇ¥Å°·Î ¼±ÅÃ. " + opts[i].text);
    }
    f_playinput(strText);
  }
}


/*----------------------------------------------------------------------------*/
/* NAME : f_setVoice()                                                        */
/* DESC : È­¸éÀÌ Ã³À½ LoadµÇ¾úÀ» ¶§ ½ÇÇàµÇ´Â ÇÔ¼ö(À½¼º°ü·Ã)                   */
/*----------------------------------------------------------------------------*/
function f_setVoice() {
   if(readCookie("voiceStart").length == 0) tts_setCookie("voiceStart", "stop", 1);
   if(readCookie("voiceSpeed").length == 0) tts_setCookie("voiceSpeed", 3, 1);
   if(readCookie("voiceVolum").length == 0) tts_setCookie("voiceVolum", 3, 1);

   if(readCookie("voiceStart") == "start")
   {
      f_voiceStart("start");
      f_setVoiceSpeed("NO");
      f_setVoiceVolume("NO");
   }
   else
   {
      if(sBot.SwitchCheck() == true)
      {
         sBot.SwitchMode('0');
      }
   }
}

/*----------------------------------------------------------------------------*/
/* NAME : f_setInit()                                                         */
/* DESC : È­¸éÀÌ Ã³À½ LoadµÇ¾úÀ» ¶§ ½ÇÇàµÇ´Â ÇÔ¼ö(±ÛÀÚ°ü·Ã)                   */
/*----------------------------------------------------------------------------*/
function f_setInit(){
   if(GetCookie("zoomVal") != null && GetCookie("zoomVal") != "")
   {
      curRate = GetCookie("zoomVal");
      if(!((curRate >=minRate)&(curRate<=maxRate)))
      {
         curRate = 100;
      }

      tts_setCookie("zoomVal",curRate, 1);
      document.body.style.zoom = curRate + '%';
   }
   else
   {
      document.body.style.zoom = '100%';
      curRate = 100;
      tts_setCookie("zoomVal",100, 1);
   }

   if(readCookie("fontColorIndex").length == 0)
      tts_setCookie("fontColorIndex", 0, 1);
   else
      fontColorIndex = readCookie("fontColorIndex");

   if(readCookie("bgColorIndex").length == 0)
      tts_setCookie("bgColorIndex", 0, 1);
   else
      bgColorIndex = readCookie("bgColorIndex");

   if(GetCookie("zoomVal")== '100' && readCookie("fontColorIndex")==0 && readCookie("bgColorIndex") == 0)
   {
   }
   else
   {
      f_setFace();
   }
}

/*----------------------------------------------------------------------------*/
/* NAME : f_setFontColor1()                                                   */
/* DESC : ±ÛÀÚ»ö º¯°æ(key Event½Ã)                                            */
/*----------------------------------------------------------------------------*/
function f_setFontColor1(param){
  var keyCode = window.event.keyCode;
  if( keyCode == 13 )
  {
    if ( param >= 0 && param <= 7 )
    {
      fontColorIndex = param;
      f_setFace();
    }
  }
}

/*----------------------------------------------------------------------------*/
/* NAME : f_setFontColor2()                                                   */
/* DESC : ±ÛÀÚ»ö º¯°æ                                                         */

/*----------------------------------------------------------------------------*/
  function f_setFontColor2(param){
    if ( param >= 0 && param <= 7 )
    {
      fontColorIndex = param;
      f_setFace();
    }
  }

  // À¥Áø¿ë
  function f_setFontColor2_frame(param){
    if ( param >= 0 && param <= 7 )
    {
      fontColorIndex = param;
      f_setFace_frame();
    }
  }

/*----------------------------------------------------------------------------*/
/* NAME : f_setBgColor1()                                                     */
/* DESC : ¹è°æ»ö º¯°æ(key Event½Ã)                                            */

/*----------------------------------------------------------------------------*/
function f_setBgColor1(param) {
  var keyCode = window.event.keyCode;
  if( keyCode == 13 )
  {
    if ( param >= 0 && param <= 6 )
    {
      bgColorIndex = param;
      f_setFace();
    }
  }
}

/*----------------------------------------------------------------------------*/
/* NAME : f_setBgColor2()                                                     */
/* DESC : ¹è°æ»ö º¯°æ                                                         */

/*----------------------------------------------------------------------------*/
function f_setBgColor2(param) {
  if ( param >= 0 && param <= 6 ) {
    bgColorIndex = param;
    f_setFace();
  }
}

// À¥Áø¿ë
function f_setBgColor2_frame(param) {
  if ( param >= 0 && param <= 6 ) {
    bgColorIndex = param;
    f_setFace_frame();
  }
}

/*----------------------------------------------------------------------------*/
/* NAME : f_setFace()                                                         */
/* DESC : ±ÛÀÚÅ©±â, ±ÛÀÚ»ö, ¹è°æ»ö ¼³Á¤                                       */

/*----------------------------------------------------------------------------*/
function f_setFace(){

  var objs_td		= new Array();
  var objs_th		= new Array();
  var	objs_a		= new Array();
  var	objs_span	= new Array();
  var objs_p		= new Array();

  objs_td   = document.getElementsByTagName("td");
  objs_th   = document.getElementsByTagName("th");
  objs_a    = document.getElementsByTagName("a");
  objs_span = document.getElementsByTagName("span");
  objs_p    = document.getElementsByTagName("P");
  objs_div  = document.getElementsByTagName("DIV");

  for (i=0;i<objs_td.length;i++)
  {
    objs_td[i].style.color=fontColor[fontColorIndex];
    objs_td[i].style.backgroundColor=bgColor[bgColorIndex];
  }
  for (i=0;i<objs_th.length;i++)
  {
    objs_th[i].style.color=fontColor[fontColorIndex];
    objs_th[i].style.backgroundColor=bgColor[bgColorIndex];
  }
  for (i=0;i<objs_a.length;i++)
  {
    objs_a[i].style.color=fontColor[fontColorIndex];
  }
  for (i=0;i<objs_span.length;i++)
  {
    objs_span[i].style.color=fontColor[fontColorIndex];
  }
  for (i=0;i<objs_p.length;i++)
  {
    objs_p[i].style.color=fontColor[fontColorIndex];
  }
  for (i=0;i<objs_div.length;i++)
  {
    objs_div[i].style.color=fontColor[fontColorIndex];
    objs_div[i].style.backgroundColor=bgColor[bgColorIndex];
  }


  if ( document.all['select2'] == "[object]" )
  {
    document.all['select2'].selectedIndex = parseInt(fontColorIndex);
    document.all['select'].selectedIndex = parseInt(bgColorIndex);
  }

  tts_setCookie("fontColorIndex", fontColorIndex, 1);
  tts_setCookie("bgColorIndex", bgColorIndex, 1);
}

function f_setFace_frame(){
  var objs_td		= new Array();
  var objs_th		= new Array();
  var	objs_a		= new Array();
  var	objs_span	= new Array();
  var objs_p		= new Array();

  objs_td   = top.main.document.getElementsByTagName("td");
  objs_th   = top.main.document.getElementsByTagName("th");
  objs_a    = top.main.document.getElementsByTagName("a");
  objs_span = top.main.document.getElementsByTagName("span");
  objs_p    = top.main.document.getElementsByTagName("P");

  for (i=0;i<objs_td.length;i++)
  {
    objs_td[i].style.color=fontColor[fontColorIndex];
    objs_td[i].style.backgroundColor=bgColor[bgColorIndex];
  }
  for (i=0;i<objs_th.length;i++)
  {
    objs_th[i].style.color=fontColor[fontColorIndex];
    objs_th[i].style.backgroundColor=bgColor[bgColorIndex];
  }
  for (i=0;i<objs_a.length;i++)
  {
    objs_a[i].style.color=fontColor[fontColorIndex];
  }
  for (i=0;i<objs_span.length;i++)
  {
    objs_span[i].style.color=fontColor[fontColorIndex];
  }
  for (i=0;i<objs_p.length;i++)
  {
    objs_p[i].style.color=fontColor[fontColorIndex];
  }


  if ( document.all['select2'] == "[object]" )
  {
    document.all['select2'].selectedIndex = parseInt(fontColorIndex);
    document.all['select'].selectedIndex = parseInt(bgColorIndex);
  }

  tts_setCookie("fontColorIndex", fontColorIndex, 1);
  tts_setCookie("bgColorIndex", bgColorIndex, 1);
}


function readCookie( str )
{
  var key = str + "=" ;
  var key_len = key.length ;
  var cookie_len = document.cookie.length;
  var i = 0;

  while (i < cookie_len )
  {
    var j = i + key_len;
    if ( document.cookie.substring( i, j ) == key )
    {
      var cookie_end = document.cookie.indexOf(";",j);

      if (cookie_end == -1)
      {
	cookie_end = document.cookie.length;
      }

      return document.cookie.substring(j,cookie_end );
    }
    i++
  }
  return ""
}


function GetCookie( name )
{
  var nameOfCookie = name + "=";
  var x = 0;
  while ( x <= document.cookie.length )
  {
    var y = (x+nameOfCookie.length);
    if ( document.cookie.substring( x, y ) == nameOfCookie )
    {
      if ( (endOfCookie=document.cookie.indexOf( ";", y )) == -1 )
	endOfCookie = document.cookie.length;
      return unescape( document.cookie.substring( y, endOfCookie ) );
    }
    x = document.cookie.indexOf( " ", x ) + 1;

    if ( x == 0 )  break;
  }
  return "";
}


/*------------------------------------------------------------------*/
/*  Æã¼Ç¸í   : tts_setCookie                                            */
/*  ³»¿ë¼³¸í : ÄíÅ°°ªÀ» ¼³Á¤ÇÑ´Ù.                                   */
/*  È£Ãâ ¸ðµâ¸í                                                     */
/*      1) html        :                                            */
/*      2) JSP/servlet :                                            */
/*      3) script func.:                                            */
/*  ¸Å°³º¯¼ö  : key°ª, value°ª, ÄíÅ° À¯È¿ÀÏÀÚ-1                     */
/*  Æ¯ÀÌ»çÇ×  :                                                     */
/*------------------------------------------------------------------*/
function tts_setCookie(key, value, term){
  var expire = new Date();
  expire.setDate( expire.getDate() + term );
  document.cookie = key + "=" + escape( value ) + "; path=/; expires=" + expire.toGMTString() + ";";
}



/*----------------------------------------------------------------------------*/
/* NAME : f_setBasic()                                                        */
/* DESC : ÆäÀÌÁö È¯°æ¼³Á¤ ÃÊ±âÈ­                                              */

/*----------------------------------------------------------------------------*/
function f_setBasic(mode, load)
{

  document.body.style.zoom = '100%';
  tts_setCookie("zoomVal",100, 1);
  curRate = 100;

  tts_setCookie("fontColorIndex", 0, 1);
  fontColorIndex = readCookie("fontColorIndex");

  tts_setCookie("bgColorIndex", 0, 1);
  bgColorIndex = readCookie("bgColorIndex");

  f_setFace();


  tts_setCookie("voiceStart", "stop", 1);
  f_voiceStart( readCookie("voiceStart") );

  tts_setCookie("voiceSpeed", 3, 1);
  f_setVoiceSpeed( "NO" );

  tts_setCookie("voiceVolum", 3, 1);
  f_setVoiceVolume( "NO" );
}

/*----------------------------------------------------------------------------*/
/* NAME : f_setVoiceSpeed()                                                   */
/* DESC : À½¼º¼Óµµ ¼³Á¤                                                       */
/*----------------------------------------------------------------------------*/
function f_setVoiceSpeed(mode)
{
  var sSpeed;
  var strPlay = "";
  if ( readCookie("voiceSpeed").length == 0 ) sSpeed = 3;
  else sSpeed = readCookie("voiceSpeed");

  sRes = IsAvailable();
  if (sRes != 0)
  {
    if( mode == "up" ){
      if( sSpeed < 5 ) sSpeed = parseInt(sSpeed) + 1;
      f_playinput("À½¼º ¼Óµµ"+ sSpeed);

    }else if( mode == "down" ){
      if( sSpeed > 1 ) sSpeed = parseInt(sSpeed) - 1;
      f_playinput("À½¼º ¼Óµµ "+ sSpeed);

    }else{
      //NO JOBS
    }

    //Cookie Àç¼³Á¤
    tts_setCookie( "voiceSpeed", sSpeed, 1 );
    sBot.OnSetSpeed(sSpeed);
  }
}

function zoomInOut(contentid, how)
{
  if (((how == "in")&&(curRate >= maxRate))||((how == "out") && (curRate <= minRate))) {
    return;   /* ¹üÀ§ ÃÊ°ú½Ã ¸®ÅÏÇÑ´Ù */
  }
  if (how == "in") {
    curRate = (-(-(curRate))) + (-(-(zoomRate)));
    document.body.style.zoom = curRate + '%';	/* È­¸é È®´ë */
  }
  else {
    curRate = (-(-(curRate))) - (-(-(zoomRate)));
    document.body.style.zoom = curRate + '%';	/* È­¸é Ãà¼Ò */
  }
//  sBot.OnSetZoom(curRate);
  tts_setCookie("zoomVal",curRate, 1);
}

/*----------------------------------------------------------------------------*/
/* NAME : f_setVoiceVolume()                                                   */
/* DESC : À½¼ºº¼·ý ¼³Á¤                                                       */
/*----------------------------------------------------------------------------*/
function f_setVoiceVolume(mode)
{
  var sVol;
  if ( readCookie("voiceVolum").length == 0 ) sVol = 3;
  else sVol = readCookie("voiceVolum");

  sRes = IsAvailable();
  if ( sRes != 0 )
  {
    if( mode == "up" ){
      if( sVol < 5 ){
	sVol = parseFloat(sVol) + 1;
      }
      f_playinput("À½¼º º¼·ý "+ sVol);

    }else if( mode == "down" ){
      if( sVol > 1 ){
	sVol = parseFloat(sVol) - 1;
      }
      f_playinput("À½¼º º¼·ý "+ sVol);

    }else{
      //NO JOBS
    }

    //Cookie Àç¼³Á¤
    tts_setCookie( "voiceVolum", sVol, 1 );
    sBot.OnSetVolume(sVol);
  }
}

/*----------------------------------------------------------------------------*/
/* NAME : f_voiceImg()                                                     */
/* DESC : À½¼º°ü·Ã ÀÌ¹ÌÁö º¯°æ(ÆäÀÌÁö ·ÎµåµÉ¶§ ½ÇÇàµÊ)                        */

/*----------------------------------------------------------------------------*/
function f_voiceImg()
{
  var voiceStart = readCookie("voiceStart");
  var voiceSpeed = readCookie("voiceSpeed");
  var voiceVolum = readCookie("voiceVolum");

  if( voiceStart == "start" ){

    document.all['voice_start'].href = "javascript:f_voiceStart('stop');";
    document.all['voice_start'].src = "/img/tts/toolbar_10_1.gif";
    document.all['voice_start'].alt = "À½¼º²ô±â";
    document.all['voice_start'].title = "À½¼º²ô±â";

    //Cookie Àç¼³Á¤
    tts_setCookie( "voiceStart", "start", 1 );
  }else if( voiceStart == "stop" ){
    document.all['voice_start'].href = "javascript:f_voiceStart('start');";

    document.all['voice_start'].src = "/img/tts/toolbar_10.gif";
    document.all['voice_start'].alt = "À½¼ºÄÑ±â";
    document.all['voice_start'].title = "À½¼ºÄÑ±â";

    //Cookie Àç¼³Á¤
    tts_setCookie( "voiceStart", "stop", 1 );
    //startFlag = false;
  }



}


/* ---------ÇÁ·¹ÀÓ°ü·Ã Ãß°¡ 2006.10.18------------------------------*/
var sRes;
/*
   var sBot = this;



   if(!ss) {
   window.setTimeout("getActiveX();",200);
   }

   function getActiveX() {
   ss = window.parent.frames['1'];
   sBot = window.parent.frames['0'];
   }*/

var ss = this;

function IsAvailable() {
  if(ss) {
    if(sBot.IsAvailable()){
      return true;
    }else {
      return false;
    }
  }
  return false;
}

/* ---------ÇÁ·¹ÀÓ°ü·Ã Ãß°¡ 2006.10.18------------------------------*/
var f_voiceOn_delLEN;
var f_voiceOn_delCNT;

function f_voiceOn_delST() {
  f_voiceOn_delLEN = 100;	/* 1È¸ ´ë±â½Ã°£ 100ms */
  f_voiceOn_delCNT = 100;	/* ´ë±âÈ½¼ö, 100È¸ */
}

function f_voiceOn_delCN() {
  if(f_voiceOn_delCNT!=0) {
    if(IsAvailable()) {
      if(sBot.OnStart()) {  /* Á¤»ó¼öÇà½Ã ¸®ÅÏ */
//        sBot.OnSetZoom(curRate);    /* ¸®ÅÏ Á÷Àü¿¡ ÁÜ ºñÀ²À» ¼³Á¤ÇÑ´Ù */
        return;
	  }
	  else {
        setTimeout('f_voiceOn_delCN()',f_voiceOn_delLEN);
	  }
    }
    else {
      setTimeout('f_voiceOn_delCN()',f_voiceOn_delLEN);
    }
  }
  else {
    alert('À½¼º ON ½ÇÆÐ');
    f_voiceStart('stop');
  }
  f_voiceOn_delCNT = (-(-(f_voiceOn_delCNT))) - 1;
}

/*----------------------------------------------------------------------------*/
/* NAME : f_voiceStart()                                                      */
/* DESC : À½¼ºÄÑ±â or À½¼º²ô±â ¹öÆ°À» ´­·¶À» °æ¿ì¿¡ ½ÇÇàµÊ                    */
/*----------------------------------------------------------------------------*/
function f_voiceStart(val) {
   if(ss)
   {
      if(val == "start")
      {
         if(sBot.SwitchCheck() == false)
         {
            sBot.SwitchMode('1');
            f_voiceOn_delST();
            f_voiceOn_delCN();
         }
         else
         {
            sRes = sBot.OnStart();

            if(sRes == 0) //sRes = 0ÀÌ¸é ¸ðµâÀÌ ¶°ÀÖÁö¾ÊÀ» ¶§
            {
               return;
            }
         }

         /* À½¼º¹öÆ°Àº ÀÏ´Ü ON ÇÑ´Ù. ½ÇÆÐ½Ã´Â ÀÚµ¿À¸·Î OFFÇÑ´Ù. */
         document.all['voice_link'].href = tts_onstart_href;
         document.all['voice_start'].src = tts_onstart_src;
         document.all['voice_start'].alt = tts_onstart_alt;
         document.all['voice_start'].title = tts_onstart_title;

         displayOn(2);

         //Cookie Àç¼³Á¤
         tts_setCookie("voiceStart", "start", 1);
      }
      else if(val == "stop")
      {
         if(sBot.SwitchCheck() == true)
         {
            sBot.SwitchMode('0');
         }

         document.all['voice_link'].href = tts_onstop_href;
         document.all['voice_start'].src = tts_onstop_src;
         document.all['voice_start'].alt = tts_onstop_alt;
         document.all['voice_start'].title = tts_onstop_title;

         displayOn(1);

         //Cookie Àç¼³Á¤
         tts_setCookie("voiceStart", "stop", 1);

         sBot.OnStop();
      }
   }
}

function displayOn(val){
   if(val==1) {
      for(i=1; i <=2; i++) {
         if(document.all['tts_tool_on_' + i] == '[object]') {
            var temp = eval('document.all.tts_tool_on_' + i + '.style');
            temp.display = 'none';
         }
      }
   } else {
      for(i=1; i<=2; i++) {
         var temp = eval('document.all.tts_tool_on_' + i + '.style');
         temp.display = 'block';
      }
   }
}

/*---------------------------------------------------------------------------
  À½¼º on/off ´ÜÃàÅ° ¼³Á¤
  -----------------------------------------------------------------------------*/

document.onkeydown=f_CtrlKey;

function f_CtrlKey()
{

  /* Ctrl+F12 À½¼º on/off ´ÜÃàÅ° ±â´É */
  if (event.keyCode == 123){

    var vStart = readCookie("voiceStart");
    if (vStart == "start") {
      f_voiceStart( "stop");
    }
    else {
      f_voiceStart( "start");
    }
  }

  /* Ctrl+Shift+T »ó´Ü¸Þ´º ´ÜÃàÅ° ±â´É */
  if (window.event.ctrlKey &&  window.event.shiftKey && event.keyCode == 84){
    document.all['movetop'].focus();	// »ó´Ü HomeÀ¸·Î focus() ÀÌµ¿
  }

  /* Ctrl+Shift+L ÁÂÃø¼­ºê¸Þ´º ´ÜÃàÅ° ±â´É */
  if (window.event.ctrlKey &&  window.event.shiftKey && event.keyCode == 76){
    document.all['moveleft'].focus();	// ÁÂÃø focusÀÌµ¿ÇÒ ºÎºÐÀÇ ¾ÆÀÌµð ÀÔ·Â

  }

  /* Ctrl+Shift+C º»¹® ´ÜÃàÅ° ±â´É */
  if (window.event.ctrlKey &&  window.event.shiftKey && event.keyCode == 67){
    document.all['startptr'].focus();	// º»¹® focusÀÌµ¿ÇÒ ºÎºÐÀÇ ¾ÆÀÌµð ÀÔ·Â

  }

  /* Ctrl+Shift+B ¹®¼­³¡ ´ÜÃàÅ° ±â´É */
  if (window.event.ctrlKey &&  window.event.shiftKey && event.keyCode == 66){
    document.all['movebottom'].focus();	// ÇÏ´Ü focusÀÌµ¿ÇÒ ºÎºÐÀÇ ¾ÆÀÌµð ÀÔ·Â

  }

  /* Ctrl+Shift+H À½¼º¼­ºñ½º ´ÜÃàÅ° µµ¿ò¸» ±â´É */
  if (window.event.ctrlKey &&  window.event.shiftKey && event.keyCode == 72){
    document.all['movehelp'].focus();
    document.getElementById("Helpplayer").play();
    /*if(sBot) {
      var pp = sBot.document.getElementById('Helpplayer');
      if(pp)
      pp.play();
      }*/
  }
}

