﻿//  -------- INTELLISENSE ---------
/// <reference path="jquery-1.2.6-vsdoc.js" />
//  -------------------------------

/*

//show the subheader link section
function showSubheaderLinksSection() {
    $('#subheaderLinks').slideDown('fast');
    return false;
}

//show the links for the subheader section
function showSubHeaderLinks(target) {
    var linkHTML = '';
    var link = $(target).attr('id');
    switch (link) {
        case 'products':
            linkHTML = '<a href="bbh.html">B&ouml;we, Bell + Howell</a>|&nbsp;'
                        + '<a href="captaris.html">Captaris</a>|&nbsp;'
                        + '<a href="fujitsu.html">Fujitsu</a>|&nbsp;'
                        + '<a href="kodak.html">Kodak</a>|&nbsp;'
                        + '<a href="canon.html">Canon</a>|&nbsp;'
		                + '<a href="kofax.html">Kofax</a>|&nbsp;'
                        + '<a href="plasmon.html">Plasmon</a>';
            break;
        case 'services':
            linkHTML = '<a href="services.html">IT Consulting</a>|&nbsp;'
                        + '<a href="gsa-schedule.html">GSA Schedule</a>|&nbsp;'
                        + '<a href="st-schedule.html">State Term Schedule</a>|&nbsp;'
                        + '<a href="accelegrants.html">AcceleGrants</a>|&nbsp;'
                        + '<a href="testimonials.html">Customer Testimonials</a>';
            break;
        case 'about':
            linkHTML = '<a href="about-hmb.html">History</a>|&nbsp;'
                        + '<a href="mission.html">Mission</a>|&nbsp;'
                        + '<a href="leadership.html">Leadership</a>|&nbsp;'
                        + '<a href="philanthropy.html">Philanthropy</a>';
            break;
        case 'careers':
            linkHTML = '<a href="careers.html">Join Us</a>|&nbsp;'
                        + '<a href="benefits.html">Benefits</a>|&nbsp;'
                        + '<a href="our-people.html">Our People</a>|&nbsp;'
                        + '<a href="events.html">Events</a>|&nbsp;'
                        + '<a href="resume.html">Submit Resume</a>';
            break;
        case 'news':
            break;
        case 'contact':
            break;
    }

    //add hover style
    $('.activeHeaderLink').removeClass('activeHeaderLink');
    $('#' + link).addClass('activeHeaderLink');
    
    //empty subheader link section and add the appropriate links
    $('#links').empty().append(linkHTML);
}

//hides the subheader link section
function hideSubheaderLinks() {
    $('#subheaderLinks').slideUp('fast');
}

function addHeaderLinks() {
    $('#headerLinks').empty()
    .append('<ul><li><a id="products" href="products.html">PRODUCTS</li></a>'
        + '<li><a id="services" href="services.html">SERVICES</li></a>'
        + '<li><a id="about" href="about-hmb.html">ABOUT HMB</li></a>'
        + '<li><a id="careers" href="careers.html">CAREERS</li></a>'
        + '<li><a id="news" href="events.html">EVENTS</li></a>'
        + '<li><a id="contact" href="contact.aspx">CONTACT US</a></li></ul>');
}

$(function() {
    //set up the main navigation links
    addHeaderLinks();

    //change the link set, highlight current link
    $('#headerLinks ul li a:not(#contact, #news)').mouseover(function() {
        showSubHeaderLinks(this);
        $('.active').removeClass('active');
        $(this).parent().addClass('active');
        showSubheaderLinksSection();
        return false;
    });

    //prevent defaults
    $('#headerLinks ul, #subheaderLinks, #headerLinks ul li').mouseover(function() {
        return false;
    });

    //hide subheader links and remove highlighting
    $('#headerLinks, .mainContainer').mouseover(function() {
        $('.active').removeClass('active');
        hideSubheaderLinks();
    });

    //close menu on contact because it has no children
    $('#contact, #news').mouseover(function() {
        hideSubheaderLinks();
        $('.active').removeClass('active');
        $(this).parent().addClass('active');
        return false;
    });
});

*/
