/***********************************************
* Memory Ticker script- © Dynamic Drive DHTML code library (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit Dynamic Drive at http://www.dynamicdrive.com/ for full source code
***********************************************/

//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]='<p class="testimonials">&quot;Great experience in designing and building the website. Looking forward to working with FIS in the future.&quot; - <span class="small">Andrew, AAA Fire Equipment</span></p>'
tickercontents[1]='<p class="testimonials">&quot;Jason has been great. He transitioned our server, e-mail, ect over seamlessly. The quality of his work is great and service is excellent. We have not been disappointed. THANK YOU!&quot; - <span class="small">Donna, pomarico design studio</span></p>'
tickercontents[2]='<p class="testimonials">&quot;From start to finish, Fisch provided us with reliable, trustworthy service. He made sure the problem was fixed the first time and gave us a clear understanding of everything related to our issue.&quot; - <span class="small">Chris, Glamour Kills Clothing</span></p>'
tickercontents[3]='<p class="testimonials">&quot;I was very impressed with the level of dedication to getting our website done. Another great thing was the great communication I had with Fisch.&quot; - <span class="small">Jennifer, Malcarne Contracting</span></p>'
tickercontents[4]='<p class="testimonials">&quot;FIS seems to know what my computers needs are and has made several significant, cost effective recommendations to increase efficiency in the office, while reducing my work load&quot; - <span class="small">Ken, VFIS</span></p>'
tickercontents[5]='<p class="testimonials">&quot;Within a few days I ordered my tablet. When the unit came in, I met with Jason and he gave me a thorough demo on the new tablet. I would recommend Jason to anyone that is looking for a reliable company with personal service.&quot; - <span class="small">David, Arnoff Moving and Storage</span></p>'
tickercontents[6]='<p class="testimonials">&quot;From the conception of our website project to project completion, Fisch Internet Solutions has been nothing less than exemplary.&quot; - <span class="small">Albert, Arlington Professional Firefighters</span></p>'
tickercontents[7]='<p class="testimonials">&quot;FIS produced a wonderful site, worked beautifully with my team and has had infinite patience with my endless questions.&quot; - <span class="small">Lisa, Capitalist Preservation</span></p>'
tickercontents[8]='<p class="testimonials">&quot;Jason thank you very much. We are very happy with the way the new website turned out.&quot; - <span class="small">Ricky, Highland Sewer and Drain</span></p>'
tickercontents[9]='<p class="testimonials">&quot;Jason has been a pleasure to work with and I would highly recommend FIS to anyone with a computer&quot; - <span class="small">Lex, Mountainview Garden Apartments</span></p>'
tickercontents[10]='<p class="testimonials">&quot;Extremely pleased by results and help/ guidance received whenever we had a question or issue&quot; - <span class="small">Curt, Creative Closets</span></p>'
tickercontents[11]='<p class="testimonials">&quot;Very easy to work with, offered excellent ideas, and was receptive to our ideas as well. The website is very effective and has been developed above our expectations.&quot; - <span class="small">Ryan, Millbrook Orthopedic and Sports Therapy</span></p>'

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=8000

////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
