// JavaScript Document
function addScrollers() {
// code each scroller as follows:
// startScroll('id of scroller div','content of scroller');
startScroll('scroll-2','<p>Most Teignbridge towns and villages have excellent community on-line news, useful links and blog facilities.</p><p>Click for: <a href="http:\/\/www.aboutmyarea.co.uk\/Devon\/Newton-Abbot\/TQ12" target="_blank">&lt; Aboutmyarea TQ12 &gt;<\/a></p><p>Click for: <a href="http:\/\/www.any-village.com\/UK\/England\/Devon\/" target="_blank">&lt; Any-Village &gt;<\/a></p><p>Click for: <a href="http:\/\/www.ashburton.org\/index.htm" target="_blank">&lt; Ashburton.org &gt;<\/a></p><p>Click for: <a href="http:\/\/www.britinfo.net\/index.html" target="_blank">&lt; Britinfo &gt;<\/a></p><p>Click for: <a href="http:\/\/www.chudleighguild.co.uk\/" target="_blank">&lt; Chudleighguild &gt;<\/a></p><p>Click for: <a href="http:\/\/www.dawlish.com\/" target="_blank">&lt; Dawlish Live! &gt;<\/a></p><p>Click for: <a href="http:\/\/www.localmouth.com\/" target="_blank">&lt; Localmouth &gt;<\/a></p><p>Click for: <a href="http:\/\/www.moretonhampstead.com\/" target="_blank">&lt; Moretonhampstead &gt;<\/a></p><p>Click for: <a href="http:\/\/teignmouthnews.co.uk\/index.html" target="_blank">&lt; Teignmouth News &gt;<\/a></p><p>And, thank you for publishing PullApart.</p>');
startScroll('scroll-1','<p>PullApart is honoured with a prestigious Silver, GREEN APPLE AWARD.<br>Environmental Best Practice.<br>.......</p><p>&diams; Product packaging waste into landfill? What-a-waste!<br>And, we get taxed for it!</p><p>&diams; Landfill reduction = greenhouse gases reduction.</p><p>&diams; Build recycling into PACkaging, can\'t we?</p><p>&diams; Please, make kerbside recycling easy for us.</p><p>&diams; Recycling makes sense, fiddling with it, wasting water and energy on it,<br>doesn\'t!</p><p>&diams; We pay for packaging, kerbside collection and recycling then,<br>incompatibility means: We all pay again!</p><p>&diams; PullApart is now green footprint audited by: Green Achiever.</p><p>&diams; Easy kerbside recycling PullApartCode&reg; (PAC&reg;) is here, now!</p>');
}

var speed=8; // scroll speed (bigger = faster)
var dR=false; // reverse direction

// Vertical Scroller Javascript
// copyright 24th September 2005, by Stephen Chapman
// permission to use this Javascript on your web page is granted
// provided that all of the code below (as well as these
// comments) is used without any alteration
var step = 2; function objWidth(obj) {if(obj.offsetWidth) return obj.offsetWidth; if (obj.clip) return obj.clip.width; return 0;} function objHeight(obj) {if(obj.offsetHeight) return obj.offsetHeight; if (obj.clip) return obj.clip.height; return 0;} function scrF(i,sH,eH){var x=parseInt(i.top)+(dR? step: -step); if(dR && x>sH)x=-eH;else if(x<2-eH)x=sH;i.top = x+'px';} function startScroll(sN,txt){var scr=document.getElementById(sN); var sW = objWidth(scr)-6; var sH = objHeight(scr); scr.innerHTML = '<div id="'+sN+'in" style="position:absolute; left:3px; width:'+sW+';">'+txt+'<\/div>'; var sTxt=document.getElementById(sN+'in'); var eH=objHeight(sTxt); sTxt.style.top=(dR? -eH : sH)+'px'; sTxt.style.clip='rect(0,'+sW+'px,'+eH+'px,0)'; setInterval(function() {scrF(sTxt.style,sH,eH);},1000/speed);}
window.onload = addScrollers;
                  
