document.write("
"); txt = ""; var myLink = new Array(); var myText = new Array(); var currLine = 0; var currPos = 0; myText[1] = "NG Bailey sets target to cut carbon footprint by 20% by 2012"; myLink[1] = "http://www.heatingandventilating.net/news/news.asp?id=7571&title=NG+Bailey+sets+target+to+cut+carbon+footprint+by+20%25+by+2012"; myText[2] = "Icat project launched"; myLink[2] = "http://www.heatingandventilating.net/news/news.asp?id=7570&title=Icat+project+launched"; myText[3] = "Construction sector output decline after record start to 2010"; myLink[3] = "http://www.heatingandventilating.net/news/news.asp?id=7569&title=Construction+sector+output+decline+after+record+start+to+2010"; myText[4] = "Brookes move to chair at AmbiRad as Yates steps up"; myLink[4] = "http://www.heatingandventilating.net/news/news.asp?id=7568&title=Brookes+move+to+chair+at+AmbiRad+as+Yates+steps+up"; myText[5] = "Travis Perkins bounces back as confidence returns to construction"; myLink[5] = "http://www.heatingandventilating.net/news/news.asp?id=7567&title=Travis+Perkins+bounces+back+as+confidence+returns+to+construction"; myText[6] = "Integral UK win three-year contract with DTZ"; myLink[6] = "http://www.heatingandventilating.net/news/news.asp?id=7566&title=Integral+UK+win+three%2Dyear+contract+with+DTZ"; myText[7] = "Grants for Air Source Heat Pumps announced"; myLink[7] = "http://www.heatingandventilating.net/news/news.asp?id=7565&title=Grants+for+Air+Source+Heat+Pumps+announced"; myText[8] = "NICEIC announces new series of TechTalks for 2010-11"; myLink[8] = "http://www.heatingandventilating.net/news/news.asp?id=7564&title=NICEIC+announces+new+series+of+TechTalks+for+2010%2D11"; myText[9] = "ADCAS gains strength from new link with NSCC"; myLink[9] = "http://www.heatingandventilating.net/news/news.asp?id=7563&title=ADCAS+gains+strength+from+new+link+with+NSCC"; myText[10] = "Kershaw Mechanical Services awarded £3.5m Cambridge contract"; myLink[10] = "http://www.heatingandventilating.net/news/news.asp?id=7562&title=Kershaw+Mechanical+Services+awarded+%A33%2E5m+Cambridge+contract"; 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); } }