function sa(url,headline_text,newWin)
{
   this.url = url
   this.headline_text = headline_text
   this.newWin = newWin
}

/* 
  To update the news ticker change the following array 
  The thre variables in each item are as follows: 
   URL (relative or absolute of the link),
   The headline text,
   Whether the link opens in a new window (1) - same as target="_blank" in HTML
    or in the same frame (0)  - same as target="_self" in HTML
	or in the whole of the current window replacing any framesets (2) - same as target="_top" in HTML

  Note that each element in the array must end in a comma except for the last item.
*/

article = new Array(
   new sa("news_l3_pr_020919.htm","19 September 2002 - Pathway away from destruction","0"));



var chardelay=75; // Delay for each scrolled character (in ms)
var size=90;      // Size of news box (in characters)

// If size is changed above, it will also need to be changed
// in the form definition.

var headlinetext="";
var headlineurl="";
var headlineWin=0;
var artnum=0;


function printarticle()
{
  if (artnum >= article.length) artnum = 0; // Loop if all articles done
    headlinetext = "...... " + article[artnum].headline_text + " ......";
    headlineurl = article[artnum].url;
	headlineWin = article[artnum].newWin;
  printheadlinescroll(size);
}


function printheadlinescroll(i)
{
  var tempstring="";
  for (j=i; j>=0; j--) tempstring += " ";
  tempstring += headlinetext;
  document.headlineform.headlinebox.value = tempstring.slice(0,size);
  if (i > 0) setTimeout("printheadlinescroll(" + (i-1) + ")",chardelay);        
  else setTimeout("unprintheadlinescroll(0)", 0);
}


function unprintheadlinescroll(i)
{
  var tempstring="";
  tempstring = headlinetext.slice(i,i+size);
  document.headlineform.headlinebox.value = tempstring;
  if (i < size) setTimeout("unprintheadlinescroll(" + (i+1) + ")",chardelay);
  else {
    artnum++;
    setTimeout("printarticle()", chardelay);
  }
}


function gotoarticle()
{
  document.headlineform.headlinebox.blur();
  if (headlineWin == 1) { window.open(headlineurl)}
  else if (headlineWin == 2) {top.location =  headlineurl }
  else {window.location =  headlineurl }
}




if (document.images) {
	nav1a = new Image();  nav1a.src = "images/nav_campinfo_on.gif";           
	nav1b = new Image();  nav1b.src = "images/nav_campinfo_off.gif";	
	nav2a = new Image();  nav2a.src = "images/nav_cyberact_on.gif";           
	nav2b = new Image();  nav2b.src = "images/nav_cyberact_off.gif";	
	nav3a = new Image();  nav3a.src = "images/nav_celebinv_on.gif";           
	nav3b = new Image();  nav3b.src = "images/nav_celebinv_off.gif";		
	nav4a = new Image();  nav4a.src = "images/nav_news_on.gif";           
	nav4b = new Image();  nav4b.src = "images/nav_news_off.gif";	
	nav5a = new Image();  nav5a.src = "images/nav_shipcrew_on.gif";           
	nav5b = new Image();  nav5b.src = "images/nav_shipcrew_off.gif";			
	nav6a = new Image();  nav6a.src = "images/nav_spotting_on.gif";           
	nav6b = new Image();  nav6b.src = "images/nav_spotting_off.gif";	
	nav7a = new Image();  nav7a.src = "images/nav_sitemap_on.gif";           
	nav7b = new Image();  nav7b.src = "images/nav_sitemap_off.gif";	
}

function swapOver(n) {
	if (document.images) {
			document[n].src = eval (n + "a.src");
    }
}
	
function swapOut(n) {
	if (document.images) {
				document[n].src = eval (n + "b.src");
    }
}