// javascript file for Forth Bridge memorial
// version 1.0  11 April 2005
// FSH

news = new Array 
("NEWS: Web site created to raise a memorial for the men killed making the Forth Bridge", 
"NEWS: Book available about the Briggers - full death list",
"NEWS: Memorial Committee formed to promote and fund the memorial",
"HELP: Help us track down the men who died building the Forth Bridge");

newsCnt = news.length;
thisNews = 0;

function messages()
{
  setTimeout("messages();",3500);
  thisNews++;
  if (thisNews == newsCnt)
	thisNews = 0;
  var timeText = (news[thisNews]);
  document.getElementById('rotatingBanner').firstChild.nodeValue=timeText;
}


var message="Please Respect Our Copyright";

function clickIE4()
{
  if (event.button==2)
  {
    alert(message);
    return false;
  }
}

function clickNS4(e)
{
  if (document.layers||document.getElementById&&!document.all)
  {
    if (e.which==2||e.which==3)
    {
      alert(message);
      return false;
    }
  }
}

if (document.layers)
{
  document.captureEvents(Event.MOUSEDOWN);
  document.onmousedown=clickNS4;
}
  else if (document.all&&!document.getElementById){
  document.onmousedown=clickIE4;
}

