//-------------------------------------------------------------------
// pbmust.js  -  Javascript source for Palm Beach Mustangs (.com)
// Written By: Kim A. Kitchen - (561) 795-3054 - customh4@bellsouth.net
var imgpath="./images/"; // DON'T FORGET TO CHANGE WEBPAGE (below) TOO !!!
if (document.images) { // define images for buttons w/ mouseover effects
  home_norm  = new Image(160,55); home_norm.src=imgpath + "home_blue.jpg";
  home_over  = new Image(160,55); home_over.src=imgpath + "home_red.jpg";
  about_norm = new Image(160,55); about_norm.src=imgpath + "about_blue.jpg";
  about_over = new Image(160,55); about_over.src=imgpath + "about_red.jpg";
  parts_norm = new Image(160,55); parts_norm.src=imgpath + "parts_blue.jpg";
  parts_over = new Image(160,55); parts_over.src=imgpath + "parts_red.jpg";
  cars_norm = new Image(160,55); cars_norm.src=imgpath + "cars_blue.jpg";
  cars_over = new Image(160,55); cars_over.src=imgpath + "cars_red.jpg";
  contact_norm = new Image(160,55); contact_norm.src=imgpath + "contact_blue.jpg";
  contact_over = new Image(160,55); contact_over.src=imgpath + "contact_red.jpg";
  gallery_norm = new Image(160,55); gallery_norm.src=imgpath + "gallery_blue.jpg";
  gallery_over = new Image(160,55); gallery_over.src=imgpath + "gallery_red.jpg";
  hownot_norm = new Image(160,55); hownot_norm.src=imgpath + "hownot_blue.jpg";
  hownot_over = new Image(160,55); hownot_over.src=imgpath + "hownot_red.jpg";
  ask_norm = new Image(160,55); ask_norm.src=imgpath + "ask_blue.jpg";
  ask_over = new Image(160,55); ask_over.src=imgpath + "ask_red.jpg";
  }
//----- this function that redisplays the mouseover/out images -----
function di(id,name) {
  if (document.images) { document.images[id].src=eval( name + ".src"); }
  } // end of function di()
//------ function to prevent image theft ---------
var message="If you ask me nicely, I'll send you a picture.";
function click(e) {
	if (document.all) {
		if (event.button == 2) {
			alert(message);
			return false;
		}
	}
	if (document.layers) {
		if (e.which == 3) {
			alert(message);
			return false;
		}
	}
} // end of function click()

// this just runs 
if (document.layers) {
document.captureEvents(Event.MOUSEDOWN);
}
document.onmousedown=click;
//--------------------------------------------------------------
// end of pbmust.js
