Tnx litewarez ..

btw can you tell me where's the problem of this jquery :
Code: 
$("#img").each(function(){
$('#img').ready(function () {
$('#img').css('margin-left','auto');
$('#img').css('margin-right','auto');
$(window).load(function () {
$('#img').toggle("slow");});
}); });
I am trying to toggle images on document load. The above script does it for the first match of id so i added each(the bolded one in example) so i can do it for all images using id=img ,but nothing happens