/* 
    This code runs when the page loads. It pre-caches all of the main and rollover images for
    our navigation.
*/

if (document.images)
{
    var imagesNormal = new Object();
    imagesNormal['homeAboutImage'] = new Image(91, 25);
    imagesNormal['homeAboutImage'].src = 'imagesSV/navHomeAbout.jpg';
    imagesNormal['homeProductsImage'] = new Image(91, 25);
    imagesNormal['homeProductsImage'].src = 'imagesSV/navHomeProducts.jpg';
    imagesNormal['homeFAQsImage'] = new Image(91, 25);
    imagesNormal['homeFAQsImage'].src = 'imagesSV/navHomeFAQs.jpg';
    imagesNormal['homeSupportImage'] = new Image(91, 25);
    imagesNormal['homeSupportImage'].src = 'imagesSV/navHomeSupport.jpg';
    imagesNormal['homeContactUsImage'] = new Image(91, 25);
    imagesNormal['homeContactUsImage'].src = 'imagesSV/navHomeContactUs.jpg';
    imagesNormal['downloadTrial'] = new Image(222, 31);
    imagesNormal['downloadTrial'].src = 'imagesSV/downloadTrial.png';
    
    
    
    var imagesHighlight = new Object();
    imagesHighlight['homeAboutImage'] = new Image(91, 25);
    imagesHighlight['homeAboutImage'].src = 'imagesSV/navHomeAboutSelected.gif';
    imagesHighlight['homeProductsImage'] = new Image(91, 25);
    imagesHighlight['homeProductsImage'].src = 'imagesSV/navHomeProductsSelected.gif';
    imagesHighlight['homeFAQsImage'] = new Image(91, 25);
    imagesHighlight['homeFAQsImage'].src = 'imagesSV/navHomeFAQsSelected.gif';
    imagesHighlight['homeSupportImage'] = new Image(91, 25);
    imagesHighlight['homeSupportImage'].src = 'imagesSV/navHomeSupportSelected.gif';
    imagesHighlight['homeContactUsImage'] = new Image(91, 25);
    imagesHighlight['homeContactUsImage'].src = 'imagesSV/navHomeContactUsSelected.gif';
    imagesHighlight['downloadTrial_over'] = new Image(222, 31);
    imagesHighlight['downloadTrial_over'].src = 'imagesSV/downloadTrial.png';
}
        
function setImage(imgName, type)
{
    if (document.images)
    {
        if (type == 'hilite')
        {
            document.images[imgName].src = imagesHighlight[imgName].src;
            return true;
        }
        else if (type = 'normal')
        {
            document.images[imgName].src = imagesNormal[imgName].src;
            return true; 
        }
        return false;
    }
}

//function openChildWindow(url)
//{
//	newWindow = window.open(url, '', 'toolbar=1, resizable=1, scrollbars=1, width=500, height=500');
//}

//function openChildWindow_large(url)
//{
//	newWindow = window.open(url, '', 'toolbar=1, resizable=1, scrollbars=1');
//}