document.write("
"); txt = ""; var myLink = new Array(); var myText = new Array(); var currLine = 0; var currPos = 0; myText[1] = "HSE investigates CO link after newly-wed's death "; myLink[1] = "http://www.heatingandventilating.net/news/news.asp?id=7130&title=HSE+investigates+CO+link+after+newly%2Dwed%27s+death+"; myText[2] = "Curzon move creates heating super branch"; myLink[2] = "http://www.heatingandventilating.net/news/news.asp?id=7127&title=Curzon+move+creates+heating+super+branch"; myText[3] = "British Gas seeks 1,100 for insulation work "; myLink[3] = "http://www.heatingandventilating.net/news/news.asp?id=7126&title=British+Gas+seeks+1%2C100+for+insulation+work++"; myText[4] = "Construct becomes NSCC member"; myLink[4] = "http://www.heatingandventilating.net/news/news.asp?id=7125&title=Construct+becomes+NSCC+member"; myText[5] = "Price joins Oceanair UK"; myLink[5] = "http://www.heatingandventilating.net/news/news.asp?id=7123&title=Price+joins+Oceanair+UK"; myText[6] = "Legal Matters: Wage increase is a bonus, however small "; myLink[6] = "http://www.heatingandventilating.net/news/news.asp?id=7120&title=Legal+Matters%3A+Wage+increase+is+a+bonus%2C+however+small++"; myText[7] = "Health and Safety Matters: New ACS must be slimmer and friendlier "; myLink[7] = "http://www.heatingandventilating.net/news/news.asp?id=7117&title=Health+and+Safety+Matters%3A+New+ACS+must+be+slimmer+and+friendlier+"; myText[8] = "Company Profile: Knowledge and advice puts TA ahead "; myLink[8] = "http://www.heatingandventilating.net/news/news.asp?id=7116&title=Company+Profile%3A+Knowledge+and+advice+puts+TA+ahead+++"; myText[9] = "HVCA Newslink: Distinguished service award for Californian "; myLink[9] = "http://www.heatingandventilating.net/news/news.asp?id=7115&title=HVCA+Newslink%3A+Distinguished+service+award+for+Californian++"; myText[10] = "HVCA Newslink: Vent hygiene chairman makes clean sweep "; myLink[10] = "http://www.heatingandventilating.net/news/news.asp?id=7114&title=HVCA+Newslink%3A+Vent+hygiene+chairman+makes+clean+sweep+++++++++"; 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); } }