

function setMenu()
{
	p = articles.length;
	for (i = 0; i < p; i++)
	{
		newEntry = '&nbsp;&nbsp;<a href="." onclick="j=' + i.toString() + '; stopTimer(' + i.toString() + '); return false;">' + (i+1).toString() + '</a>'; 
		document.getElementById('slideMenu').innerHTML += newEntry;
	}
}

function runSlideShow()
{
   if (document.all)
   {
      document.getElementById('articlePanel').style.filter="blendTrans(duration=2)"
      document.getElementById('articlePanel').style.filter="blendTrans(duration=crossFadeDuration)"
      document.getElementById('articlePanel').filters.blendTrans.Apply()      
   }
   document.getElementById('articlePanel').innerHTML = preLoad[j]
   //alert(preLoad[j]);
   if (document.all)
   {
      document.getElementById('articlePanel').filters.blendTrans.Play()
   }
   j = j + 1
   if (j > (p-1)) j=0
   t = setTimeout('runSlideShow()', slideShowSpeed);
}
 
function stopTimer(idx)
{
	paused=1;
	document.images.pauseButton.src = 'images/pause_on.gif';
	document.getElementById('articlePanel').style.filter="";
	t = clearTimeout(t);
	j = idx;
	document.getElementById('articlePanel').innerHTML = preLoad[idx];	
}
