Preserving all background-related properties, and not just background-color

I found an issue where only the background-color of the body or html element was being applied to the .jPanelMenu-panel wrapping div, instead of all background-related styles. In the site where I'm trying to use it, I need the background image copied over to .jPanelMenu-panel, and it wasn't. Then, in trying to fix this, I found out what you probably found out: that jQuery doesn't return anything when you just check $(element).css('background'). Argh!

So, I added a function to loop through all the individual background style properties and add them to .jPanelMenu-panel's styling if they have a value. My site's background image no longer disappears!

I've tested this in Win7/IE9, Win8/IE10, and recent versions of Firefox, Chrome, Safari, and Opera on both OSX and Windows. I made the compressed versions at jscompress.com, since it looked like that was what you were using, but there seems to be some differences in value minifications (true vs. !0, for example), so double check those, too.