var pausecontent=new Array()
pausecontent[0]='<p class="client">Jennifer</p><p class="clientQuote">They were straightforward, telling me &#39;Jen this is gonna take time&#39; or &#39;We&#39;ve got to do this first&#39;.  They explained everything before they were doing it.  I never felt like I was left out in the dark with them.</p>'
pausecontent[1]='<p class="client">Daniel</p><p class="clientQuote">"John was very aggressive, like a pit bull, and I feel that helped in the negotiations for my case.  I&#39;m satisfied, and was treated very courteously."</p>'
pausecontent[2]='<p class="client">Mary</p><p class="clientQuote">"I was most satisfied with the timely manner in which they handled my case, for one thing.  And I was satisfied with the money that they could get for me."</p>'
pausecontent[3]='<p class="client">Naomi</p><p class="clientQuote">"I would have to say [John] was the best lawyer I have gotten.  One thing I liked most, when I was turned down someplace else, he didn&#39;t turn me down or refuse me; from the first time I came to him."</p>'
pausecontent[4]='<p class="client">Irene</p><p class="clientQuote">"I was very satisfied with the way he handled everything. I think John is the tops!"</p>'
pausecontent[5]='<p class="client">Deb</p><p class="clientQuote">"I had spoken with another attorney about my case, and the other attorney said &#39;You know, there&#39;s really nothing we can do.  It&#39;s not worth it.&#39;  And John was able to settle it, and helped me greatly."</p>'

var pausecontent2=new Array()
pausecontent2[0]='Results matter. We have proven results. We come from a blue collar background and will out-work the insurance company lawyers to get the best results for your personal injury case. '
pausecontent2[1]='More than $1 million for injuries sustained to a truck driver when the wheel came off of his vehicle while he was driving.'
pausecontent2[2]='More than $1 million to a truck driver whose tractor trailer was disabled on the side of the road when struck by another tractor trailer.'
pausecontent2[3]='More than $1 million for a motorcyclist who was cut off by a tractor trailer driver.'
pausecontent2[4]='More than $3 million to a man who suffered multiple fractures and a brain injury in a van rollover.  '
pausecontent2[5]='A confidential amount for the family of a woman who froze to death after her heating gas was terminated.'
pausecontent2[6]='More than $5 million for multiple fractures and a brain injury as a result of a construction site accident.'
pausecontent2[7]='More than $10 million to a man who suffered catastrophic injuries in a work place accident.'
pausecontent2[8]='$1.7 million, $1.2 million, $1.2 million, $1.1 million, $850 thousand, $800 thousand and more.'
pausecontent2[9]='We work hard, we&#39;ll find top experts to review fault, mechanical failure or accident cause and put clients first.  Past results do not guarantee future results which vary depending on the types of injuries, cause of injuries, lost wages and other factors.'
pausecontent2[10]='For a confidential no-obligation review of your case complete our <a href="http://www.yourbuffalolawyer.com/contact-us">contact form</a> or call us at Feroleto Law (716) 854-0700.'

