// Example message arrays for the two demo scrollers



var tickercontent=new Array()
tickercontent[0]='Greetings All, Baltimore\'s Hoop Village is on the map thanks to the State of Md., Family League, Safe and Sound and others-and what a fine example of our older youth working with younger youth. Please go the <a href="http://www.abcnews.go.com/wn/" target="_blank">www.abcnews.go.com/wn/</a>. Our story is titled "Cutting Calories in Lunch Lady Land". You can click on the moving video story or type in the title in the seach box. <a href="/ne/news.aspx#hoop">&#187; more info</a>'
tickercontent[1]='<b>Stay tuned for more News</b></a>'
tickercontent[2]='<b>Baltimore Conservation Leadership Corps</b>. Are you a 15-18 year old student looking for a challenging summer job? Civic Works, Johnson Controls and the Student Conservation Association (SCA) are partnering to provide a unique outdoor service program to Baltimore youth, June-August. <a href="/rd/ores.aspx#bclc"><br/>&#187; more info</a>'
tickercontent[3]='<b>Baltimore City\'s Aquatics Division Summer Jobs</b> For ages 14-21+. Let the Aquatics Division show you the way to gratifying employment. Supervise family swim, theme events and group swimming offered at all pools. Open positions include Cashier, Custodial Worker, Lifeguard, Pool Operator, Recreation Assistant, and Pool Attendant. <a href="/rd/ores.aspx#bpdaqua"><br/>&#187; more info</a>'
tickercontent[4]='The <b>KIDS COUNT Data Center</b> allows users to compare data by State or city, or by topics such as poverty, youth risk factors, population and family characteristics. Additional <b>data is now available at the county and community levels</b>. The Data Center compiles information from many government agencies.<a href="/ne/news.aspx#kcdc"><br/>&#187; more info</a>'
tickercontent[5]='<b>MDCSL Expands Short-Term Housing Directory Statewide.</b> The Maryland Community Services Locator listings now includes drop-in centers, emergency and long-term shelters as well as transitional housing facilities.<a href="/rd/famres.aspx#mdcsl"><br/>&#187; more info</a>'
tickercontent[6]='<b>Resources for Maryland Families</b>&#151;The O\'Malley-Brown Administration has launched a website to assist Maryland\'s working families to connect with resources such as employment agencies, links to utility assistance, prescription drug price assistance, assisted living programs, weatherization help, telephone services, and more. <a href="/rd/famres.aspx#resmdfam">&#187; more info</a>'
tickercontent[7]='The United Health Care Children\'s foundation has announced that <b>grants of up to $5,000</b> will be awarded to parents and legal guardians for health care services and medical equipment inadequately covered by insurance. For more info visit <a href="http://www.uhccf.org/apply.html" target="_blank">www.uhccf.org/apply.html</a>'


// The Family League of Baltimore City presents a four part<b> Technical Assistance 
//Training Series</b> for Human Service Providers in Baltimore City and the surrounding
// counties who currently work with children, youth and families on various levels.
// FREE <br/><a href="/ne/upevt.aspx#hsp_train">&#187; more info</a>

//***********************************************
//* DHTML Ticker script- � Dynamic Drive (www.dynamicdrive.com)
//* This notice MUST stay intact for legal use
//* Visit http://www.dynamicdrive.com/ for this script and 100s more.
//***********************************************/

function domticker(content, divId, divClass, delay, fadeornot){
this.content=content
this.tickerid=divId //ID of master ticker div. Message is contained inside first child of ticker div
this.delay=delay //Delay between msg change, in miliseconds.
this.mouseoverBol=0 //Boolean to indicate whether mouse is currently over ticker (and pause it if it is)
this.pointer=1
this.opacitystring=(typeof fadeornot!="undefined")? "width: 100%; filter:progid:DXImageTransform.Microsoft.alpha(opacity=100); -moz-opacity: 1" : ""
if (this.opacitystring!="") this.delay+=500 //add 1/2 sec to account for fade effect, if enabled
this.opacitysetting=0.2 //Opacity value when reset. Internal use.
document.write('<div id="'+divId+'" class="'+divClass+'"><div style="'+this.opacitystring+'">'+content[0]+'</div></div>')
var instanceOfTicker=this
setTimeout(function(){instanceOfTicker.initialize()}, delay)
}

domticker.prototype.initialize=function(){
var instanceOfTicker=this
this.contentdiv=document.getElementById(this.tickerid).firstChild //div of inner content that holds the messages
document.getElementById(this.tickerid).onmouseover=function(){instanceOfTicker.mouseoverBol=1}
document.getElementById(this.tickerid).onmouseout=function(){instanceOfTicker.mouseoverBol=0}
this.rotatemsg()
}

domticker.prototype.rotatemsg=function(){
var instanceOfTicker=this
if (this.mouseoverBol==1) //if mouse is currently over ticker, do nothing (pause it)
setTimeout(function(){instanceOfTicker.rotatemsg()}, 100)
else{
this.fadetransition("reset") //FADE EFFECT- RESET OPACITY
this.contentdiv.innerHTML=this.content[this.pointer]
this.fadetimer1=setInterval(function(){instanceOfTicker.fadetransition('up', 'fadetimer1')}, 100) //FADE EFFECT- PLAY IT
this.pointer=(this.pointer<this.content.length-1)? this.pointer+1 : 0
setTimeout(function(){instanceOfTicker.rotatemsg()}, this.delay) //update container
}
}


// -------------------------------------------------------------------
// fadetransition()- cross browser fade method for IE5.5+ and Mozilla/Firefox
// -------------------------------------------------------------------

domticker.prototype.fadetransition=function(fadetype, timerid){
var contentdiv=this.contentdiv
if (fadetype=="reset")
this.opacitysetting=0.2
if (contentdiv.filters && contentdiv.filters[0]){
if (typeof contentdiv.filters[0].opacity=="number") //IE6+
contentdiv.filters[0].opacity=this.opacitysetting*100
else //IE 5.5
contentdiv.style.filter="alpha(opacity="+this.opacitysetting*100+")"
}
else if (typeof contentdiv.style.MozOpacity!="undefined" && this.opacitystring!=""){
contentdiv.style.MozOpacity=this.opacitysetting
}
else
this.opacitysetting=1
if (fadetype=="up")
this.opacitysetting+=0.2
if (fadetype=="up" && this.opacitysetting>=1)
clearInterval(this[timerid])
}


