
// This JavaScript file contains functions written by Peter Wright
// version 9 [ 6 August 2005 - 07:30 ]
// version 10 [ 25 October 2006 - 17:40 ]  Popup changes for IE7

var imageDir="images/";			// path to background image and 'red-square'
var myName="online.js";			// name of this file for nesting purposes
var good;

var ePost="chiefe" + "ngineer@trolley" + "bus.net";

var sbNarrative="David Bradley Online";             // default status bar narrative for IE XP SP2
function sbYear() { sbDate = new Date(); return (sbDate.getYear()<1900) ? 1900+sbDate.getYear() : sbDate.getYear()} 
sbNarrative="(C) " + sbYear() + " David Bradley.  Picture not to be published elsewhere without authority from pictures" + "@" + "trolleybus.net";

var altTitle="";                                                 // default 'alt' narrative
var altClose=" Click to close window ";
var altBig=" Click on picture to close window&#13; Click red square to view image at maximum resolution ";


// -------------------------------

// Remember to addd mouse click

var message="WEB Site © Copyright 2009\nDavid Bradley Online\n----------------------------------\n\nWebmaster may be contacted on  \n+44 1252 758960\n\nTo request permission to re-post or publish material found on this site you must contact me.\n\nNo request is unreasonably withheld and in some cases no payment is requested.";  


function click(e) {
if (document.all) {
if (event.button == 2) {
alert(message);
return false;
}
}
if (document.layers) {
if (e.which == 3) {
alert(message);
return false;
}
}
}
if (document.layers) {
document.captureEvents(Event.MOUSEDOWN);
}
document.onmousedown=click;

// -------------------------------


function clock() {
            var xdt = new Date(), xtz = "GMT";
            if (xdt.getTimezoneOffset() == -60) { xtz += "0100" };
            obj = new Object;obj.clockfile = "5005-white.swf";obj.TimeZone = xtz;obj.width = 120;obj.height = 40;
            obj.wmode = "transparent";showClock(obj);
}


function captionStyle(txt) {
   while (txt.indexOf("{#")>0) {		// replace custom format commands {#?} with <p class="CF?>
      txtP=txt.indexOf("{#");
      txtL=txt.substring(0, txtP);
      txtS=txt.charAt(txtP+2);
      txtR=txt.substring(txtP+4);
      txt=txtL + '<p class="CF' + txtS + '">' + txtR;
   }
   while (txt.indexOf("{/#}")>0) {		// replace custom format end commands {/#} with </p>
      txtP=txt.indexOf("{/#}");
      txtL=txt.substring(0, txtP);
      txtR=txt.substring(txtP+4);
      txt=txtL + '</p>' + txtR;
   }
   return txt;
}

function popBig(filename, winname, description, imageW, imageH, closeParent) {
   if (description.indexOf("|")>0) { var describe = description.split("|"); description=describe[1] }
   description=captionStyle(description);
   nn="";
   nn+='<html><head><title>David Bradley Online Image Library - Picture ' + winname + '</title>';
   nn+='<meta http-equiv="imagetoolbar" content="no">';
   nn+='<meta name="MSSmartTagsPreventParsing" content="TRUE">';
   nn+='<style type="text/css">';
   nn+=' BODY { background-image: url(' + imageDir + '75.gif); margin: 0; }';
   nn+=' .descriptive { font-family: "Trebuchet MS", sans-serif; font-size: 24px; font-weight: bold; text-align: center; color: #804000; }';
   if (description.indexOf('<h6>')>0) { nn+=' h6 { font-family: Verdana, Arial, sans-serif; font-size: 12pt; font-weight: bold; text-align: justify; color: #804000; margin: 4px 30px 0; }'; }
   if (description.indexOf('class="CFj"')>0) { nn+=' .CFj { font-family: Verdana, Arial, sans-serif; font-size: 12pt; font-weight: bold; text-align: justify; color: #804000; margin: 4px 30px 0; }'; }
   if (description.indexOf('class="CFc"')>0) { nn+=' .CFc { font-family: Verdana, Arial, sans-serif; font-size: 12pt; font-weight: bold; text-align: center; color: #804000; margin: 0 0 0; }'; }
   nn+='</style></head><body>';
   nn+='<script type="text/javascript">window.defaultStatus="' + sbNarrative + '"</script>'
   nn+='<center><table border="0" cellpadding=0 cellspacing=0 align="center" width="100%">';
   nn+=' <tr>';
   nn+='  <td align="center"><a href="javascript:window.close()" onMouseOver="self.status=\'' + sbNarrative + '\'; return true" onMouseOut="self.status=\'\'; return true"><img src="' + filename + '" width=' + imageW + ' height=' + imageH + ' border="0" alt="" title=" Picture ' + winname + '&#13; Click to close window "></a></td>';
   nn+=' </tr>';
   nn+=' <tr valign="middle">';
   nn+='  <td height=50 class="descriptive">' + description + '</td>';
   nn+=' </tr>';
   nn+='</table></center></body></html>';
   window2=window.open("", "", "toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,copyhistory=no,left=0,top=0,width=" + (screen.availWidth-10) + ",height=" + (screen.availHeight-30));
   window2.document.open();
   window2.document.write(nn);
   window2.document.close();
   if (closeParent) { parent.window.close() };
   window2.focus()
}

function popUp(filename, winname, description, imageW, imageH) {
   bigURL="popBig('" + filename + "', '" + winname + "', '" + description + "', " + imageW + ", " + imageH + ", ";
   if (description.indexOf("|")>0) { var describe = description.split("|"); description=describe[0] }
   if (navigator.appName=="Opera" || document.layers) { eval(bigURL+"false)"); return } else { bigURL+= "true)" }
   winH=screen.availHeight-28;			// set popup window height to max available
   winW=screen.availWidth-9;			// set popup window width to max available
   imgH=winH-52;					// calculate maximum image height
   imgH=winH-56;					// calculate maximum image height
 
   if (window.navigator.userAgent.indexOf("MSIE 7") != -1) {imgH-=50}  // allow for origin bar and mandatory status bar in IE7
   else if (window.navigator.userAgent.indexOf("SV1") != -1) {imgH-=25}  // allow for mandatory status bar in IE6 on XP with SP2
   else if (navigator.userAgent.toLowerCase().indexOf('firefox')!=-1) {imgH-=25}   // depth allowance for Firefox status bar
   else {};

   imgW=parseInt(imageW*(imgH/imageH));		// calculate proportional image width
   if (imgW>(winW-8)) {				// if resulting image is too wide
      imgW=winW-8;				// reduce image width
      imgH=parseInt(imageH*(imgW/imageW));		// calculate proportional image height
   }
   if (imgW>imageW || imgH>imageH) { imgW=imageW; imgH=imageH }
   if (imageW>imgW || imageH>imgH) { altTitle=altBig } else { altTitle=altClose }
   nn="";
   nn+='<html><head><title>David Bradley Online Image Library - Picture ' + winname + '</title>';
   nn+='<meta http-equiv="imagetoolbar" content="no">';
   nn+='<meta name="MSSmartTagsPreventParsing" content="TRUE">';
   nn+='<style type="text/css">';
   nn+=' BODY { background-image: url(' + imageDir + '75.gif); margin: 0; }';
   nn+=' .descriptive { font-family: "Trebuchet MS", sans-serif; font-size: 24px; font-weight: bold; text-align: center; color: #804000; }';
   nn+=' .click { font-family: Arial, sans-serif; font-size: 11px; font-weight: normal; text-align: left; color: #000000; }';
   nn+='</style></head><body><center>';
   nn+='<script type="text/javascript" src="' + myName + '"></script>';
   nn+='<script type="text/javascript">window.defaultStatus="' + sbNarrative + '"</script>'
   nn+='<table border="0" cellpadding=0 cellspacing=0 align="center" width=' + (winW-14) + '>';
   nn+=' <tr>';
   nn+='  <td height=' + imgH + ' colspan=2 align="center"><a href="javascript:window.close()" onMouseOver="self.status=\'' + sbNarrative + '\'; return true" onMouseOut="self.status=\'\'; return true"><img src="' + filename + '" width=' + imgW + ' height=' + imgH + ' border="0" alt="" title=" Picture ' + winname + ' &#13;' + altTitle + '"></a></td>';
   nn+=' </tr>';
   nn+=' <tr valign="bottom">';
   nn+='  <td width=' + (winW-214) + ' height=40 class="descriptive">' + description + '</td>';
   nn+='  <td width=200 class="click">Click on the image to close this window';
   if (imageW>imgW || imageH>imgH) { nn+='<br><a href="javascript:' + bigURL + '"  onMouseOver="self.status=\'' + sbNarrative + '\'; return true" onMouseOut="self.status=\'\'; return true"><img src="' + imageDir + 'redsq.gif" width=9 height=9 border=0 alt=""></a> &nbsp; See image at maximum resolution' }
   nn+='</td>';
   nn+=' </tr>';
   nn+='</table></center></body></html>';
   window1=window.open('', '', "toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,copyhistory=no,left=0,top=0,width=" + winW + ",height=" + winH);
   window1.document.open();
   window1.document.write(nn);
   window1.document.close();
   window1.focus()
}

