// The Image Resizer for vBulletin 3.7.x by TCattitude
// Javascript version 1.0.0
//
// http://www.attitude.cl
// (c) 2008 TCattd

function tcattdImageResize() {
if (document.images.length) {
var theImg = document.images;
    for (var i = 0 ; i < theImg.length ; i++) {
		if (theImg[i].width > tcimgrWidthMax) {
		if (theImg[i].className == 'tcattdimgresizer' || theImg[i].className == 'tcattdimglink') {
			theImg[i].width = tcimgrWidthSizeTo;
			theImg[i].title = tcimgrResizeMsg;
        }
		if (theImg[i].className == 'tcattdimgresizersigs' || theImg[i].className == 'tcattdimglinksigs') {
			theImg[i].width = tcimgrWidthSizeToSigs;
			theImg[i].title = tcimgrResizeMsg;
        }
	}}
    for (var i = 0 ; i < theImg.length ; i++) {
		if (theImg[i].height > tcimgrHeightMax) {
		if (theImg[i].className == 'tcattdimgresizer' || theImg[i].className == 'tcattdimglink') {
			theImg[i].height = tcimgrHeightSizeTo;
			theImg[i].title = tcimgrResizeMsg;
        }
		if (theImg[i].className == 'tcattdimgresizersigs' || theImg[i].className == 'tcattdimglinksigs') {
			theImg[i].height = tcimgrHeightSizeToSigs;
			theImg[i].title = tcimgrResizeMsg;
        }
	}}
   }
}
