I'm working on a Apple Widget and I have a question for the JS part of it.

I want multiple elements to fade out when the widget loads up, I can get one element to fade out, but how do I get multiple elements to fade out on the same onLoad event.

Here is the code to get one item to fade out.
Code:
function elementHide(event)
{
// Values you provide
var itemToFadeOut = document.getElementById("img"); // replace with name of element to fade

// Fading code
var fadeHandler = function(a, c, s, f){ itemToFadeOut.style.opacity = c; };
new AppleAnimator(5, 13, 1.0, 0.0, fadeHandler).start();

}
Any Help will be appreciated