var memorywidth="444px"
var memoryheight="26px"
var memorybgcolor="#222222"
var memorypadding="2px"
var borderCSS="border: 0px solid black;"
var memoryspeed=2
var pauseit=0
var persistlastviewedmsg=1
var persistmsgbehavior="onload"
var memorycontent='<nobr><font color=#bbbbbb face="Arial"><b>Welcome to The Big Orchard. The very best in professional drawing office equipment. Now the sole distibutor for <a href="http://www.tecnostyl.it" class="newslink">Tecnostyl</a> throughout the UK including our range of <a href="http://www.displaysdisplaysdisplays.co.uk/visual_display.php">Visual Display Equipment</a> new for 2009 and also <a href="http://www.drawing-boards.co.uk/triangular_scale_ruler.php" class="newslink">triangular scale rulers</a> and other <a href="http://www.drawing-boards.co.uk/drafting_tables.php" class="newslink">drafting machines</a> and <a href="http://www.drawing-boards.co.uk/technical_drawing.php" class="newslink">technical drawing equipment</a>. Call now to order any of our technical drawing equipment <a href="contact.php" class="newslink">01924 291333</a>. We make drawing boards, drafting tables, plan chests and light tables for professional drawing offices. We also offer a large range of <a href="reconditioned_office_furniture.php" class="newslink">reconditioned</a> office furniture from complete work stations to hat stands. If you require a price for any of our products, please do not hesitate to give our sales team a call 01924 291333 or request a free brochure delivered straight to your door.</b></font></nobr>'
var combinedcssTable="width:"+(parseInt(memorywidth)+6)+"px;background-color:"+memorybgcolor+";padding:"+memorypadding+";"+borderCSS+";"
var combinedcss="width:"+memorywidth+";height:"+memoryheight+";"
var divonclick=(persistlastviewedmsg && persistmsgbehavior=="onclick")? 'onClick="savelastmsg()" ' : ''
memoryspeed=(document.all)? memoryspeed : Math.max(1, memoryspeed-1)
var copyspeed=memoryspeed
var pausespeed=(pauseit==0)? copyspeed: 0
var 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=''
var 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(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="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:2px;" '+divonclick+'></div>')
write('</div>')
document.write('</td></table>')
}
}
