
var theMonth	= new Array(" ","January", "February", "March", "April", "May", "June","July", "August", "September", "October", "November", "December");
var myScroller1 = new Scroller(10, 10, 250, 125, 0, 0);
//get the last modifed date
var theDate = document.lastModified;

theDate = theDate.substr(0,10)
theArray = theDate.split("/")
theAffix = "th";
if (theArray[1] == "01" | theArray[1] == "21" | theArray[1] == "31"){theAffix = "st"}
if (theArray[1] == "02" | theArray[1] == "22"){theAffix = "nd"}
if (theArray[1] == "03" | theArray[1] == "23"){theAffix = "rd"}
theDate = theArray[1] + theAffix + " " + theMonth[theArray[0]*1] + " " +theArray[2]
myScroller1.setColors("Silver", "#009933", "#C0C0C0");
myScroller1.setFont("Trebuchet MS", 2);
myScroller1.addItem("<center><font face=Verdana size=6 color=#000080>" + thePage + "</font></center>");
myScroller1.addItem("<center>Welcome to Flightless<br>Home of Gareth's <a target=new href=http://www.robinhoodengineering.co.uk/>Robinhood</a> 2B</center>");
myScroller1.addItem("<center>New entries in the Modifications section - I know it's been a while but the website is moving on.</center>");
myScroller1.addItem("<center><font color=#FFFF00>Found a funny list of <a href=tools.html>tools</a> on the web</font></center>");
myScroller1.addItem("<center>The adverts below help pay for the website you see. If you like the website please click on a link - you may like it!</center>");
// this is the last item on the scroll bar
myScroller1.addItem("<center>This page last updated " + theDate + "</center>");
myScroller1.addItem("<center>&copy; Gareth Rees 2002<br><font size=-1>Contact: <a href=mailto:gareth@flightless.co.uk>gareth@flightless.co.uk</a></font></center>");

function writeit()
{
document.controlit.action = "http://81.174.156.171:1033/HVTableX10.htm"
document.controlit2.action = "http://81.174.156.171:1033/HVTableMacro.htm"
//alert("81.174.156.171")
}


function latestpage()
{
top.location = 'build-may.html';
}

function init() {
var img;
var x, y;
img = getImage("placeholder");
x = getImagePageLeft(img);
y = getImagePageTop(img);
myScroller1.create();
myScroller1.hide();
myScroller1.moveTo(x+2, y+2);
myScroller1.setzIndex(100);
myScroller1.show();

}

adverts = '<P align=center><a href="http://tracker.tradedoubler.com/click?p=3128&amp;a=469556&amp;g=16026" target=_blank><img src="http://impgb.tradedoubler.com/imp/img/16026/469556" border=0 ></a></P>';
adverts = adverts + '<hr><P align=center><a href="http://tracker.tradedoubler.com/click?p=1560&a=469556&g=8124" target="_blank"><img src="http://impgb.tradedoubler.com/imp/img/8124/469556" border=0></a></P>';
adverts = adverts + '<hr><P align=center><a href="http://tracker.tradedoubler.com/click?p=3103&a=469556&g=15538" target="_blank"><img src="http://impgb.tradedoubler.com/imp/img/15538/469556" border=0></a></P>';



//last one
adverts = adverts + '<br>';


//The webcam Picture

browserType = navigator.appName;		
newImage = new Image();

function loadNewImage()
{
    uniq = new Date();
    uniq = uniq.getTime();
    document.images.webcam32.src=newImage.src;
    newImage.src="http://81.174.156.171:8888/video/pull?"+uniq;
    window.status = "Displaying live video ...";    
}
function initialImage()
{
	uniq = new Date();
	uniq = uniq.getTime();
	newImage.onload=loadNewImage;
	newImage.src="http://81.174.156.171:8888/video/pull?"+uniq;
    document.images.webcam32.onload="";
}

