var documents = new Array();

  documents["contract"]                    = "contract.html~Contract~Contract&nbsp;portfolio";
  documents["features_chimney_extensions"] = "features_chimney_extensions.html~Features~Chimney extensions";
  documents["features_hamworthy"]          = "features_hamworthy.html~Features~Gas combustion units for natural gas carriers";
  documents["features_hse"]                = "features_hse.html~Features~Health and Safety Executive";
  documents["features_menu"]               = "features_menu.html~Features~News &amp; features";
  documents["features_rockware"]           = "features_rockware.html~Features~Rockware Glass";
  documents["features_software"]           = "features_software.html~Features~Software";
  documents["features_steel_chimneys"]     = "features_steel_chimneys.html~Features~Steel chimney problems and maintenance";
  documents["features_10_years"]           = "features_10_years.html~Features~Ten years in business";
  documents["features_txu"]                = "features_txu.html~Features~T X U";
  documents["features_whisky"]             = "features_whisky.html~Features~Whisky distillers";
  documents["john_turner_bibliography"]    = "john_turner_bibliography.html~John&nbsp;Turner~Bibliography";
  documents["john_turner_career_history"]  = "john_turner_career_history.html~John&nbsp;Turner~Career history";
  documents["john_turner_profile"]         = "john_turner_profile.html~John&nbsp;Turner~Profile";
  documents["services_industry"]           = "services_industry.html~Services~Services to industry";
  documents["services_maintenance"]        = "services_maintenance.html~Services~Maintenance services";
  documents["services_project"]            = "services_project.html~Services~Project services";
  documents["welcome"]                     = ".~Welcome~Welcome";
  documents["welcome_contact"]             = "welcome_contact.html~Welcome~Contact information";
  documents["welcome_form"]                = "welcome_form.php~Welcome~Feedback form";





//-------------------------------------------------------------------------------------------------------------------------
//--- [function: getDocumentFile] -----------------------------------------------------------------------------------------

/* Looks up and returns the file name associated with label passed to the function. For example:
 * 
 * getDocumentFile("home_0000")
 * 
 * looks up the element called home_0000 in the documents array, splits the string held in the element into a new array and
 * returns the first element in the new array. The first element is the HTML file: home_0000.html in this example.
 * 
 */

function getDocumentFile(lookup) {

  var ref = new Array();
  ref = documents[lookup].split("~");

  return ref[0];
  }

//--- [end of function: getDocumentFile] ----------------------------------------------------------------------------------
//-------------------------------------------------------------------------------------------------------------------------




//-------------------------------------------------------------------------------------------------------------------------
//--- [function: getDocumentSection] --------------------------------------------------------------------------------------

/* Looks up and returns the site section associated with label passed to the function. For example:
 * 
 * getDocumentSection("home_0000")
 * 
 * looks up the element called home_0000 in the documents array, splits the string held in the element into a new array and
 * returns the second element in the new array. The second element is the document section: Home in this example.
 * 
 */

function getDocumentSection(lookup) {

  var ref = new Array();
  ref = documents[lookup].split("~");

  return ref[1];
  }

//--- [end of function: getDocumentSection] -------------------------------------------------------------------------------
//-------------------------------------------------------------------------------------------------------------------------




//-------------------------------------------------------------------------------------------------------------------------
//--- [function: getDocumentTitle] ----------------------------------------------------------------------------------------

/* Looks up and returns the document title associated with label passed to the function. For example:
 * 
 * getDocumentSection("home_0000")
 * 
 * looks up the element called home_0000 in the documents array, splits the string held in the element into a new array and
 * returns the third element in the new array. The third element is the document title.
 * 
 */

function getDocumentTitle(lookup) {

  var ref = new Array();
  ref = documents[lookup].split("~");

  return ref[2];
  }

//--- [end of function: getDocumentTitle] ---------------------------------------------------------------------------------
//-------------------------------------------------------------------------------------------------------------------------




//-------------------------------------------------------------------------------------------------------------------------
//--- [function: linkTo] --------------------------------------------------------------------------------------------------

/* 
 */

function linkTo(lookup,flag) {

  var link = "";

  link = "<A HREF=" + getDocumentFile(lookup) + ">";

  if (flag)
    link = link + getDocumentSection(lookup) + ": ";

  link = link + getDocumentTitle(lookup) + "</A>";

  return link;
  }

