function footerPlacer() {
	var windowheight = $(window).height() - $('#header').outerHeight() - $('#sub-nav').outerHeight() - $('#footer').outerHeight();
	var mainholderheight = $('#main_holder').outerHeight();
	if (mainholderheight <= windowheight) {
		$("#footer").css({"position" : "fixed" , "bottom" : "0px" , "left" : "50%" , "margin-left" : "-490px"})
	}
	else if (mainholderheight >= windowheight) {
		$("#footer").css({"position" : "" , "bottom" : "" , "left" : "" , "margin-left" : ""})
	}
};

$(document).ready(function(){
    // the following was slowing down page loading so i removed it, 
	//$('#content').show();
	//$('#home #nav').show();
	footerPlacer();
});

$(window).resize(function(){
footerPlacer();
});

// any link or element with class of more-info get's the title of click for more details
$('.more-info').attr("title", "Click For More Details");

$('.more-info').click(function(){
	
	if ($(this).next().is(":hidden")){
		$(this).next().show();
		$(this).css({'background-position' : 'right -25px'})
	}
	else if ($(this).next().is(":visible")){
		$(this).next().hide();
		$(this).css({'background-position' : 'right 0px'})
	}
	// window.setTimeout(footerPlacer, 300);
	footerPlacer();
});