function imageError()
{
	window.status = "Sorry ... no image just now";
	image = document.images.webcam32;
	image.onload = "";
	image.onerror = "";
	//startstop.disabled = true;
	document.images.webcam32.src = "images/noCam.gif";
}

function webcam(width,height)
{
if (browserType == "Netscape")
{
	document.write('<IMG SRC="http://81.174.156.171:8888/video/push" width=' + width + ' height=' + height + '>');
}
else
{
	document.write('<IMG SRC="http://81.174.156.171:8888/video/pull" name=webcam32 onload="initialImage()" onerror="imageError()" width=' + width + ' height=' + height + '>');
}
}

function getav()
{
<!-- Sophos info feed: latest virus alerts - START -->

// Want to customise the look and feel of the virus information
// on your site? Simply change the following values to your own
// preferences.
//
// Changing the value of 'count' will change the number of rows
// displayed.
// Changing the value of 'target' to 'new' will display the link in 
// a new window.

// *****************************************************************

var bgcolour_main     = '#009933'
var bgcolour_heading  = '#009933'
var text_colour       = '#000000'
var link_colour       = '#000099'
var font_size         = '1'
var font_face         = 'verdana, arial, helvetica, sans-serif'
var count             =  10   // number should be between 1 and 10
var first_column      = 'yes' // 'yes' or 'no'
var cellspacing       = 'yes' // 'yes' or 'no'
var target            = '_new' // '_self' or 'new'

// *****************************************************************
//  Be careful not to change anything below this line!


var htmltxt = "";
var font_desc = '<font face="' + font_face + '" size="'
  + font_size + '" color="' + text_colour + '">';
var tmp_count = 0;
    
if (first_column == "no") { 
  colspan = 1;
} else {
  colspan = 2;
}

if (cellspacing == "no") { 
  cellspacing = 0;
} else {
  cellspacing = 2;
}  

if (count > 0) {
  if (count > 10) {count = 10}
  htmltxt += '\n<table cellpadding="6" cellspacing="' 
  + cellspacing + '" border="0" bgcolor="#ffffff">';
  if (count == 1) {
    htmltxt += '\n<tr><td colspan="' + colspan + '" bgcolor="'
    + bgcolour_heading + '">' + font_desc 
    + '<b>Latest virus alert</b></font></td></tr>';
  } else { 
    htmltxt += '\n<tr><td colspan="' + colspan + '" bgcolor="'
    + bgcolour_heading + '">' + font_desc + '<b>Latest ' 
    + count + ' virus alerts</b></font></td></tr>';
  }

  for (var i=0; i<tenalerts.length; i+=3) {
    tmp_count++;
    if (tmp_count > count) {
      break;
    } else {
      if (first_column == "no") {
        htmltxt += '\n<tr><td bgcolor="' + bgcolour_main + '">' 
        + font_desc + '<a href="' + tenalerts[i+2] + '" target="' 
        + target + '"><font color="'
        + link_colour + '"><nobr>' + tenalerts[i+1]
        + '</nobr></font></a></font></td></tr>';
      } else {  
        htmltxt += '\n<tr><td bgcolor="' + bgcolour_main + '">' 
        + font_desc + '<nobr>' + tenalerts[i+0] 
        + '</nobr></font></td><td bgcolor="' + bgcolour_main + '">' 
        + font_desc + '<a href="' + tenalerts[i+2] + '" target="' 
        + target + '"><font color="'
        + link_colour + '"><nobr>' + tenalerts[i+1]
        + '</nobr></font></a></font></td></tr>';
      }
    }  
  }
} else {
  document.write
  ("=== Sophos info feed error: Specify value of count > 0 ===");
}

// Please do not remove the code after this point. 

htmltxt += '\n<tr><td colspan="' + colspan + '" bgcolor="'
+ bgcolour_heading + '">' + font_desc 
+ 'Source: <a href="http://www.sophos.com" target="' 
+ target + '"><font color="' + link_colour 
+ '">Sophos</font></a></td></tr>';
htmltxt += '\n<tr><td colspan="' + colspan + '" bgcolor="'
+ bgcolour_heading + '">' + font_desc 
+ '<a href="http://www.sophos.com/virusinfo/infofeed/" target="' 
+ target + '"><font color="' + link_colour 
+ '">Add this info to your website</font></a></td></tr>';
htmltxt += '\n</table>';

document.write(htmltxt);

}

