
/************************ FMD WEB FRAMEWORK - CUSTOM SCRIPTS ***********************/
/* Version: 1.0                                                                    */
/* Copyright (c) 2003 Flying Machine Development, All Rights Reserved              */
/* Contact: info@flyingmachinedevelopment.com                                      */
/***********************************************************************************/


/******************************** custom scripts ********************************/

  var WEBSITE_SECTION = "";

  function preloadNavImages()
  {
    preloadImages('images/nav_about_us_over.gif','images/nav_products_over.gif','images/nav_flavor_over.gif','images/nav_r_d_over.gif','images/nav_q_c_over.gif' ,'images/nav_from_field_over.gif','images/nav_logistics_over.gif','images/nav_contact_over.gif','images/nav_growing_over.gif')
  }

  function showTopNav()
  {
    var sBuf="";
    sBuf+='<table cellpadding="0" cellspacing="0" border="0">\n';
    sBuf+='  <tr>\n';
    sBuf+='    <td><a href="about.htm" onmouseover="swapImage(\'nav1\',\'\',\'images/nav_about_us_over.gif\',1)" onmouseout="swapImgRestore()"><img name="nav1" src="images/' + (WEBSITE_SECTION=='ABOUT'?'nav_about_us_on.gif':'nav_about_us.gif') + '" height="25" width="96" border="0"></a></td>\n';
    sBuf+='    <td><a href="products.htm" onmouseover="swapImage(\'nav2\',\'\',\'images/nav_products_over.gif\',1);//showMenu(\'menu1\',96,106)" onmouseout="swapImgRestore()"><img name="nav2" src="images/' + (WEBSITE_SECTION=='PRODUCTS'?'nav_products_on.gif':'nav_products.gif') + '" height="25" width="97" border="0"></td>\n';
    sBuf+='    <td><a href="flavor.htm" onmouseover="swapImage(\'nav3\',\'\',\'images/nav_flavor_over.gif\',1)" onmouseout="swapImgRestore()"><img name="nav3" src="images/' + (WEBSITE_SECTION=='FLAVOR'?'nav_flavor_on.gif':'nav_flavor.gif') + '" height="25" width="97" border="0"></td>\n';
    sBuf+='    <td><a href="research.htm" onmouseover="swapImage(\'nav4\',\'\',\'images/nav_r_d_over.gif\',1)" onmouseout="swapImgRestore()"><img name="nav4" src="images/' + (WEBSITE_SECTION=='RESEARCH'?'nav_r_d_on.gif':'nav_r_d.gif') + '" height="25" width="96" border="0"></td>\n';
    sBuf+='    <td><a href="quality.htm" onmouseover="swapImage(\'nav5\',\'\',\'images/nav_q_c_over.gif\',1)" onmouseout="swapImgRestore()"><img name="nav5" src="images/' + (WEBSITE_SECTION=='QUALITY'?'nav_q_c_on.gif':'nav_q_c.gif') + '" height="25" width="96" border="0"></td>\n';
    sBuf+='    <td><a href="field.htm" onmouseover="swapImage(\'nav6\',\'\',\'images/nav_from_field_over.gif\',1);showMenu(\'menu2\',482,106)" onmouseout="swapImgRestore()"><img name="nav6" src="images/' + (WEBSITE_SECTION=='FIELD'?'nav_from_field_on.gif':'nav_from_field.gif') + '" height="25" width="97" border="0"></td>\n';
    sBuf+='    <td><a href="logistics.htm" onmouseover="swapImage(\'nav7\',\'\',\'images/nav_logistics_over.gif\',1)" onmouseout="swapImgRestore()"><img name="nav7" src="images/' + (WEBSITE_SECTION=='LOGISTICS'?'nav_logistics_on.gif':'nav_logistics.gif') + '" height="25" width="96" border="0"></td>\n';
    sBuf+='    <td><a href="contact.htm" onmouseover="swapImage(\'nav8\',\'\',\'images/nav_contact_over.gif\',1)" onmouseout="swapImgRestore()"><img name="nav8" src="images/' + (WEBSITE_SECTION=='CONTACT'?'nav_contact_on.gif':'nav_contact.gif') + '" height="25" width="96" border="0"></td>\n';
    sBuf+='    <td><img src="images/bg_nav_extension.gif" height="25" width="381" border="0"></td>\n';
    sBuf+='  </tr>\n';
    sBuf+='</table>\n';
    document.write(sBuf);
  }

  function showBottomNav()
  {
    var sBuf="";
    sBuf+='<img src="images/spacer.gif" width="1" height="10" border="0"><br>\n';
    sBuf+='<table cellpadding="0" cellspacing="0" border="0" width="420" style="position:relative;left:3px">\n';
    sBuf+='  <tr><td class="bottomnav" height="14" valign="top">';
    sBuf+='    <a class="bottomnav" href="default.htm">Home</a>';
    sBuf+='    <img src="images/spacer.gif" height="1" width="8" border="0">|<img src="images/spacer.gif" height="1" width="8" border="0">';
    sBuf+='    <a class="bottomnav" href="about.htm">About Us</a>';
    sBuf+='    <img src="images/spacer.gif" height="1" width="8" border="0">|<img src="images/spacer.gif" height="1" width="8" border="0">';
    sBuf+='    <a class="bottomnav" href="products.htm">Products</a>';
    sBuf+='    <img src="images/spacer.gif" height="1" width="8" border="0">|<img src="images/spacer.gif" height="1" width="8" border="0">';
    sBuf+='    <a class="bottomnav" href="flavor.htm">Flavor Creation</a>';
    sBuf+='    <img src="images/spacer.gif" height="1" width="8" border="0">|<img src="images/spacer.gif" height="1" width="8" border="0">';
    sBuf+='    <a class="bottomnav" href="research.htm">R&D</a>';
    sBuf+='    </td>\n';
    sBuf+='  </tr>\n';
    sBuf+='  <tr><td class="bottomnav">';
    sBuf+='    <a class="bottomnav" href="quality.htm">Quality Control</a>';
    sBuf+='    <img src="images/spacer.gif" height="1" width="8" border="0">|<img src="images/spacer.gif" height="1" width="8" border="0">';
    sBuf+='    <a class="bottomnav" href="field.htm">From the Field</a>';
    sBuf+='    <img src="images/spacer.gif" height="1" width="8" border="0">|<img src="images/spacer.gif" height="1" width="8" border="0">';
    sBuf+='    <a class="bottomnav" href="logistics.htm">Logistics</a>';
    sBuf+='    <img src="images/spacer.gif" height="1" width="8" border="0">|<img src="images/spacer.gif" height="1" width="8" border="0">';
    sBuf+='    <a class="bottomnav" href="contact.htm">Contact</a>';
    sBuf+='    </td>\n';
    sBuf+='  </tr>\n';
    sBuf+='</table>\n';
    document.write(sBuf);
  }

  function showFooter()
  {
    var sBuf="";
    sBuf+='<img src="images/spacer.gif" width="1" height="20" border="0"><br>\n';
    sBuf+='<table cellpadding="0" cellspacing="0" border="0" width="420" style="position:relative;left:3px">\n';
    sBuf+='  <tr><td>';
    sBuf+='  <p class="footer">I.P. Callison & Sons&nbsp;&nbsp;&nbsp;2400 Callison Road NE&nbsp;&nbsp;&nbsp;<br>Lacey, WA  98516 USA&nbsp;&nbsp;&nbsp;(360) 412-3340<br>Copyright 2003 I.P. Callison & Sons</p>';
    sBuf+='  </td></tr>\n';
    sBuf+='</table>\n';
    document.write(sBuf);
  }

  function createMenus()
  {
    var sBuf="";
    //sBuf+='<div name="menu1" id="menu1" style="position:absolute;visibility:hidden;width:97px;height:40px" onmouseout="' + (WEBSITE_SECTION!='ISOLATES'?'hideMenu(\'menu1\')':'') + '">\n';
    //sBuf+='<a href="products.htm" onmouseover="swapImage(\'m1_nav1\',\'\',\'images/' + (WEBSITE_SECTION=='PRODUCTS'?'nav_products_on.gif':'nav_products_over.gif') + '\',1)" onmouseout="swapImgRestore()"><img name="m1_nav1" src="images/' + (WEBSITE_SECTION=='PRODUCTS'?'nav_products_on.gif':'nav_products.gif') + '" height="25" width="97" border="0"><br>\n';
    //sBuf+='<a href="isolates.htm" onmouseover="swapImage(\'m1_nav2\',\'\',\'images/' + (WEBSITE_SECTION=='ISOLATES'?'nav_isolates_on.gif':'nav_isolates_over.gif') + '\',1)" onmouseout="swapImgRestore()"><img name="m1_nav2" src="images/' + (WEBSITE_SECTION=='ISOLATES'?'nav_isolates_on.gif':'nav_isolates.gif') + '" height="16" width="99" border="0">\n';
    //sBuf+='</div>\n';
    sBuf+='<div name="menu2" id="menu2" style="position:absolute;visibility:hidden;width:97px;height:40px;z-index:999" onmouseout="' + (WEBSITE_SECTION!='GROWING'?'hideMenu(\'menu2\')':'') + '">\n';
    sBuf+='<a href="field.htm" onmouseover="swapImage(\'m2_nav1\',\'\',\'images/' + (WEBSITE_SECTION=='FIELD'?'nav_from_field_on.gif':'nav_from_field_over.gif') + '\',1)" onmouseout="swapImgRestore()"><img name="m2_nav1" src="images/' + (WEBSITE_SECTION=='PRODUCTS'?'nav_from_field_on.gif':'nav_from_field.gif') + '" height="25" width="97" border="0"><br>\n';
    sBuf+='<a href="growing.htm" onmouseover="swapImage(\'m2_nav2\',\'\',\'images/' + (WEBSITE_SECTION=='GROWING'?'nav_growing_on.gif':'nav_growing_over.gif') + '\',1)" onmouseout="swapImgRestore()"><img name="m2_nav2" src="images/' + (WEBSITE_SECTION=='ISOLATES'?'nav_growing_on.gif':'nav_growing.gif') + '" height="15" width="97" border="0">\n';
    sBuf+='</div>\n';
    document.write(sBuf);
  }

