<!--begin
function newItems (x)
{
  var x;					// condition for displaying either all or date specific content
  var expDate=new Array();	// create array to hold display until date
  var list=new Array();		// create array to hold display info and link to new or updated pages
  var today= new Date();	// create date to compare today with display until date
  var i;
  
 /*list below the data for the items to be checked through for displaying on opening screen
  american format for dates mind mm/dd/yy. Display data follows*/
	
	expDate[0]='September 07, 2002';
	list[0]='franks little off with his bike described in his own words found under the Motor Menu , Franks YZF1000 -> <a href="motor/franksPage.html">the get off</a>';

  expDate[1]='September 25, 2002';
	list[1]='Work Details - though not upto date found under About Me. This has been updated 10 Sept 2002 but is not yet complete -> <a href="personal/work.html">work history</a>';

  expDate[2]='November 11,2002';
	list[2]='NEW Current Virus information from Sophos. See all the latest top 10 virus updates -> <a href="sophos/virus.html">Virus Info</a>';

  expDate[3]='February 16,2003';
  list[3]='Updated MR2 page with some details of my being banned from Arnold Clarks, oh and a crash as well all my fault -> <a href="motor/myCar.html" title="My little off road trip. Ooops">a Crash and banned from Arnold Clarks</a>';

	expDate[4]='March 31,2003';
	list[4]='The Elite Page -> complete with link for new PC version written in C <a href="elite/elite.html" title="The Elite Experience Revisited">The Elite Page</a>';

	expDate[5]='April 24,2003';
	list[5]='The site has transfered to PIPEX ';

	expDate[6]='May 15,2003';
	list[6]='My Car Page -> updated with some stories about my ownership <a href="motor/myCar.html" title="The new adventures">My Car stories</a>';
	
	expDate[7]='May 15,2003';
 	list[7]='Work experience -> updated with more job history  oo-err <a href="personal/work.html" title="Job History">Work Experience</a>'; 

	expDate[8]='July 31,2003';
 	list[8]='The rev 3 tubby. Now updated with stories so far <a href="motor/tubby/rev3.html" title="The blue Dolphin">Rev 3 tubby</a>';
	
	expDate[9]='July 31,2003';
 	list[9]='Search page now added <a href="search.html" title="Search Page">Search Page</a>';
	
	expDate[10]='July 31,2003';
 	list[10]='More jokes added <a href="jokes/jokeMenu.html" title="Main Joke Menu">Joke Menu</a>'; 
	
	expDate[11]='September 31,2003';
 	list[11]='The holiday pictures from <a href="holiday/newtonmore/index.htm" title="Main Joke Menu" target="_blank">Newtonmore photos </a> have been added at last '; 
   
	expDate[12]='October 12,2003';
 	list[12]='Some Pictures of my <a href="motor/tubby/images/cleanCar/index.htm" title="Clean Photos of my car" target="_blank">Rev 3 tubby </a> before a thrashing on the rolling road May 2003';

	expDate[13]='November 30,2003';
 	list[13]='The Mk1 before the <a href="motor/mk1/index.htm" title="Clean Photos of my car" target="_blank">rolling road</a> session in Nov 2002';

	expDate[14]='June 30,2004';
 	list[14]=' <a href="motor/tubby/boostGauge.html" title="New boost gauge" target="_blank">boost Gauge and engine lifter complete with pics </a>';

	expDate[15]='July 30,2004';
 	list[15]=' <a href="motor/crash/crash.html" title="Motorsports news live">Up to date news feed from Crash.net on BSB, Aussie V8s and MotoGP</a>';

	expDate[16]='August 15,2004';
 	list[16]=' <a href="http://www.allanwelsh.blogspot.com" title="Car Web blog" target="_blank">A blog web for the car</a>';

	expDate[17]='August 20,2004';
 	list[17]=' <a href="motor/tubby/tempGauge.html" title="Intake Temperature Monitor">The intake temperature gauge install</a>';

	expDate[18]='September 30,2004';
 	list[18]=' <a href="motor/tubby/f1Tyres.html" title="Tyre story updated">Updated tyre comments</a>';
	
	expDate[19]='November 30,2004';
 	list[19]=' <a href="motor/tubby/chargeCooler.html" title="Chargecooler Conversion">ChargeCooler modification</a>';
	
	expDate[20]='November 30,2004';
 	list[20]=' <a href="motor/tubby/suspension.html" title="Tyre story updated">Suspension Replacement</a>';

	expDate[21]='November 30,2004';
 	list[21]=' <a href="motor/tubby/tBarLeak.html" title="T-bar leak solution">Fixing the leaking T-bars</a>';
	
	expDate[22]='July 31,2005';
 	list[22]=' <a href="motor/tubby/images/26jun05/FrameSet.htm" title="car / bike run in the evening sun" target="_Blank">Car / bike run to Inverary</a>';

	expDate[23]='December 31,2005';
 	list[23]=' <a href="motor/tubby/tBarGuides.html" title="fitting eccentric t-bar guides">T-bar fix 2</a>';
	
	expDate[24]='May 15, 2006';
	list[24]=' <a href="holiday/ntsApril06/index.htm" title="work run through north west scotland" target="_blank">Work run through north west scotland april 06</a>';

	expDate[25]='May 31, 2006';
	list[25]=' <a href="holiday/200604_mr2oc_HighlandDrive/index.htm" title="mr2oc highland drive april 06" target="_blank">The mr2oc Highland Drive April 06</a>';

	expDate[26]='June 30, 2006';
	list[26]=' <a href="motor/tubby/boostPipes.html" title="changing of the boost pipes">Boost Pipe change</a>';
	
	expDate[27]='June 30, 2006';
 	list[27]=' <a href="motor/tubby/f1Tyres.html" title="Tyre story updated">Updated tyre comments</a>';
	
	expDate[28]='June 30, 2006';
 	list[28]=' <a href="motor/tubby/newWheels.html" title="Evo 6 OZ wheels">Evo 6 OZ wheels fitted</a>';
	
	expDate[29]='July 20, 2006';
	list[29]='<a href="motor/tubby/dropLinks.html" title="Replacement of the front droplinks using non toyota items">Front Droplink replacement</a>';
	   
	expDate[30]='August 31, 2006';
	list[30]='<a href="motor/tubby/coolantRad.html" title="Replacement of the coolant radiator">Changing the coolant radiator</a>';
	
	expDate[31]='September 15, 2006';
	list[31]='<a href="motor/tubby/tyreCalc.html" title="Alloy and tyre width calculator page">Tyre and alloy width calculator</a>';
	
	expDate[32]='October 22, 2006';
	list[32]='<a href="motor/tubby/rearLights.html" title="Rear fog light conversion">Rear fog light conversion</a>';
	
	expDate[33]='December 22, 2006';
	list[33]='<a href="motor/tubby/blitzEBC.html" title="Blitz EBC controller added">Blitz EBC added </a>';
	
	expDate[34]='January 02, 2007';
	list[34]='<a href="motor/tubby/power2006.html" title="dyno run Sept 2006">Dyno Sept 2006 </a>';
	
	expDate[35]='March 20, 2007';
	list[35]='<a href="elite/index.asp" title="new elite info added">Elite pages updated</a>';
	
	expDate[36]='March 25, 2007';
	list[36]='<a href="motor/tubby/newWheelsRefurbd.html" title="Oz wheels refurbd">Oz wheels refurbd</a>';
	
	expDate[37]='March 31, 2007';
	list[37]='<a href="24hrWatch/index.html" title="24 hour watches">24 hour watches</a>';
	
	expDate[38]='June 30, 2007';
	list[38]='<a href="motor/tubby/chargeCooler_2.html" title="Chargecooler Conversion">ChargeCooler modification</a>';
	
	expDate[39]='July 05, 2007';
	list[39]='<a href="holiday/200706_mr2oc_HighlandDrive/index.htm" title="mr2oc highland drive june 07">mr2oc june 07 highland drive</a>';
	
	expDate[40]='July 10, 2007';
	list[40]='<a href="motor/tubby/cleanCar.html" title="Car clay barred">Car clay barred! </a>';
	
	expDate[41]='October 31, 2007';
	list[41]='<a href="holiday/200709_Imoc_Ullapool/index.htm" title="IMOC Scenes of Scotland">IMOC Scenes of Scotland</a>';
	
	expDate[42]='August 30, 2008';
 	list[42]=' <a href="motor/tubby/newWheels_2.html" title="five spoke OZ wheels">New Black 5 spoke OZ wheels</a>';
	
	expDate[43]='October 31, 2008';
	list[43]='<a href="holiday/200809_Imoc_Skye/index.htm" title="Imoc Scenes of Skye 08">IMOC scenes of Skye 08</a>';

	expDate[44]='November 30, 2008';
	list[44]='<a href="motor/tubby/petrolFlap.html" title="petrol release flap fix">Petrol Release fix</a>';
	
	expDate[45]='November 30, 2008';
	list[45]='<a href="holiday/200810_Inveraray/index.htm" title="October break Inveraray 08">October Break</a>';
	
	expDate[46]='April 30, 2009';
 	list[46]=' <a href="motor/tubby/f1Tyres.html" title="Tyre story updated">Updated tyre comments</a>';
	
	expDate[47]='July 31, 2009';
	list[47]='<a href="holiday/20090529_Skye/index.htm" title="Skye May 09 run out">Run to Skye 09</a>';
	
	expDate[48]='September 10, 2009';
	list[48]='<a href="motor/tubby/cleanCar2.html" title="Car clay barred">Car valeted and polished! </a>';
	
	expDate[49]='September 30, 2009';
 	list[49]=' <a href="motor/tubby/tBarGuides2.html" title="modifying the body guide position">T-bar fix 3</a>';
	
	expDate[50]='October 31, 2009';
	list[50]='<a href="holiday/200909_Imoc/index.htm" title="IMOC Scenes of Scotland Sept 09">IMOC run 09</a>';
	
	expDate[51]='November 30, 2009';
	list[51]='<a href="holiday/200910/index.html" title="Wee run through Tyndrum">Tyndrum Inverarary Run</a>';
	
	expDate[52]='march 30, 2010';
	list[52]='<a href="motor/tubby/dashLights.html" title="Red dash bulbs">Red dash cluster bulbs</a>';

	expDate[53]='April 30, 2010';
	list[53]='<a href="holiday/201003_Gairloch/index.html" title="Winter 10 break away">March 10 Gairloch break</a>';
	
	expDate[54]='May 1, 2010';
	list[54]='<a href="motor/tubby/brakes_3.html" title="Big Brake upgrade">Big Brake upgrade!</a>';
	
	expDate[55]='June 12, 2010';
	list[55]='<a href="motor/tubby/tyreCalc.html" title="tyre calculator updated to show front and rear axles">Tyre Calculation with both axles</a>';
	
	expDate[56]='November 10, 2010';
	list[56]='<a href="holiday/20101017_Dawnraid/index.html" title="dawn views over Loch Lomond">Dawn raid Loch Lomond</a>';
	
	expDate[57]='June 30, 2011';
	list[57]='<a href="motor/tubby/aerialMod.html" title="New aerial">New Aerial</a>';
	
	expDate[57]='August 31, 2011';
	list[57]='<a href="holiday/20110729_Ullapool/index.html" title="July 2011 Ullapool run">July 2011 Ullapool run</a>';
	
	 
  if(x>0){
  /*checks if we want to display the items based as new additions. If value greater 
  than 0 then we use the expiry date to display only new additions to the site otherwise
  use the else condition and display the entire array */
  
  
  /*the loop runs through the number of items in the array listed above. The first column of the array holds the created / modified date and so the 
	if statement compares dates with today and if today is less than the expiry date then display the data held in column two along with 
	the little 'new' image otherwise ignore and move on to next if any row.*/
    
  	for(i=0;i<list.length ;i++)
  	{
  		chkDate= new Date(expDate[i]); // assign the date for checking
		
		chkDate.setDate(chkDate.getDate()+31); // want to display new item for 31 days
  		if(chkDate.getTime()>today.getTime())
  		{
  			document.write(list[i],' <img src="w3cImages/new.gif"><br>'); // display the description and link
  		}	
  	}
   }
   else
   /*the whole array is displayed as a list in newest first order*/
   {
	 document.write('<center><table class="normal" width="80%"> <tr><th align="left">Description</th><th>Date added</th></tr>');
		for(i=list.length-1 ;i>=0 ;i--)//length of array is last number above +1. starts at zero ;-)
			{
				document.write('<tr><td height="20" align="left">',list[i], '</td><td width="15%">',(expDate[i]),'</td></tr>');
			}
  	}
	 document.write('</table></center>');
}	

//-->
