//News Bar script- By Premshree Pillai (premshree@hotmail.com)
//http://www.qiksearch.com/javascripts.htm
//Enhancements by Dynamic Drive
//Visit http://www.dynamicdrive.com for this script

 var msgs = new Array(
     "Please thank our sponsors for their generous support of Little League Baseball",
//     "Practices for AAA, Majors, and Juniors have started.  Have a great season, everyone!",
//     "CLL Picture Day in April 15th",
//     "Centaurus Little League at Coors Field May 15th",
     "Click here for the latest League News and Events",
//     "Centaurus Little League Aquires an Indoor Practice Facility",
//     "June 20, 2004: Ken Griffey, Jr becomes only the 20th member of the 500-Home-Run Club",
//     "Missed the League Picnic?  Click Here",
//     "All Star Team Information is Posted in The Dugout",
//     "CLL benefits when you eat at Woody's Pizza Tues June 8 from 4-10 pm",
//     "August 7, 2004: Greg Maddux becomes the 22nd MLB pitcher to win 300 games",
//     "Registration now Open for 2005 Season",
     "Click here to rate this site against other youth baseball websites"
//     "May 18, 2004: Randy Johnson throws a perfect game, only the 17th in MLB history" 
	);

 var msg_url = new Array(
     "http://www.cllbaseball.org/HomePlate/Sponsor/SponsorsMajors.htm",
//     "http://www.cllbaseball.org",
//     "http://www.cllbaseball.org/",
//     "http://www.cllbaseball.org/FrontOffice/Calendar/coorsfield.htm",
     "http://www.cllbaseball.org/FrontOffice/LeagueNews.htm",
//     "http://www.cllbaseball.org/php/Schedule/test4.php",
//     "http://www.baseball-almanac.com/hitting/hi500c.shtml",
//     "http://www.cllbaseball.org/FrontOffice/Calendar/LeaguePicnic.htm",
//     "http://www.cllbaseball.org/Dugout/AllStars/majors_allstars.htm",
//     "http://www.cllbaseball.org/FrontOffice/Fundraisers/woodypizza.htm",
//     "http://www.baseball-almanac.com/pitching/pi300c.shtml",
//     "http://www.cllbaseball.org/FrontOffice/Registration.htm",
     "http://www.baseball-links.com/cgi-bin/rate.pl?siteID=118084"
//     "http://www.baseball-almanac.com/pitching/piperf.shtml" 
); // No comma after last ticker url

var barwidth='750px' //Enter main bar width in px or %
var setdelay=4500 //Enter delay between msgs, in mili-seconds
var mouseover_color='#FF0000' //Specify highlight color
var mouseout_color='#0000FF' //Specify default color
/////////////////////////////////////////////////////////////////////

var count=0;
var ns6=document.getElementById&&!document.all
var ie4=document.all&&navigator.userAgent.indexOf("Opera")==-1

if (ie4||ns6)
{
  document.write('<form name="news_bar"><input type="button" name="news_bar_but" onclick="goURL();" style="color:#FFFFFF; font-weight: bold; background:#0000FF; width:'+barwidth+'; height:24px; border-width:2; border-color:#000000; cursor:hand; z-index:-1" onmouseover="this.style.background=mouseover_color" onmouseout="this.style.background=mouseout_color"></form>');
}
else
{
  document.write('<form name="news_bar">')
  if (navigator.userAgent.indexOf("Opera")!=-1)
    document.write('<input type="button" name="news_bar_but" onclick="goURL();" style="width:'+barwidth+'; z-index:-1" border="0">')
  else
    document.write('<input type="button" name="news_bar_but" onclick="goURL();" width="'+barwidth+'" border="0" z-index="-1">')
  document.write('</form>')
}


function init_news_bar()
{
  document.news_bar.news_bar_but.value=msgs[count];
}


function moveit()
{
  if (count<msgs.length-1) count++ ;
  else count=0 ;
  document.news_bar.news_bar_but.value=msgs[count];
}


setInterval("moveit(1)",setdelay)


function goURL()
{
  location.href=msg_url[count];
}

init_news_bar();