// JavaScript Document
//resize the image size to avoid large images
 $(document).ready(function(){
   
   $("img[id^='ProdImg']").each(function(){
		 maxval = 160;//maximum value(height or width) for the image
		 //alert($(this).width()+'\n'+$(this).height());
		  if ($(this).width()> $(this).height()) {
			if ($(this).width()> maxval) 
				$(this).width(maxval);
		  } else {
			if ($(this).height()> maxval) 
				$(this).height(maxval);
		  }

      });

  });
