﻿// JScript File
var currentMenu = 1;

// *****************************************************************
//           ************ MAIN MENU ************
// *****************************************************************
function mouseUp(menuButton)
{
    switch (menuButton)
    {
        case 1:
            document.images['HomeImg'].src='images/HomeUP.gif'
            break;

        case 2:
            document.images['StoreLocatorImg'].src='images/StoreLocatorUP.gif'
            break;

        case 3:
            document.images['OpportunitiesImg'].src='images/OpportunitiesUP.gif'
            break;

        case 4:
            document.images['InTheNewsImg'].src='images/InTheNewsUP.gif'
            break;

        case 5:
            //document.images['NeedFinancingImg'].src='images/NeedFinancingUP.gif'
            break;

        case 6:
            document.images['TestimonialsImg'].src='images/TestimonialsUP.gif'
            break;

        case 7:
            document.images['ClearanceImg'].src='images/ClearanceUP.gif'
            break;
            
    }
}
function mouseOver(menuButton)
{
    switch (menuButton)
    {
        case 1:
            document.images['HomeImg'].src='images/HomeOV.gif'
            break;

        case 2:
            document.images['StoreLocatorImg'].src='images/StoreLocatorOV.gif'
            break;

        case 3:
            document.images['OpportunitiesImg'].src='images/OpportunitiesOV.gif'
            break;

        case 4:
            document.images['InTheNewsImg'].src='images/InTheNewsOV.gif'
            break;

        case 5:
            //document.images['NeedFinancingImg'].src='images/NeedFinancingOV.gif'
            break;

        case 6:
            document.images['TestimonialsImg'].src='images/TestimonialsOV.gif'
            break;

        case 7:
            document.images['ClearanceImg'].src='images/ClearanceOV.gif'
            break;
            
    }
}
function mouseDown(menuButton)
{
    switch (menuButton)
    {
        case 1:
            document.images['HomeImg'].src='images/HomeDN.gif'
            break;

        case 2:
            document.images['StoreLocatorImg'].src='images/StoreLocatorDN.gif'
            break;

        case 3:
            document.images['OpportunitiesImg'].src='images/OpportunitiesDN.gif'
            break;

        case 4:
            document.images['InTheNewsImg'].src='images/InTheNewsDN.gif'
            break;

        case 5:
            //document.images['NeedFinancingImg'].src='images/NeedFinancingDN.gif'
            break;

        case 6:
            document.images['TestimonialsImg'].src='images/TestimonialsDN.gif'
            break;

        case 7:
            document.images['ClearanceImg'].src='images/ClearanceDN.gif'
            break;
            
    }
}
function mouseOut(menuButton)
{
    currentMenu = 0;
    
    switch (menuButton)
    {
        case 1:
            if (currentMenu == 1)
                {document.images['HomeImg'].src='images/HomeOV.gif'}
            else
                {document.images['HomeImg'].src='images/HomeUP.gif'}
            break;

        case 2:
            if (currentMenu == 2)
                {document.images['StoreLocatorImg'].src='images/StoreLocatorOV.gif'}
            else
                {document.images['StoreLocatorImg'].src='images/StoreLocatorUP.gif'}
            break;

        case 3:
            if (currentMenu == 3)
                {document.images['OpportunitiesImg'].src='images/OpportunitiesOV.gif'}
            else
                {document.images['OpportunitiesImg'].src='images/OpportunitiesUP.gif'}
            break;

        case 4:
            if (currentMenu == 4)
                {document.images['InTheNewsImg'].src='images/InTheNewsOV.gif'}
            else
                {document.images['InTheNewsImg'].src='images/InTheNewsUP.gif'}
            break;

        case 5:
            //if (currentMenu == 5)
                //{document.images['NeedFinancingImg'].src='images/NeedFinancingOV.gif'}
            //else
                //{document.images['NeedFinancingImg'].src='images/NeedFinancingUP.gif'}
            break;

        case 6:
            if (currentMenu == 6)
                {document.images['TestimonialsImg'].src='images/TestimonialsOV.gif'}
            else
                {document.images['TestimonialsImg'].src='images/TestimonialsUP.gif'}
            break;

        case 7:
            if (currentMenu == 7)
                {document.images['ClearanceImg'].src='images/ClearanceOV.gif'}
            else
                {document.images['ClearanceImg'].src='images/ClearanceUP.gif'}
            break;
            
    }
}

