$(document).ready(function() {
    $('.ImageContainer .Image:empty').each(function(){
		$(this).parent().hide();
	});	
});

window.onload = function () {
    $('.ImageContainer .Image').each(function(){
		theImg = $(this).find('img');
		theHeight = theImg.height();
		parHeight = $(this).height();
		if(theHeight < parHeight)
		{
			offset = (parHeight - theHeight) / 2;
			theImg.css('top', offset+"px");
		}
		else if(theHeight > parHeight)
		{
			offset = -(theHeight - parHeight) / 2;
			theImg.css('top', offset+"px");
		}
	});
}

$(document).ready(function() {
	if($('.GrandeTorinoDetailed').length) {
		$('.GrandeTorino').hide();
		$('.Login').css('margin-top', '38px');
	}
});
