$(document).ready(function(){
	//Configuration Options
	var max_width = 475; 			//Sets the max width, in pixels, for every image
	var selector = '#contable img'; 	//Sets the syntax for finding the images.  Defaults to all images.
									//For images inside of a particular element (id="abc") or class (class="abc"),
									//use '.abc img' or '#abc img' respectively.  Don't leave off the img tag!!!
	//End configuration options.  You don't need to change anything below here.
	
	jQuery(selector).each(function(){
		var width = jQuery(this).width();
		var height = jQuery(this).height();
		if (width > max_width) {
			//Set variables	for manipulation
			var ratio = (height / width );
			var new_width = max_width;
			var new_height = (new_width * ratio);
			
			//Shrink the image and add link to full-sized image
			jQuery(this).height(new_height).width(new_width);
			jQuery(this).hover(function(){
				jQuery(this).attr("title", "This image has been scaled down.  Click to view the original image.")
				jQuery(this).css("cursor","pointer");
				});
			jQuery(this).click(function(){
				window.location = jQuery(this).attr("src");
				});
			} //ends if statement
		}
	);

});