/*Example message arrays for the two demo scrollers*/

var pausecontent=new Array()
pausecontent[0]="<p class='white-side'><strong><a href='http://www.theprmg.com/client_preview/gdk/2011-05-26-bus-accident-driver-ignore-stop-sign.php' class='whitelink'>Plaintiff struck by bus, claimed driver ignored stop sign</a></strong><br /><br />5/26/2011 | $425,000 | In the case of Andy Smith v. MTA Long Island Bus and Betty T. Cooper, Smith was struck by an MTA bus and sustained injuries to his abdomen, back, neck, a shoulder and a wrist. In this case, the client was awarded a $425,000 settlement from MTA Long Island Bus. | <a href='http://www.theprmg.com/client_preview/gdk/2011-05-26-bus-accident-driver-ignore-stop-sign.php' class='whitelink'>Read More</a></p>"

pausecontent[1]="<p class='white-side'><strong><a href='http://www.theprmg.com/client_preview/gdk/2011-05-02-car-crash-trucker-park-traffic-attorney.php' class='whitelink'>Car crashes blamed on trucker's decision to park in traffic</a></strong><br /><br />5/2/2011 | $325,000 | In this case, plaintiff Jonessia Jarrell was driving on the westbound service road of Sunrise Highway when she crashed into a 30-yard dumpster connected to a truck that was parked on the service road, extending 3 to 4 feet into the single lane for westbound moving traffic. Jarrell claimed that she sustained injuries of her back, a hand and her neck and was subsequently awarded $325,000 from the defendants' insurer. | <a href='http://www.theprmg.com/client_preview/gdk/2011-05-02-car-crash-trucker-park-traffic-attorney.php' class='whitelink'>Read More</a></p>"

pausecontent[2]="<p class='white-side'><strong><a href='http://www.theprmg.com/client_preview/gdk/2011-04-26-car-crash-ignored-stop-sign-attorney.php' class='whitelink'>Motorist ignored stop sign, caused crash, plaintiff claimed</a></strong><br /><br />4/26/2011 | $215,000 | On October 27, 2009, plaintiff Douglas Roth was driving westbound on Vanderbilt Parkway when his vehicle was struck by a rental vehicle operated by Anikumar Patil. Roth claimed that he sustained injuries of his back, neck and a wrist. The parties negotiated a settlement, in which Roth recovered $215,000. | <a href='http://www.theprmg.com/client_preview/gdk/2011-04-26-car-crash-ignored-stop-sign-attorney.php' class='whitelink'>Read More</a></p>"

pausecontent[3]="<p class='white-side'><strong><a href='http://www.theprmg.com/client_preview/gdk/2011-03-22-car-crash-aggravated-injury.php' class='whitelink'>Car crash aggravated 20-year-old injury, plaintiff claimed</a></strong><br /><br />3/22/2011 | $100,000 | While Conrad Hummer was stopped at a red light, his vehicle was rear-ended by Margarita Reyes, whom he alleged was negligent in the operation of her vehicle. Hummer claimed that he sustained an injury of his back and the jury found that his damages totaled $100,000. | <a href='http://www.theprmg.com/client_preview/gdk/2011-03-22-car-crash-aggravated-injury.php' class='whitelink'>Read More</a></p>"

pausecontent[4]="<p class='white-side'><strong><a href='http://www.theprmg.com/client_preview/gdk/2010-11-3-car-crash-settlement-fractured-elbow.php' class='whitelink'>Plaintiff's elbow fractured in car crash</a></strong><br /><br />11/3/2010 | $750,000 | In the case of John Letson v. Nicholas Manetta and Enrico Manetta, John Letson was driving westbound in a legal dune buggy on Route 25 when he was struck by a vehicle operated by Nicholas Manetta. He sustained injuries to his elbow and sued Manetta and his father for motor vehicle negligence and vicarious liability. The defendants' insurer agreed to pay Letson a settlement of $750,000. | <a href='http://www.theprmg.com/client_preview/gdk/2010-11-3-car-crash-settlement-fractured-elbow.php' class='whitelink'>Read More</a></p>"

