function layoutPage(){ /* RESIZE THE HEIGHT OF THE CONTENT AREA */ // if the browser is not IE 6 var curHeight,bodyHeight,wrapperHeight,newHeight; if (!$.browser.msie || $.browser.version.number() != '6') { $("#content").css('minHeight',0); //css('height','inherit') curHeight = $('#content').height(); // get the current height of the content area bodyHeight = $('body').height() - 100; // get the current height of the page wrapperHeight = $('#wrapper').height() - 100; // get the current height of the wapper // define the new height -- either the height of the body or the wrapper, whichever is larger if (bodyHeight > wrapperHeight) newHeight = bodyHeight; else newHeight = wrapperHeight; if (newHeight > curHeight) { $('#content').css({minHeight:newHeight, height:newHeight}); // if the page wrapper is taller than the content area, resize the div } /* RANDOMIZE THE BACKGROUND IMAGES */ // create an array to contain all the styles for the background image var bgArray = new Array ( 'girlsColor', 'framedPhoto1', 'framedPhoto2', 'framedPhoto3');//, 'girlsTogether', 'filmstrip', 'holdingSuspenders'); var arrayNumber = Math.floor(Math.random() * bgArray.length); $('.girls').addClass(bgArray[arrayNumber]); } else { // otherwise the browser is IE 6 // remove the standard style sheet (used on everything except ie 6) $('#notIE6').remove(); newHeight = $('body').height() - 180; $('#content').css({height:newHeight,left:"10px"}); // if the page wrapper is taller than the content area, resize the div $('.girls').css({height:$('#wrapper').height()}); } /* STRIPE THE TOUR AND APPEARANCES */ } $(document).ready(layoutPage);