var tID       = null;
var getObj	= null;
var mq = new classMQ();

function classMQ() 
{
} 

classMQ.prototype.set = function( obj )
{
getObj	= obj;
this.BLANK     = "                   ";
this.CONTENT = getObj.value;
this.SCROLL    = this.BLANK + this.CONTENT + this.BLANK + this.CONTENT;
}

classMQ.prototype.scroll = function( ) 
{
if (!getObj)	return;	
			
var value = getObj.value;
getObj.value = value.substring(1);
if ("" == getObj.value.length)
{
	getObj.value = this.SCROLL;
}			
}

classMQ.prototype.init = function(  ) 
{
if (!getObj)	return;
getObj.value = this.CONTENT;
}

// ¸¶Äû¸¦ ¸ØÃß°Ô ÇÏ´Â ºÎºÐ
function MStop(chk) 
{  
 Toggle = 0;  
 switch(chk) {
     case 1:
     ex_marquee.stop(); // IDºÎºÐ.stop();
     break;
     case 2:
     mq_topic.stop();
     break;
 }    
}

// ÀÌ¹Ì ¸ØÃçÁø ¸¶Äû¸¦ ´Ù½Ã ¿òÁ÷ÀÌ°Ô ÇÏ´Â ¼Ò½º
function MStart(chk) 
{  
 Toggle = 1;  
 switch(chk) {
  case 1:
     ex_marquee.start(); // IDºÎºÐ.start();
     break;
     case 2:
     mq_topic.start();
     break;
 }    
}

function na_call(str)
{
eval(str);
}