function mouseClick(menuButton)
{
    currentMenu = menuButton;
    
    switch (menuButton)
    {
        case 1:
            document.images['HomeImg'].src='images/HomeOV.gif'
            document.images['StoreLocatorImg'].src='images/StoreLocatorUP.gif'
            document.images['OpportunitiesImg'].src='images/OpportunitiesUP.gif'
            document.images['InTheNewsImg'].src='images/InTheNewsUP.gif'
            //document.images['NeedFinancingImg'].src='images/NeedFinancingUP.gif'
            document.images['TestimonialsImg'].src='images/TestimonialsUP.gif'
            document.images['ClearanceImg'].src='images/ClearanceUP.gif'
            break;

        case 2:
            document.images['HomeImg'].src='images/HomeUP.gif'
            document.images['StoreLocatorImg'].src='images/StoreLocatorOV.gif'
            document.images['OpportunitiesImg'].src='images/OpportunitiesUP.gif'
            document.images['InTheNewsImg'].src='images/InTheNewsUP.gif'
            //document.images['NeedFinancingImg'].src='images/NeedFinancingUP.gif'
            document.images['TestimonialsImg'].src='images/TestimonialsUP.gif'
            document.images['ClearanceImg'].src='images/ClearanceUP.gif'
            break;

        case 3:
            document.images['HomeImg'].src='images/HomeUP.gif'
            document.images['StoreLocatorImg'].src='images/StoreLocatorUP.gif'
            document.images['OpportunitiesImg'].src='images/OpportunitiesOV.gif'
            document.images['InTheNewsImg'].src='images/InTheNewsUP.gif'
            //document.images['NeedFinancingImg'].src='images/NeedFinancingUP.gif'
            document.images['TestimonialsImg'].src='images/TestimonialsUP.gif'
            document.images['ClearanceImg'].src='images/ClearanceUP.gif'
            break;

        case 4:
            document.images['HomeImg'].src='images/HomeUP.gif'
            document.images['StoreLocatorImg'].src='images/StoreLocatorUP.gif'
            document.images['OpportunitiesImg'].src='images/OpportunitiesUP.gif'
            document.images['InTheNewsImg'].src='images/InTheNewsOV.gif'
            //document.images['NeedFinancingImg'].src='images/NeedFinancingUP.gif'
            document.images['TestimonialsImg'].src='images/TestimonialsUP.gif'
            document.images['ClearanceImg'].src='images/ClearanceUP.gif'
            break;

        case 5:
            document.images['HomeImg'].src='images/HomeUP.gif'
            document.images['StoreLocatorImg'].src='images/StoreLocatorUP.gif'
            document.images['OpportunitiesImg'].src='images/OpportunitiesUP.gif'
            document.images['InTheNewsImg'].src='images/InTheNewsUP.gif'
            //document.images['NeedFinancingImg'].src='images/NeedFinancingOV.gif'
            document.images['TestimonialsImg'].src='images/TestimonialsUP.gif'
            document.images['ClearanceImg'].src='images/ClearanceUP.gif'
            break;
            
        case 6:
            document.images['HomeImg'].src='images/HomeUP.gif'
            document.images['StoreLocatorImg'].src='images/StoreLocatorUP.gif'
            document.images['OpportunitiesImg'].src='images/OpportunitiesUP.gif'
            document.images['InTheNewsImg'].src='images/InTheNewsUP.gif'
            //document.images['NeedFinancingImg'].src='images/NeedFinancingUP.gif'
            document.images['TestimonialsImg'].src='images/TestimonialsOV.gif'
            document.images['ClearanceImg'].src='images/ClearanceUP.gif'
            break;
            
        case 7:
            document.images['HomeImg'].src='images/HomeUP.gif'
            document.images['StoreLocatorImg'].src='images/StoreLocatorUP.gif'
            document.images['OpportunitiesImg'].src='images/OpportunitiesUP.gif'
            document.images['InTheNewsImg'].src='images/InTheNewsUP.gif'
            //document.images['NeedFinancingImg'].src='images/NeedFinancingUP.gif'
            document.images['TestimonialsImg'].src='images/TestimonialsUP.gif'
            document.images['ClearanceImg'].src='images/ClearanceOV.gif'
            break;            

    }
}