function show(el) {document.getElementById(el).style.display = 'block';}
function hide(el) {document.getElementById(el).style.display = 'none';}

//function showPhotoOverlay(filename) {
//	document.getElementById('photoOverlay').src = '/photos/'+filename;
//	show('photoOverlayContainer');
//}

	function showPhotoOverlay(filename,width,height) {
		window.open("http://locationsla.com/ajax/image_popup_contents.php?img="+filename+"&h="+height+"&w="+width,filename,"status=0,toolbar=0,location=0,menubar=0,directories=0,height="+height+",width="+width);
	}

// 4/8/2007 Deprecated this function to replace it with a version that uses window.open per David's request. This function works perfectly should we need to revert back.
//	function showPhotoOverlay(filename,width,height) {
//		var img = document.getElementById('photoOverlay');
//		img.src = '/images/clearpix.gif'; // clear previous
//		img.height = height;
//		img.width = width;
//		img.src = '/photos/'+filename;
//		var vOffset = (getScrollOffsetY()*1) + 200;
//		var photoOverlayDiv = document.getElementById('photoOverlayContainer');
//		photoOverlayDiv.style.top = vOffset+'px';
//		show('photoOverlayContainer');
//	}

function getScrollOffsetX() {
	var x;
	if (self.pageYOffset) {x = self.pageXOffset;} // all except Explorer
	else if (document.documentElement && document.documentElement.scrollTop) {x = document.documentElement.scrollLeft;} // Explorer 6 Strict
	else if (document.body) {x = document.body.scrollLeft;} // all other Explorers
	return x;
}

function getScrollOffsetY() {
	var y;
	if (self.pageYOffset) {y = self.pageYOffset;} // all except Explorer
	else if (document.documentElement && document.documentElement.scrollTop) {y = document.documentElement.scrollTop;} // Explorer 6 Strict
	else if (document.body) {y = document.body.scrollTop;} // all other Explorers
	return y;
}
