
/* This script and many more are available free online at
The JavaScript Source!! http://javascript.internet.com
Created by: Cat Arriola :: http://astrodiva.journalspace.com */

function fixImgs(whichId, maxW) {
	if (document.getElementById(whichId))
	{
		var pix=document.getElementById(whichId).getElementsByTagName('img');
		  for (i=0; i<pix.length; i++) {
			w=pix[i].width;
			h=pix[i].height;
			if (w > maxW) {
			  f=1-((w - maxW) / w);
			  pix[i].width=w * f;
			  pix[i].height=h * f;
			}
		  }


	}
 
}


