function setVisibility(objectID, state, imageTitle, imagePath, photo_width, photo_height, popup_width, popup_height, header_width) {
	document.getElementById(objectID).style.visibility = state;
	document.getElementById('popup_header').style.width = header_width + 'px';
	document.getElementById('popup_title').innerHTML = imageTitle;
	document.getElementById('popup_photo').innerHTML = "<div style=\"background-image: url('" + imagePath + "'); width: " + photo_width + "px; height: " + photo_height + "px\"></div>";
	document.getElementById('popup_photo').style.width = photo_width + 'px';
	document.getElementById('popup_photo').style.height = photo_height + 'px';
	document.getElementById(objectID).style.width = popup_width + 'px';
	document.getElementById(objectID).style.height = popup_height + 'px';
	document.getElementById('popup_disclaimer').style.width = photo_width + 'px';
	return;
}
function changePhoto(imageName) {
	var object = document.getElementById('photo_img_main');
	object.style.backgroundImage = 'url(scale_image.php?f=' + imageName + '&w=440)';
	return;
}
<!--[if lte IE 6]>
	   //Fix IE6 background image flicker
	   function fixIE6flicker(fix) {
			   try {
					   document.execCommand("BackgroundImageCache", false, fix);
			   }   catch(err) { }
	   }
	   window.onload = function() { fixIE6flicker(true); }
<!--[endif]-->
