Hi,
jakelauer: $(document).ready(function() {
$('#home').show();
var homeContentHeight = $('#home').height();
var servContentHeight = $('#services').height();
var guarContentHeight = $('#ourGuarantee').height();
var contContentHeight = $('#contact').height();
var cleaContentHeight = $('#cleaningTips').height();
var abouContentHeight = $('#aboutUs').height();
$('#cleaningTips').hide();
$('#contact').hide();
$('#ourGuarantee').hide();
$('#services').hide();
$('#aboutUs').hide();
$('#contBottom').text("The height is " + contContentHeight + "px.");
if (jQuery.browser.msie)
$('#content').animate({ height: homeContentHeight + 50 }, 500)
else
$('#content').animate({ height: homeContentHeight }, 500)
});
homeContentHeight,servContentHeight.. these variables are private to this function
declare ithese variable globally
like
var homeContentHeight;
$(document).ready(function() {
homeContentHeight = $('#home').height();
});