	$(document).ready(function() {
			
		// get current page
			var href = jQuery(location).attr('href');
			var hrefArray = href.split('//')[1].split('/');
			var curPage = hrefArray[hrefArray.length-1];
			if(curPage != 'index.php') {
				curPage = '/pages/'+curPage;
			}
		
		// if link is current page mark it active
			$('.headNav > ul > li > a').each(function() {
				if(curPage == $(this).attr('href')) {
					$(this).css('color', '#FFF');
					$(this).parent().css('border-bottom', '2px solid #69BAC9');
				}
			});
			
		var heightWindow = $(window).height();
		var heightHead = $('.headRow').height();
		var heightFoot = $('.footRow').height();
		var heightContent = $('.contentRow').height();
		var heightContentNew = heightWindow - (heightHead + heightFoot)-32;

		if(heightContent < heightContentNew) {
			$('.contentRow').height(heightContentNew);
		}
				
		$(window).resize( function() {
						sizeContent(heightContent, heightHead, heightFoot);
			});
	
	
	});
		
	function sizeContent(heightContent, heightHead, heightFoot) {
		var heightWindow = $(window).height();
		var heightContentNew = heightWindow - (heightHead + heightFoot)-32;
		
		if(heightContent < heightContentNew) {
			$('.contentRow').height(heightContentNew);
		}
	}
