 
<!-- Hide from old browsers
//Routine for shuffling trevdas
shuffle = function(a){
	for(var b, c, d = a.length; d; b = parseInt(Math.random() * d), c = a[--d], a[d] = a[b], a[b] = c);
        return a;
};
//End of shuffling Routine
// ...................................................................... 

//Display the trevdas
display = function(){
  firstbit='<a href="http://www.tandem-club.org.uk/redirect.php?page=http://' + url + '&name='+ name +'" '
  mouseoverbit='onMouseOver=\'window.status="http://' + url + '"; return true \' ';
  mouseoutbit='onMouseOut=\'window.status=""; return true\' target="_blank" alt="' + alt + '" title="' + alt + '">';
  logobit='<img src="http://www.tandem-club.org.uk/nf2007/opportunities/' + logo + '" width="100" height="110" align="absmiddle" border="1"></a>';

  document.write('<table bgcolor="white" cellspacing="0" cellpadding="0"><tr><td>');
  document.write(firstbit + mouseoverbit + mouseoutbit + logobit);
  document.write('</td></tr></table>');
  document.write('<img src="http://www.tandem-club.org.uk/nf2007/assets/space.gif"+ border=0 width="102" height="3">');
};
//End of display Routine
// ...................................................................... 

// To add more items, change the script below, as follows:- 
// Following the line "items = new Array" add, change or delete the item file names listed. More or less items in the list are automatically accomodated.


items = new Array("",  // this line starts the array of items. DO NOT remove or change it! 
// items below can be changed at will, including the number of entries but the "list" array must be kept in line
// the fields are: - graphic name, company name, URL/status bar name, alt text 
// ...................................................................... 

//"altenalogo.gif","Altena Bike","www.altena-bike.nl","abcdefghijklmnopqrstuvwxyz abcdefghijklmnopqrstuvwxyz abcdefghijklmnopqrstuvwxyz abcdefghijklmnopqrstuvwxyz abcdefghijklmnopqrstuvwxyz abcdefghijklmnopqrstuvwxyz abcdefghijklmnopqrstuvwxyz abcdefghijklmnopqrstuvwxyz ",

"discovertandeminglogo2.gif","Discover Tandeming","www.discovertandeming.co.uk","Try tandeming in the beautiful surroundings of the Sussex Coast or the Yorkshire Dales",//until 20090515

"jdcycleslogo.gif","J D Cycles","www.tandems.co.uk","Cannondale, Dawes, Hase, Multicycle, Orbit, Santana, Santos and Ventana tandems. Free test rides available.",//until 20090717

//"jdcycleslogo.gif","J D Cycles","www.tandems.co.uk","Come & see Santana, Santos & Orbit tandems at the London Cycle Show at Earls Court - 12th to 14th October 2007",//until 20071014 then revert to above

//"landescapelogo.gif","Landescape","www.landescapetandems.com",

//"lockslogo.gif","Locks","www.locksofsandwich.co.uk","www.locksofsandwich.co.uk",

"msglogo.gif","MSG Bikes","www.msgbikes.com","Specialising in ergonomic tandem fitting",//until 20100623

//"sjslogo.gif","S J S Cycles","www.sjscycles.co.uk","S J S Cycles test text",

//"tandemseastlogo.gif","Tandems East","www.tandemseast.com","Based in New Jersey, USA - supplier of Burley, Calfee, Cannondale, Da Vinci, Rans plus White Industries hubs, Velocity rims and much more",//testing at 20080717

"texperiencelogo.gif","Tandem Experience","www.tandeming.co.uk","The original try before you buy company",//until 20090717

"thetandemshoplogo.gif","The Tandem Shop","www.thetandemshop.com","Suppliers of Raleigh, Dawes, KHS, Landescape, Co­Motion & part exchange",//until 20090717

//"thornlogo.gif","Thorn Cycles","www.thorncycles.co.uk","Thorn Cycles test text"

//"daweslogo.gif","Dawes Cycles","www.dawescycles.com","Dawes test text",

//"velotransatlantiquelogo.gif","Velo Transatlantique","www.velotransatlantique.com","Velo Transatlantique test text",

// ...................................................................... 
// items above can be changed at will, including the number of entries
"") // this line completes the array.  DO NOT remove or change it! 

//The following 'if' deals with situ when only one trevda is in the list
if([items.length-2]/4==1){
  logo=items[1];
  name=items[2];
  url=items[3];
  alt=items[4];
  display();
}
else{

// If more than one trevda in the list...
// entries in the line below must be kept in step with the number of trevdas above
  list = new Array(1,2,3,4,5);
//document.write("&nbsp;&nbsp;input array = ", list.join(","), "<br />output array = ", shuffle(list));
// ...................................................................... 

  shuffle(list);
  var ItemstrevdaCount = [items.length-2]/4; // ItemstrevdaCount holds number of trevdas in 1st array 
  var ListtrevdaCount = [list.length]; // ListtrevdaCount holds number of items in 2nd array

  if(ItemstrevdaCount != ListtrevdaCount){
    alert("Counts disagree in trevdas tables \n ItemstrevdaCount = " + ItemstrevdaCount + " \n ListtrevdaCount = " + ListtrevdaCount); 
  }
  var CountDown = ListtrevdaCount;
  while(CountDown > 0) {
    logo=items[[list[CountDown-1]*4]-3];
    name=items[[list[CountDown-1]*4]-2];
    url=items[[list[CountDown-1]*4]-1];
    alt=items[list[CountDown-1]*4];
    display();
    CountDown = CountDown-1;
  };//end of while loop

};//end of if/else


// -- End Hiding Here --> 
