/***********************************************************************
Pre-load of images for mouse-over events
************************************************************************/
pic1=new Image();pic1.src="images/thistle_over.gif";pic2=new Image();pic2.src="images/thistle_down.gif";pic3=new Image();pic3.src="images/thistle_up.gif";pic4=new Image();pic4.src="images/indicate_out.gif";pic5=new Image();pic5.src="images/car.gif";pic7=new Image();pic7.src="images/check_it.gif";pic8=new Image();pic8.src="images/comment.gif";pic9=new Image();pic9.src="images/email_comments.gif";pic10=new Image();pic10.src="images/evolution.gif";pic11=new Image();pic11.src="images/guestbook.gif";pic12=new Image();pic12.src="images/info.gif";pic13=new Image();pic13.src="images/links.gif";pic14=new Image();pic14.src="images/mb.gif";pic15=new Image();pic15.src="images/music.gif";pic16=new Image();pic16.src="images/sailing.gif";pic17=new Image();pic17.src="images/send_it.gif";pic18=new Image();pic18.src="images/skiing.gif";pic19=new Image();pic19.src="images/submit_it.gif";pic20=new Image();pic20.src="images/tech_specs.gif";pic21=new Image();pic21.src="images/thankyou.gif";pic22=new Image();pic22.src="images/vw.gif";pic23=new Image();pic23.src="photos/bracegirdle_studio.jpg";
/***********************************************************************
Scrolling message
************************************************************************/
var space=" ";var scr=space+"...... this site was written to learn about html, javascript, and web authoring, without any hint of self-promotion, however due to the requirement of a subject matter to experiment with, I ended up concentrating on the things I know about and have pictures of etc., consequently these pages are mostly about me and things that interest me......"
function ScrollAlong()
{temp=scr.substring(0,1);scr+=temp;scr=scr.substring(1,scr.length);document.Scroll.ScrollBox.value=scr.substring(0,55);setTimeout("ScrollAlong()",150);}
/***********************************************************************
NoRightClick
************************************************************************/
function clickIE()
{if (document.all)
 {return false;}}
function clickNS(e)
{if (document.layers||(document.getElementById&&!document.all))
 {if (e.which==2||e.which==3)
  {return false;}}} 
if (document.layers)
{document.captureEvents(Event.MOUSEDOWN);document.onmousedown=clickNS;} 
else
{document.onmouseup=clickNS;document.oncontextmenu=clickIE;} 
document.oncontextmenu=new Function("return false") 
/***********************************************************************
ShowText display for menu descriptions
************************************************************************/
var message;
function ShowText(z) 
{if (z==0) message="";else if (z==1) message="intial welcome page";else if (z==2) message="growing up";else if (z==3) message="cars history";else if (z==4) message="studio projects";else if (z==5) message="dinghy sailing";else if (z==6) message="skiing holidays";else if (z==7) message="leave a comment";else if (z==8) message="previous comments";else if (z==9) message="links to other sites";else if (z==10) message="marriage pictures";else if (z==11) message="baby pictures";else if (z==12) message="technical information";else if (z==13) message="me in 1969";else if (z==14) message="me in 1999";else if (z==15) message="me in 2004";else if (z==16) message="Mercedes 320e AMG";else if (z==17) message="VW Golf V5 mk.4";else if (z==18) message="VW Golf 2.0 GTi mk.3";else if (z==19) message="VW Golf 1.6 Driver mk.2";else if (z==20) message="VW Golf 1.6 GL mk.2";else if (z==21) message="VW Polo 1.3 Coupe";else if (z==22) message="past music setups";else if (z==23) message="the garage studio?";else if (z==24) message="studio gear";else if (z==25) message="Fornells bay, Menorca";else if (z==26) message="Hayling Island";else if (z==27) message="Chichester Harbour";else if (z==28) message="2004 in Les Arcs";else if (z==29) message="2002 in Corchevel";else if (z==30) message="2001 in Alpe d'Huez";else if (z==31) message="2000 Val Th. again";else if (z==32) message="1999 in Val Thorens";else if (z==33) message="1998 in La Plagne";else if (z==34) message="sites I have written";else if (z==35) message="friends home pages";else if (z==36) message="sites in my bookmarks";else if (z==37) message="check your e-mail?";else if (z==38) message="check JavaScript out";else return false;parent.parent.menu_view.document.messages.Menutext.value = message;return true;}
function MenuImage(img)
{parent.parent.menu_view.document.images['menu_image'].src="images/"+img+".gif";}
function MenuOver(item)
{parent.parent.menu_view.document.images[item].src="images/thistle_over.gif";}
function MenuDown(item)
{parent.parent.menu_view.document.images[item].src="images/thistle_down.gif";}
function MenuUp(item)
{parent.parent.menu_view.document.images[item].src="images/thistle_up.gif";}
function MenuOut(item)
{parent.parent.menu_view.document.images[item].src="images/indicate_out.gif";}
/***********************************************************************
popup window
************************************************************************/
function popup(words)
{winpop=window.open("","","width=400,height=160");winpop.document.write("<HTML><HEAD><TITLE>popup</TITLE><LINK REL='stylesheet' TYPE='text/css' HREF='style.css'></HEAD><BODY BACKGROUND='images/eyes_surround.jpg'>");winpop.document.write("<DIV CLASS=home><IMG SRC='images/thistle_over.gif'>"+words+"</DIV>");winpop.document.write("<FORM><CENTER><INPUT TYPE='button' VALUE='close window' onClick='self.close()'></CENTER>");winpop.document.write("</BODY></HTML>");}
/***********************************************************************
email validation in comment form
************************************************************************/
function validmail()
{valid=false;mail=document.reply.email.value;for(loop=0; loop<mail.length; loop++);if(mail.charAt(loop)=="@");valid=true;if(valid==false);return false;valid=false;for(loop=0; loop<mail.length; loop++);if(mail.charAt(loop)==".");valid=true;return valid;}
/***********************************************************************
last modified date in the footer
************************************************************************/
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='<SPAN CLASS=footer>last updated ';if (daysago==0) towrite+='today';else if (daysago==1) towrite+='yesterday';else towrite+=daysago+' '+unit+' ago';towrite+='.';return towrite;}
function takeYear(theDate)
{x=theDate.getYear();var y=x%100;y+=(y<38) ? 2000 : 1900;return y;}
/***********************************************************************
self scroll window
************************************************************************/
var I=1800;
function scrollit()
{if (I==-20)
 {stop=true}
 else
 {self.scroll(1,I);I=eval(I-20);setTimeout("scrollit()", 1);}}