// JavaScript Document
var tickercontents=new Array()
tickercontents[0]="<table width='100%'  border='0' cellspacing='0' cellpadding='2'><tr><td><strong><img src='images-home/firstChoice.gif'  hspace='2' align='left'></strong></td><td><strong>First Choice Pavers and Landscaping </strong></td></tr><tr><td colspan='2'><img src='images-home/qt.gif' width='17' height='15' hspace='5'>Of all the CRM applications available, Office Interactive is the fastest and easiest to configure and maintain. It reduces the guesswork and eliminates administration, allowing us to run a more efficient service. It brings all my information that I need to operate my business at my finger tips.<img src='images-home/qt2.gif' width='17' height='15' align='absmiddle'><br><br><span class='txtGrn'><strong>Jason Griener, </strong><br><em>Owner</em></span> </td></tr></table>"
tickercontents[1]="<table width='100%'  border='0' cellspacing='0' cellpadding='2'><tr><td><strong><img src='images-home/everson.gif'  hspace='2' align='left'></strong></td><td><strong>Everson’s Karate</strong></td></tr><tr><td colspan='2'><img src='images-home/qt.gif' width='17' height='15' hspace='5'>Office Interactive is our total package, and we use the real-time dashboards to have the numbers at our fingertips, and to prepare all of our monthly management reports. The level of customer detail that Office Interactive tracks is phenomenal. It allows us see our entire client history, which lets us provide more effective support.<img src='images-home/qt2.gif' width='17' height='15' align='absmiddle'><br><br><span class='txtGrn'><strong>Donna Williams, </strong><br><em>Business Manager</em></span> </td></tr></table>"
tickercontents[2]="<table width='100%'  border='0' cellspacing='0' cellpadding='2'><tr><td><strong><img src='images-home/ramirez-logo.gif'  hspace='2' align='left'></strong></td><td><strong>Ramirez Carpet Cleaning</strong></td></tr><tr><td colspan='2'><img src='images-home/qt.gif' width='17' height='15' hspace='5'>We are very pleased with the value that this product has provided for our family business.  With just an internet connection, Office Interactive has given us a complete view of how our business is running from every angle without having to do any paperwork.  This product has helped us manage absolutely everything from our clients to sales and all of the data. I would strongly recommend this product to others looking for a CRM solution.<img src='images-home/qt2.gif' width='17' height='15' align='absmiddle'><br><br><span class='txtGrn'><strong>Virgilio Ramirez, </strong><br><em>July 17, 2007.</em></span> </td></tr></table>"
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=20000

////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