// JavaScript Document


function reSizeFunc(){
	var im, h, w, i, r1, r2, elem;
	var elem = document.getElementsByName('nothumb');
	for(i = 0; i<elem.length;i++){
		im = elem[i];
		//
 		//elem = document.getElementsByName('nottoobig');
		if (im){		
		//
		var imW = im.width;
		var imH = im.height;
		//
			if(typeof(window.innerWidth) == 'number') {
			//Non-IE
				winW = window.innerWidth;
				winH = window.innerHeight;
			}else if(document.documentElement && (document.documentElement.clientWidth || document.documentElement.clientHeight)) {
			//IE 6+ in 'standards compliant mode'
				winW = document.documentElement.clientWidth;
				winH = document.documentElement.clientHeight;
 			} else if(document.body && (document.body.clientWidth || document.body.clientHeight)) {
			//IE 4 compatible
				winW = document.body.clientWidth;
				winH = document.body.clientHeight;
 			}
//
			r1 = imW/imH.toFixed(2);
			r2 = imH/imW.toFixed(2)
//
			if(winW > 800){
				// resize images up
				im.height = imH*(600/imW);
				im.width = 600;
			}
//
			if(winH > 800){
				// resize images up
				im.width = imW*(600/imH);
				im.height = 600;
			}
//
			if(winW < 800){
				// resize images down
				im.height = imH*(400/imW);
				im.width = 400;
			}
//
			if(winH < 800){
				// resize images down
				im.width =imW*(400/imH);
				im.height = 400;
			}
		}
	}
}