//--- [end of function: LinkTo] -------------------------------------------------------------------------------------------
//-------------------------------------------------------------------------------------------------------------------------




//-------------------------------------------------------------------------------------------------------------------------
//--- [function: verifyForm] ----------------------------------------------------------------------------------------------

/* 
 */


function verifyForm(f) {
 
  var result = true;
  var errorMessage = "Please complete the following\nbefore you submit your enquiry:          \n\n";
 
  if(f.name.value == "") {
    result = false;
    errorMessage = errorMessage + "Name\n";
    }
 
  if(/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/.test(f.email.value) == false){
    result = false;
    errorMessage = errorMessage + "A valid e-mail address\n";
    }
 
  if(f.enquiry.value == "") {
    result = false;
    errorMessage = errorMessage + "Enquiry\n";
    }
 
  if (result) {
    return result;
    }
 
  else {
 
    alert(errorMessage);
    return result;
 
    }
 
  }
 
 


//--- [end of function: processFeedback] ----------------------------------------------------------------------------------
//-------------------------------------------------------------------------------------------------------------------------




//-------------------------------------------------------------------------------------------------------------------------
//--- [function: quotation] -----------------------------------------------------------------------------------------------

/* 
 */

function quotation() {

  var quotation_number=9;                                              // number of quotations

  var quotation_image_start="<IMG src=images/quotation_";
  var quotation_image_middle;
  var quotation_image_end=".gif alt ='Quotation'>";
  var quotation_image;

  quotation_image_middle=Math.random();                                // generate the random value
  quotation_image_middle=(quotation_number*quotation_image_middle)+1;  // from this, generate an appropriate number
  quotation_image_middle=Math.floor(quotation_image_middle);           // round the number down

  quotation_image=quotation_image_start+quotation_image_middle+quotation_image_end;

  document.write(quotation_image);
  }

//--- [end of function: quotation] ----------------------------------------------------------------------------------------
//-------------------------------------------------------------------------------------------------------------------------




//-------------------------------------------------------------------------------------------------------------------------
//--- [function: writeDocumentTitle] --------------------------------------------------------------------------------------

/* 
 */

function writeDocumentTitle() {

  document.write("<B>" + document_title + "<BR>&nbsp;</B>");

  return true;
  }

//--- [end of function: writeDocumentTitle] -------------------------------------------------------------------------------
//-------------------------------------------------------------------------------------------------------------------------




//-------------------------------------------------------------------------------------------------------------------------
//--- [function: writeLeftNavigation] -------------------------------------------------------------------------------------

/* 
 */

