  //works with panel slideshow    
  var album;
  var imgCount;
  var imgNo = 0;
  var words;
  var wordNo = 0;
  var wordCount; 
  var run = 0;
  var initialMessage = "The finished 993RSR is not only beautiful but also devastatingly fast. Click the video link above to see it in action against some of the most recent Lamborghini and Ferrari sports cars";
  var pauseMessage = "pause the show where you like";
  var picLocation = "images/panel/";
  
  
  function loadContent()
  {
  album = new Array(
  
  picLocation + "993RSR_1Mid.jpg", 
  picLocation + "993RSR_2Mid.jpg",
  picLocation + "993RSR_3Mid.jpg", 
  picLocation + "993RSR_4Mid.jpg", 
  picLocation + "993RSR_5Mid.jpg", 
  picLocation + "993RSR_6Mid.jpg",   
  picLocation + "993RSR_7Mid.jpg",
  picLocation + "993RSR_8Mid.jpg",
  picLocation + "993RSR_8AMid.jpg",
  picLocation + "993RSR_9Mid.jpg",
  picLocation + "993RSR_10Mid.jpg",
  picLocation + "993RSR_11Mid.jpg",
  picLocation + "993RSR_12Mid.jpg",
  picLocation + "993RSR_13Mid.jpg",
  picLocation + "993RSR_14Mid.jpg",  
  picLocation + "993RSR_16Mid.jpg",
  picLocation + "993RSR_17Mid.jpg",
  picLocation + "993RSR_18Mid.jpg",
  picLocation + "993RSR_19Mid.jpg",
  picLocation + "993RSR_20Mid.jpg",
  picLocation + "993RSR_21Mid.jpg");
  
  imgCount = album.length;
  words = new Array(
  "1. The finished 993RSR is not only beautiful but also devastatingly fast. Click the video link above to see it action against some of the most recent Lamborghini and Ferrari sports cars",
  "2. RSR interior is of very high quality, functional but also comfortable",
  "3. Plenty of go to go with the show!!",
  "4. Firstly the shell must be restored to perfect, involving completely stripping the car. The roof pan is removed to allow fitting the factory cage and then replaced",
  "5. Fitting the cage stiffens the car prior to fitting the widebody rear quarters",
  "6. Then the car is e-coated, a multi-stage immersion process which eliminates corrosive elements and provides factory levels of protection. Note that the widebody wings and quarter panels are cut and preparation for arch mountings are in place PRIOR to coating", 
  "7. Once in e-coat for added protection the underside and cavities are etch primed. This etch coat is then hand finished to provide optimum adhesion of a stone-chip undercoat which is then covered in body colour",
  "8. The shell in colour coat and wax sealed awaiting build, clearly showing factory specification Matter cage. Another 9mRS conversion in seen in the background just in e-coat and ready for etch and underbody preparation",
  "9. Another look at the shell in colour coat awaiting reassembly. A 911T being restored can be seen adjacent",
  "10. All of the chassis and running gear components are restored and finished to above factory specification",
  "11. Sometimes in very appealing colours..",
  "12. And then reassembly commences",
  "13. Wishbones, brakes and KW suspension as the reassembly continues",
  "14. Suspension is a 9mRS KW package",  
  "15. Lightweight 9m calipers and discs provide immense stopping power",  
  "16. A 9m strut brace stiffens the front suspension towers",
  "17. Another glimpse of that amazing 4.0 Litre engine -- watch the video to see just how much power it provides",
  "18. Come now -- can't you see the Nurgurgring or the Mulsanne Straight or Laguna Seca's Corkscrew through that windscreen",
  "19. From all angles the RSR is stunning",  
  "20. Not just beautiful, the RSR is also a weapon-of-massive-enjoyment, taking part in a track-day",
  "21. But the RSR cleans up well -- here the RSR is on show with The Porsche Club, next to a Carrera GT") 
							wordCount = words.length;
  
  document.getElementById("reader1").innerHTML = initialMessage;
  }
  function showSlides()
  {
  if(document.getElementById("start").value == "pause")
  {
  run = -1;
  document.getElementById("viewer1").src = album[imgNo];
  document.getElementById("reader1").innerHTML = words[wordNo];
  document.getElementById("start").value = "show slideshow"
  //document.getElementById("message").innerHTML = initialMessage;
  }
  else
  {
  run = 1;
  document.getElementById("start").value = "pause"
  // document.getElementById("message").innerHTML = pauseMessage;
  slides();
  }
 // words();
  }
  function slides()
  {
  if(run==1)
  {
  if(document.images)
  {
  imgNo++;
  wordNo++;
    
  if(imgNo == imgCount)
  {imgNo = 0;
  wordNo = 0;
  }
  
 document.getElementById("viewer1").src = album[imgNo];
 document.getElementById("reader1").innerHTML = words[wordNo];
 
   setTimeout("slides()",4000);   
  }  
 }
 
 } 
 

//works with news items.
 
 function loadImage(viewer, source)
		{
		var fullViewer = "forSaleViewer" + viewer
		var fullSource = source.substring(0,source.indexOf('_')) + "_Mid.jpg";		
		
		document.getElementById(fullViewer).src = fullSource;	
		
		} 
		
function thumbCursor(item)
		{
			document.getElementById(item).style.cursor = "hand";
		}
		
//default customers

var pickie = 2;
		function customerPickies()		
		{
		var pictureLocation = "images/home/";
		if (pickie > 4)
		{pickie = 2;}		
		document.getElementById("customerImages").src = pictureLocation + "customerDay_" + pickie + "Mid.jpg";
		pickie++;
		setTimeout(customerPickies,3000);	
		
		}		

//STOP PRESS		
		
function headliners(number)
		{
		
		var pictureLocation = "images/headliners/";
		var pictureBase = "headliner";
		var pictureType = "_Mid.jpg";		
		
		document.getElementById("headlineViewer").src = pictureLocation + pictureBase + number + pictureType
		
		
		}
