﻿function MenuRoll(objId,state) {
    var str1 = document.getElementById(objId).src   
    var currSection = objId.substr(objId.indexOf('img', 1) + 3).toLowerCase();
    var currLocation = document.location.href.toLowerCase()

    if (currLocation.indexOf('default', 1) > -1) {currLocation = 'home'}

    if (state == 'over')
    {
      document.getElementById(objId).src = str1.replace("_i", "_a");
    }
    else
    {
        if (currLocation.indexOf(currSection, 0) == -1) {
            document.getElementById(objId).src = str1.replace("_a", "_i");  
        }
    }
}
    