function setContentareaHeight() {
        try {
			var winWidth = jQuery(window).width();   // returns width of browser viewport
			var docWidth = jQuery(document).width(); // returns width of HTML document
			var winHeight = jQuery(window).height();   // returns width of browser viewport
			var docHeight = jQuery(document).height(); // returns width of HTML document
            var contentareaElement = document.getElementById('contentarea');
            var footerHeight = 0;
            contentareaElement.style.height = (docHeight - footerHeight - 10 ) + 'px' ;
			if ($.browser.msie) {
				contentareaElement.style.width = (docWidth - 380 ) + 'px' ;
			} else {
				contentareaElement.style.width = (docWidth - 360 ) + 'px' ;
			};
        }
        catch (e) { }
}

$(document).ready(function() {
	setContentareaHeight();
    $("#footer").pinFooter();
});

$(window).resize(function() {
	setContentareaHeight();
    $("#footer").pinFooter();
});



