// Homepage Image Randomizer
	imgUrls = [
		"images/art/fp_img_01.jpg",
		"images/art/fp_img_02.jpg",
		"images/art/fp_img_03.jpg"
	];
	collageImage1 = imgUrls[Math.floor(imgUrls.length*Math.random())];


// Pop window
	function OpenPopup(url, w, h) {
		windowheight = ((screen.height / 2) - (h / 2));
		windowwidth = ((screen.width / 2) - (w / 2));
		windowparams = "height=" + h +",width=" + w + ",scrollbars=yes,top=" + windowheight + ",left=" + windowwidth
		window.open(url, "details", windowparams);
	}

// This is a little hacky, but rarely occurs	
function adjustHeight() {	
	navHeight = document.getElementById('navigation').clientHeight;
	contentHeight = document.getElementById('content');
	
	if (navHeight > contentHeight.clientHeight) {
		contentHeight.style.height = navHeight + "px"; 
	}
}

// PNG fix
	$(document).ready(function(){
		// apply to all images
		$('img[@src$=.png]').ifixpng(); 
		// apply to target elements
		$('img[@src$=.png], div#header').ifixpng();
	});
	

