/**************************************************************************************
File: 			global.js
Copyright: 		Breakthrough Design Group
Description: 	global javascript functions
***************************************************************************************/

/*****************************
	name:	makeFullHeight
	desc:	gets the height of the content div, and resizes the container to an exact px 
			so that it's child elements will fill 100% height
	param:	contentobj - the content object (e.g. a div)
			containerobj - the container object that is being resized
			offsetpx(integer) - integer amount of px to offset, this will change depending on your application
	note:	MUST BE CALLED AFTER ELEMENTS HAVE LOADED (or before the </body> tag)
*****************************/
function makeFullHeight(contentobj,containerobj,offsetpx){
	if(contentobj && containerobj){
		var contentHeight = contentobj.offsetHeight;
		var newHeight = contentHeight + offsetpx;
		containerobj.style.height = newHeight + 'px';
	}
}
