var srcDirectoryMenu = "images/menu/"

var menusList = new Array;
menusList = [
 [ // Menu 0
  ["donate.gif",'<b>Secure Donations</b><br><img src="images/logos/cards/all.gif" width="103" height="18" border="0">', "donate.php?campaign=LEJOG2010"]
  ],

 [ // Menu 1
  ["donate.gif",'<b>Secure Donations</b><br><img src="images/logos/cards/all.gif" width="103" height="18" border="0">', "donate_main.php"],
  ["fastnet4.jpg","Fastnet Home", "event_fastnet.htm"],
  ["fastnet5.jpg","Fastnet 2003 Gallery", "gallery_thumb_fn03.htm"]
//  ["fastnet1.jpg","Itinery", "event_fastnet_itinery.htm"],
//  ["fastnet3.jpg","The Sigma 38", "event_fastnet_sigma38.htm"],
//  ["fastnet2.jpg","Background on the Fastnet", "event_fastnet_background.htm"]
  ],

 [ // Menu 2
  ["donate.gif",'<b>Secure Donations</b><br><img src="images/logos/cards/all.gif" width="103" height="18" border="0">', "donate_main.php"],
  ["marinecall.gif","Marinecall weather service", "marinecall.htm"],
  ["tallship.jpg","Tall Ship Challenge","tallship.htm"],
  ["tallship_faq.jpg","Tall Ship FAQs","tallship_faq.htm"],
  ["tallship_gal.jpg","Tall Ship Gallery","gallery_tallship1.htm"]
  ],

 [ // Menu 3
//  ["marinecall.gif","Marinecall weather service", "marinecall.htm"],
  ["donate.gif",'<b>Secure Donations</b><br><img src="images/logos/cards/all.gif" width="103" height="18" border="0">', "donate_main.php"],
  ["cowes3.jpg","Skandia Cowes Week 2005", "event_cowes.htm"],
  ["cowes2005.jpg","Skandia Cowes Week 2005 Gallery", "javascript:;\" onClick=\"openAscentWinCowes()"],
//  ["cowes3.jpg","Skandia Cowes Week 2004", "event_cowes.htm"],
//  ["cowes5.jpg","Skandia Cowes Week 2004 Gallery","gallery_main_cowes04.htm"],
  ["geelong.gif","Skandia Geelong Week 2005", "http://www.sail4cancer.org/news_detail.php?newsid=38"],
  ["geelong3.jpg","Skandia Geelong Week 2005 Gallery", "javascript:;\" onClick=\"openAscentWin()"]
//  ["cowes3.jpg","Skandia Cowes Week 2003", "event_cowes.htm"],
//  ["cowes4.jpg","Skandia Cowes Week Gallery", "gallery_main_cowes.htm"],
 // ["fastnet4.jpg","The Fastnet 2003", "event_fastnet.htm"],
//  ["yacht.jpg","Sail 4 Cancer Partners & Sponsors","partners.htm"],
  ],

 [ // Menu 4
  ["donate.gif",'<b>Secure Donations</b><br><img src="images/logos/cards/all.gif" width="103" height="18" border="0">', "donate_main.php"],
  ["marinecall.gif","Marinecall weather service", "marinecall.htm"],
  ["sunsail.jpg","Sun Sail 2003", "sunsail.htm"],
  ["fastnet4.jpg","The Fastnet 2003", "event_fastnet.htm"],
  ["tallship_gal.jpg","Tall Ship Gallery","gallery_tallship1.htm"]
  ],

 [ // Menu 5
//  ["marinecall.gif","Marinecall weather service", "marinecall.htm"],
  ["donate.gif",'<b>Secure Donations</b><br><img src="images/logos/cards/all.gif" width="103" height="18" border="0">', "donate_main.php"],
  ["cowes2005.jpg","Skandia Cowes Week 2005 Gallery", "javascript:;\" onClick=\"openAscentWinCowes()"],
  ["geelong3.jpg","Skandia Geelong Week 2005 Gallery", "javascript:;\" onClick=\"openAscentWin()"],
  ["cowes5.jpg","Skandia Cowes Week 2004 Gallery","gallery_main_cowes04.htm"],
  ["transat04.jpg","Transat 2004 Gallery","gallery_thumb_transat04.htm"],
//  ["geelong2.jpg","Skandia Geelong Week Gallery", "gallery_main_geelong04.htm"],
//  ["cowes4.jpg","Skandia Cowes Week 2003 Gallery", "gallery_main_cowes.htm"],
//  ["race24hr.jpg","24hr Dingy Race Gallery", "gallery_thumb_24hr.htm"],
  ["tallship_gal.jpg","Tall Ship Gallery","gallery_tallship1.htm"]
  ],

 [ // Menu 6 Vendee
  ["vendee.gif","Vendee Campaign<br><b>Home Page</b>","event_vendee04.php"],
  ["vendee.gif",'<b>Donate NOW!</b><br><img src="images/logos/cards/all.gif" width="103" height="18" border="0">',"donate.php?campaign=Vendee"],
  ["vendee.gif","A message from Nick Moloney","news_detail.php?newsid=19"],
  ["nickmoloney.jpg","Latest news from <b>nickmoloney.com</b>","http://www.nickmoloney.com/nick.asp?artid=100\" target=\"_blank"],
  ["vendee.jpg","Latest positions","http://www.vendeeglobe.org/uk/classements\" target=\"_blank"]
//  ["vendee.gif","Hall of Fame", "event_vendee04_HOF.htm"]
  ],

 [ // Menu 7 Vendee French
  ["vendee.gif","Vendee Campaign<br><b>Home Page</b>","event_vendee04_FR.php"],
  ["vendee.gif",'<b>Faite vos dons</b><br><img src="images/logos/cards/all.gif" width="103" height="18" border="0">',"http://www.sail4cancer.org/donate.php?campaign=Vendee"],
  ["vendee.gif","A message from Nick Moloney","news_detail.php?newsid=19"],
  ["nickmoloney.jpg","<b>nickmoloney.com</b>","http://www.nickmoloney.com/nick.asp?artid=200\" target=\"_blank"],
  ["vendee.jpg","Classements et Positions","http://www.vendeeglobe.org/fr/classements\" target=\"_blank"]
//  ["vendee.gif","Hall of Fame", "event_vendee04_HOF.htm"]
  ],

 [ // Menu 8 RBI
  ["rbi1.jpg","Round Britain and Ireland Homepage","news_main.php?tag=RBI"],
//  ["rbi4.jpg","Fundraising news","news_detail.php?newsid=142"],
  ["rbi3.jpg",'<b>Donate Here...</b><br><img src="images/logos/cards/all.gif" width="103" height="18" border="0">',"donate.php?campaign=RoundBritainandIreland"]
  ]

];

