var browser = (((navigator.appName == "Netscape") && (parseInt(navigator.appVersion) >= 3 )) || ((navigator.appName == "Microsoft Internet Explorer") && (parseInt(navigator.appVersion) >= 4 )));

if (browser) {
	home = new Image;
	home.src = "images/rhc_home_hot.gif";

	contact = new Image;
	contact.src = "images/rhc_contact_hot.gif";

	admin = new Image;
	admin.src = "images/admin_hot.gif";

	club = new Image;
	club.src = "images/rhc_theclub_hot.gif";

	events = new Image;
	events.src = "images/rhc_events_hot.gif";
 
	tour = new Image;
	tour.src = "images/rhc_virtualtour_hot.gif";

	mm = new Image;
	mm.src = "images/rhc_multimedia_hot.gif";

	list = new Image;
	list.src = "images/rhc_maillist_hot.gif";

	loc = new Image;
	loc.src = "images/rhc_location_hot.gif";

	gallery = new Image;
	gallery.src = "images/rhc_photogallery_hd_hot.gif";

	merch = new Image;
	merch.src = "images/rhc_merch_hd_hot.gif";
}

function swap(ImgName, NewImage) {
  if (browser) {
    if (document.images) {
      document[ImgName].src = NewImage;
    }
  }
}

function verify(what) {
  var msg = "Are you sure you want to ";
  if (what) msg += what+"?";
  else msg += "do this?";
  return confirm(msg);
}

function generate_mailto( username, domain, tld, title, extra ) {
  var atsign = "&#64;";
  var addr = username + atsign + domain + '.' + tld;
  if (!title || title == "addr") title = addr;
  document.write(
    "<" + "a " + extra + " href=" + "mail" + "to:" + addr + ">" +
    title +
    "<\/a>"
  );
}

function viewImage(link) {
	var newwindow = window.open(link,'Remington_Hunt_Club','height=850,width=700');
	newwindow.focus();
}