function writeLeftNavigation(menu) {

  switch(menu) {

    case "Contract":
      document.write("<TABLE width=150 cellspacing=0 cellpadding=0 border=0>" +
                     "  <TR valign=top>" +
                     "    <TD colspan=2>" +
                     "      <B>Contract</B>" +
                     "    </TD>" +
                     "  </TR>" +
                     "  <TR valign=top>" +
                     "    <TD colspan=2>" +
                     "      &nbsp;" +
                     "    </TD>" +
                     "  </TR>" +
                     "  <TR valign=top>" +
                     "    <TD colspan=2>" +
                     "      &nbsp;" +
                     "    </TD>" +
                     "  </TR>" +
                     "</TABLE>");
      break;


    case "Features":
      document.write("<TABLE width=150 cellspacing=0 cellpadding=0 border=0>" +
                     "  <TR valign=top>" +
                     "    <TD colspan=2>" +
                     "      <B>Features</B>" +
                     "    </TD>" +
                     "  </TR>" +
                     "  <TR valign=top>" +
                     "    <TD colspan=2>" +
                     "      &nbsp;" +
                     "    </TD>" +
                     "  </TR>" +
                     "  <TR valign=top>" +
                     "    <TD width=20>" +
                     "      <IMG src=images/bullet.gif border=0>" +
                     "    </TD>" +
                     "    <TD>" + linkTo("features_10_years",false) +
                     "    </TD>" +
                     "  </TR>" +
                     "  <TR valign=top>" +
                     "    <TD colspan=2>" +
                     "      &nbsp;" +
                     "    </TD>" +
                     "  </TR>" +
                     "  <TR valign=top>" +
                     "    <TD width=20>" +
                     "      <IMG src=images/bullet.gif border=0>" +
                     "    </TD>" +
                     "    <TD>" + linkTo("features_steel_chimneys",false) +
                     "    </TD>" +
                     "  </TR>" +
                     "  <TR valign=top>" +
                     "    <TD colspan=2>" +
                     "      &nbsp;" +
                     "    </TD>" +
                     "  </TR>" +
                     "  <TR valign=top>" +
                     "    <TD width=20>" +
                     "      <IMG src=images/bullet.gif border=0>" +
                     "    </TD>" +
                     "    <TD>" + linkTo("features_hamworthy",false) +
                     "    </TD>" +
                     "  </TR>" +
                     "  <TR valign=top>" +
                     "    <TD colspan=2>" +
                     "      &nbsp;" +
                     "    </TD>" +
                     "  </TR>" +
                     "  <TR valign=top>" +
                     "    <TD width=20>" +
                     "      <IMG src=images/bullet.gif border=0>" +
                     "    </TD>" +
                     "    <TD>" + linkTo("features_chimney_extensions",false) +
                     "    </TD>" +
                     "  </TR>" +
                     "  <TR valign=top>" +
                     "    <TD colspan=2>" +
                     "      &nbsp;" +
                     "    </TD>" +
                     "  </TR>" +
                     "  <TR valign=top>" +
                     "    <TD width=20>" +
                     "      <IMG src=images/bullet.gif border=0>" +
                     "    </TD>" +
                     "    <TD>" + linkTo("features_software",false) +
                     "    </TD>" +
                     "  </TR>" +
                     "  <TR valign=top>" +
                     "    <TD colspan=2>" +
                     "      &nbsp;" +
                     "    </TD>" +
                     "  </TR>" +
                     "  <TR valign=top>" +
                     "    <TD width=20>" +
                     "      <IMG src=images/bullet.gif border=0>" +
                     "    </TD>" +
                     "    <TD>" + linkTo("features_rockware",false) +
                     "    </TD>" +
                     "  </TR>" +
                     "  <TR valign=top>" +
                     "    <TD colspan=2>" +
                     "      &nbsp;" +
                     "    </TD>" +
                     "  </TR>" +
                     "  <TR valign=top>" +
                     "    <TD width=20>" +
                     "      <IMG src=images/bullet.gif border=0>" +
                     "    </TD>" +
                     "    <TD>" + linkTo("features_whisky",false) +
                     "    </TD>" +
                     "  </TR>" +
                     "  <TR valign=top>" +
                     "    <TD colspan=2>" +
                     "      &nbsp;" +
                     "    </TD>" +
                     "  </TR>" +
                     "  <TR valign=top>" +
                     "    <TD width=20>" +
                     "      <IMG src=images/bullet.gif border=0>" +
                     "    </TD>" +
                     "    <TD>" + linkTo("features_hse",false) +
                     "    </TD>" +
                     "  </TR>" +
                     "  <TR valign=top>" +
                     "    <TD colspan=2>" +
                     "      &nbsp;" +
                     "    </TD>" +
                     "  </TR>" +
                     "  <TR valign=top>" +
                     "    <TD width=20>" +
                     "      <IMG src=images/bullet.gif border=0>" +
                     "    </TD>" +
                     "    <TD>" + linkTo("features_txu",false) +
                     "    </TD>" +
                     "  </TR>" +
                     "  <TR valign=top>" +
                     "    <TD colspan=2>" +
                     "      &nbsp;" +
                     "    </TD>" +
                     "  </TR>" +
                     "</TABLE>");
      break;


    case "John&nbsp;Turner":
      document.write("<TABLE width=150 cellspacing=0 cellpadding=0 border=0>" +
                     "  <TR valign=top>" +
                     "    <TD colspan=2>" +
                     "      <B>John Turner</B>" +
                     "    </TD>" +
                     "  </TR>" +
                     "  <TR valign=top>" +
                     "    <TD colspan=2>" +
                     "      &nbsp;" +
                     "    </TD>" +
                     "  </TR>" +
                     "  <TR valign=top>" +
                     "    <TD width=20>" +
                     "      <IMG src=images/bullet.gif border=0>" +
                     "    </TD>" +
                     "    <TD>" + linkTo("john_turner_profile",false) +
                     "    </TD>" +
                     "  </TR>" +
                     "  <TR valign=top>" +
                     "    <TD colspan=2>" +
                     "      &nbsp;" +
                     "    </TD>" +
                     "  </TR>" +
                     "  <TR valign=top>" +
                     "    <TD width=20>" +
                     "      <IMG src=images/bullet.gif border=0>" +
                     "    </TD>" +
                     "    <TD>" + linkTo("john_turner_career_history",false) +
                     "    </TD>" +
                     "  </TR>" +
                     "  <TR valign=top>" +
                     "    <TD colspan=2>" +
                     "      &nbsp;" +
                     "    </TD>" +
                     "  </TR>" +
                     "  <TR valign=top>" +
                     "    <TD width=20>" +
                     "      <IMG src=images/bullet.gif border=0>" +
                     "    </TD>" +
                     "    <TD>" + linkTo("john_turner_bibliography",false) +
                     "    </TD>" +
                     "  </TR>" +
                     "  <TR valign=top>" +
                     "    <TD colspan=2>" +
                     "      &nbsp;" +
                     "    </TD>" +
                     "  </TR>" +
                     "</TABLE>");
      break;


    case "Services":
      document.write("<TABLE width=150 cellspacing=0 cellpadding=0 border=0>" +
                     "  <TR valign=top>" +
                     "    <TD colspan=2>" +
                     "      <B>Services</B>" +
                     "    </TD>" +
                     "  </TR>" +
                     "  <TR valign=top>" +
                     "    <TD colspan=2>" +
                     "      &nbsp;" +
                     "    </TD>" +
                     "  </TR>" +
                     "  <TR valign=top>" +
                     "    <TD width=20>" +
                     "      <IMG src=images/bullet.gif border=0>" +
                     "    </TD>" +
                     "    <TD>" + linkTo("services_industry",false) +
                     "    </TD>" +
                     "  </TR>" +
                     "  <TR valign=top>" +
                     "    <TD colspan=2>" +
                     "      &nbsp;" +
                     "    </TD>" +
                     "  </TR>" +
                     "  <TR valign=top>" +
                     "    <TD width=20>" +
                     "      <IMG src=images/bullet.gif border=0>" +
                     "    </TD>" +
                     "    <TD>" + linkTo("services_project",false) +
                     "    </TD>" +
                     "  </TR>" +
                     "  <TR valign=top>" +
                     "    <TD colspan=2>" +
                     "      &nbsp;" +
                     "    </TD>" +
                     "  </TR>" +
                     "  <TR valign=top>" +
                     "    <TD width=20>" +
                     "      <IMG src=images/bullet.gif border=0>" +
                     "    </TD>" +
                     "    <TD>" + linkTo("services_maintenance",false) +
                     "    </TD>" +
                     "  </TR>" +
                     "  <TR valign=top>" +
                     "    <TD colspan=2>" +
                     "      &nbsp;" +
                     "    </TD>" +
                     "  </TR>" +
                     "</TABLE>");
      break;


    case "Welcome":
      document.write("<TABLE width=150 cellspacing=0 cellpadding=0 border=0>" +
                     "  <TR valign=top>" +
                     "    <TD colspan=2>" +
                     "      <B>Welcome</B>" +
                     "    </TD>" +
                     "  </TR>" +
                     "  <TR valign=top>" +
                     "    <TD colspan=2>" +
                     "      &nbsp;" +
                     "    </TD>" +
                     "  </TR>" +
                     "  <TR valign=top>" +
                     "    <TD width=20>" +
                     "      <IMG src=images/bullet.gif border=0>" +
                     "    </TD>" +
                     "    <TD>" + linkTo("welcome",false) +
                     "    </TD>" +
                     "  </TR>" +
                     "  <TR valign=top>" +
                     "    <TD colspan=2>" +
                     "      &nbsp;" +
                     "    </TD>" +
                     "  </TR>" +
                     "  <TR valign=top>" +
                     "    <TD width=20>" +
                     "      <IMG src=images/bullet.gif border=0>" +
                     "    </TD>" +
                     "    <TD>" + linkTo("welcome_contact",false) +
                     "    </TD>" +
                     "  </TR>" +
                     "  <TR valign=top>" +
                     "    <TD colspan=2>" +
                     "      &nbsp;" +
                     "    </TD>" +
                     "  </TR>" +
                     "  <TR valign=top>" +
                     "    <TD width=20>" +
                     "      <IMG src=images/bullet.gif border=0>" +
                     "    </TD>" +
                     "    <TD>" + linkTo("welcome_form",false) +
                     "    </TD>" +
                     "  </TR>" +
                     "  <TR valign=top>" +
                     "    <TD colspan=2>" +
                     "      &nbsp;" +
                     "    </TD>" +
                     "  </TR>" +
                     "</TABLE>");
      break;

    }
  }

