
function showMenu(tabid,menuid,d) {
    if (!d) d = document;
    d.getElementById(tabid).style.backgroundColor = "#f63194";
    d.getElementById(menuid).style.visibility = "visible";
}

function hideMenu(d) {
    if (!d) d = document;
    d.getElementById("dd").style.backgroundColor = "#f60";
    d.getElementById("sg").style.backgroundColor = "#f60";
    d.getElementById("ww").style.backgroundColor = "#f60";
    d.getElementById("rs").style.backgroundColor = "#f60";
    d.getElementById("au").style.backgroundColor = "#f60";
    d.getElementById("cz").style.backgroundColor = "#f60";
    d.getElementById("ddlv").style.visibility = "hidden";
    d.getElementById("grmt").style.visibility = "hidden";
    d.getElementById("work").style.visibility = "hidden";
    d.getElementById("rsrc").style.visibility = "hidden";
    d.getElementById("abus").style.visibility = "hidden";
    d.getElementById("zone").style.visibility = "hidden";
}


function inserttail() {
    document.write(
    '<!-- bottom menu table -->'+
    '<table width="100%" id="bmenu">'+
    '<tr>'+
    '<td style="background-color:#66cc33;">The TSG group of services. <b>Toronto Vancouver Calgary</b>'+
    '<td style="background-color:#89d85b;" width="0"><a href="referral.php">Referral Programs</a>'+
    '<td style="background-color:#aae086;" width="0"><a href="maillist.htm">Join Our Mailing List</a>'+
    '<td style="background-color:#c9efaf;" width="0"><a href="about_us-contact.htm">Contact Us</a>'+
    '</table> <div id="footer">'+
    '<a href="tsg.htm">Home</a></a> | '+
    '<a href="ddeliver.htm">Diet Delivery</a> | '+
    '<a href="ddeliver-meal-zone.htm">The Zone</a> - '+
    '<a href="ddeliver-meal-atkins.htm">Atkins</a> - '+
/* '<a href="ddeliver-meal-carblogic.htm">CarbLogic</a> - '+ */
    '<a href="sgourmet-meal-individual-healthy.htm">Healthy Living</a> | '+
    '<a href="sgourmet.htm">The Specialty Gourmet</a> | '+
    '<a href="resource-recipes.htm">Resources</a> | '+
    '<a href="about_us-tsg_group.htm">About Us</a> | '+
    '<a href="about_us-contact.htm">Contact Us</a> | '+
    '<a href="#">Site Map</a>'+
    '</div>'+
    '<!-- bottom menu table -->'
    )
}

