// This file houses the functions that handle the display values associated with image popups.

/** PUBLIC **/
function getImagePopup( popupID ) {
	
	var imgObj = document.getElementById ( popupID );
	var dispObj = document.getElementById ( popupID + "_Display" );
	var heightObj = document.getElementById ( "CBody" );
	var newHeight = heightObj.offsetHeight - 23;
	
	
    if ( navigator.appName.indexOf ( 'Microsoft' ) > -1 && typeof document.body.style.maxHeight == "undefined") {
		// IE 6 ONLY OPERATIONS
		newHeight = heightObj.offsetHeight - 43;
        imgObj.style.width = document.body.clientWidth + "px";
    }
	
	
	imgObj.style.height = newHeight + "px";
	
	
	imgObj.style.display = "block";
	dispObj.style.display = "block";
	
	scroll(0,0);
	
}


function hideImagePopup( popupID ) {
	
	document.getElementById ( popupID ).style.display = "none";
	document.getElementById ( popupID + "_Display" ).style.display = "none";
}

/** SUPPORT **/

