// Flips the images
function flipImage(img, imgfile)
{
	img.src = imgfile.src;
}

// pop-up window to hold a low-res image
function popup(imagefile, width, height) {
  var features = "directories=no,location=no,menubar=no,resizable=yes,scrollbars=no,toolbar=no,status=no,width="+width+",height="+height;
  var url = "/imageviewer.php?imagefile="+imagefile;
  open(url, "imageviewer", features).focus();
}

// fine print popup
function newwindowPopup(url) {
  features = "directories=no,location=yes,menubar=no,resizable=yes,scrollbars=yes,status=no,toolbar=no,width=600,height=500";
  open(url, "newwindow", features).focus();      
}

// Images for the primary navigation on secondary pages
if (document.images)
{
	var eventsOn = new Image(149, 20); eventsOn.src = "/images/n-events-on.gif";
	var eventsOff = new Image(149, 20); eventsOff.src = "/images/n-events-off.gif";
	var profilesOn = new Image(149, 20); profilesOn.src = "/images/n-profiles-on.gif";
	var profilesOff = new Image(149, 20); profilesOff.src = "/images/n-profiles-off.gif";
	var hireOn = new Image(149, 20); hireOn.src = "/images/n-hire-us-on.gif";
	var hireOff = new Image(149, 20); hireOff.src = "/images/n-hire-us-off.gif";
	var experienceOn = new Image(149, 20); experienceOn.src = "/images/n-experience-on.gif";
	var experienceOff = new Image(149, 20); experienceOff.src = "/images/n-experience-off.gif";
	var contactOn = new Image(149, 24); contactOn.src = "/images/n-contact-us-on.gif";
	var contactOff = new Image(149, 24); contactOff.src = "/images/n-contact-us-off.gif";
}