function insertmenu() {
    document.write(
    '<!-- top menu table -->'+
    '<div id="tagline">fresh nutritious meals delivered daily</div>'+
    '<table width="100%" cellspacing="0" cellpadding="1">'+
    '<tr>'+
    '<td>'+
    '<table class="menubutton" width="100%" onclick="location=\'tsg.htm\';">'+
    '<tr><td><a href="tsg.htm">home</a>'+
    '</table>'+
    '<td>'+
    '<table id="dd" class="menubutton" width="100%" onclick="location=\'ddeliver.htm\';"'+
    ' onmouseover="showMenu(\'dd\',\'ddlv\');" onmouseout="hideMenu();">'+
    '<tr><td><a href="ddeliver.htm">diet delivery</a>'+
    '</table>'+
    '    <div id="ddlv" style="position:relative;width:100%;z-index:4;"'+
    '	onmouseover="showMenu(\'dd\',\'ddlv\');" onmouseout="hideMenu();">'+
    '    <table class="submenu" border="0" cellpadding="0" cellspacing="0">'+
    '    <tr><td onclick="location=\'ddeliver-how.htm\'">How it Works</td></tr>'+
    '    <tr><td onclick="location=\'ddeliver-meal.htm\'">Meal Plans</td></tr>'+
    '    <tr><td onclick="location=\'ddeliver-promotion.htm\'">Promotions</td></tr>'+
    '    <tr><td onclick="location=\'ddeliver-testimony.htm\'">Testimonials</td></tr>'+
    '    <tr><td onclick="location=\'clientzone-sign_up.php\'">Sign Up</td></tr>'+
    '    </table>'+
    '    </div>'+
    '<td>'+
    '<table id="sg" class="menubutton" width="100%" onclick="location=\'sgourmet.htm\';"'+
    '    onmouseover="showMenu(\'sg\',\'grmt\');" onmouseout="hideMenu();">'+
    '<tr><td><a href="sgourmet.htm">the specialty gourmet</a>'+
    '</table>'+
    '    <div id="grmt" style="position:relative;width:100%;z-index:4;"'+
    '	onmouseover="showMenu(\'sg\',\'grmt\');" onmouseout="hideMenu();">'+
    '    <table class="submenu" border="0" cellpadding="0" cellspacing="0">'+
    '    <tr><td onclick="location=\'sgourmet-how.htm\'">How it Works</td></tr>'+
    '    <tr><td onclick="location=\'sgourmet-meal.htm\'">Meal Plans</td></tr>'+
    '    <tr><td onclick="location=\'sgourmet-promotion.htm\'">Promotions</td></tr>'+
    '    <tr><td onclick="location=\'sgourmet-testimony.htm\'">Testimonials</td></tr>'+
    '    <tr><td onclick="location=\'clientzone-sign_up.php\'">Sign Up</td></tr>'+
    '    </table>'+
    '    </div>'+
    '<td>'+
    '<table id="ww" class="menubutton" width="100%" onclick="location=\'wellness-delivery.htm\';"'+
    '    onmouseover="showMenu(\'ww\',\'work\');" onmouseout="hideMenu();">'+
    '<tr><td><a href="wellness-delivery.htm">wellness at work</a>'+
    '</table>'+
    '    <div id="work" style="position:relative;width:100%;z-index:4;"'+
    '	onmouseover="showMenu(\'ww\',\'work\');" onmouseout="hideMenu();">'+
    '    <table class="submenu" border="0" cellpadding="0" cellspacing="0">'+
    '    <tr><td onclick="location=\'wellness-delivery.htm\'">Meal Delivery Plan</td></tr>'+
    '    <tr><td onclick="location=\'wellness-education.htm\'">Wellness Education</td></tr>'+
    '    <tr><td onclick="location=\'wellness-testimony.htm\'">Testimonials</td></tr>'+
    '    <tr><td onclick="location=\'clientzone-sign_up.php\'">Sign Up</td></tr>'+
    '    </table>'+
    '    </div>'+
    '<td>'+
    '<table id="rs" class="menubutton" width="100%" onclick="location=\'resource-recipes.htm\';"'+
    '    onmouseover="showMenu(\'rs\',\'rsrc\');" onmouseout="hideMenu();">'+
    '<tr><td><a href="resource-recipes.htm">resources</a>'+
    '</table>'+
    '    <div id="rsrc" style="position:relative;width:100%;z-index:4;"'+
    '	onmouseover="showMenu(\'rs\',\'rsrc\');" onmouseout="hideMenu();">'+
    '    <table class="submenu" border="0" cellpadding="0" cellspacing="0">'+
    '    <tr><td onclick="location=\'resource-recipes.htm\'">Recipes</td></tr>'+
    '    <tr><td onclick="location=\'resource-nutrition.htm\'">Nutrition</td></tr>'+
    '    <tr><td onclick="location=\'resource-fitness.htm\'">Fitness</td></tr>'+
    '    <tr><td onclick="location=\'resource-tsg_network.htm\'">The TSG Network</td></tr>'+
    '    </table>'+
    '    </div>'+
    '<td>'+
    '<table id="au" class="menubutton" width="100%" onclick="location=\'about_us-tsg_group.htm\';"'+
    '    onmouseover="showMenu(\'au\',\'abus\');" onmouseout="hideMenu();">'+
    '<tr><td><a href="about_us-tsg_group.htm">about us</a>'+
    '</table>'+
    '    <div id="abus" style="position:relative;width:100%;z-index:4;"'+
    '	onmouseover="showMenu(\'au\',\'abus\');" onmouseout="hideMenu();">'+
    '    <table class="submenu" border="0" cellpadding="0" cellspacing="0">'+
    '    <tr><td onclick="location=\'about_us-tsg_group.htm\'">TSG Group</td></tr>'+
    '    <tr><td onclick="location=\'about_us-chefs.htm\'">Caterers &amp; Chefs</td></tr>'+
    '    <tr><td onclick="location=\'about_us-press.htm\'">Press</td></tr>'+
    '    <tr><td onclick="location=\'about_us-media_kit.htm\'">Media Kit</td></tr>'+
    '    <tr><td onclick="location=\'about_us-contact.htm\'">Contact Us</td></tr>'+
    '    </table>'+
    '    </div>'+
    '<td>'+
    '<table id="cz" class="menubutton" width="100%" onclick="location=\'clientzone-sign_up.php\';"'+
    '    onmouseover="showMenu(\'cz\',\'zone\');" onmouseout="hideMenu();">'+
    '<tr><td><a href="clientzone-sign_up.php">client zone</a>'+
    '</table>'+
    '    <div id="zone" style="position:relative;width:100%;z-index:4;"'+
    '	onmouseover="showMenu(\'cz\',\'zone\');" onmouseout="hideMenu();">'+
    '    <table class="submenu" border="0" cellpadding="0" cellspacing="0">'+
    '    <tr><td onclick="location=\'clientzone-sign_up.php\'">sign up now</td></tr>'+
    /*'    <tr><td onclick="location=\'http://gourmet.openface.ca/SSL_DD/customer/mbrlogin-welcome.php\'">client login</td></tr>'+*/
     '    <tr><td onclick="location=\'/SSL_DD/customer/mbrlogin-welcome.php\'">client login</td></tr>'+ 
    '    </table>'+
    '    </div>'+
    '<td width="33%">'+
    '<table width="100%" class="menubutton" onmouseover="hideMenu();">'+
    '<tr><td>&nbsp; <!-- extend the menu right -->'+
    '</table>'+
    '</table>'+
    '<!-- top menu table -->'
    )
}