function lastMod() {
  var x = new Date (document.lastModified);
  Modif = new Date(x.toGMTString());
  Year = takeYear(Modif);
  Month = Modif.getMonth();
  Day = Modif.getDate();
  Mod = (Date.UTC(Year,Month,Day,0,0,0))/86400000;
  x = new Date();
  today = new Date(x.toGMTString());
  Year2 = takeYear(today);
  Month2 = today.getMonth();
  Day2 = today.getDate();
  now = (Date.UTC(Year2,Month2,Day2,0,0,0))/86400000;
  daysago = now - Mod;
  if (daysago < 0) return '';
  unit = 'days';
  if (daysago > 730)
  {
  daysago = Math.round(daysago/365);
  unit = 'years';
  }
  else if (daysago > 60)
  {
  daysago = Math.round(daysago/30);
  unit = 'months';
  }
  else if (daysago > 14)
  {
  daysago = Math.round(daysago/7);
  unit = 'weeks'
  }
  towrite = '<br>Last updated ';
  if (daysago == 0) towrite += 'today';
  else if (daysago == 1) towrite += 'yesterday';
  else towrite += daysago + ' ' + unit + ' ago';
  towrite += '. &copy; ' + Year + ' David Bradley';
  return towrite;
}

function lastMod2() {
  var x = new Date (document.lastModified);
  Modif = new Date(x.toGMTString());
  Year = takeYear(Modif);
  Month = Modif.getMonth();
  Day = Modif.getDate();
  Mod = (Date.UTC(Year,Month,Day,0,0,0))/86400000;
  x = new Date();
  today = new Date(x.toGMTString());
  Year2 = takeYear(today);
  Month2 = today.getMonth();
  Day2 = today.getDate();
  now = (Date.UTC(Year2,Month2,Day2,0,0,0))/86400000;
  daysago = now - Mod;
  if (daysago < 0) return '';
  unit = 'days';
  if (daysago > 730)
  {
  daysago = Math.round(daysago/365);
  unit = 'years';
  }
  else if (daysago > 60)
  {
  daysago = Math.round(daysago/30);
  unit = 'months';
  }
  else if (daysago > 14)
  {
  daysago = Math.round(daysago/7);
  unit = 'weeks'
  }
  towrite = 'last updated ';
  if (daysago == 0) towrite += 'today';
  else if (daysago == 1) towrite += 'yesterday';
  else towrite += daysago + ' ' + unit + ' ago';
  return towrite;
}

function takeYear(theDate) {
  y = theDate.getYear();
  y += (y < 1900) ? 1900 : 0;
  return y;
}

function popUpold(filename, winname, description, width) {
   nn="";
   nn+='<html><head><title>David Bradley Online Image Library - Picture '+ winname + '</title>';
   nn+='<meta http-equiv="imagetoolbar" content="no">';
   nn+='<meta name="MSSmartTagsPreventParsing" content="TRUE">';
   nn+='</head>';
   nn+='<body background="' + imageDir + '75.gif" topmargin=5 leftmargin=2 rightmargin=2 marginheight=5 marginwidth=2>';
   nn+='<a href="javascript:window.close()"><img src="' + filename + '" border=0 alt=" Click to close window "></a>';
   nn+='<center><font color="#804000" size=5 face="Trebuchet MS">';
   nn+='<p><b>' + description + '</b></p><p>&nbsp;</p></font></center>';
   nn+='</body></html>';
   window2 = window.open("", "", "toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,copyhistory=no,left=0,top=0,width="+ width);
   window2.document.open();
   window2.document.write(nn);
   window2.document.close();
   window2.focus()
}

function changePage() { 
	eval("document.location.href='http://www.cyberpictures.net/" + document.input.folder.value + "/'"); 
}

function post() {
   msg=window.open("","msg","height=" + (screen.availHeight-40) + ",width=593,left=0,top=0,scrollbars=yes");
   msg.document.open();
   msg.document.write("<html><head><title>David Bradley Online - Closure Notice</title></head>");
   msg.document.write("<body bgcolor=black>");
   msg.document.write("<a href='javascript:window.close()'><img src='images/LastDayNotice.jpg' border=0 width=556 height=764 alt=' Click to Close '></a>");
   msg.document.write("<br><br><font size=2 face='Comic Sans MS'><b><font color=white>Poster #4 - Closure Notice.");
   msg.document.write("<br>Image can be printed by pressing Control-P. &nbsp; Kill");
   msg.document.write(" window by clicking on the image.<br><font size='1'>");
   msg.document.write("Image supplied by Bruce Varney [bruce.varney@ntlworld.com].");
   msg.document.write("</font></b></font>");
   msg.document.write("</body></html>");
   msg.document.close();
}

function drg1() {
msg=window.open("","msg","height=430,width=818,left=5,top=5,scrollbars=no");
msg.document.open();
msg.document.write("<html><head><title>David Bradley Online - 654 Route Map</title><link rel='stylesheet' type='text/css' href='online.css'></head>");
msg.document.write("<body  background='images/75.gif' onclick='window.close()'>");
msg.document.write("<img src='fullsize/wilsher/654.jpg' border='1' width='800' height='300' alt='Click to Close'>");
msg.document.write("<p class='narrative'><font color='#008000'>Image DW1</font><br>");
msg.document.write("Diagramatic Map of Route 654. &nbsp; Map can be printed by pressing Control-P. &nbsp; Kill");
msg.document.write(" window by clicking on image.<br>");
msg.document.write("This Map has been especially created for &quot;David Bradley Online&quot; by Dave Wilsher. &copy; 2006. All Rights Reserved.</p>");
msg.document.write("</body></html>");
msg.document.close();
}

