jQuery(document).ready(function() {
    var h;
	
	// resize all the images in the full node if they are too big
    $(".node .content img").each(function() {
        if($(this).width() > 600) {
        h=$(this).height()/$(this).width()*600;
        $(this).attr({height : h });
        $(this).attr({width : "600"});
    }
    });

	// resize all the caption photos so they fit better in a designated area
    $("img.caption-photo").each(function() {
        if($(this).width() > 120) {
        h=$(this).height()/$(this).width()*120;
        $(this).attr({height : h });
        $(this).attr({width : "120"});
    }
    });
})