function insertddmtbl(hl) {
    if (!hl) hl = '';
    var td = '<tr><td>';
    var td_hl = '<tr><td id="dd-hilite">';

    document.write(
    '<table class="dd-ltbl" style="border-collapse: collapse;">'+
    '<tr><td id="tgrad">'+
    '    <img src="png/dd.jpg" alt="diet delivery">'+
    ((hl=='how')? td_hl : td) +
    '<a href="ddeliver-how.htm">how it works</a>'+
    '    <ul>'+
    '    <li><a href="ddeliver-how-service.htm">The service</a>'+
    '    <li><a href="ddeliver-how-pricing.htm">Pricing</a>'+
    '    <li><a href="ddeliver-how-delivery.htm">Delivery Areas</a>'+
    '    <li><a href="ddeliver-how-faq.htm">FAQ</a>'+
    '    </ul>'+
    ((hl=='meal')? td_hl : td) +
    '<a href="ddeliver-meal.htm">meal plans</a>'+
    '  <ul>'+
    '  <li><a href="ddeliver-meal-zone.htm">The Zone</a>'+
    '  <div class="subtxt">'+
    '  <a href="ddeliver-meal-zone-about.htm">About</a> |'+
    '  <a href="ddeliver-meal-zone-menu.htm">Sample Menu</a>'+
    '  </div>'+
    '  <li><a href="ddeliver-meal-atkins.htm">Atkins</a>'+
    '  <div class="subtxt">'+
    '  <a href="ddeliver-meal-atkins-about.htm">About</a> |'+
    '  <a href="ddeliver-meal-atkins-menu.htm">Sample Menu</a>'+
    '  </div>'+

/*
    '  <li><a href="ddeliver-meal-carblogic.htm">CarbLogic</a>'+
    '  <div class="subtxt">'+
    '  <a href="ddeliver-meal-carblogic-about.htm">About</a> |'+
    '  <a href="ddeliver-meal-carblogic-menu.htm">Sample Menu</a>'+
    '  </div>'+
*/

    '  <li><a href="ddeliver-meal-body_life.htm">Body-for-LIFE</a>'+
    '  <div class="subtxt">'+
    '  <a href="ddeliver-meal-body_life-about.htm">About</a> | '+
    '  <a href="ddeliver-meal-body_life-menu.htm">Sample Menu</a>'+
    '  </div>'+
    '  </ul>'+
    ((hl=='promotion')? td_hl : td) +
    '<a href="ddeliver-promotion.htm">promotions</a>'+
    ((hl=='testimony')? td_hl : td) +
    '<a href="ddeliver-testimony.htm">testimonials</a>'+
    ((hl=='sign_up')? td_hl : td) +
    '<a href="clientzone-sign_up.php">sign up now</a>'+
    '<tr><td id="bgrad"> &nbsp; </td></tr>'+
    '</table>'
    );
}

