<!-- Begin
// file: leftsidebar.js
// date: 13/08/05
// site: www.eastmidsdowsers.co.uk
// author:  drf - www.davidflatters.co.uk

// set coloured arrows here
var blarw  = '<img src="images/arw_r.gif" alt="" width="10" height="11">';     // blue arrow
var rdarw  = '<img src="images/arwrd_r.gif" alt="" width="10" height="11">';   // red arrow
var trarw  = '<img src="images/arw_trans.gif" alt="" width="10" height="11">'; // trans arrow

// set css class
var css = "lbar";
var loff= "#ff0000";  // link off text colour
var bckg= "#cde9ff";  // table background colour orig:#BFDFFF lgrn: #DFFFEF

// get document name
var dir = location.href.substring(0,location.href.lastIndexOf('/')+1);
var url = location.href.substring(dir.length,location.href.length+1);

// set the menu contents array. Increment menuItems if a page is added
// format: page_name, display_text, alt_text
var menuItems = 7;

var home    = new Array("index.htm","Home Page","Home Page");
var who     = new Array("who_we_are.htm","Who We Are","Who are the East Midlands Dowsers?");
var events  = new Array("events_diary.htm","Events Diary","Meetings &amp; Site Visits");
var reports = new Array("field_reports_01.htm","Field Reports","Field Reports Index");
var notes   = new Array("emdg_reports_01.htm","EMDG Reports","EMDG Reports Index");
var related = new Array("related_sites.htm","Related Sites","Links to Related Sites");
var contact = new Array("contact.htm","Contact Us","Contact The EMDG");
var menu    = new Array(home,who,events,reports,notes,related,contact);

// set table defaults, start outer table and dark top
document.write('<table border="1" cellspacing="0" style="border-collapse: collapse; border-color:#0000FF" width="100%" cellpadding="0"><tr><td width="100%" bgcolor="#0000FF" height="10" valign="top"><img border="0" src="images/trans.gif" alt="" width="2" height="2"></td></tr><tr><td width="100%" bgcolor="'+bckg+'" valign="top">');

// start inner table and spacer
document.write('<table border="0" cellspacing="0" style="border-collapse: collapse" width="100%" cellpadding="0"><tr><td width="100%" height="5"><img border="0" src="images/trans.gif" alt="" width="2" height="2"></td></tr>');


// start contents section
document.write('<tr><td width="100%" class="lbartxt"><img border="0" src="images/arw_trans.gif" alt="" width="10" height="11">Contents:<br>');

// variable menu code here
for (i=0; i<menuItems; i++) {
   thisurl  = menu[i][0];
   thistext = menu[i][1];
   thistitle= menu[i][2];
   if (thisurl == url) {
      out = rdarw+'<span style="color:'+loff+'">'+thistext+'</span><br>';
   }
   else {
      out = blarw+'<a href="'+thisurl+'" title="'+thistitle+'" class="'+css+'">'+thistext+'</a><br>';
   }
   document.write(out);
}
// end of variable menu

// spacer row
document.write('</td></tr><tr><td width="100%" height="5" class="lbartxt"><img border="0" src="images/trans.gif" alt="" width="2" height="2"></td></tr>');

// start guestbook section
document.write('<tr><td width="100%" class="lbartxt"><img border="0" src="images/arw_trans.gif" alt="" width="10" height="11">Guest Book:<br>');

if (url == "guestbook.htm") {
   document.write(rdarw+'<span style="color:'+loff+'">Sign</span><br>');
}
else {
   document.write(blarw+ '<a href="guestbook.htm" rel="nofollow" title="Sign the Guest Book" class="'+css+'">Sign</a><br>');
}
document.write(blarw+ '<a href="guestbookfile5.html" rel="nofollow" title="View the Guest Book" class="'+css+'">View</a><br>');

// spacer row
document.write('</td></tr><tr><td width="100%" height="5"><img border="0" src="images/trans.gif" alt="" width="2" height="2"></td></tr>');

// start site tools section
document.write('<tr><td width="100%" class="lbartxt"><img border="0" src="images/arw_trans.gif" alt="" width="10" height="11">Site Tools:<br>');

// add the page monitor
// set monitor ref
var pid = window.location.href;
var onc = //"somewin=window.open('http://www.ChangeDetection.com/blank.html', 'ChangeDetectionWiz','resizable=yes,scrollbars=yes,width=630,height=540')";

document.write(blarw+'<a href="http://www.ChangeDetection.com/detect.html?url='+pid+'" target=ChangeDetectionWiz onclick="'+onc+'" title="Get an email notification when this page changes" class="'+css+'">Page Monitor</a><br>');

// add the site search
document.write(blarw+'<a href="http://search.freefind.com/find.html?id=75924504&mon=1" target="_blank" title="Search this Website" class="'+css+'">Site Search</a>');

// spacer row and end inner table
document.write('</td></tr><tr><td width="100%" height="5"><img border="0" src="images/trans.gif" alt="" width="2" height="2"></td></tr></table></td></tr>');

// end outer table, dark bottom and defaults
document.write('<tr><td width="100%" bgcolor="#0000FF" height="10" valign="top"><img border="0" src="images/trans.gif" alt="" width="2" height="2"></td></tr></table>');

// End -->
