//<![CDATA[
//$(document).ready(function() { 
	
	/*		var real_width;
		var real_height;
		
	
		$(window).load(function(){
			$('div.news-images img').each(function(){
				// ignore any set ones:
				$(this).removeAttr("width")
								           .removeAttr("height")
								           .css({ width: "", height: "" }); 
				real_width = $(this).width();
				real_height = $(this).height();

				alert('w='+real_width + 'h='+real_height);
				if(real_width > real_height) {
					$(this).addClass('landscaped');

				} else if (real_width == real_height) {
					$(this).addClass('square');
				} else {
					// default is fine
				}
			}
		});
	

	}); */
	
	$(window).load(function() {
		$('.news-images img').each(function(){
			var pic = $(this);
			//clear the inaccurate ones:
			/*
			//pic.removeAttr("width").removeAttr("height").css({ width: "", height: "" });
			real_width = $(this).width();
						real_height = $(this).height();
				alert('w='+real_width + 'h='+real_height);
			*/
				
			real_width = pic.attr('width');
			real_height = pic.attr('height');
		
			if(real_width > real_height) {
				$(this).addClass('landscaped');

			} else if (real_width == real_height) {
				$(this).addClass('square');
			} else {
				// default is fine
			}
			
		});

	});
	
//});

//]]>
