﻿$(document).ready(function(){
	var navheight = $("#navigation").css('height');
	
	if ($.browser.msie && $.browser.version <= 8){
	  $("#content").append("<div class='shadowCorner'/>").append("<div class='shadowTop'/>").append("<div class='shadowLeft'/>");
	  $(".shadowTop").addClass('shadowTop');
	  $(".shadowLeft").addClass('shadowLeft');
	  $(".shadowCorner").addClass('shadowCorner');
	  
	  navheight = $("#navigation").height();
	  
	  	//IE8 COMPATABILITY VIEW OR IE 7 (need to override inline-block and add margin to the bottom.  Inline-block will work with IE8/9 and FF)
	  	if ($.browser.version == 7){
		  $(".thirds").css({'display': 'inline', 'margin-bottom':'5px' });
		  }
		  else{}
	  
	  }
	  
	else{}
	  	  
	  
	if($(window).width()<=1020){ 
		$("#headerwrapper").css({'width':'1010px'});
		$("#footerwrapper").css({'width':'1010px'});
		}
	else{}
	
	
	//Increase the height of the content panel when low content is available
	$("#content").css({ 'min-height': navheight });
	
});