//--- [end of function: writeLeftNavigation] ------------------------------------------------------------------------------
//-------------------------------------------------------------------------------------------------------------------------




//-------------------------------------------------------------------------------------------------------------------------
//--- [function: writeMainNavigation] -------------------------------------------------------------------------------------

/* Writes into the calling page a table containing the site's main navigation, across the top of the page. In the first
 * document.write line, change border width to see the extent of the table.
 *
 * Note the two uses of images/transparent.gif to give the table the correct height and the links the correct spacing
 * from the bottom of the table.
 *
 * This must be the first script called in all pages' <BODY> sections.
 * 
 */

function writeMainNavigation() {

  document.write("<TABLE background=images/main_navigation.jpg bgcolor=#ffffff cellpadding=0 cellspacing=0 width=762 border=0>" +
                 "  <TR>" +
                 "    <TD width=*>" +
                 "      <IMG src=images/transparent.gif width=1 height=105 border=0>" +
                 "    </TD>" +
                 "    <TD width=10>" +
                 "      <IMG src=images/transparent.gif width=10 height=1 border=0>" +
                 "    </TD>" +
                 "  </TR>" +
                 "  <TR>" +
                 "    <TD align=right>" +
                 "      <B>" +
                 "        <IMG src=images/bullet.gif border=0>&nbsp;<A HREF=.>Welcome</A> " +
                 "        <IMG src=images/bullet.gif border=0>&nbsp;<A HREF=services_industry.html>Services</A> " +
                 "        <IMG src=images/bullet.gif border=0>&nbsp;" + linkTo("contract", false) + " " +
                 "        <IMG src=images/bullet.gif border=0>&nbsp;" + linkTo("features_menu", false) + " " +
                 "        <IMG src=images/bullet.gif border=0>&nbsp;<A HREF=john_turner_profile.html>John&nbsp;Turner</A> " +
                 "      </B>" +
                 "    </TD>" +
                 "    <TD>" +
                 "      &nbsp;" +
                 "    </TD>" +
                 "  </TR>" +
                 "  <TR>" +
                 "    <TD colspan=2>" +
                 "      &nbsp;" +
                 "    </TD>" +
                 "  </TR>" +
                 "  <TR>" +
                 "    <TD bgcolor=#084284 colspan=2>" +
                 "      &nbsp;" +
                 "    </TD>" +
                 "  </TR>" +
                 "</TABLE>");

  return true;
  }

