$(document).ready(function()
{
	var location = window.location.pathname.split('/')[1];
	//alert(location);
	if(location == 'store')
	{
		document.title = "Employee Store | Northern Clearing Inc.";
		$('img.framed').each(function() 
		{
			var maxWidth = 150;
			var maxHeight = 150;
			var ratio = 0;
			var width = $(this).width(); 
			var height = $(this).height();
		
			if(width > maxWidth)
			{
				ratio = maxWidth / width;  
				$(this).css("width", maxWidth);
				$(this).css("height", height * ratio);
				height = height * ratio;
			}
		
			var width = $(this).width();  //reset height-width vals
			var height = $(this).height();
		
			if(height > maxHeight)
			{
				ratio = maxHeight / height; 
				$(this).css("height", maxHeight); 
				$(this).css("width", width * ratio); 
				width = width * ratio;
			}
			$(this).css({'padding-top':'25px'}); //pads images
			$(this).parent().parent().siblings().children().children().css({'position':'relative','top':'25px'}); //repositions the H3's next to the images
			$(this).parent().parent().width(175); //set <td> wrapper to width + padding — positions h3 properly
		});
		
		$('h3 a').css('color','#fff');
		$('h4').css('color','#fff');
		$('h4').parent().parent().parent().css({'margin':'25px 0','border-bottom':'4px dashed #ccc'});
		$('#whatsNew div a').css('color','#fff');
	}
});