function drg2() {
msg=window.open("","msg","height=417,width=840,left=5,top=5,scrollbars=yes");
msg.document.open();
msg.document.write("<html><head><title>David Bradley Online - System Map</title><link rel='stylesheet' type='text/css' href='online.css'></head>");
msg.document.write("<body  background='images/75.gif' onclick='window.close()'>");
msg.document.write("<img src='fullsize/wilsher/696-8.jpg' border='1' width='800' height='300' alt='Click to Close'>");
msg.document.write("<p class='narrative'><font color='#008000'>Image DW2</font><br>");
msg.document.write("Diagramatic Map of Routes 696 &amp; 698. &nbsp; Map can be printed by pressing Control-P. &nbsp; Kill");
msg.document.write(" window by clicking on the image.<br>");
msg.document.write("This Map has been especially created for &quot;David Bradley Online&quot; by Dave Wilsher. &copy; 2006. All Rights Reserved.</p>");
msg.document.write("<p><font face='Trebuchet MS' size='4' color='red'><b>");
msg.document.write("Please note:</b></font></p>");
msg.document.write("<p class='narrative'>This map has been prepared to give site visitors, unfamiliar with the Woolwich area, an insight to the");
msg.document.write(" locations served by trolleybus routes in this area of London. The overhead wiring was isolated from the rest of the");
msg.document.write(" London system, with the war years being the peak of services operated.<br><br>");
msg.document.write("There is no suggestion that a map of this kind would ever have been produced in 1943, indeed, at the time stop names");
msg.document.write(" and roadside maps were removed. The names of bus garages and trolleybus depots were covered as were the names");
msg.document.write(" of railway stations. In clubs and hotels, any framed tram or bus maps were removed wioth maybe the odd one or two");
msg.document.write(" escaping attention. So, any thoughts of printing and issuing a map similar to this one would have been");
msg.document.write(" dismissed without further thought.<br><br>");
msg.document.write("The south east coastal zone was declared a restricted zone, into which only permit holders were allowed. This");
msg.document.write(" included London Transport's operating area in east of a north-south line through Crayford and Swanley, bringing");
msg.document.write(" both central buses and trolleybuses into the war zone. All buses and trolleybuses were stopped at the Control");
msg.document.write(" Point at Princess Road, Crayford while police checked the papers of all passengers, without which the journey could not");
msg.document.write(" be continued. These controls continued until the end of the war.</p><p>&nbsp;</p>");
msg.document.write("</body></html>");
msg.document.close();
}

function drg8() {
msg=window.open("","maid",'width=825,height=510,left=50,top=50,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,copyhistory=no');
msg.document.open();
msg.document.write("<html><head><title>David Bradley Online - Maidstone System Map</title></head>");
msg.document.write("<body  background='images/75.gif' onclick='window.close()'>");
msg.document.write("<img src='fullsize/wilsher/maidstone.jpg' border=1 width=800 height=400 alt='Click to Close'>");
msg.document.write("<br><br><font size=2 face='Comic Sans MS'><b><font color=#008000>Image DW5</font><br>");
msg.document.write("Maidstone System Map. &nbsp; Map can be printed by pressing Control-P. &nbsp; Kill");
msg.document.write(" window by clicking on image.<br>");
msg.document.write("This Map has been especially created for &quot;David Bradley Online&quot; by Dave Wilsher. &copy; 2006. All Rights Reserved.");
msg.document.write("</b></font>");
msg.document.write("</body></html>");
msg.document.close();
}

function drg69() {
msg=window.open("","msg","height=430,width=841,left=5,top=5,scrollbars=yes");
msg.document.open();
msg.document.write("<html><head><title>David Bradley Online - 691/693 Route Map</title><link rel='stylesheet' type='text/css' href='online.css'></head>");
msg.document.write("<body  background='images/75.gif' onclick='window.close()'>");
msg.document.write("<img src='fullsize/wilsher/691-693.jpg' border='1' width='800' height='300' alt='Click to Close'>");
msg.document.write("<p class='narrative'><font color='#008000'>Image DW69</font><br>");
msg.document.write("Diagramatic Map of Routes 691 and 693. &nbsp; Map can be printed by pressing Control-P. &nbsp; Kill");
msg.document.write(" window by clicking on image.<br>");
msg.document.write("This Map has been especially created for &quot;David Bradley Online&quot; by Dave Wilsher. &copy; 2006. All Rights Reserved.<br><br>");
msg.document.write("<font color='#FF8080'>From: &quot;Liz James&quot; &lt;lizjames&#064;smartchat.net.au&gt;</font><br>");
msg.document.write("F A N T A S T I C<br>");
msg.document.write("Found memories of the 40's and 50's.<br>The schematic map is brilliant - some thing I was working on but not as good as the one here.<br>");
msg.document.write("However, the map does't indicate the &quot;short turn&quot; at the &quot;Horns&quot; for the 691.<br><br>");
msg.document.write("<font color='#FF8080'>Comment by David Bradley</font><br>");
msg.document.write("This detail, and also the Ilford depot, will be added shortly.</p>");
msg.document.write("</body></html>");
msg.document.close();
}

function stop() {
msg=window.open("","msg","height=400,width=265,left=160,top=55,scrollbars=no");
msg.document.open();
msg.document.write("<html><head><title>David Bradley Online - Bus Stop</title></head>");
msg.document.write("<body  background='images/75.gif' onclick='window.close()'>");
msg.document.write("<img src='fullsize/wilsher/busstopsutton.jpg' border='0' width=245 height=300 alt='Click to Close'>");
msg.document.write("<br><br><font size=2 face='Comic Sans MS'><b><font color=#008000>Image DW5</font><br>");
msg.document.write("Bus Stop Sign at Sutton Terminus<br>");
msg.document.write("[Kill window by clicking on image]");
msg.document.write("</b></font>");
msg.document.write("</body></html>");
msg.document.close();
}

function timetable() {
msg=window.open("","msg","height=635,width=918,left=0,top=0,scrollbars=no");
msg.document.open();
msg.document.write("<html><head><title>David Bradley Online - 654 Timetable, c1951</title></head>");
msg.document.write("<body  background='images/75.gif' onclick='window.close()'>");
msg.document.write("<img src='images/timetable-654.jpg' border='0' width=900 height=558 alt='Click to Close'>");
msg.document.write("<br><br><font size=2 face='Comic Sans MS'><b><font color=#008000>Image from Chris Cook collection</font><br>");
msg.document.write("From the Sutton &amp; Wallington Local Bus and Train Guide, March 1951 &nbsp; -");
msg.document.write(" [Kill window by clicking on image]");
msg.document.write("</b></font>");
msg.document.write("</body></html>");
msg.document.close();
}

function blind() {
msg=window.open("","msg","height=500,width=350,left=30,top=30,scrollbars=yes");
msg.document.open();
msg.document.write("<html><head><title>David Bradley Online - 654 Route Blind</title>");
msg.document.write("<style type='text/css'>");
msg.document.write("body {");
msg.document.write("	scrollbar-arrow-color:WHITE;");
msg.document.write("	scrollbar-track-color:#D6D6D6;");
msg.document.write("	scrollbar-shadow-color:#D6D6D6;");
msg.document.write("	scrollbar-face-color:red;");
msg.document.write("	scrollbar-highlight-color:#D6D6D6;");
msg.document.write("	scrollbar-darkshadow-color:#135184;");
msg.document.write("	scrollbar-3dlight-color:#135184;");
msg.document.write(" }");
msg.document.write("</style></head>");
msg.document.write("<body  background='images/75.gif' onclick='window.close()'><CENTER>");
msg.document.write("<TABLE width=300 bgColor=black border='0'><TR>");
msg.document.write("<TD align=center><IMG src='654-blind-images/Private.jpg'");
msg.document.write("      border='0'><BR><IMG src='654-blind-images/Crystal-Palace.jpg'");
msg.document.write("      border='0'><BR><IMG src='654-blind-images/Sutton.jpg'");
msg.document.write("      border='0'><BR><IMG src='654-blind-images/West-Croydon.jpg'");
msg.document.write("      border='0'><BR><IMG src='654-blind-images/Sutton-Cro.jpg'");
msg.document.write("      border='0'><BR><IMG src='654-blind-images/Depot.jpg'");
msg.document.write("      border='0'><BR><IMG src='654-blind-images/Crystal-Palace-Cro.jpg'");
msg.document.write("      border='0'><BR><IMG src='654-blind-images/West-Croydon-Palace.jpg'");
msg.document.write("      border='0'><BR><IMG src='654-blind-images/Anerly.jpg'");
msg.document.write("      border='0'><BR><IMG src='654-blind-images/Carshalton.jpg'");
msg.document.write("      border='0'><BR><IMG src='654-blind-images/Waddon.jpg' border='0'>");
msg.document.write("</TD></TR></TABLE><br>");
msg.document.write("<font size=2 face='Comic Sans MS'><font size=4 color=#008000>654 route blind fitted front and rear</font>");
msg.document.write("<p align=justify>Charlton produced linen based blinds with a typeface inherited from the LCC. With the");
msg.document.write(" demise of Charlton Works, following the abandonment of the tram network, blinds were");
msg.document.write(" then issued from Aldenham on a paper base with the much acclaimed Johnson font. There");
msg.document.write(" appears to be no Microsoft equivalent font available, so the closest match has been used");
msg.document.write(" in this computer generated display.</p>[Kill window by clicking on image]</font>");
msg.document.write("</CENTER></body></html>");
msg.document.close();
}

