  var req;

  var agt = navigator.userAgent.toLowerCase();
  var is_macie = (((agt.indexOf("msie") != -1) && (agt.indexOf("opera") == -1)) && (agt.indexOf("mac")!=-1));

  var sec=1500;
  var itm=1;
  var timer="";
  var itemArr = new Array;

  function initScroller()
  {
	if(rssArr.length>1){
	  for (x=1; x<(rssArr.length); x++){itemArr[x] = document.getElementById("td"+x).offsetLeft;}
	}
	startScroller();
  }

  function startScroller()
  {
	if(!is_macie){
		oTable=document.getElementById("scrollertable"); 
		oDiv=document.getElementById("scrollerdiv");   
		width=oTable.offsetWidth;
		halfWidth=Math.floor(width/2);
		newWidth = (halfWidth*2)+2;
		oDiv.style.width=newWidth;
		scrollText(oDiv, newWidth);
	}
  }

  function scrollText(oDiv, width)
  {
	maxLeft = 0-width+20;
	oDiv.style.left=(parseInt(oDiv.style.left) <= maxLeft)?1002:parseInt(oDiv.style.left)-1;
//	alert(oDiv.style.left+" - "+maxLeft);
	if(parseInt(oDiv.style.left) == parseInt(itemArr[itm])*(-1)){
	  pause = setTimeout("pauseScroller(oDiv, "+width+");", 1);
	  itm++;}
	else{
	  timer = setTimeout ("scrollText(oDiv, "+width+");", sec);}
	sec = 30;
  }

  function stopScroller() {clearTimeout(timer); }

  function pauseScroller(oDiv, width)
  {
	clearTimeout(pause);
	timer = setTimeout("scrollText(oDiv, "+width+");", 750);
  }

  setTimeout("startScroller();", 500);
