in javascript, "{" and "}" are used to wrap objects. objects contain name-value pairs. you have what looks like two objects being passed as parameters, but neither of the objects have both a name and value. Also the second parameter of $.each is supposed to be a function, not an object. so remove the {} brackets from around the function.
$.each is meant to iterate over an array. to iterate over a jquery object, use $(selector).each(), such as the code below:
- $('img[nLevel=L'+i+'].cPlus').each(function(){
- alert($(this).attr('id'));
- });
-- Kevin