/************************************************************************************************
*                                                                                               *
*                               Written By:  Clinton Montague                                   *
*                               Email: clint@hot-htmler.co.uk                                   *
*                             Website:  http://fullspeed.to/b-m                                 *
*                                                                                               *
************************************************************************************************/

/////////////////////////////////////////////////////////////////////////////////////////////////
//
//   Put the pages that the links go to in this array
//   Eg. www.yanktanks.co.uk/home.html
//   Eg. home.html
//
/////////////////////////////////////////////////////////////////////////////////////////////////

var linkArray = new Array();
linkArray[0] = "../fooddrink.htm"; 
linkArray[1] = "../plates.htm";
linkArray[2] = "../carlinks.htm"; 
linkArray[3] = "../magazines.htm"; 
linkArray[4] = "../contents.htm"; 

/////////////////////////////////////////////////////////////////////////////////////////////////
//
//   Put the text that you want the users to click into this array, they match with the links 
//   in the array above (people click on the text in   descArray[1]    to go to the address in
//   linkArray[1]     ).
//
/////////////////////////////////////////////////////////////////////////////////////////////////

var descArray = new Array();
descArray[0] = "American Food and Drink now available for delivery from the UK"; 
descArray[1] = "American Number Plates";
descArray[2] = "Updated car enthusiast links";
descArray[3] = "Updated list of American Auto magazines";
descArray[4] = "Back to the contents page";





/////////////////////////////////////////////////////////////////////////////////////////////////
//
//   Put the charactor that you want to seperate the links with below.
//   Eg. "|"  for a | to seperate the links    (Home | Links)
//   Eg. "-|-" to sperate the links with -|-   (Home -|- Links)
//   Eg. "&sect;" for a section sign seperator (Home § Links)
//   Eg. "" for no seperator                   (Home Links)
//
/////////////////////////////////////////////////////////////////////////////////////////////////

var seperator = " <P> "




/////////////////////////////////////////////////////////////////////////////////////////////////
//
//Change nothing below this line!!!
//
/////////////////////////////////////////////////////////////////////////////////////////////////


var htmlStr = "";
var i = 0;

if(linkArray.length == descArray.length) {
  var j = descArray.length - 1;
 }
else {
  if(linkArray.length > descArray.length) {
    var j = linkArray.length - 1;
  }
  else {
    var j = descArray.length - 1;
  }
}

if(linkArray.length == descArray.length) {
  for(var i=0;i<linkArray.length-1;i++){
	htmlStr+= 
              "<a href='"+ linkArray[i] +"'>"+ descArray[i] +"</a> "+ seperator +" ";
    }

  htmlStr+=
     "<a href='"+ linkArray[j] +"'>"+ descArray[j] +"</a>";
 }
else {
  if(linkArray.length > descArray.length) {
    for(var i=0;i<linkArray.length-1;i++){
	  htmlStr+= 
                "<a href='"+ linkArray[i] +"'>"+ descArray[i] +"</a> "+ seperator +" ";
      }

    htmlStr+=
       "<a href='"+ linkArray[j] +"'>"+ descArray[j] +"</a>";
  }

  if(linkArray.length < descArray.length) {
    for(var i=0;i<descArray.length-1;i++){
	  htmlStr+= 
                "<a href='"+ linkArray[i] +"'>"+ descArray[i] +"</a> "+ seperator +" ";
      }

    htmlStr+=
       "<a href='"+ linkArray[j] +"'>"+ descArray[j] +"</a>";
  }
}

document.write(htmlStr);