function insertrsmtbl(hl) {
    if (!hl) hl = '';
    var td = '<tr><td>';
    var td_hl = '<tr><td id="rs-hilite">';

    document.write(
    '<table class="rs-ltbl" style="border-collapse: collapse;">'+
    '<tr><td id="tgrad">'+
    '    <img src="png/rs.jpg" alt="resources">'+
    ((hl=="recipes")?td_hl:td) +'<a href="resource-recipes.htm">Recipes</a>'+
    ((hl=="nutrition")?td_hl:td) +'<a href="resource-nutrition.htm">Nutrition</a>'+
    '    <ul>'+
    '    <li><a href="resource-nutrition-water.htm">Water</a>'+
    '    <li><a href="resource-nutrition-fats.htm">Fats</a>'+
    '    <li><a href="resource-nutrition-vitamins.htm">Vitamins</a>'+
    '    </ul>'+
    ((hl=="fitness")?td_hl:td) +'<a href="resource-fitness.htm">Fitness</a>'+
    '    <ul>'+
    '    <li><a href="pdf/resource-fitness-log.pdf">Fitness Log (pdf)</a>'+
    '    </ul>'+
    ((hl=="tsg_network")?td_hl:td) +'<a href="resource-tsg_network.htm">The TSG Network</a>'+
    '    <ul>'+
    '    <li><a href="resource-tsg_network-toronto.htm">Toronto</a>'+
    '    <li><a href="resource-tsg_network-vancouver.htm">Vancouver</a>'+
    '    <li><a href="resource-tsg_network-calgary.htm">Calgary</a>'+
    '    </ul>'+
    '<tr><td id="bgrad"> &nbsp; </td></tr>'+
    '</table>'
    );
}

function insertsgmtbl(hl) {
    if (!hl) hl = '';
    var td = '<tr><td>';
    var td_hl = '<tr><td id="sg-hilite">';

    document.write(
    '<table class="sg-ltbl" style="border-collapse: collapse;">'+
    '<tr><td id="tgrad">'+
    '    <img src="png/tsg.jpg" alt="the specialty gourmet">'+
    ((hl=="how")?td_hl:td) +'<a href="sgourmet-how.htm">how it works</a>'+
    '<ul>'+
    '<li><a href="sgourmet-how-service.htm">The service</a>'+
    '<li><a href="sgourmet-how-pricing.htm">Pricing</a>'+
    '<li><a href="sgourmet-how-delivery.htm">Delivery Areas</a>'+
    '<li><a href="sgourmet-how-faq.htm">FAQ</a>'+
    '</ul>'+
    ((hl=="meal")?td_hl:td) +'<a href="sgourmet-meal.htm"> meal plans </a>'+
    '<ul>'+
    '<li><a href="sgourmet-meal-individual-zone.htm">The Zone</a>'+
    '<div class="subtxt">'+
    '<a href="sgourmet-meal-individual-zone-about.htm">About</a> | '+
    '<a href="sgourmet-meal-individual-zone-menu.htm">Sample Menu</a>'+
    '</div>'+
    '<li><a href="sgourmet-meal-individual-healthy.htm">Healthy Living</a>'+
    '<div class="subtxt">'+
    '<a href="sgourmet-meal-individual-healthy-about.htm">About</a> | '+
    '<a href="sgourmet-meal-individual-healthy-menu.htm">Sample Menu</a>'+
    '</div>'+
    '<li><a href="sgourmet-meal-family.htm">Family Meal Plans</a>'+
    '<div class="subtxt">'+
    '<a href="sgourmet-meal-family-about.htm">About</a>'+
    '<!-- | <a href="sgourmet-meal-family-menu.htm">Sample Menu</a> -->'+
    '</div>'+
    '<li><a href="sgourmet-meal-carte.htm">A La Carte Meals</a>'+
    '<div class="subtxt">'+
    '<!-- <a href="sgourmet-meal-carte-about.htm">About</a> -->'+
    '</div>'+
    '</ul>'+
    ((hl=="promotion")?td_hl:td) +'<a href="sgourmet-promotion.htm">promotions</a>'+
    ((hl=="testimony")?td_hl:td) +'<a href="sgourmet-testimony.htm">testimonials</a>'+
    ((hl=="sign_up")?td_hl:td) +'<a href="clientzone-sign_up.php">sign up now</a>'+
    '<tr><td id="bgrad"> &nbsp; </td></tr>'+
    '</table>'
    );
}

