var LT_aryPhrase=new Array();var LT_aryURL=new Array();var LT_objTarget=null;var LT_intDurationToWritePhrase=null;var LT_intDurationBetweenPhrases=null;var LT_intPhraseIndex=0;var LT_intCharacterPosition=1;var LT_bolPause=false;var LT_bolWritingPhrase=false;var LT_bolInType=false;var LT_objTimerRef=null;function LT_addPhrase(_strText,_strUrl)
{LT_aryPhrase.push(_strText);LT_aryURL.push(_strUrl);}
function LT_start(_intDurationToWritePhrase,_intDurationBetweenPhrases,_strTargetId)
{LT_objTarget=document.getElementById(_strTargetId);LT_intDurationToWritePhrase=_intDurationToWritePhrase;LT_intDurationBetweenPhrases=_intDurationBetweenPhrases;LT_objTarget.onmouseout=function()
{if(LT_objTimerRef==null)
{LT_objTimerRef=-1;LT_type();}}
LT_objTarget.onmousemove=function()
{if(LT_objTimerRef!=null&&LT_objTimerRef!=-1)
{clearTimeout(LT_objTimerRef);LT_objTimerRef=null;}}
LT_objTarget.onmouseover=function()
{if(LT_objTimerRef!=null&&LT_objTimerRef!=-1)
{clearTimeout(LT_objTimerRef);LT_objTimerRef=null;}}
LT_type();}
function LT_type()
{var strCurrentPhrase=LT_aryPhrase[LT_intPhraseIndex];LT_objTarget.innerHTML=strCurrentPhrase.substr(0,LT_intCharacterPosition);if(LT_intCharacterPosition==1)
{LT_objTarget.setAttribute("href",LT_aryURL[LT_intPhraseIndex]);}
LT_intCharacterPosition++;if(LT_intCharacterPosition>strCurrentPhrase.length)
{LT_intCharacterPosition=1;LT_intPhraseIndex++;if(LT_intPhraseIndex==LT_aryPhrase.length)
{LT_intPhraseIndex=0;}
clearTimeout(LT_objTimerRef);LT_objTimerRef=setTimeout("LT_type()",LT_intDurationBetweenPhrases);}
else
{setTimeout("LT_type()",LT_intDurationToWritePhrase);}}
