document.write("
"); txt = ""; var myLink = new Array(); var myText = new Array(); var currLine = 0; var currPos = 0; myText[1] = "Green Energy Bill moves on to Lords "; myLink[1] = "http://www.heatingandventilating.net/news/news.asp?id=6487&title=Green+Energy+Bill+moves+on+to+Lords++++"; myText[2] = "Firms' training grants cut by 10% "; myLink[2] = "http://www.heatingandventilating.net/news/news.asp?id=6486&title=Firms%27+training+grants+cut+by+10%25+"; myText[3] = "Balfour Beatty performs better in UK building sector this year "; myLink[3] = "http://www.heatingandventilating.net/news/news.asp?id=6485&title=Balfour+Beatty+performs+better+in+UK+building+sector+this+year+++"; myText[4] = "Humidity Solutions has a new director "; myLink[4] = "http://www.heatingandventilating.net/news/news.asp?id=6483&title=Humidity+Solutions+has+a+new+director+"; myText[5] = "BIFM management changes announced "; myLink[5] = "http://www.heatingandventilating.net/news/news.asp?id=6480&title=BIFM+management+changes+announced+"; myText[6] = "The S-Factor live returns to London HEVAR 2009 "; myLink[6] = "http://www.heatingandventilating.net/news/news.asp?id=6479&title=The+S%2DFactor+live+returns+to+London+HEVAR+2009++"; myText[7] = "Heating helpline hopes to answer efficiency call"; myLink[7] = "http://www.heatingandventilating.net/news/news.asp?id=6475&title=Heating+helpline+hopes+to+answer+efficiency+call"; myText[8] = "Balfour Kilpatrick and Haden Young merge "; myLink[8] = "http://www.heatingandventilating.net/news/news.asp?id=6473&title=Balfour+Kilpatrick+and+Haden+Young+merge+++"; myText[9] = "Red tape costs small construction firms £1.1 billion "; myLink[9] = "http://www.heatingandventilating.net/news/news.asp?id=6472&title=Red+tape+costs+small+construction+firms+%A31%2E1+billion+"; myText[10] = "Local plumber is UK's favourite small business says study "; myLink[10] = "http://www.heatingandventilating.net/news/news.asp?id=6470&title=Local+plumber+is+UK%27s+favourite+small+business+says+study++"; var numLines = 10; tickerInit(); // This must be called after our 'changing link' tickerBase is declared function tickerInit() { // Only init the routine if our browser supports 'getElementByID' if (document.getElementById) { t = document.getElementById('ticker'); //t.innerHTML = " Breaking News: "; t.innerHTML = ""; t.innerHTML += ""; t.innerHTML += " Breaking News: "; tbase = document.createElement("a"); tbase.style.border = '1px'; tbase.style.padding = '0px'; tbase.style.textDecoration = 'none'; tbase.innerHTML = ''; tbase.href = myLink[0]; tbase.target = "_top"; document.getElementById('ticker').appendChild(tbase); myText[0]=" " doTick(); } } // Called every few milliseconds to update the current text shown function doTick() { if (myText[currLine] == null) { currLine = 0; } tbase.href = myLink[currLine]; tbase.innerHTML = myText[currLine].substring(0,currPos) + "_"; if(currPos++ < myText[currLine].length) { setTimeout("doTick()", 55); } else { if (currLine++ >= numLines) currLine = 0; currPos = 0; setTimeout("doTick()", 2000); } }