function blind2() {
msg=window.open("","msg","height=500,width=460,left=30,top=30,scrollbars=yes");
msg.document.open();
msg.document.write("<html><head><title>David Bradley Online - Tramlink Route Blind</title>");
msg.document.write("<style type='text/css'>");
msg.document.write("body {");
msg.document.write("	scrollbar-arrow-color:WHITE;");
msg.document.write("	scrollbar-track-color:#D6D6D6;");
msg.document.write("	scrollbar-shadow-color:#D6D6D6;");
msg.document.write("	scrollbar-face-color:#339966;");
msg.document.write("	scrollbar-highlight-color:#D6D6D6;");
msg.document.write("	scrollbar-darkshadow-color:#135184;");
msg.document.write("	scrollbar-3dlight-color:#135184;");
msg.document.write(" }");
msg.document.write("</style></head>");
msg.document.write("<body  background='images/75.gif' onclick='window.close()'><CENTER>");
msg.document.write("<TABLE width=300 bgColor=#F8F8F8 border='0'><TR>");
msg.document.write("<TD align=center><IMG src='images/space.gif' height=85 width=400 alt=' Use the elevator bar to wind the blind '><br>");
msg.document.write("      <IMG src='tramlink-blind-images/01.gif'");
msg.document.write("      border='0'><BR><IMG src='tramlink-blind-images/02.gif'");
msg.document.write("      border='0'><BR><IMG src='tramlink-blind-images/03.gif'");
msg.document.write("      border='0'><BR><IMG src='tramlink-blind-images/04.gif'");
msg.document.write("      border='0'><BR><IMG src='tramlink-blind-images/05.gif'");
msg.document.write("      border='0'><BR><IMG src='tramlink-blind-images/06.gif'");
msg.document.write("      border='0'><BR><IMG src='tramlink-blind-images/07.gif'");
msg.document.write("      border='0'><BR><IMG src='tramlink-blind-images/08.gif'");
msg.document.write("      border='0'><BR><IMG src='tramlink-blind-images/09.gif'");
msg.document.write("      border='0'><BR><IMG src='tramlink-blind-images/10.gif'");
msg.document.write("      border='0'><BR><IMG src='tramlink-blind-images/11.gif'");
msg.document.write("      border='0'><BR><IMG src='tramlink-blind-images/12.gif'");
msg.document.write("      border='0'><BR><IMG src='tramlink-blind-images/13.gif'");
msg.document.write("      border='0'><BR><IMG src='tramlink-blind-images/14.gif'");
msg.document.write("      border='0'><BR><IMG src='tramlink-blind-images/15.gif'");
msg.document.write("      border='0'><BR><IMG src='tramlink-blind-images/16.gif'");
msg.document.write("      border='0'><BR><IMG src='tramlink-blind-images/17.gif'");
msg.document.write("      border='0'><BR><IMG src='tramlink-blind-images/01.gif'");
msg.document.write("      border='0'><BR><IMG src='tramlink-blind-images/19.gif'");
msg.document.write("      border='0'><BR><IMG src='tramlink-blind-images/20.gif'");
msg.document.write("      border='0'><BR><IMG src='tramlink-blind-images/21.gif'");
msg.document.write("      border='0'><BR><IMG src='tramlink-blind-images/22.gif'");
msg.document.write("      border='0'><BR><IMG src='tramlink-blind-images/23.gif'");
msg.document.write("      border='0'><BR><IMG src='tramlink-blind-images/24.gif'");
msg.document.write("      border='0'><BR><IMG src='tramlink-blind-images/25.gif'");
msg.document.write("      border='0'><BR><IMG src='tramlink-blind-images/26.gif'");
msg.document.write("      border='0'><BR><IMG src='tramlink-blind-images/27.gif'");
msg.document.write("      border='0'><BR><IMG src='tramlink-blind-images/28.gif'");
msg.document.write("      border='0'><BR><IMG src='tramlink-blind-images/29.gif'");
msg.document.write("      border='0'><BR><IMG src='tramlink-blind-images/01.gif'");
msg.document.write("      border='0'><BR><IMG src='tramlink-blind-images/31.gif'");
msg.document.write("      border='0'><BR><IMG src='tramlink-blind-images/32.gif'");
msg.document.write("      border='0'><BR><IMG src='tramlink-blind-images/33.gif'");
msg.document.write("      border='0'><BR><IMG src='tramlink-blind-images/34.gif'");
msg.document.write("      border='0'><BR><IMG src='tramlink-blind-images/35.gif'");
msg.document.write("      border='0'><BR><IMG src='tramlink-blind-images/36.gif'");
msg.document.write("      border='0'><BR><IMG src='tramlink-blind-images/37.gif'");
msg.document.write("      border='0'><BR><IMG src='tramlink-blind-images/38.gif'");
msg.document.write("      border='0'><BR><IMG src='tramlink-blind-images/39.gif'");
msg.document.write("      border='0'><BR><IMG src='tramlink-blind-images/40.gif'");
msg.document.write("      border='0'><BR><IMG src='tramlink-blind-images/01.gif'");
msg.document.write("      border='0'><BR><IMG src='tramlink-blind-images/42.gif'");
msg.document.write("      border='0'><BR><IMG src='tramlink-blind-images/43.gif'");
msg.document.write("      border='0'><br><br><br><br><br><br>");
msg.document.write("</TD></TR></TABLE><br>");
msg.document.write("<font size=2 face='Comic Sans MS'><font size=4 color=#008000>Tramlink Route Blind</font><br><br>");
msg.document.write("</b>[Kill window by clicking on image]</font>");
msg.document.write("</CENTER></body></html>");
msg.document.close();
}

function checkEmailAddress(field) {
// the following expression must be all on one line...
var goodEmail = field.value.match(/\b(^(\S+@).+((\.com)|(\.net)|(\.edu)|(\.mil)|(\.gov)|(\.org)|(\..{2,2}))$)\b/gi);
if (goodEmail) {
good = true;
}
else {
alert('Please enter a valid e-mail address.');
field.focus();
field.select();
good = false;
   }
}
u = window.location;
s="  "
m = "David Bradley Online";
function mailThisUrl() {
good = false
checkEmailAddress(document.eMailer.address);
if (good) {
// the following expression must be all on one line...
window.location = "mailto:"+document.eMailer.address.value+"?subject="+m+"&body="+"I think you will be interested in this web page showing scenes of trolleybuses on route 630: http://www.trolleybus.net/654.htm"+"   "+s;
   }
}

