//configure tickercontents[] to set the messges you wish be displayed (HTML codes accepted)
//Backslash any apostrophes within your text (ie: I\'m the king of the world!)
var tickercontents=new Array()










tickercontents[0]='Welcome to JemCon 2012: Show Me The Way to St. Louis.</a>'
tickercontents[1]='JemCon 2012 will be held in St. Louis, Missouri, from September 28th to 30th.</a>'
tickercontents[2]='JemCon 2012 <a href="http://www.jemcon.org/time_place.php">location</a>: Hilton St. Louis Airport, 10330 Natural Bridge Rd, St. Louis, MO 63134-3303.</a>'
tickercontents[3]='Confirmed <a href="http://www.jemcon.org/guests.php">Special Guest</a>: Patricia Alice Albrecht, the speaking voice of Pizzazz.</a>'
//tickercontents[4]='Confirmed <a href="http://www.jemcon.org/guests.php">Special Guest</a>: Ellen Bernfeld, the singing voice of Pizzazz.</a>'
//tickercontents[5]='Confirmed <a href="http://www.jemcon.org/guests.php">Special Guest</a>: Anne Bryant, Jem theme and Jem song writer.</a>'
//tickercontents[6]='Share your JemCon photos and videos with the world via <a href="http://www.jemcon.org/upload_gallery.php">JemCon Uploads</a>.</a>'
tickercontents[4]='Be your own webmaster and take advantage of our <a href="http://www.jemcon.org/mini_website_service.php">Mini-Website Hosting & Design Service</a>.</a>'
tickercontents[5]='Join us on <a href="http://www.facebook.com/JemCon" target="_blank">Facebook</a> and follow us on <a href="https://twitter.com/#!/JemConNews" target="_blank">Twitter</a>; chat, mingle, network and help spread the word!</a>'
//tickercontents[8]='JemCon has a <a href="http://blog.myspace.com/index.cfm?fuseaction=blog.ListAll&friendID=115050601" target="_blank">MySpace BLOG</a> so give us a look-in when you can.</a>'
tickercontents[6]='Subscribe to our <a href="http://www.jemcon.org/mailing_list.php">mailing list</a> and <a href="http://www.jemcon.org/inc/newsfeed/newsfeed.xml" target="_blank">RSS newsfeed</a> to get all the latest JemCon news and gossip.</a>'
//tickercontents[7]='JemCon 2012 will be showing you the way to St. Louis! Details coming soon...</a>'

















var persistlastviewedmsg=1 //should messages' order persist after users navigate away (1=yes, 0=no)?
var persistmsgbehavior="onload" //set to "onload" or "onclick".

//configure the below variable to determine the delay between ticking of messages (in miliseconds):
var tickdelay=3500

////Do not edit pass this line////////////////

var divonclick=(persistlastviewedmsg && persistmsgbehavior=="onclick")? 'onClick="savelastmsg()" ' : ''
var currentmessage=0

function changetickercontent(){
if (crosstick.filters && crosstick.filters.length>0)
crosstick.filters[0].Apply()
crosstick.innerHTML=tickercontents[currentmessage]
if (crosstick.filters && crosstick.filters.length>0)
crosstick.filters[0].Play()
currentmessage=(currentmessage==tickercontents.length-1)? currentmessage=0 : currentmessage+1
var filterduration=(crosstick.filters&&crosstick.filters.length>0)? crosstick.filters[0].duration*1000 : 0
setTimeout("changetickercontent()",tickdelay+filterduration)
}

function beginticker(){
if (persistlastviewedmsg && get_cookie("lastmsgnum")!="")
revivelastmsg()
crosstick=document.getElementById? document.getElementById("memoryticker") : document.all.memoryticker
changetickercontent()
}

function get_cookie(Name) {
var search = Name + "="
var returnvalue = ""
if (document.cookie.length > 0) {
offset = document.cookie.indexOf(search)
if (offset != -1) {
offset += search.length
end = document.cookie.indexOf(";", offset)
if (end == -1)
end = document.cookie.length;
returnvalue=unescape(document.cookie.substring(offset, end))
}
}
return returnvalue;
}

function savelastmsg(){
document.cookie="lastmsgnum="+currentmessage
}

function revivelastmsg(){
currentmessage=parseInt(get_cookie("lastmsgnum"))
currentmessage=(currentmessage==0)? tickercontents.length-1 : currentmessage-1
}

if (persistlastviewedmsg && persistmsgbehavior=="onload")
window.onunload=savelastmsg

if (document.all||document.getElementById)
document.write('<div id="memoryticker" '+divonclick+'></div>')
if (window.addEventListener)
window.addEventListener("load", beginticker, false)
else if (window.attachEvent)
window.attachEvent("onload", beginticker)
else if (document.all || document.getElementById)
window.onload=beginticker

