//Translucent scroller- By Dynamic Drive
//For full source code and more DHTML scripts, visit http://www.dynamicdrive.com
//This credit MUST stay intact for use

///////////////
// Change this value to change the width of the announcement box.
var scroller_width='150px'
// Change this value to change the height of the announcement box.
var scroller_height='120px'
// Change this value to change the background color of the announcement box.
var bgcolor='#ffffff'
// Change this value to change the amount of time each announcement is displayed.
//  1000 = 1 second
//  The current value is equal to five seconds.
var pause=5000 

var scrollercontent=new Array()
//Define scroller contents. 

//  To add an additional event:
// 1. Copy and paste the template event where it says "Paste new one here!".  
// 2. Increment the number between brackets by 1.
// 3. Change the text between single quotes to what yoyu want your announcement to be.
//Template Event
// scrollercontent[EventNumber]='Enter text and/or HTML here'
scrollercontent[0]='Welcome to the CCN KIDZone Ministry Website'
scrollercontent[1]='<b>Kids Quizzing Continuing</b><br/>Each Sunday night- Base Camp<br/>5:00 pm to 6:30 pm'
scrollercontent[2]='<b>Family Movie Night Under the Stars</b><br/>Friday Night September 10th @ 7pm till ?<br/>Hope Park-behind the Church<br/>'
scrollercontent[3]='<b>Bible Buddies, SWAT, PACERS</b><br/>Wednesday Nights 7:00 - 8:00 pm<br/>Come Join the Fun!!</b><br/>'
scrollercontent[4]='<b>PACERS Peak Pursuit</b><br/>Boise River Sweep</b><br/>Saturday September 18<br/>Come ready to serve and receive a free T-shirt</b><br/>Sign up now with Pastor Emely'
scrollercontent[5]='Check out our <b><a href="photogallery.html">Photo Gallery</a></b>.'
scrollercontent[6]='Please give us your feedback on the current website.'
// Paste new one here!

////DO NOT edit anything beyond this point.////

var ie4=document.all
var dom=document.getElementById&&navigator.userAgent.indexOf("Opera")==-1

if (ie4||dom)
document.write('<div style="position:relative;width:'+scroller_width+';height:'+scroller_height+';overflow:hidden"><div id="canvas0" style="position:absolute;background-color:'+bgcolor+';width:'+scroller_width+';height:'+scroller_height+';top:'+scroller_height+';filter:alpha(opacity=20);-moz-opacity:0.2;"></div><div id="canvas1" style="position:absolute;background-color:'+bgcolor+';width:'+scroller_width+';height:'+scroller_height+';top:'+scroller_height+';filter:alpha(opacity=20);-moz-opacity:0.2;"></div></div>')
else if (document.layers){
document.write('<ilayer id=tickernsmain visibility=hide width='+scroller_width+' height='+scroller_height+' bgColor='+bgcolor+'><layer id=tickernssub width='+scroller_width+' height='+scroller_height+' left=0 top=0>'+scrollercontent[0]+'</layer></ilayer>')
}

var curpos=scroller_height*(1)
var degree=10
var curcanvas="canvas0"
var curindex=0
var nextindex=1

function moveslide(){
if (curpos>0){
curpos=Math.max(curpos-degree,0)
tempobj.style.top=curpos+"px"
}
else{
clearInterval(dropslide)
if (crossobj.filters)
crossobj.filters.alpha.opacity=100
else if (crossobj.style.MozOpacity)
crossobj.style.MozOpacity=1
nextcanvas=(curcanvas=="canvas0")? "canvas0" : "canvas1"
tempobj=ie4? eval("document.all."+nextcanvas) : document.getElementById(nextcanvas)
tempobj.innerHTML=scrollercontent[curindex]
nextindex=(nextindex<scrollercontent.length-1)? nextindex+1 : 0
setTimeout("rotateslide()",pause)
}
}

function rotateslide(){
if (ie4||dom){
resetit(curcanvas)
crossobj=tempobj=ie4? eval("document.all."+curcanvas) : document.getElementById(curcanvas)
crossobj.style.zIndex++
if (crossobj.filters)
document.all.canvas0.filters.alpha.opacity=document.all.canvas1.filters.alpha.opacity=20
else if (crossobj.style.MozOpacity)
document.getElementById("canvas0").style.MozOpacity=document.getElementById("canvas1").style.MozOpacity=0.2
var temp='setInterval("moveslide()",50)'
dropslide=eval(temp)
curcanvas=(curcanvas=="canvas0")? "canvas1" : "canvas0"
}
else if (document.layers){
crossobj.document.write(scrollercontent[curindex])
crossobj.document.close()
}
curindex=(curindex<scrollercontent.length-1)? curindex+1 : 0
}

function resetit(what){
curpos=parseInt(scroller_height)*(1)
var crossobj=ie4? eval("document.all."+what) : document.getElementById(what)
crossobj.style.top=curpos+"px"
}

function startit(){
crossobj=ie4? eval("document.all."+curcanvas) : dom? document.getElementById(curcanvas) : document.tickernsmain.document.tickernssub
if (ie4||dom){
crossobj.innerHTML=scrollercontent[curindex]
rotateslide()
}
else{
document.tickernsmain.visibility='show'
curindex++
setInterval("rotateslide()",pause)
}
}

if (ie4||dom||document.layers)
window.onload=startit