function emailPage(){
zxcv = document.title .substring (22 ,99)
document.location = 'mailto:?subject=[DBOL] ' + zxcv + '&bcc=reception@cyberpictures.net&body=Hello, %0D%0DI found this page on ' + document.title + ' - and thought it would be of interest to you: ' + document.location + ' %0D%0DThe site is a collection of images of historical transport scenes, mainly of trolleybuses in the Croydon Area. The home page can be found at http://www.trolleybus.net %0D%0DBye for now.';
   }

function pagebase() {
rdbol = document.title .substring (22 ,99)
   nn=""
   nn+='<br><center>';
   nn+='<p class="mailme">';
   nn+=document.title;
   nn+='<br>If you wish to comment on the content of this page please <a href="mailto:' + ePost + '?Subject=[DBOL]' + rdbol + '">email</a> me';
   nn+='<br>Site visitors input is always appreciated<br>';
   nn+='<a href="http://validator.w3.org/check/referer" target="_w3c" onmouseover="self.status=\'This WEB page has been designed to work under all operating sytems and with all WEB Browsers\'; return true" onmouseout="self.status=\'\'; return true"><img src="logos/w3c-401.gif" alt=" An interoperable WEB page with valid HTML 4.01 " border="0" height="31" width="93" vspace="3"></a>';
   nn+='<a href="http://jigsaw.w3.org/css-validator/check/referer" target="_w3c" onmouseover="self.status=\'Valid CSS\'; return true" onmouseout="self.status=\'\'; return true"><img src="logos/w3c-css.gif" alt=" Valid CSS " border="0" height="31" width="93" vspace="3"></a>';
   nn+='<a href="http://www.anybrowser.org/campaign/index.html" target="_new" onmouseover="self.status=\'Viewable With Any Browser\'; return true" onmouseout="self.status=\'\'; return true"><img src="logos/anybrowser.jpg" alt=" Viewable With Any Browser " border="0" height="32" width="96" vspace="3" hspace="10"></a>';
   nn+='<a href="javascript:emailPage()" onmouseover="self.status=\'Have a nice day\'; return true" onmouseout="self.status=\'\'; return true"><img src="images/tell-a-friend.gif" alt=" Feature sends an email to your friend " border="0" height="32" width="130" vspace="3" hspace="1"></a>';
   nn+='</p></center><br>';
   nn+='<p class="logo">';
   nn+='<a href="http://www.trolleybus.net" target="_new"><img src="images/pagelogo.gif" align="left" border="0" height="90" width="105" alt="David Bradley Online - Site Logo   http://www.trolleybus.net"></a><br>';
   nn+='This page is part of David Bradley Online<br>To reach the home page click on the adjacent logo<br>';
   nn+='Page URL: ' + location.toString();
   nn+=lastMod();
   nn+='</p><br><br>';
   return nn;
}

function pagebaseFont() {
   nn=""
   nn+='<br><center>';
   nn+='<p>';
   nn+=document.title;
   nn+=' <br>If you wish to provide further background information please <a href="mailto:' + ePost + '?Subject=' + document.title + '">email</a> me';
   nn+=' <br>Site visitors input is always appreciated';
   nn+='</b></font></p>';
   nn+='</center></b></font><br>';
   nn+='<p><font color="#000040" face=Arial size="2">';
   nn+=' <a href="http://www.trolleybus.net" target="_new"><img src="images/pagelogo.gif" align=left border="0" height=90 width=105 alt="David Bradley Online - Site Logo   http://www.trolleybus.net"></a><br>';
   nn+=' This page is part of David Bradley Online<br>To reach the home page click on the adjacent logo<br>';
   nn+=' Page URL: ' + location.toString();
   nn+=lastMod();
   nn+='</font></p><br><br><br><br>';
   return nn;
}

function laa() {
msg=window.open("","msg","height=475,width=725,left=0,top=0,scrollbars=no");
msg.document.open();
msg.document.write("<html><head><title>David Bradley Online - Appeal for Funds for #1348</title>");
msg.document.write("</head>");
msg.document.write("<body background='images/75.gif' title=' Special Message '>");
msg.document.write("<img align=left src='fullsize/taylor/appeal.jpg' vspace=8 width=280 height=203 alt=' Click to close panel '>");
msg.document.write("<img align=left src='images/space.gif' width=10 height=475>");
msg.document.write("<b><font size=4 color=red face='Trebuchet MS'><p>Preservation Fund Appeal</p></font></b>");
msg.document.write("<font face='Trebuchet MS' size=3 color=#000040>");
msg.document.write("<p>Yes, I wish to make a contribution to the preservation fund to restore London Trolleybus");
msg.document.write(" #1348 back to running order.<br><br>");
msg.document.write("This Lea Bridge based trolleybus was always well kept and it will be nice to see her");
msg.document.write(" brought back to her former glory at Sandtoft in the near future.<br><br>");
msg.document.write("My donation is for £ <input type='text' name='money' size=12>&nbsp;<br>");
msg.document.write("Please send an acknowledgement to my email address:<br>");
msg.document.write("<input type='text' name='address' size=52>&nbsp;<br>");
msg.document.write("Type in the information requested then print this form to send with your cheque to:<br><center>");
msg.document.write("<br><font color=#008000><b>Sandtoft Transport Centre Ltd, Belton Road, Sandtoft, Doncaster, DN8 5SX.</b></font><br><br>");
msg.document.write("<form><input type='button' value=' Print Window ' onclick='window.print(); return true' style='background-color: red; color: #FFFFFF; font-family: Verdana; font-size: 10pt; font-weight: bold; border: 1px outset #FFFFCC'>");
msg.document.write(" &nbsp; &nbsp; &nbsp; ");
msg.document.write("<input type='button' value=' Close Window ' onclick='window.close();' style='background-color: red; color: #FFFFFF; font-family: Verdana; font-size: 10pt; font-weight: bold; border: 1px outset #FFFFCC'></form>");
msg.document.write("</center></p></font>");
msg.document.write("<a href='javascript:printWindow()'>Print This Page</a>");
msg.document.write("</body></html>");
msg.document.close();
}

function sitelogo() {
msg=window.open("","msg","height=280,width=280,left=160,top=55,scrollbars=no");
msg.document.open();
msg.document.write("<html><head><title>David Bradley Online - Site Logo</title></head>");
msg.document.write("<body background='images/75.gif''><center>");
msg.document.write("<img src='images/image10.gif' width=145 height=145 alt=' David Bradley Online '>");
msg.document.write("<br><br><font face='Trebuchet MS' size=2 color=#000040><b>David Bradley Online</b></font><br><br><br>");
msg.document.write("<form><input type='button' value=' Close Window ' onclick='window.close();' style='background-color: red; color: #FFFFFF; font-family: Verdana; font-size: 10pt; font-weight: bold; border: 1px outset #FFFFCC'></form>");
msg.document.write("</body></html>");
msg.document.close();
}

function eLink( text, who, where, why) {
   nn="";
   nn+='<a href="mailto:' + who + '@' + where;
   if (why!="" && why!=null) { nn+='?Subject=' + why }
   nn+='">' + text + '</a>';
   return nn;
}

function meLink( text, subject) {
   nn="";
   nn+='<a href="mailto:' + ePost;
   if (subject!="" && subject!=null) { nn+='?Subject=' + subject }
   nn+='">' + text + '</a>';
   return nn;
}

function dateNarrative() {
   var xx="th"
   mydate = new Date();
   myday = mydate.getDay();
   myweekday= mydate.getDate();
   mymonth = mydate.getMonth();
   year = mydate.getYear();
   year+=(year<1900) ? 1900 : 0;
   if (myweekday==1 || myweekday==21 || myweekday==31) { xx="st" }
   if (myweekday==2 || myweekday==22) { xx="nd" }
   if (myweekday==3 || myweekday==23) { xx="rd" }
   arday = new Array("Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday")
   armonth = new Array("January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December")
   return arday[myday] + ", " + myweekday + xx + " " + armonth[mymonth] + " " + year;
}

