function makeNews(t,l,a,i){this.title = t; this.abstract = a; this.link = l; this.img = i; this.write = writeNews; }
function writeNews(){ var str = '';	str += '<a href="' + this.link + '"><img border="0" src="' + this.img.src + '"></a><div class="text"><a href="' + this.link +'">' + this.title + '</a><br/>' + this.abstract + '<a href="'+this.link+'" class="view">view</a></div>'; return str;}
var nIndex = 1; var timerID = null;
function rotateNews(newindex){var len = newsArray.length; if(nIndex >= len) nIndex = 1; document.getElementById('whatshot').innerHTML = newsArray[nIndex]; nIndex++; timerID = setTimeout('rotateNews()',3000); }
function showhs(thisid){ document.getElementById('whatshot').innerHTML = newsArray[thisid]; pauseNews(); nIndex = thisid; timerID = setTimeout('rotateNews()',6000); }
function pauseNews() {if (timerID != null) { clearTimeout(timerID);	timerID = null;	} }
function playNews() { if (timerID == null) { timerID = setTimeout('rotateNews()', 6000); } }
