function navItemOver(el) {
	el.className = 'navItem navItemOver';
}
function navItemOut(el) {
	el.className = 'navItem';
}

function sendToSite(url) {
	window.location.assign(url);
}

function resizeImage(im, height, width) {
	im.style.display = '';
	var origHeight; var origWidth;
	
	if(im.naturalHeight){
		origHeight = im.naturalHeight;
		origWidth = im.naturalWidth;
	} else {
		var img = new Image();
		img.src = im.src;
		origHeight = img.height;
		origWidth = img.width
	}
	var heightRatio = height/origHeight;
	var widthRatio = width/origWidth;
	if (widthRatio < heightRatio && widthRatio < 1){
		im.height = origHeight * widthRatio;
	} else if (heightRatio < 1) {
		im.width = origWidth * heightRatio;
	}
}