function gethoax()
{

// Want to customise the look and feel of the virus information
// on your site? Simply change the following values to your own
// preferences.
//
// Changing the value of 'count' will change the number of rows
// displayed.
// Changing the value of 'target' to 'new' will display the link in 
// a new window.

// *****************************************************************

var bgcolour_main     = '009933'
var bgcolour_heading  = '009933'
var text_colour       = '#000000'
var link_colour       = '#000099'
var font_size         = '1'
var font_face         = 'verdana, arial, helvetica, sans-serif'
var count             =  10   // number should be between 1 and 10
var first_column      = 'yes' // 'yes' or 'no'
var cellspacing       = 'yes' // 'yes' or 'no'
var target            = '_new' // '_self' or 'new'

// *****************************************************************
//  Be careful not to change anything below this line!


var htmltxt = "";
var font_desc = '<font face="' + font_face + '" size="'
  + font_size + '" color="' + text_colour + '">';
var tmp_count = 0;
    
if (first_column == "no") { 
  colspan = 1;
} else {
  colspan = 2;
}

if (cellspacing == "no") { 
  cellspacing = 0;
} else {
  cellspacing = 2;
}  

if (count > 0) {
  if (count > 10) {count = 10}
  htmltxt += '\n<table cellpadding="6" cellspacing="' 
  + cellspacing + '" border="0" bgcolor="#ffffff">';
  if (count == 1) {
    htmltxt += '\n<tr><td colspan="' + colspan + '" bgcolor="'
    + bgcolour_heading + '">' + font_desc 
    + '<b>Top virus hoax</b></font></td></tr>';
  } else { 
    htmltxt += '\n<tr><td colspan="' + colspan + '" bgcolor="'
    + bgcolour_heading + '">' + font_desc + '<b>Top ' 
    + count + ' virus hoaxes</b></font></td></tr>';
  }

  for (var i=0; i<hoax.length; i+=3) {
    tmp_count++;
    if (tmp_count > count) {
      break;
    } else {
      if (first_column == "no") {
        htmltxt += '\n<tr><td bgcolor="' + bgcolour_main + '">' 
        + font_desc + '<a href="' + hoax[i+2] + '" target="' 
        + target + '"><font color="'
        + link_colour + '"><nobr>' + hoax[i+1]
        + '</nobr></font></a></font></td></tr>';
      } else {  
        htmltxt += '\n<tr><td bgcolor="' + bgcolour_main + '">' 
        + font_desc + '<nobr>' + hoax[i+0] 
        + '</nobr></font></td><td bgcolor="' + bgcolour_main + '">' 
        + font_desc + '<a href="' + hoax[i+2] + '" target="' 
        + target + '"><font color="'
        + link_colour + '"><nobr>' + hoax[i+1]
        + '</nobr></font></a></font></td></tr>';
      }
    }  
  }
} else {
  document.write
  ("=== Sophos info feed error: Specify value of count > 0 ===");
}

// Please do not remove the code after this point. 

htmltxt += '\n<tr><td colspan="' + colspan + '" bgcolor="'
+ bgcolour_heading + '">' + font_desc 
+ 'Source: <a href="http://www.sophos.com" target="' 
+ target + '"><font color="' + link_colour 
+ '">Sophos</font></a></td></tr>';
htmltxt += '\n<tr><td colspan="' + colspan + '" bgcolor="'
+ bgcolour_heading + '">' + font_desc 
+ '<a href="http://www.sophos.com/virusinfo/infofeed/" target="' 
+ target + '"><font color="' + link_colour 
+ '">Add this info to your website</font></a></td></tr>';
htmltxt += '\n</table>';

document.write(htmltxt);

}