//--- [end of function: writeMainNavigation] ------------------------------------------------------------------------------
//-------------------------------------------------------------------------------------------------------------------------




//-------------------------------------------------------------------------------------------------------------------------
//--- [function: writeMainTableBottom] ------------------------------------------------------------------------------------

/* 
 */

function writeMainTableBottom() {

  document.write("    </TD>" +
                 "  <TR>" +
                 "    <TD>" +
                 "      <IMG src=images/transparent.gif width=10 height=1 border=0>" +
                 "    </TD>" +
                 "    <TD>" +
                 "      <IMG src=images/transparent.gif width=150 height=1 border=0>" +
                 "    </TD>" +
                 "    <TD>" +
                 "      <IMG src=images/transparent.gif width=9 height=1 border=0>" +
                 "    </TD>" +
                 "    <TD bgcolor=#084284>" +
                 "      <IMG src=images/transparent.gif width=1 height=1 border=0>" +
                 "    </TD>" +
                 "    <TD bgcolor=#ffffff>" +
                 "      <IMG src=images/transparent.gif width=592 height=1 border=0>" +
                 "    </TD>" +
                 "  </TR>" +
                 "  </TR>" +
                 "  <TR>" +
                 "    <TD>" +
                 "      &nbsp;" +
                 "    </TD>" +
                 "    <TD>");

  writeMenuImage();

  document.write("    </TD>" +
                 "    <TD>" +
                 "      &nbsp;" +
                 "    </TD>" +
                 "    <TD bgcolor=#084284>" +
                 "      <IMG src=images/transparent.gif width=1 height=1 border=0>" +
                 "    </TD>" +
                 "    <TD bgcolor=#ffffff>" +
                 "      &nbsp;" +
                 "    </TD>" +
                 "  </TR>" +
                 "  <TR>" +
                 "    <TD>" +
                 "      &nbsp;" +
                 "    </TD>" +
                 "    <TD>" +
                 "      &nbsp;" +
                 "    </TD>" +
                 "    <TD>" +
                 "      &nbsp;" +
                 "    </TD>" +
                 "    <TD bgcolor=#084284>" +
                 "      <IMG src=images/transparent.gif width=1 height=1 border=0>" +
                 "    </TD>" +
                 "    <TD bgcolor=#ffffff>" +
                 "      &nbsp;" +
                 "    </TD>" +
                 "  </TR>" +
                 "  <TR>" +
                 "    <TD bgcolor=#084284>" +
                 "      &nbsp;" +
                 "    </TD>" +
                 "    <TD bgcolor=#084284>" +
                 "      <TABLE width=100% cellspacing=0 cellpadding=0 border=0>" +
                 "        <TR>" +
                 "          <TD height=5>" +
                 "          </TD>" +
                 "        </TR>" +
                 "        <TR>" +
                 "          <TD>" +
                 "            <P class=copyright>Copyright &copy; 1999-2008<BR>John&nbsp;Turner (Engineering&nbsp;Consultants) Limited.</P>" +
                 "          </TD>" +
                 "        </TR>" +
                 "        <TR>" +
                 "          <TD height=10>" +
                 "          </TD>" +
                 "        </TR>" +
                 "      </TABLE>" +
                 "    </TD>" +
                 "    <TD bgcolor=#084284>" +
                 "      &nbsp;" +
                 "    </TD>" +
                 "    <TD bgcolor=#084284>" +
                 "      <IMG src=images/transparent.gif width=1 height=1 border=0>" +
                 "    </TD>" +
                 "    <TD class=advert bgcolor=#ffffff align=right valign=top>" +
                 "    </TD>" +
                 "  </TR>" +
                 "</TABLE>");

  return true;
  }

