﻿function textHoverOver(text)
{
    text.style.color="#FF9000";
}

function textHoverOut(text)
{
    text.style.color="#09347A";
}

function underlineLinkOver(text)
{
    text.style.textDecoration = "underline";
}

function underlineLinkOut(text)
{
    text.style.textDecoration = "none";
}

function gNavOver(imgObj)
{
    var srcLength = imgObj.src.length;
    var newSrcLength = srcLength - 4;
    var newSrcLengthTest = srcLength - 9;
    var temp = imgObj.src.substring(0, newSrcLength);
    if(imgObj.src.substring(newSrcLengthTest, srcLength) != "-over.jpg")
    {
        temp = temp + "-over.jpg";
        imgObj.src = temp;
    }
    else
    {
        imgObj.onmouseout = "gNavOver(this);";
    }
}

function gNavOut(imgObj)
{
    var srcLength = imgObj.src.length;
    var newSrcLength = srcLength - 9;
    var temp = imgObj.src.substring(0, newSrcLength);
    
    temp = temp + ".jpg";
    imgObj.src = temp;
}