pausecontent[5]="<p class='white-side'><strong><a href='http://www.theprmg.com/client_preview/gdk/2010-10-11-car-crash-plaintiff-injuries-debated-link-attorney.php' class='whitelink'>Parties debated link between car crash and plaintiff's injuries</a></strong><br /><br />10/11/2010 | $775,000 | In this case, Giudita Paci-O'Rourke was driving when a vehicle veered out of its lane into her vehicle on the passenger's side. Paci-O'Rourke claimed injuries to her back and sought damages for her past and future pain and suffering, although the defense's biomechanical expert opined that the accident could not produce the associated injuries. However, the defendants' insurer agreed to award Paci-O'Rourke $775,000. | <a href='http://www.theprmg.com/client_preview/gdk/2010-10-11-car-crash-plaintiff-injuries-debated-link-attorney.php' class='whitelink'>Read More</a></p>"

pausecontent[6]="<p class='white-side'><strong><a href='http://www.theprmg.com/client_preview/gdk/2010-07-21-slip-fall-ice-sidewalk-injuries-attorney.php' class='whitelink'>Plaintiff Awarded $6 Million After Slip and Fall</a></strong><br /><br />7/21/2010 | $6,000,000 | In the case of Domenick Gilio and Sheryl Hafers-Gilio v. H&R, The English Landscape Gardeners, LTD., Domenick Gilio was walking toward his truck in the parking lot of the facility where we worked when he slipped and fell on a patch of ice. He claimed debilitating injuries to his head, neck and back. Gilio claims he is now totally disabled and was awarded $6 million in total damages. | <a href='http://www.theprmg.com/client_preview/gdk/2010-07-21-slip-fall-ice-sidewalk-injuries-attorney.php' class='whitelink'>Read More</a></p>"

pausecontent[7]="<p class='white-side'><strong><a href='http://www.theprmg.com/client_preview/gdk/2010-07-01-car-crash-dispute-traffic-signals-light-attorney.php' class='whitelink'>Car crash's parties disputed status of traffic signals</a></strong><br /><br />7/1/2010 | $134,332 | In this case, as plaintiff Stephen Silver proceeded through an intersection, his vehicle collided with a sport utility vehicle, driven by Mary Ellen Ryan Sklar. Silver's vehicle became airborne and he claimed that he sustained injuries of his back, his neck and a shoulder. Silver alleged that Sklar was negligent in the operation of her vehicle by ignoring a red traffic signal and he recovered a final total of $134,331.80 in damages. | <a href='http://www.theprmg.com/client_preview/gdk/2010-07-01-car-crash-dispute-traffic-signals-light-attorney.php' class='whitelink'>Read More</a></p>"

pausecontent[8]="<p class='white-side'><strong><a href='http://www.theprmg.com/client_preview/gdk/2010-07-01-public-bathroom-stall-door-injury-attorney.php' class='whitelink'>Restaurant patron knocked to the ground by faulty door</a></strong><br /><br />7/1/2010 | $750,000 | In the case of Laurie A. Kovacs v. Inn on Main, plaintiff Laurie Kovacs, a patron at the Inn on Main restaurant at the time, claimed that when she went to the bathroom, she grabbed the handle for one of the stalls and the steel door came off its hinges. The door struck her in the head and knocked her to the ground. Kovacs claimed injuries to her right hand, head, neck and back and was awarded $750,000 in damages. | <a href='http://www.theprmg.com/client_preview/gdk/2010-07-01-public-bathroom-stall-door-injury-attorney.php' class='whitelink'>Read More</a></p>"

pausecontent[9]="<p class='white-side'><strong><a href='http://www.theprmg.com/client_preview/gdk/2010-04-26-car-crash-knee-injury-attorney.php' class='whitelink'>Head-on car crash caused knee injury, plaintiff alleged</a></strong><br /><br />4/26/2010 | $150,000 | In this case, Daniel Smith was driving when a vehicle traveling in the opposite direction crossed over the double yellow line and struck his vehicle head-on. Smith sued the driver of the other vehicle, John DeAngelis, and that vehicle's owner, Patricia DeAngelis, alleging negligence and vicarious liability. The jury found that Smith sustained a serious injury in the accident and awarded him $150,000. | <a href='http://www.theprmg.com/client_preview/gdk/2010-04-26-car-crash-knee-injury-attorney.php' class='whitelink'>Read More</a></p>"

pausecontent[10]="<p class='white-side'><strong><a href='http://www.theprmg.com/client_preview/gdk/2009-05-05-back-injury-freight-elevator-store.php' class='whitelink'>Store's manager claimed he was crowned by freight elevator</a></strong><br /><br />5/5/2009 | $2,050,000 | In this case, plaintiff Giacomino Digiacomo was in the freight elevator at the Rego Park Mall, unloading a delivery when the elevator door came down, striking him in the back. Digiacomo claimed that he sustained injuries of his back and sued the mall's owners and the elevator's contracted service provider for negligence in their maintenance of the elevator. After the inclusion of the pretrial settlement, Digiacomo's recovery totaled $2.05 million. | <a href='http://www.theprmg.com/client_preview/gdk/2009-05-05-back-injury-freight-elevator-store.php' class='whitelink'>Read More</a></p>"