/***********************************************
* Pausing up-down scroller- © 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 pausescroller(content, divId, divClass, delay){
this.content=content //message array content
this.tickerid=divId //ID of ticker div to display information
this.delay=delay //Delay between msg change, in miliseconds.
this.mouseoverBol=0 //Boolean to indicate whether mouse is currently over scroller (and pause it if it is)
this.hiddendivpointer=1 //index of message array for hidden div
document.write('<div id="'+divId+'" class="'+divClass+'" style="position: relative; overflow: hidden"><div class="innerDiv" style="position: absolute; width: 100%" id="'+divId+'1">'+content[0]+'</div><div class="innerDiv" style="position: absolute; width: 100%; visibility: hidden" id="'+divId+'2">'+content[1]+'</div></div>')
var scrollerinstance=this
if (window.addEventListener) //run onload in DOM2 browsers
window.addEventListener("load", function(){scrollerinstance.initialize()}, false)
else if (window.attachEvent) //run onload in IE5.5+
window.attachEvent("onload", function(){scrollerinstance.initialize()})
else if (document.getElementById) //if legacy DOM browsers, just start scroller after 0.5 sec
setTimeout(function(){scrollerinstance.initialize()}, 500)
}

// -------------------------------------------------------------------
// initialize()- Initialize scroller method.
// -Get div objects, set initial positions, start up down animation
// -------------------------------------------------------------------

pausescroller.prototype.initialize=function(){
this.tickerdiv=document.getElementById(this.tickerid)
this.visiblediv=document.getElementById(this.tickerid+"1")
this.hiddendiv=document.getElementById(this.tickerid+"2")
this.visibledivtop=parseInt(pausescroller.getCSSpadding(this.tickerdiv))
//set width of inner DIVs to outer DIV's width minus padding (padding assumed to be top padding x 2)
this.visiblediv.style.width=this.hiddendiv.style.width=this.tickerdiv.offsetWidth-(this.visibledivtop*2)+"px"
this.getinline(this.visiblediv, this.hiddendiv)
this.hiddendiv.style.visibility="visible"
var scrollerinstance=this
document.getElementById(this.tickerid).onmouseover=function(){scrollerinstance.mouseoverBol=1}
document.getElementById(this.tickerid).onmouseout=function(){scrollerinstance.mouseoverBol=0}
if (window.attachEvent) //Clean up loose references in IE
window.attachEvent("onunload", function(){scrollerinstance.tickerdiv.onmouseover=scrollerinstance.tickerdiv.onmouseout=null})
setTimeout(function(){scrollerinstance.animateup()}, this.delay)
}


// -------------------------------------------------------------------
// animateup()- Move the two inner divs of the scroller up and in sync
// -------------------------------------------------------------------

pausescroller.prototype.animateup=function(){
var scrollerinstance=this
if (parseInt(this.hiddendiv.style.top)>(this.visibledivtop+5)){
this.visiblediv.style.top=parseInt(this.visiblediv.style.top)-5+"px"
this.hiddendiv.style.top=parseInt(this.hiddendiv.style.top)-5+"px"
setTimeout(function(){scrollerinstance.animateup()}, 50)
}
else{
this.getinline(this.hiddendiv, this.visiblediv)
this.swapdivs()
setTimeout(function(){scrollerinstance.setmessage()}, this.delay)
}
}

// -------------------------------------------------------------------
// swapdivs()- Swap between which is the visible and which is the hidden div
// -------------------------------------------------------------------

pausescroller.prototype.swapdivs=function(){
var tempcontainer=this.visiblediv
this.visiblediv=this.hiddendiv
this.hiddendiv=tempcontainer
}

pausescroller.prototype.getinline=function(div1, div2){
div1.style.top=this.visibledivtop+"px"
div2.style.top=Math.max(div1.parentNode.offsetHeight, div1.offsetHeight)+"px"
}

// -------------------------------------------------------------------
// setmessage()- Populate the hidden div with the next message before it's visible
// -------------------------------------------------------------------

pausescroller.prototype.setmessage=function(){
var scrollerinstance=this
if (this.mouseoverBol==1) //if mouse is currently over scoller, do nothing (pause it)
setTimeout(function(){scrollerinstance.setmessage()}, 100)
else{
var i=this.hiddendivpointer
var ceiling=this.content.length
this.hiddendivpointer=(i+1>ceiling-1)? 0 : i+1
this.hiddendiv.innerHTML=this.content[this.hiddendivpointer]
this.animateup()
}
}

pausescroller.getCSSpadding=function(tickerobj){ //get CSS padding value, if any
if (tickerobj.currentStyle)
return tickerobj.currentStyle["paddingTop"]
else if (window.getComputedStyle) //if DOM2
return window.getComputedStyle(tickerobj, "").getPropertyValue("padding-top")
else
return 0
}

