//////////////////////////////////// content fadein //////////////////////////////////////////////////////////
function contentFadeIn() {
    $("#content").hide();
    $("#content").fadeIn(400);
}

/////////////////////////////////// FOOTER PLACEMENT ////////////////////////////////////////////////////////

function footerPlacer() {
	var windowheight = $(window).height() - $('#header').outerHeight() - $('#nav').outerHeight() - $('#footer').outerHeight();
	var contentheight = $('#content').outerHeight();
	if (contentheight <= windowheight) {
		$("#footer").css({"position" : "fixed" , "bottom" : "0px" , "left" : "0px"});
	}
	else if (contentheight >= windowheight) {
		$("#footer").css({"position" : "" , "bottom" : "" , "left" : ""});
	}
};

/////////////////////////////////// OBJECT SIZER //////////////////////////////////////////////////////////

function objectSizer() {
    var newobjectsheight = $(window).height() - $('#header').outerHeight() - $('#content-top').outerHeight() - $('#contact-bottom').outerHeight() - $('#btm-links').outerHeight() - 50;
    if (newobjectsheight>=400) //gives it a minimum height of 400
    {
    $('#search_here iframe').height(newobjectsheight);        
    }
    else
    {
        //nothing...
    }

}




/////////////////////////////// initial document load ///////////////////////////////////////////////
//$(document).ready(function(){
//	objectSizer();
//});


/////////////////////////////// things that should happen when the browser window is resized ////////////////
//$(window).resize(function(){
  //objectSizer();
 //footerPlacer();
//});