function insertczmtbl(hl) {
    if (!hl) hl = '';
    var td = '<tr><td>';
    var td_hl = '<tr><td id="cz-hilite">';

    document.write(
    '<table class="cz-ltbl" style="border-collapse: collapse;">'+
    '<tr><td id="tgrad"><img src="png/cz.jpg" alt="the specialty gourmet">'+
    ((hl=="sign_up")?td_hl:td) +
    '<a href="clientzone-sign_up.php"> sign up now </a>'+
    ((hl=="login")?td_hl:td) +
    /*'<a href="http://gourmet.openface.ca/SSL_DD/customer/mbrlogin-welcome.php"> client login </a>'+*/
     '<a href="/SSL_DD/customer/mbrlogin-welcome.php"> client login </a>'+ 
    '<tr><td id="bgrad"> &nbsp; </td></tr>'+
    '</table>'
    );
}

function insertwwmtbl(hl) {
    if (!hl) hl = '';
    var td = '<tr><td>';
    var td_hl = '<tr><td id="ww-hilite">';

    document.write(
    '<table class="ww-ltbl" style="border-collapse: collapse;">'+
    '<tr><td id="tgrad">'+
    '  <img src="png/ww.jpg" alt="wellness at work">'+
    ((hl=="delivery")?td_hl:td)+ '<a href="wellness-delivery.htm">meal delivery plans</a>'+
    ((hl=="education")?td_hl:td)+'<a href="wellness-education.htm">wellness education</a>'+
    ((hl=="testimony")?td_hl:td)+'<a href="wellness-testimony.htm">testimonials</a>'+
    '<tr><td><a href="clientzone-sign_up.php"> sign up now </a>' +
    '<tr><td id="bgrad"> &nbsp; </td></tr></table>'
    );
}

function insertaumtbl(hl) {
    if (!hl) hl = '';
    var td = '<tr><td>';
    var td_hl = '<tr><td id="au-hilite">';

    document.write(
    '<table class="au-ltbl" style="border-collapse: collapse;">'+
    '<tr><td id="tgrad">'+
    '<img src="png/tsgg.jpg" alt="about tsg">'+
    ((hl=="tsg_group")?td_hl:td)+'<a href="about_us-tsg_group.htm">TSG Group</a>'+
    '<ul>'+
    '<li><a href="about_us-tsg_group-team.htm">The Team</a>'+
    '<li><a href="about_us-tsg_group-company.htm">Company Information</a>'+
    '<li><a href="about_us-tsg_group-privacy.htm">Privacy Statement</a>'+
    '</ul>'+
    ((hl=="chefs")?td_hl:td)+'<a href="about_us-chefs.htm">Caterers &amp; Chefs</a>'+
    ((hl=="press")?td_hl:td)+'<a href="about_us-press.htm">Press</a>'+
    ((hl=="media_kit")?td_hl:td)+'<a href="about_us-media_kit.htm">Media Releases</a>'+
    ((hl=="contact")?td_hl:td)+'<a href="about_us-contact.htm">Contact Us</a>'+
    '<tr><td id="bgrad"> &nbsp; </td></tr></table>'
    );
}
