document.write("
"); txt = ""; var myLink = new Array(); var myText = new Array(); var currLine = 0; var currPos = 0; myText[1] = "Water controls guide launched"; myLink[1] = "http://www.heatingandventilating.net/news/news.asp?id=9447&title=Water+controls+guide+launched"; myText[2] = "New operations director for Heatrae Sadia"; myLink[2] = "http://www.heatingandventilating.net/news/news.asp?id=9446&title=New+operations+director+for+Heatrae+Sadia"; myText[3] = "JCT updates Standard Building Contract"; myLink[3] = "http://www.heatingandventilating.net/news/news.asp?id=9445&title=JCT+updates+Standard+Building+Contract"; myText[4] = "Apprenticeship Week - SummitSkills appeals for employer help find the best "; myLink[4] = "http://www.heatingandventilating.net/news/news.asp?id=9443&title=Apprenticeship+Week+%2D+SummitSkills+appeals+for+employer+help+find+the+best+"; myText[5] = "Huhne to face charges"; myLink[5] = "http://www.heatingandventilating.net/news/news.asp?id=9442&title=Huhne+to+face+charges"; myText[6] = "Elta Fans and Ziehl-Abegg join forces"; myLink[6] = "http://www.heatingandventilating.net/news/news.asp?id=9441&title=Elta+Fans+and+Ziehl%2DAbegg+join+forces"; myText[7] = "HVCA updates commercial and legal contracts"; myLink[7] = "http://www.heatingandventilating.net/news/news.asp?id=9440&title=HVCA+updates+commercial+and+legal+contracts"; myText[8] = "Vent-Axia gains quiet recognition"; myLink[8] = "http://www.heatingandventilating.net/news/news.asp?id=9439&title=Vent%2DAxia+gains+quiet+recognition"; myText[9] = "Plumber gets six months for illegal gas work"; myLink[9] = "http://www.heatingandventilating.net/news/news.asp?id=9436&title=Plumber+gets+six+months+for+illegal+gas+work"; myText[10] = "Green media bans rogue traders"; myLink[10] = "http://www.heatingandventilating.net/news/news.asp?id=9435&title=Green+media+bans+rogue+traders"; 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 = " 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); } }