// JavaScript Document

/*Array for the scroller*/
var pausecontent=new Array()
pausecontent[0]='"The Attorneys provided "top quality" in our Estate Administration matters – you gave us answers in a timely manner"<br><br><span class="TLocation">Michele P. -- York, PA</span>'
pausecontent[1]='"I think very highly of your firm, especially Attorney Bodene who impressed the District Justice in my case."<br><br><span class="TLocation">Paul H. -- Lancaster, PA</span>'
pausecontent[2]='"Matthew Menges was friendly and took time to explain my Estate Administration matters."<br><br><span class="TLocation">Bonnie S. -- Middletown, PA.</span>'
pausecontent[3]='"I was happy with the speed, quality and professionalism in drafting our Power of Attorney Documents."<br><br><span class="TLocation">Joan Ann A. -- York, PA</span>'
pausecontent[4]='"You all expressed deep concern and sympathy for my situation and were always kind to me."<br><br><span class="TLocation">Donna C. -- Seven Valleys, PA</span>'
pausecontent[5]='"Everything was made easy for me. I was treated with respect and courtesy."<br><br><span class="TLocation">Bonnie -- Lititz, PA</span>'
pausecontent[6]='"Mr. Menges was well prepared and won the case."<br><br><span class="TLocation">Robert S. -- York, PA</span>'
pausecontent[7]='"Attorney McLaughlin was very well prepared for my Social Security case."<br><br><span class="TLocation">Kyle P. -- Manchester, PA</span>'
pausecontent[8]='"Friendly, relaxed professional interactions."<br><br><span class="TLocation">Bob K. -- York, PA</span>'
pausecontent[9]='"I felt my unemployment compensation case was "important" to the attorney. Very impressed with representation."<br><br><span class="TLocation">Debra H. -- Lancaster, PA</span>'
pausecontent[10]='"Attorney Kalasnik and his staff made a stressful situation easier to cope with by providing a high level of personal service."<br><br><span class="TLocation">Ronald K. -- Glenville, PA</span>'
pausecontent[11]='"Mr. McLaughlin always returned my phone calls, spoke the truth and was understanding of my feelings regarding my auto accident case."<br><br><span class="TLocation">Jo L. -- Wrightsville, PA</span>'
pausecontent[12]='"Thank you for your dedication and professionalism in my auto collision case. Your hard work was most appreciated."<br><br><span class="TLocation">Robert R. -- Lititz, PA</span>'
pausecontent[13]='"Shawn and his staff handled my Unemployment Compensation appeal in a courteous and professional manner."<br><br><span class="TLocation">Timothy H. -- York, PA</span>'
pausecontent[14]='"Thank you for your attention to details and your kindness to me and my family."<br><br><span class="TLocation">Kimberly N. -- Shrewsbury, PA</span>'
pausecontent[15]='"My lawyer and paralegal were the greatest in my Social Security Disability case."<br><br><span class="TLocation">Judy M. -- Red Lion, PA</span>'
pausecontent[16]='"My husband’s death left me shattered&hellip;I was clueless as to how to handle everything. Attorney Matthew Menges and his staff patiently answered all my questions about the Estate and what to do. Your firm was a God-send during the worst time of my life."<br><br><span class="TLocation">Barb M. -- East Berlin, PA</span>'
pausecontent[17]='"We appreciated your background knowledge of similar easement cases."<br><br><span class="TLocation">Edward R.. -- Dover, PA</span>'
pausecontent[18]='"I want to thank you for everything Attorney McLaughlin did in my Social Security Disability case!"<br><br><span class="TLocation">Ricky F. -- Hanover, PA</span>'
pausecontent[19]='"Attorney Benson and her personable staff handled our adoption in a very professional manner."<br><br><span class="TLocation">Tracey T. -- Harrisburg, PA</span>'
pausecontent[20]='"Your firm was thorough and kept us informed in our case against the life insurance company for unpaid benefits."<br><br><span class="TLocation">Joan N. -- Dover, PA</span>'
pausecontent[21]='"Attorney McLaughlin and his staff were pleasant, to the point, always available to answer questions in my Social Security Disability case."<br><br><span class="TLocation">Todd L. -- York, PA</span>'
pausecontent[22]='"You got the feeling that they really care – if it’s important to you, it’s important to them."<br><br><span class="TLocation">Jacqueline D. -- New Oxford, PA</span>'
pausecontent[23]='"We are grateful for the results you achieved against the disability insurance company."><br><br><span class="TLocation">Phil and Donna S. -- Mechanicsburg, PA</span>'
pausecontent[24]='"I was very impressed with Attorney McLaughlin and his staff’s thoroughness and honestly concerning my Social Security Disability case."><br><br><span class="TLocation">Kimberly K. -- Paradise, PA</span>'
pausecontent[25]='"Thank you for taking the burden off of us during the very difficult, painful and stressful time following my car accident."><br><br><span class="TLocation">Patricia B. -- Glen Rock, PA</span>'
pausecontent[26]='"Your firm is informed of all my legal matters.  I would come back due to the excellent service in my custody case."><br><br><span class="TLocation">Lorie M. -- Columbia, PA</span>'
pausecontent[27]='"I was very pleased with the work Attorney Matthew Menges did on my Unemployment Compensation case"><br><br><span class="TLocation">Wanda R. -- Columbia, PA</span>'
pausecontent[28]='"Reasonable fees; Attorney McLaughlin \'knew his stuff\' and was easy to work with in my Unemployment Compensation case."><br><br><span class="TLocation">Devon F. -- Lancaster, PA</span>'
pausecontent[29]='"Jay did a great job in defending me in my theft charge."'
pausecontent[30]='"Attorney McLaughlin was well prepared and thorough, with timely resolution of my Unemployment Compensation case.  Costs were very reasonable."><br><br><span class="TLocation">Michael A. -- Lancaster, PA</span>'
pausecontent[31]='"Attorney McLaughlin was very thorough and professional in my claim for long term disability benefits."><br><br><span class="TLocation">Philip S. -- Mechanicsburg, PA</span>'
pausecontent[32]='"Regarding my Will, Attorney Christopher Menges very thoroughly explained all aspects of the situation."><br><br><span class="TLocation">Jane E. -- Wellsville, PA</span>'
pausecontent[33]='"Everyone at this firm was kind, well spoken, and did their best to put my mind at ease in my employment case."><br><br><span class="TLocation">Stephanie B. -- York, PA</span>'




/***********************************************
* 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
}