This is because the jQuery object does not have a style property.
// ---------v----??? $("#surmenu").style.backgroundColor="transparent"; //HERE
It should be like this:
$("#surmenu").css("backgroundColor", "transparent");
If you want to use the DOM API, you can make the traditional choice of the DOM:
document.getElementById("surmenu").style.backgroundColor="transparent";
source share