<!-- This script and many more are available free online at -->

<!-- The JavaScript Source!! http://javascript.internet.com -->

<!-- Original:  Premshree Pillai & Dynamic Drive (premshree@hotmail.com) -->

<!-- Web Site:  http://www.qiksearch.com/javascripts.htm -->

<!-- Begin

var msgs = new Array(

"<span class="cushycms-text" title="News Bar Item 1">PFLAG next Wednesday, June 16, 7:00 p.m. (half hour earlier than usual)</span>",

"<span class="cushycms-text" title="News Bar Item 2">July / August 2010 Edition of Caring Newsletter Now Online</span>",

"<span class="cushycms-text" title="News Bar Item 3">Welcome to PFLAG Hartford's Website!</span>",


     " " ); // No comma after last ticker msg

var barwidth=480 //Enter main bar width in px or %

var setdelay=4000 //Enter delay between msgs, in mili-seconds

var mouseover_color='#ED3C42' //Specify highlight color

var mouseout_color='#ED3C42' //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" style="color:#FFFFFF;background:#ED3C42; width:'+barwidth+'; height:22; border-width:1; border-color:#000000; cursor:hand" onmouseover="this.style.background=mouseover_color" onmouseout="this.style.background=mouseout_color"></form>');

}

else{

if (navigator.userAgent.indexOf("Opera")!=-1)

document.write('<input type="button" name="news_bar_but" style="width:'+barwidth+'" border="0">')

else

document.write('<input type="button" name="news_bar_but" width="'+barwidth+'" border="0">')

}

function init_news_bar(){

  document.news_bar.news_bar_but.value=msgs[count];

}

//moveit function by Dynamicdrive.com

function moveit(how){

if (how==1){ //cycle foward

if (count<msgs.length-1)

count++

else

count=0

}

else{ //cycle backward

if (count==0)

count=msgs.length-1

else

count--

}

document.news_bar.news_bar_but.value=msgs[count];

}

setInterval("moveit(1)",setdelay)

init_news_bar();

//  End -->