function display_time_in_status_line(  )
{
 var d = new Date(  );
   // Get the current time
 var h = d.getHours(  );
   // Extract hours: 0 to 23
 var m = d.getMinutes(  );
   // Extract minutes: 0 to 59
 var ampm = (h >= 12)?"pm":"am";
   // Is it a.m. or p.m.?
 if (h > 12) h -= 12;
   // Convert 24-hour format to 12-hour
 if (h == 0) h = 12;
   // Convert 0 o'clock to midnight
 if (m < 10) m = "0" + m;
   // Convert 0 minutes to 00 minutes, etc.
 var t = 'Places to go, things to see.  The time is now:  ' + h + ':' + m + ' ' + ampm;
   // Put it all together

    defaultStatus = t;
      // Display it in the status line

    // Arrange to do it all again in one minute
    setTimeout("display_time_in_status_line(  )", 60000);
      // 60000 ms is one minute
}

function mchg(page){
     var NavWin=window.open(page,"dcb4",'width=390,height=295,left=150,top=125,scrollbars=yes,toolbar=no,location=no,directories=no,status=yes,menubar=no,resizable=yes,copyhistory=no');
}

function refused(page){
     var NavWin=window.open(page,"refused",'width=500,height=275,left=110,top=110,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,copyhistory=no');
}

function javahere() {
   if (navigator.javaEnabled()) {
      return 1
  } else {
      return 2
  }
}

function verFlash(vHi) {
      if (navigator.appName.indexOf('Microsoft') >=0) {
         for (fv=vHi; fv>0; fv--) {
            if (eval("activeXDetect('ShockwaveFlash.ShockwaveFlash."+fv+"')")) return fv
         }
      } else {
         for (pn=0; pn<navigator.plugins.length; pn++) {
            if (navigator.plugins[pn].name.indexOf('Flash')>=0) {
               for (fv=vHi; fv>0; fv--) {
                  if (navigator.plugins[pn].description.indexOf(fv+'.')>=0) return fv
               }
            }
         }
      }
      return '0';
}


function accessmap() {
var agt=navigator.userAgent.toLowerCase();
if (agt.indexOf("msie") != -1) return 'Local Area Map';
else return 'Feature not available';
}

function oldw3c() {
   var FlashVersion = verFlash(10);
   var jh = javahere()
   nn="";
   nn+='<p class="menu" style="margin: 15px 0 0"><script language="JavaScript" type="text/javascript">document.write(whichBrs())</script>, all pages on this site should render as intended if Flash Player and Java are available</p>';
   nn+='<p class="menu" style="margin: 3px 0 0">';
   nn+='<a href="http://www.java.com" target="_new"><img src="logos/get_java_blue-button.gif" border="0" width="88" hspace="3" height="31" alt=" Get Java " onmouseover="self.status=\'To display this site as intended, the Java 2 Runtime Environment is desirable. Free download available by clicking on the icon.\'; return true" onmouseout="self.status=\'\'; return true">';
   nn+='<a href="http://www.macromedia.com/go/getflashplayer/" target="_new"><img src="logos/get_flash_player.gif" border="0" width="88" height="31" hspace="8" alt=" Get Flash Player " onmouseover="self.status=\'To display this site as intended, Flash Player is required. Free download available by clicking on the icon.\'; return true" onmouseout="self.status=\'\'; return true">';
   nn+='<a href="http://validator.w3.org/check/referer" target="_w3c" onmouseover="self.status=\'This WEB page has been designed to work under all operating sytems and with all WEB Browsers\'; return true" onmouseout="self.status=\'\'; return true"><img src="logos/w3c-401.gif" alt=" An interoperable WEB page with valid HTML 4.01 " border="0" height="31" width="93"></a>';
   nn+='<a href="http://jigsaw.w3.org/css-validator/check/referer" target="_w3c" onmouseover="self.status=\'Valid CSS\'; return true" onmouseout="self.status=\'\'; return true"><img src="logos/w3c-css.gif" alt=" Valid CSS " border="0" height="31" width="93"></a>';
   nn+='<a href="http://www.anybrowser.org/campaign/index.html" target="_new" onmouseover="self.status=\'Viewable With Any Browser\'; return true" onmouseout="self.status=\'\'; return true"><img src="logos/anybrowser.jpg" alt=" Viewable With Any Browser " border="0" height="32" width="96" hspace="10"></a>';
   nn+='<br>';
   if (jh == 1) nn+= 'Java appears to be enabled &nbsp;- &nbsp;';
   else nn+= 'Some features on this site can not being shown as Java is not present or enabled. &nbsp; &nbsp;';
   if (FlashVersion == 0) nn+= 'This site requires Flash Player. &nbsp; Please download the software using the button above.';
   else nn+= 'Flash Player Version ' + FlashVersion + ' is probably present';
   nn+='<br>Page URL: &nbsp; ' + location.toString();
   nn+=lastMod();
   nn+='</p><p>&nbsp;</p>';
   return nn;
}

function w3cjavaout() {
   var FlashVersion = verFlash(10);
   var jh = javahere()
   nn="";
   nn+='<p class="menu" style="margin: 15px 0 0"><script language="JavaScript" type="text/javascript">document.write(whichBrs())</script>, all pages on this site should render as intended if Flash Player and Java are available<br>';
   if (jh == 1) nn+= 'Inspecting your system, Java appears to be enabled.';
   else nn+= 'Inspecting your system, it appears Java is not present or enabled so some features on this site are not available to you.<br>';
   if (FlashVersion == 0) nn+= 'This site requires Flash Player. &nbsp; Please download the software using the button above.';
   else nn+= ' &nbsp; Flash Player Version ' + FlashVersion + ' is probably present</p>';
   nn+='<p class="menu" style="margin: 3px 0 0">';
   nn+='<a href="http://www.java.com/en/download/index.jsp" target="_new"><img src="logos/get_java_blue-button.gif" border="0" width="88" hspace="3" height="31" alt=" Get Java " onmouseover="self.status=\'To display this site as intended, the Java 2 Runtime Environment is desirable. Free download available by clicking on the icon.\'; return true" onmouseout="self.status=\'\'; return true">';
   nn+='<a href="http://www.macromedia.com/go/getflashplayer/" target="_new"><img src="logos/get_flash_player.gif" border="0" width="88" height="31" hspace="8" alt=" Get Flash Player " onmouseover="self.status=\'To display this site as intended, Flash Player is required. Free download available by clicking on the icon.\'; return true" onmouseout="self.status=\'\'; return true">';
   nn+='<a href="http://validator.w3.org/check/referer" target="_w3c" onmouseover="self.status=\'This WEB page has been designed to work under all operating sytems and with all WEB Browsers\'; return true" onmouseout="self.status=\'\'; return true"><img src="logos/w3c-401.gif" alt=" An interoperable WEB page with valid HTML 4.01 " border="0" height="31" width="93"></a>';
   nn+='<a href="http://jigsaw.w3.org/css-validator/check/referer" target="_w3c" onmouseover="self.status=\'Valid CSS\'; return true" onmouseout="self.status=\'\'; return true"><img src="logos/w3c-css.gif" alt=" Valid CSS " border="0" height="31" width="93"></a>';
   nn+='<a href="http://www.anybrowser.org/campaign/index.html" target="_new" onmouseover="self.status=\'Viewable With Any Browser\'; return true" onmouseout="self.status=\'\'; return true"><img src="logos/anybrowser.jpg" alt=" Viewable With Any Browser " border="0" height="32" width="96" hspace="10"></a>';
   nn+='</p><p class="menu" style="margin: 3px 0 0">';
   nn+='Page URL: &nbsp; ' + location.toString();
   nn+=lastMod();
   nn+='</p>';
   return nn;
}