pausecontent[11]="<p class='white-side'><strong><a href='http://www.theprmg.com/client_preview/gdk/2009-03-30-slip-fall-school-gymnasium-mats-attorney.php' class='whitelink'>School ignored gymnasium's slippery mats, visitor alleged</a></strong><br /><br />3/30/2009 | $400,000 | In this case, plaintiff Teresa Doherty slipped in the gymnasium of Smithtown Middle School and sustained injuries of her back. She alleged that the school's staff was negligent in its maintenance of the premises, which created a dangerous condition. The parties negotiated a $400,000 settlement for Ms. Doherty. | <a href='http://www.theprmg.com/client_preview/gdk/2009-03-30-slip-fall-school-gymnasium-mats-attorney.php' class='whitelink'>Read More</a></p>"

pausecontent[12]="<p class='white-side'><strong><a href='http://www.theprmg.com/client_preview/gdk/2009-01-16-car-crash-spinal-fusion-attorney.php' class='whitelink'>Car crash led to spinal fusion, plaintiff alleged</a></strong><br /><br />1/16/2009 | $1,175,000 | In this case, plaintiff Jennifer LaCamera was a passenger of a vehicle that was being driven by her husband. While their vehicle was stopped at a red traffic signal, its rear end was struck by a trailing vehicle that was being driven by Theresa Bentivenga. Ms. LaCamera claimed that she sustained a serious injury of her back. The defendants' insurer agreed to pay $1,175,000 for Ms. LaCamera's pain and suffering. | <a href='http://www.theprmg.com/client_preview/gdk/2009-01-16-car-crash-spinal-fusion-attorney.php' class='whitelink'>Read More</a></p>"

pausecontent[13]="<p class='white-side'><strong><a href='http://www.theprmg.com/client_preview/gdk/2009-fast-food-hand-dryer-finger-injury.php' class='whitelink'>14-year old plaintiff suffers avulsion injury to finger</a></strong><br /><br />11/18/2008 | $1,300,000 | In this case, plaintiff Esteban Valerio contended that the defendant fast food restaurant negligently left the automatic hand dryer operational after they removed the cover several hours earlier when it was discovered that the cover had been damaged. As a result, the 14-year old plaintiff's right middle finger became caught in the mechanism and he suffered a partial amputation. The plaintiff was awarded $1,300,000 for past and future pain and suffering. | <a href='http://www.theprmg.com/client_preview/gdk/2009-fast-food-hand-dryer-finger-injury.php' class='whitelink'>Read More</a></p>"

pausecontent[14]="<p class='white-side'><strong><a href='http://www.theprmg.com/client_preview/gdk/2008-02-19-car-crash-back-neck-injuries.php' class='whitelink'>Car crash caused back and neck injuries, plaintiff alleged</a></strong><br /><br />2/19/2008 | $750,000 | In this case, John Chmielewski, a demolition worker, was driving on Route 59 when his vehicle's rear end was struck by a trailing vehicle and he subsequently sustained injuries to his back and neck. Chmielewski was awarded $750,000 for his pain and suffering. | <a href='http://www.theprmg.com/client_preview/gdk/2008-02-19-car-crash-back-neck-injuries.php' class='whitelink'>Read More</a></p>"

pausecontent[15]="<p class='white-side'><strong><a href='http://www.theprmg.com/client_preview/gdk/2008-02-07-car-crash-knee-injury-attorney.php' class='whitelink'>Car crash produced knee injury, plaintiff alleged</a></strong><br /><br />2/7/2008 | $2,343,000 | In the case of Antonia Tapper v. John D. Bascombe & PJ Mechanical Corp., Antonia Tapper was driving when her vehicle was struck by a trailing vehicle that was being driven by John Bascomeb. Tapper claimed that she sustained an injury of one knee and sued Bascombe and the owner of his vehicle, PJ Mechanical Corp., for negligence and vicarious liability. The jury found that Tapper's damages totaled $2,343,000. | <a href='http://www.theprmg.com/client_preview/gdk/2008-02-07-car-crash-knee-injury-attorney.php' class='whitelink'>Read More</a></p>"


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