function positionLogo() {

//	alert($("#EndNavContent").offset().top );

	if(($("#EndNavContent").offset().top + $("#studyserve-logo").height() + 10) < $(window).height()) {	
	
		$("#studyserve-logo").css("display","block");
		// var thisOffset = $("#studyserve-logo").offset({relativeTo: "pageContainer"});
		var thisOffset = $("#Nav").offset({relativeTo: "pageContainer"});
		
		var thistop = thisOffset.top;
		var thisleft = thisOffset.left;
	
		//alert(thisOffset.top +":"+ thisOffset.left);
		$("#studyserve-logo").css("top", $(window).height() - $("#studyserve-logo").height() - thistop );
		$("#studyserve-logo").css("left", -thisleft);
		
	} else {
		// We might have resized !!!
		$("#studyserve-logo").hide();
	}
	
		//alert($("#tabMainContentContainer").height() + ":" +  $("#divTabImage1").height());
	 //$("#divTabImage1").css("top",$("#tabMainContentContainer").height() -  $("#divTabImage1").height() );
	 //$("#divTabImage1").css("display","block");

	// $("#divTabMainContent").css("top",300);
}

$(document).ready(function() {
    positionLogo();

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