//--- [end of function: writeMainTableBottom] -----------------------------------------------------------------------------
//-------------------------------------------------------------------------------------------------------------------------




//-------------------------------------------------------------------------------------------------------------------------
//--- [function: writeMainTableTop] ---------------------------------------------------------------------------------------

/* 
 */

function writeMainTableTop(menu) {

  document.write("<TABLE cellpadding=0 cellspacing=0 width=762 border=0>" +
                 "  <TR valign=top>" +
                 "    <TD width=10>" +
                 "      &nbsp;" +
                 "    </TD>" +
                 "    <TD width=150>" +
                 "      &nbsp;");

  writeLeftNavigation(menu);

  document.write("    </TD>" +
                 "    <TD width=9>" +
                 "      &nbsp;" +
                 "    </TD>" +
                 "    <TD bgcolor=#084284 width=1>" +
                 "      <IMG src=images/transparent.gif width=1 height=1 border=0>" +
                 "    </TD>" +
                 "    <TD bgcolor=#ffffff>");

  }

//--- [end of function: writeMainTableTop] --------------------------------------------------------------------------------
//-------------------------------------------------------------------------------------------------------------------------




//-------------------------------------------------------------------------------------------------------------------------
//--- [function: writeMenuImage] ------------------------------------------------------------------------------------------

/* This function produces the image at the bottom of each of the section menus on the left of
 * the pages. It is called by writeMainTableTop().
 * 
 */

function writeMenuImage() {

  var menu_number=15;                                                   // number of menu images

  var menu_image_start = "<IMG src=images/menu_image";
  var menu_image_middle;
  var menu_image_end = ".gif border=0>";
  var menu_image;

  menu_image_middle = Math.random();                                   // generate the random value
  menu_image_middle = (menu_number * menu_image_middle)+1;             // from this, generate an appropriate number
  menu_image_middle = Math.floor(menu_image_middle);                   // round the number down

  menu_image = menu_image_start + menu_image_middle + menu_image_end;

  document.write(menu_image);

  return true;
  }

//--- [end of function: writeMenuImage] -----------------------------------------------------------------------------------
//-------------------------------------------------------------------------------------------------------------------------




