var scrollerwidth="170px"
var scrollerheight="100px"
var scrollerspeed=1
var arr = "<a href='http://www.microsoft.com'>Microsoft Microsoft AMicrosoft BMicrosoft CMicrosoft Microsoft AMicrosoft BMicrosoft CXYZ</a>"
//var scrollercontent='<center><font class="clsfontgen" color="#275475" class="txtRegular"><b>'+ arr +'</b><br> </font><center>'
//var scrollercontent='<center><font face="Arial" color="#275475" class="txtRegular"><b>"The place within you that generates self-love is the exact same place that attracts authentic love from others." <br>- Dr. Cherie</b><br> </font><br><font face="Arial" color="#275475" class="txtRegular"><b>"Courage to change the things I can… and wisdom to know the difference… Let go of the need to be perfect, and let yourself be the person that you are! <br>- Cherie Carter-Scott, Ph.D."</b><br> </font><br><font face="Arial" color="#275475" class="txtRegular"><b>"Dr. Cheries has made an enormous difference in our company&#8217;s change efforts and in the lives of the people working here." - Patricia D. Brozowski, Vice President Communications, FMC Corporation</b><br> </font><center>'
var scrollercontent

var pauseit=1

scrollerspeed=(document.all)? scrollerspeed : Math.max(1, scrollerspeed-2) //slow speed down by 1 for NS
scrollerspeed = 1
var copyspeed=scrollerspeed 
var iedom=document.all||document.getElementById
var actualheight=''
var cross_scroller, ns_scroller
var pausespeed=(pauseit==0)? copyspeed: 0

function replaceAll( str, from, to ) {
    var idx = str.indexOf( from );


    while ( idx > -1 ) {
        str = str.replace( from, to ); 
        idx = str.indexOf( from );
    }

    return str;
}


function populate(scrolltext){
  scrolltext = replaceAll(scrolltext, "`", "'" );
  if (iedom){
    cross_scroller=document.getElementById? document.getElementById("iescroller") : document.all.iescroller 
    //alert(cross_scroller.style.top); 
    //alert(cross_scroller.style.height); 
    cross_scroller.style.top=parseInt(scrollerheight) 
    scrollercontent = scrolltext; 
    cross_scroller.innerHTML=scrollercontent
    actualheight=cross_scroller.offsetHeight
  }
  else if (document.layers){
    ns_scroller=document.ns_scroller.document.ns_scroller2
    ns_scroller.top=parseInt(scrollerheight) 
    ns_scroller.document.write(scrollercontent)
    ns_scroller.document.close()
    actualheight=ns_scroller.document.height
  }
  lefttime=setInterval("scrollscroller()",20)
}

  //window.onload=populate

function scrollscroller(){
  if (iedom){
    if (parseInt(cross_scroller.style.top)>(actualheight*(-1)+8))
    cross_scroller.style.top=parseInt(cross_scroller.style.top)-copyspeed+"px"
    else
    cross_scroller.style.top=parseInt(scrollerheight) 
  }
  else if (document.layers){
    if (ns_scroller.top>(actualheight*(-1)+8))
    ns_scroller.top-=copyspeed
    else
    ns_scroller.top=parseInt(scrollerheight)+8
  }
}


//verticalScroll()
