﻿var memorywidth="500px",memoryheight="20px",memorybgcolor="#ffffff",memorypadding="2px",borderCSS="border: 0px solid black;",memoryspeed=2,pauseit=1,persistlastviewedmsg=1,persistmsgbehavior="onload",memorycontent='<nobr><font face="Arial"><font-size: 16px><b>We\'ve moved! Visit us at our new convenient location near Route 65 in Emsworth.</b></nobr>',combinedcssTable="width:"+(parseInt(memorywidth)+6)+"px;background-color:"+memorybgcolor+";padding:"+memorypadding+";"+borderCSS+";",combinedcss="width:"+memorywidth+";height:"+memoryheight+";",divonclick=persistlastviewedmsg&&persistmsgbehavior=="onclick"?'onClick="savelastmsg()" ':"";memoryspeed=document.all?memoryspeed:Math.max(1,memoryspeed-1);var copyspeed=memoryspeed,pausespeed=pauseit==0?copyspeed:0,iedom=document.all||document.getElementById;if(iedom)document.write('<span id="temp" style="visibility:hidden;position:absolute;top:-100px;left:-10000px">'+memorycontent+"</span>");var actualwidth="",memoryscroller;if(window.addEventListener)window.addEventListener("load",populatescroller,false);else if(window.attachEvent)window.attachEvent("onload",populatescroller);else if(document.all||document.getElementById)window.onload=populatescroller;function populatescroller(){memoryscroller=document.getElementById?document.getElementById("memoryscroller"):document.all.memoryscroller;memoryscroller.style.left=parseInt(memorywidth)+8+"px";if(persistlastviewedmsg&&get_cookie("lastscrollerpos")!="")revivelastmsg();memoryscroller.innerHTML=memorycontent;actualwidth=document.all?temp.offsetWidth:document.getElementById("temp").offsetWidth;lefttime=setInterval("scrollmarquee()",20)}function get_cookie(c){var b=c+"=",a="";if(document.cookie.length>0){offset=document.cookie.indexOf(b);if(offset!=-1){offset+=b.length;end=document.cookie.indexOf(";",offset);if(end==-1)end=document.cookie.length;a=unescape(document.cookie.substring(offset,end))}}return a}function savelastmsg(){document.cookie="lastscrollerpos="+memoryscroller.style.left}function revivelastmsg(){lastscrollerpos=parseInt(get_cookie("lastscrollerpos"));memoryscroller.style.left=parseInt(lastscrollerpos)+"px"}if(persistlastviewedmsg&&persistmsgbehavior=="onload")window.onunload=savelastmsg;function scrollmarquee(){if(parseInt(memoryscroller.style.left)>actualwidth*-1+8)memoryscroller.style.left=parseInt(memoryscroller.style.left)-copyspeed+"px";else memoryscroller.style.left=parseInt(memorywidth)+8+"px"}if(iedom)with(document){document.write('<table border="0" cellspacing="0" cellpadding="0" style="'+combinedcssTable+'"><td>');write('<div style="position:relative;overflow:hidden;'+combinedcss+'" onMouseover="copyspeed=pausespeed" onMouseout="copyspeed=memoryspeed">');write('<div id="memoryscroller" style="position:absolute;left:0px;top:0px;" '+divonclick+"></div>");write("</div>");document.write("</td></table>")}