function AutoPhoto()
// generates random quotes
{
PhotoPoint=new Date()

DeciSeconds=PhotoPoint/100

// so that this doesn't always match the quote random number:
//DeciSeconds = DeciSeconds + PhotoPoint.getMinutes()

Photos=41

PhotoNumber=Math.floor(Photos*(DeciSeconds/Photos - Math.floor(DeciSeconds/Photos)));

// enable to test latest
//PhotoNumber=Photos-1

switch(PhotoNumber)
{
case 0:
	Photo="A446Truvelo_320x240.jpg";
	Caption="A Truvelo speed camera on the A446 in Warwickshire";
	Link="/local/warwickshire.htm";
	break;
case 1:
	Photo="DartfordBridge_1102.jpg";
	Caption="The Queen Elizabeth II bridge at the Dartford crossing";
	Link="dartford_tolls.htm";
	break;
case 2:
	Photo="Gatso_A1S_B6403.jpg";
	Caption="A Gatso on the A1 South in Lincolnshire";
	Link="/local/lincolnshire.htm";
	break;
case 3:
	Photo="gatso_a34.jpg";
	Caption="Gatso enforced 50mph limit on the A34 south of Manchester";
	Link="/local/manchester.htm";
	break;
case 4:
	Photo="Gatso_Greenfield2_320x240.jpg";
	Caption="Britain's most hidden speed camera is in North Wales";
	Link="/local/north_wales_cameras.htm";
	break;
case 5:
	Photo="M1_Sheffield_2002-07-03d.jpg"
	Caption="The M1 passing through Sheffield";
	Link="/local/sheffield.htm";
	break;
case 6:
	Photo="m20_2003-02-13a.jpg";
	Caption="The M20 and Channel Tunnel rail link in Kent";
	Link="/local/kent.htm";
	break;
case 7:
	Photo="M40_Chilterns.jpg";
	Caption="The M40 on the northern edge of the Chiltern Hills";
	Link="/local/oxfordshire.htm";
	break;
case 8:
	Photo="M58_lancs.jpg";
	Caption="The M58 rubbishes the claim that new roads generate traffic";
	Link="/local/lancashire.htm";
	break;
case 9:
	Photo="M6_Shakerley_A.jpg";
	Caption="Keep-your-distance chevrons on the M6 in Cheshire";
	Link="/local/cheshire.htm";
	break;
case 10:
	Photo="M6_Tebay.jpg";
	Caption="Seperated carriageways of the M6 north of Tebay Services";
	Link="/local/cumbria.htm";
	break;
case 11:
	Photo="M62_B6114_B.jpg";
	Caption="The M62 from Scammonden Bridge";
	Link="/local/west_yorkshire.htm";
	break;
case 12:
	Photo="M69_2002-05-14.jpg";
	Caption="The M69 near Leicester";
	Link="/local/leicestershire.htm";
	break;
case 13:
	Photo="M6Toll_0811.jpg";
	Caption="Junction T3 of the M6 Toll";
	Link="/local/m6_toll.htm";
	break;
case 14:
	Photo="SPECS_M6.jpg";
	Caption="SPECS cameras in use on the M6 in Cheshire";
	Link="/local/cheshire.htm";
	break;
case 15:
	Photo="SPECS_Stocksbrdige_0342.jpg";
	Caption="SPECS cameras lurk over the A616 Stocksbridge bypass";
	Link="/local/barnsley.htm";
	break;
case 16:
	Photo="StottHallFarm_0538.jpg";
	Caption="Stott Hall Farm between the two carriageways of the M62";
	Link="/local/west_yorkshire.htm";
	break;
case 17:
	Photo="Talivan_BD_Exton.jpg";
	Caption="Petty policing in Lancashire";
	Link="/local/lancashire.htm";
	break;
case 18:
	Photo="talivan_brading.jpg";
	Caption="Police setting a good example on the Isle of Wight";
	Link="/local/isle_of_wight.htm";
	break;
case 19:
	Photo="Talivan_NG_A14.jpg";
	Caption="A Talivan collecting money on the A14 in Northamptonshire";
	Link="/local/northamptonshire.htm";
	break;
case 20:
	Photo="Talivan_NH_M1J27.jpg";
	Caption="A well-parked speed camera van in Nottinghamshire";
	Link="/local/nottinghamshire.htm";
	break;
case 21:
	Photo="Talivan_QC_Weymouth.jpg";
	Caption="Talivan parked on double yellow lines at a bus stop in Dorset";
	Link="/local/dorset.htm";
	break;
case 22:
	Photo="Talivan_YJ_1081.jpg";
	Caption="A Talivan lurking on the A5 in Warwickshire";
	Link="/local/warwickshire.htm";
	break;
case 23:
	Photo="Truvelo_A1_tuxford2.jpg";
	Caption="A speed camera's view of the A1 Northbound in Nottinghamshire";
	Link="";
	break;
case 24:
	Photo="Truvelo_A452.jpg";
	Caption="A truvelo enforcing an absurd 50mph limit on the A452 in Solihull";
	Link="/local/solihull.htm";
	break;
case 25:
	Photo="TyburnRoad.jpg";
	Caption="The discredited bus lane on the A38 Tyburn Road in Birmingham";
	Link="/local/birmingham.htm";
	break;
case 26:
	Photo="WalsallRingRoad.jpg";
	Caption="An absurd 30mph speed limit on the Walsall Ring Road.";
	Link="/local/walsall.htm";
	break;
case 27:
	Photo="CurdworthSpeedSignOn_2003-05-12.jpg";
	Caption="A vehicle-activated speed limit warning sign";
	Link="jjleeming.htm";
	break;
case 28:
	Photo="LochEriboll.jpg";
	Caption="The spectacular view of Loch Eriboll from the A838";
	Link="http://www.jbaird.org.uk/abd";
	break;
case 29:
	Photo="HardknottPass.jpg";
	Caption="The Hardknott Pass in Cumbria - not for the faint hearted";
	Link="/local/cumbria.htm";
	break;
case 30:
	Photo="Mull.jpg";
	Caption="Stress-free motoring can still be found on the Isle of Mull";
	Link="http://www.jbaird.org.uk/abd";
	break;
case 31:
	Photo="KyleskuBridge.jpg";
	Caption="The Kylesku Bridge in Sutherland saves an 67 mile detour";
	Link="http://www.jbaird.org.uk/abd";
	break;
case 32:
	Photo="GatsoCrashA470.jpg";
	Caption="So much for speed cameras preventing accidents";
	Link="/local/cardiff.htm";
	break;
case 33:
	Photo="Talivan_A4.jpg";
	Caption="A Wiltshire Talivan on the A4 in the middle of nowhere";
	Link="/local/wiltshire.htm";
	break;
case 34:
	Photo="Crowle30mph.jpg";
	Caption="Inappropriately low 30mph limit in Worcestershire";
	Link="/local/worcestershire.htm";
	break;
case 35:
	Photo="NewForest.jpg";
	Caption="An open road in the New Forest";
	Link="/local/hampshire.htm";
	break;
case 36:
	Photo="SouthNormanton.jpg";
	Caption="Sensible use of a variable 20mph limit in Derbyshire";
	Link="/local/derbyshire.htm";
	break;
case 37:
	Photo="Forden40Limit.jpg";
	Caption="An inappropriately low rural 40mph limit in Powys";
	Link="/local/powys.htm";
	break;
case 38:
	Photo="Talivan_YF_A500.jpg";
	Caption="Exploiting 30mph roadworks on the A500 in Stoke on Trent";
	Link="/local/staffordshire.htm";
	break;
case 39:
	Photo="Talivan_WH_A487.jpg";
	Caption="A Talivan hiding behind railings on the A487 in Ceredigion";
	Link="/local/ceredigion.htm";
	break;
case 40:
	Photo="CleddauBridge.jpg";
	Caption="The Cleddau toll bridge in Pembrokeshire";
	Link="/local/pembrokeshire.htm";
	break;
case 41:
	Photo="";
	Caption="";
	Link="";
	break;
case 42:
	Photo="";
	Caption="";
	Link="";
	break;
case 43:
	Photo="";
	Caption="";
	Link="";
	break;
case 44:
	Photo="";
	Caption="";
	Link="";
	break;
case 45:
	Photo="";
	Caption="";
	Link="";
	break;
case 46:
	Photo="";
	Caption="";
	Link="";
	break;
case 47:
	Photo="";
	Caption="";
	Link="";
	break;
case 48:
	Photo="";
	Caption="";
	Link="";
	break;
case 49:
	Photo="";
	Caption="";
	Link="";
	break;
case 50:
	Photo="";
	Caption="";
	Link="";
	break;
case 51:
	Photo="";
	Caption="";
	Link="";
	break;
case 52:
	Photo="";
	Caption="";
	Link="";
	break;
case 53:
	Photo="";
	Caption="";
	Link="";
	break;
default:
	Photo="&ldquo;Click for more Photos";
	Source="ABD";
	break;

	}

document.writeln('<A HREF="' + Link + '" CLASS=Photo><IMG SRC="/images/photos/200x150/' + Photo + '" WIDTH=200 HEIGHT=150 BORDER=0></A><BR>');

document.writeln('<DIV STYLE="color:#9999C0;width:200px;">' + Caption + '</DIV>');

}
