/* BEGINNING OF TICKER CONFIGURATION VARIABLES */
var estimatedwidth=0; //ss mod , try and estimate the width
var maxwidth=500; //cannot go beyond this width
//var minwidth=400; //cannot go below this width
/* The variables below are the ones you want to change  */
//calculate the width we need
for (i=0;i<msg.length;i++){
	if(estimatedwidth<msg[i].length){estimatedwidth=msg[i].length;}
}
estimatedwidth=estimatedwidth+400; //adjust to have spacing and because lengths are in characters and need to be adjusted to pixels
if(estimatedwidth>maxwidth){estimatedwidth=maxwidth;}

speed=200;                      // default 150ms-Sets the speed in milliseconds at which the link or text scrolls.
var divwidth=estimatedwidth;   // Sets the width of the div or layer in pixels.  You will have to play with this to get it set correctly.
//alert(divwidth);
var divheight=20;            // Sets the height of the div or layer in pixels.  Same as above.

/*
   The variables divincbt, divinctb, divincrl and divinclr set the increment in pixels that the div that contains the text
    or links is moved.  Which one is used is determined by the direction that you pick in the variable whichscroll.
    The variable divinctb would be used if you set whichscroll to 1, divinctb if you set whichscroll to 2, divincrl if
     you set whichscroll to 3 and divinclr if you set whichscroll to 4.  You can change these variables to speed up
     or slow down the movement of the scroll.
*/

var divincbt=1                 
var divinctb=-1
var divincrl=10
var divinclr=-10

var divpause=1500        // Sets how long to pause in milliseconds before scrolling the next link or text. 

var divtop="50"              // divtop and divleft set the top and left positions of the container div or layer in pixels. 
var divleft="0"               

var divcolor="#d7d7d7"      // Sets the background color of the div or layer

var divname1="scroll2"  // Sets the name of your div or layer for the first link or text that is displayed
var divname2="scroll3"  // Sets the name of your div or layer for the next link or text to be displayed

/*
   The variable whichscroll is used to set the direction of the scrolling.  It is currently set to 1.
    1 = Bottom to Top
    2 = Top to Bottom
    3 = Right to Left
    4 = Left to Right
*/
var whichscroll="3"

/* END OF CONFIGURATION VARIABLES */
