document.write("
"); txt = ""; var myLink = new Array(); var myText = new Array(); var currLine = 0; var currPos = 0; myText[1] = "Bosses offered £170 million in training grants "; myLink[1] = "http://www.heatingandventilating.net/news/news.asp?id=5515&title=Bosses+offered+%A3170+million+in+training+grants+++"; myText[2] = "More construction firms in corporate distress"; myLink[2] = "http://www.heatingandventilating.net/news/news.asp?id=5514&title=More+construction+firms+in+corporate+distress"; myText[3] = "JS Wright launches maintenance division"; myLink[3] = "http://www.heatingandventilating.net/news/news.asp?id=5513&title=JS+Wright+launches+maintenance+division"; myText[4] = "Wolseley UK MD replaced by Europe head to cut costs"; myLink[4] = "http://www.heatingandventilating.net/news/news.asp?id=5512&title=Wolseley+UK+MD+replaced+by+Europe+head+to+cut+costs"; myText[5] = "Barnados gets Balls rolling with construction school "; myLink[5] = "http://www.heatingandventilating.net/news/news.asp?id=5502&title=Barnados+gets+Balls+rolling+with+construction+school++"; myText[6] = "Smoke control expert joins Bovema"; myLink[6] = "http://www.heatingandventilating.net/news/news.asp?id=5500&title=Smoke+control+expert+joins+Bovema"; myText[7] = "Energy experts fuel WREC 2008 "; myLink[7] = "http://www.heatingandventilating.net/news/news.asp?id=5499&title=Energy+experts+fuel+WREC+2008+"; myText[8] = "Plumbing a popular career in a recession"; myLink[8] = "http://www.heatingandventilating.net/news/news.asp?id=5496&title=Plumbing+a+popular+career+in+a+recession"; myText[9] = "Vaughan crowned HVCA president "; myLink[9] = "http://www.heatingandventilating.net/news/news.asp?id=5494&title=Vaughan+crowned+HVCA+president+"; myText[10] = "Pepper shakes up ICOM "; myLink[10] = "http://www.heatingandventilating.net/news/news.asp?id=5493&title=Pepper+shakes+up+ICOM+"; 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); } }