It hard to say what's wrong without having your code for
PopupDrop
; but let's write it in finer detail. Maybe you meant to do something different. Let's see:
var ActivatePopups = function() {
for (var i=0; i<popups.length;>
cElement = $(Popups[i].c);
wElement = $(Popups[i].w);
cElement.click(function() {
PopupDrop(wElement);
});
}
Please try. It this won't help you, you need to provide more detail on your code.
Generally, it's a good idea to use separate variables and assign the DOM element wrappers to them; that way, you can always reuse the element wrapper without using selectors again and again (no, you did not to this mistake in your code, this is just the potential problem).
—SA