function whichBrs() {
var agt=navigator.userAgent.toLowerCase();
if (agt.indexOf("opera") != -1) return 'With Opera';
if (agt.indexOf("staroffice") != -1) return 'With Star Office';
if (agt.indexOf("beonex") != -1) return 'With Beonex';
if (agt.indexOf("chimera") != -1) return 'With Chimera';
if (agt.indexOf("netpositive") != -1) return 'With NetPositive';
if (agt.indexOf("phoenix") != -1) return 'With Phoenix';
if (agt.indexOf("safari") != -1) return 'With Safari';
if (agt.indexOf("skipstone") != -1) return 'With SkipStone';
if (agt.indexOf("msie") != -1) return 'With Internet Explorer';
if (agt.indexOf("netscape") != -1) return 'With Netscape';
if (agt.indexOf("mozilla/5.0") != -1) return 'With Mozilla';
if (agt.indexOf('\/') != -1) {
if (agt.substr(0,agt.indexOf('\/')) != 'mozilla') {
return navigator.userAgent.substr(0,agt.indexOf('\/'));}
else return 'Netscape';} else return navigator.userAgent.substr(0,agt.indexOf(' '));
}

function w3c() {
   var FlashVersion = verFlash(10);
   nn="";
   nn+='<p class="menu" style="margin: 15px 0 0"><script type="text/javascript">document.write(whichBrs())</script>, we need Flash Player for this web site.<br>';
   if (FlashVersion == 0) nn+= 'This site requires Flash Player. &nbsp; Please download this software using the link provided.';
   else nn+= ' &nbsp; Fortunately you have Flash Player Version ' + FlashVersion + ' loaded!</p>';
   nn+='<p class="menu" style="margin: 3px 0 0">';
   nn+='<a href="http://www.adobe.com/products/flashplayer/" target="_new"><img src="logos/get_flash_player.gif" border="0" width="88" height="31" hspace="8" alt=" Get Flash Player " onmouseover="self.status=\'To display this site as intended, Flash Player is required. Free download available by clicking on the icon.\'; return true" onmouseout="self.status=\'\'; return true">';
   nn+='<a href="http://validator.w3.org/check/referer" target="_w3c" onmouseover="self.status=\'This WEB page has been designed to work under all operating sytems and with all WEB Browsers\'; return true" onmouseout="self.status=\'\'; return true"><img src="logos/w3c-401.gif" alt=" An interoperable WEB page with valid HTML 4.01 " border="0" height="31" width="93"></a>';
   nn+='<a href="http://jigsaw.w3.org/css-validator/check/referer" target="_w3c" onmouseover="self.status=\'Valid CSS\'; return true" onmouseout="self.status=\'\'; return true"><img src="logos/w3c-css.gif" alt=" Valid CSS " border="0" height="31" width="93"></a>';
   nn+='<a href="http://www.anybrowser.org/campaign/index.html" target="_new" onmouseover="self.status=\'Viewable With Any Browser\'; return true" onmouseout="self.status=\'\'; return true"><img src="logos/anybrowser.jpg" alt=" Viewable With Any Browser " border="0" height="32" width="96" hspace="10"></a>';
   nn+='</p><p class="menu" style="margin: 3px 0 0">';
   nn+='Page URL: &nbsp; ' + location.toString();
   nn+=lastMod();
   nn+='</p>';
   return nn;
}

function footbasic() {
   nn="";
   nn+='<p class="menu" style="margin: 3px 0 0">';
   nn+='<a href="http://validator.w3.org/check/referer" target="_w3c" onmouseover="self.status=\'This WEB page has been designed to work under all operating sytems and with all WEB Browsers\'; return true" onmouseout="self.status=\'\'; return true"><img src="logos/w3c-401.gif" alt=" An interoperable WEB page with valid HTML 4.01 " border="0" height="31" width="93"></a>';
   nn+='<a href="http://jigsaw.w3.org/css-validator/check/referer" target="_w3c" onmouseover="self.status=\'Valid CSS\'; return true" onmouseout="self.status=\'\'; return true"><img src="logos/w3c-css.gif" alt=" Valid CSS " border="0" height="31" width="93"></a>';
   nn+='<a href="http://www.anybrowser.org/campaign/index.html" target="_new" onmouseover="self.status=\'Viewable With Any Browser\'; return true" onmouseout="self.status=\'\'; return true"><img src="logos/anybrowser.jpg" alt=" Viewable With Any Browser " border="0" height="32" width="96" hspace="10"></a>';
   nn+='</p></center><br>';
   nn+='<p class="logo">';
   nn+='<a href="http://www.trolleybus.net" target="_new"><img src="images/pagelogo.gif" align="left" border="0" height="90" width="105" alt="David Bradley Online - Site Logo   http://www.trolleybus.net"></a><br>';
   nn+='This page is part of David Bradley Online<br>To reach the home page click on the adjacent logo<br>';
   nn+='Page URL: ' + location.toString();
   nn+=lastMod();
   nn+='</p><br><br>';
   return nn;
}

function xxt() {
msg=window.open("","msg","height=400,width=500,left=85,top=55,scrollbars=1");
msg.document.open();
msg.document.write("<html><head><title>Destination of Exported Trolleybuses</title></head>");
msg.document.write("<body bgcolor='#008000' topmargin=5 leftmargin=5 marginheight=5 marginwidth=5 onclick='window.close()'>");
msg.document.write("<font color='#FFFFFF' size=2 face='Comic Sans MS'><font color='#FFFF00'>");
msg.document.write("<p>Extracted from<br>'A Trolley Retrieved', Mike Russell &amp; Francis Whitehead, Trolleybooks 1978</p></font>");
msg.document.write("<ul>");
msg.document.write("<li>1788 = allocated Pontevedra but became La Corunna #49</li>");
msg.document.write("<li>1789 = delivered Pontevedra, not used, later Vigo, then La Coruna #51</li>");
msg.document.write("<li>1791 = Pontevedra #102</li>");
msg.document.write("<li>1795 = allocated Pontevedra but became La Corunna #42</li>");
msg.document.write("<li>1797 = allocated Pontevedra but delivered Viga, not used</li>");
msg.document.write("<li>1798 = allocated Pontevedra but delivered Viga, not used</li>");
msg.document.write("<li>1799 = delivered Pontevedra, not used, topdeck removed</li>");
msg.document.write("<li>1801 = Pontevedra #105</li>");
msg.document.write("<li>1803 = allocated Pontevedra but became La Corunna #41</li>");
msg.document.write("<li>1804 = delivered Pontevedra, not used, topdeck removed</li>");
msg.document.write("<li>1806 = allocated Pontevedra but delivered Viga, not used</li>");
msg.document.write("<li>1811 = Pontevedra #103</li>");
msg.document.write("<li>1813 = allocated Pontevedra but delivered Viga, not used</li>");
msg.document.write("<li>1814 = allocated Pontevedra but delivered Viga, not used</li>");
msg.document.write("<li>1816 = Pontevedra #104</li>");
msg.document.write("<li>1820 = allocated Pontevedra but became La Corunna #35</li>");
msg.document.write("<li>1824 = Pontevedra #101</li>");
msg.document.write("<li>1826 = allocated Pontevedra but became La Corunna #36</li>");
msg.document.write("<li>1827 = allocated Pontevedra but delivered Viga, not used</li>");
msg.document.write("<li>1830 = allocated Pontevedra but delivered Viga, not used</li>");
msg.document.write("<li>1831 = allocated Pontevedra but delivered Viga, not used</li>");
msg.document.write("</ul>");
msg.document.write("<font color='#FFFF00'><p>This listing was created by Ashley Bruce</p></font>");
msg.document.write("</font></body></html>");
msg.document.close();
}