function rightMenu (menuNumber) {

  var totalMenuItems;
  totalMenuItems = menusList[menuNumber].length - 1;

  for (count=0 ; count <= totalMenuItems ; count++) {

    document.write ('<tr bgcolor="#003366" height="35"><td class="menuPad2"><a href="'+menusList[menuNumber][count][2]+'" class="whiteLink"');
    if (menusList[menuNumber][count][2].substring(0,5) == "https") {
	  document.write (' target="_blank">');
	} else {
	  document.write ('>');
    }	
    document.write ('<img src="'+srcDirectoryMenu+menusList[menuNumber][count][0]+'" width="56" height="33" align="left" vspace="0" hspace="0" border="0">');
	document.write ('<img src="images/transparent.gif" width="5" height="33" align="left" vspace="0" hspace="0" border="0">');
	document.write (menusList[menuNumber][count][1]);
	document.write ('<\/a><\/td><\/tr><tr><td><img src="images/shadow.gif" width="171" height="5"><\/td><\/tr>');

  }
}

function openAscentWin () {
 newWindow = window.open('http://www.ascentimages.com/lightbox.php?lbox_name=geelong','ascentWin','resizable=yes,scrollbars=yes,toolbar=no,location=no,width=820,height=800');
 newWindow.focus();
}
function openAscentWinCowes () {
 newWindow = window.open('http://www.ascentimages.com/lightbox.php?lbox_name=Cowes2005','ascentWin','resizable=yes,scrollbars=yes,toolbar=no,location=no,width=820,height=800');
 newWindow.focus();
}



