jQuery(document).ready(function(){
	jQuery(".checkRatio").each(function(){
		var parent=jQuery(this);
		var child=parent.find('img');
		if(parent.width()/parent.height()>child.width()/child.height())
		{
			child.addClass('vert');
		}
		else{
			child.addClass('horiz');
		}
	});
})