function post2() {
msg=window.open("","msg","height=580,width=593,left=85,top=55,scrollbars=no");
msg.document.open();
msg.document.write("<html><head><title>David Bradley Online - LCC E/1 Tram</title></head>");
msg.document.write("<body background='images/grnrock.gif' onclick='window.close()'><center>");
msg.document.write("<p><img src='fullsize/prints/18b.gif' border='0' width=331 height=219 alt='Click to Close'></p>");
msg.document.write("<font size='3' face='Comic Sans MS' color='#804000'><b>London County Council E/1 Car<br>");
msg.document.write("<font size='1' color='#000039'>Image can be printed by pressing Control-P. &nbsp; Kill");
msg.document.write(" window by clicking on the image.</font></b></font></center>");
msg.document.write("<font size='2' face='Comic Sans MS' color='#000039'><b>");
msg.document.write("<p align='justify'>For two decades the LCC tramway from London and the Croydon Corporation trams ");
msg.document.write("meet each other at Norbury where through passengers had to change trams; the rails of each system ");
msg.document.write("not actually joining at this location. However in 1925 the 'missing' piece of track was inserted ");
msg.document.write("making through services from the Embankment to Purley possible.<br><br> ");
msg.document.write("In February 1926 LCC #1763 was the first to enter onto Croydon's tracks inaugurating the 16/18 service ");
msg.document.write("which remained until these routes, together with local route 42, were abandoned in 1951.<br><br> ");
msg.document.write("The E/1 car was adopted as a standard bogie car design and over a 1,000 were built between 1907 and ");
msg.document.write("1926. This large fleet of cars was absorbed into London Transport's unified tram system in 1933 and ");
msg.document.write("many remained in service until the system closure in Junly 1952.<br><br> ");
msg.document.write("#1763 was one of the first trams to be scrapped at Penhall Road in 1950.");
msg.document.write("</p></b></font></body></html>");
msg.document.close();
}

function post3() {
msg=window.open("","msg","height=580,width=593,left=85,top=55,scrollbars=no");
msg.document.open();
msg.document.write("<html><head><title>David Bradley Online - The Original Subway Cars</title></head>");
msg.document.write("<body background='images/grnrock.gif' onclick='window.close()'><center>");
msg.document.write("<br><p><img src='fullsize/prints/lcc.gif' border='0' width=480 height=204 alt='Click to Close'></p>");
msg.document.write("<font size='3' face='Comic Sans MS' color='#804000'><b>London County Council Tramways Subway Car<br>");
msg.document.write("<font size='1' color='#000039'>Image can be printed by pressing Control-P. &nbsp; Kill");
msg.document.write(" window by clicking on the image.</font></b></font></center>");
msg.document.write("<font size='2' face='Comic Sans MS' color='#000039'><b>");
msg.document.write("<p align='justify'>In 1904 Sixteen cars [#552-#567 of class F] costing £750 each were available ");
msg.document.write("for the Kingsway Subway service but were complemented two years later by a further 34 cars ");
msg.document.write("[569-601 of class G]. The clerestory roof was fitted with a trolley plate on top, ");
msg.document.write("although the cars never actually carried a trolley pole as their working life was spent on ");
msg.document.write("conduit operation.<br><br>");
msg.document.write("Subway operation deemed that fire risks should be reduced by having underframes made of steel angle and channel sections ");
msg.document.write("with the body panels of sheet steel. The slatted longitudinal seats were of non-inflammable 'Pantasote' ");
msg.document.write("on angle stell supports. Even the roller-blinds were made of none-flammable material.<br><br> ");
msg.document.write("Effectively these cars saw almost half a century of service as their equipment was re-used ");
msg.document.write("on withdrawal for the batch of E/1 cars being built in the early 1930s.");
msg.document.write("</p></b></font></body></html>");
msg.document.close();
}

function imap1() {
 {
      var xpPop = window.createPopup();
      var xpPopBody = xpPop.document.body;
      xpPopBody.style.backgroundColor = "#008000";
      xpPopBody.style.border = "solid green 1px";
      xpPopBody.innerHTML = "<img src='images/bhs.jpg' alt='Local Area Map of Barkingside' hspace='1' vspace='1' border='0' width='323' height='241'><br><font face='Verdana' color='white' size='1'><center>Location Map for Picture RH3<br>Click outside this <b>popup</b> box to close it</center></font>";
      xpPop.show(0, 0, 327, 272, document.body);
   }
}

function imap2() {
 {
      var xpPop = window.createPopup();
      var xpPopBody = xpPop.document.body;
      xpPopBody.style.backgroundColor = "#008000";
      xpPopBody.style.border = "solid green 1px";
      xpPopBody.innerHTML = "<img src='images/sk.jpg' alt='Local Area Map of Seven Kings' hspace='1' vspace='1' border='0' width='320' height='321'><br><font face='Verdana' color='white' size='1'><center>Location Map for Picture RH11<br>Click outside this <b>popup</b> box to close it</center></font>";
      xpPop.show(0, 0, 324, 352, document.body);
   }
}

function imap3() {
 {
      var xpPop = window.createPopup();
      var xpPopBody = xpPop.document.body;
      xpPopBody.style.backgroundColor = "#008000";
      xpPopBody.style.border = "solid green 1px";
      xpPopBody.innerHTML = "<img src='images/ilford3.jpg' alt='Local Area Map of Ilford' hspace='1' vspace='1' border='0' width='305' height='370'><br><font face='Verdana' color='white' size='1'><center>Location Map for Pictures RH12 &amp; RH13<br>Click outside this <b>popup</b> box to close it</center></font>";
      xpPop.show(0, 0, 309, 401, document.body);
   }
}

function imap4() {
 {
      var xpPop = window.createPopup();
      var xpPopBody = xpPop.document.body;
      xpPopBody.style.backgroundColor = "#008000";
      xpPopBody.style.border = "solid green 1px";
      xpPopBody.innerHTML = "<img src='fullsize/bradley/Minolta-A5.jpg' alt='Minolta-A5' hspace='1' vspace='1' border='0' width='300' height='239'><br><font face='Verdana' color='white' size='1'><center>Minolta-A5 SLR Camera<br>Click outside this <b>popup</b> box to close it</center></font>";
      xpPop.show(0, 0, 304, 270, document.body);
   }
}

function imap5() {
 {
      var xpPop = window.createPopup();
      var xpPopBody = xpPop.document.body;
      xpPopBody.style.backgroundColor = "#008000";
      xpPopBody.style.border = "solid green 1px";
      xpPopBody.innerHTML = "<img src='fullsize/bradley/fs2710tn.jpg' alt='Canon FS2710' hspace='1' vspace='1' border='0' width='500' height='357'><br><font face='Verdana' color='white' size='1'><center>Canon FS2710<br>Click outside this <b>popup</b> box to close it</center></font>";
      xpPop.show(0, 0, 504, 388, document.body);
   }
}

function showClock(obj){
	var str = '<embed src="http://www.clocklink.com/clocks/'
		+ obj.clockfile;
	str += "?";
		
	for( prop in obj ) {
		if( 'clockfile' == prop 
			|| 'width' == prop
			|| 'height' == prop
			|| 'wmode' == prop
			|| 'type' == prop
		) continue;
		str += ( prop + "=" + _escape(obj[prop]) + "&" );
	}
	str += '" ';
	str += ' width="' + obj.width + '"';
	str += ' height="' + obj.height + '"';
	str += ' wmode="' + obj.wmode + '"';
	str += ' type="application/x-shockwave-flash">';
	
	document.write( str );
}

function _escape(str){
	str = str.replace(/ /g, '+');
	str = str.replace(/%/g, '%25');
	str = str.replace(/\?/, '%3F');
	str = str.replace(/&/, '%26');
	return str;
}

function showBanner(BannerLink){
	document.write(BannerLink);
}