/*  Script by: Jack Litka    E-mail: dajackster@hotmail.com
    Homepage: http://www.angelfire.com/ak/JackL/
    If you would like to use this on your page, keep this header intact.

    This script was changed by Joaquim Amado Lopes (jalopes@jalopes.com)
    Homepage: http://www.jalopes.com
*/
var ticker_max=0; var ticker_x=0; ticker_pos=0; ticker_ID=0; var ticker_start=0;
var ticker_pausev=0;

function ticker_list()
 { ticker_max=ticker_list.arguments.length;
   for (i=0; i<ticker_max; i++)  this[i]=ticker_list.arguments[i];
 }

function ticker_text()
 { if (ticker_pausev==1)
     ticker_pos=tick[ticker_x].length
   else
     if (ticker_pos++==tick[ticker_x].length)
      { ticker_pos=0; ticker_x=(ticker_x<ticker_max-2)?ticker_x+=2:0; };
   document.doc_form.ticker.value=tick[ticker_x].substring(0,ticker_pos)+"_";
   ticker_ID=setTimeout("ticker_text()",(ticker_pos==tick[ticker_x].length)?1100:40);
 }

function ticker_pause(num)
 { ticker_pausev=num; }

function ticker_setJump()
 { ticker_start=1; }

function ticker_jump()
 { if (ticker_start==1)
    { ticker_start=0;
      location=tick[ticker_x+1]; 
    }
   else
     ticker_start=1;
 }

function ticker_move(move)
 { ticker_x += move*2;
   if (ticker_x<0)            ticker_x = ticker_max-2;
   if (ticker_x>=ticker_max)  ticker_x = 0;
   ticker_pos=0; clearTimeout(ticker_ID); ticker_text();
 }

