jQuery(document).ready(function() {		
	// set the height of the clickable background.	
	//$('#bgOverlay').style.height = (getDocHeight()+30)+'px';	
	$("#bgOverlay").css("height", (getDocHeight()+30)+'px');
	$('#subBody').css("height", $('#bgOverlay').css("height") + "px");
});

function getDocHeight() {
    var D = document;
    return Math.max(
        Math.max(D.body.scrollHeight, D.documentElement.scrollHeight),
        Math.max(D.body.offsetHeight, D.documentElement.offsetHeight),
        Math.max(D.body.clientHeight, D.documentElement.clientHeight)
    );
}