// JavaScript Document

//home rollover
if (document.images){
	var homeImageOff = new Image();
	homeImageOff.src = "assets/nav/home_off.jpg";
	var homeImageOn = new Image();
	homeImageOn.src = "assets/nav/home_on.jpg";
}

function homeOn() {
  if (document.images)
    document.images.home.src = homeImageOn.src;
}

function homeOff() {
  if (document.images)
    document.images.home.src = homeImageOff.src;
}

//about rollover
if (document.images){
	var aboutImageOff = new Image();
	aboutImageOff.src = "assets/nav/about_off.jpg";
	var aboutImageOn = new Image();
	aboutImageOn.src = "assets/nav/about_on.jpg";
}

function aboutOn() {
  if (document.images)
    document.images.about.src = aboutImageOn.src;
}

function aboutOff() {
  if (document.images)
    document.images.about.src = aboutImageOff.src;
}

//why rollover
if (document.images){
	var whyImageOff = new Image();
	whyImageOff.src = "assets/nav/why_off.jpg";
	var whyImageOn = new Image();
	whyImageOn.src = "assets/nav/why_on.jpg";
}

function whyOn() {
  if (document.images)
    document.images.why.src = whyImageOn.src;
}

function whyOff() {
  if (document.images)
    document.images.why.src = whyImageOff.src;
}

//gallery rollover
if (document.images){
	var galleryImageOff = new Image();
	galleryImageOff.src = "assets/nav/gallery_off.jpg";
	var galleryImageOn = new Image();
	galleryImageOn.src = "assets/nav/gallery_on.jpg";
}

function galleryOn() {
  if (document.images)
    document.images.gallery.src = galleryImageOn.src;
}

function galleryOff() {
  if (document.images)
    document.images.gallery.src = galleryImageOff.src;
}

//price guide rollover
if (document.images){
	var priceImageOff = new Image();
	priceImageOff.src = "assets/nav/price_off.jpg";
	var priceImageOn = new Image();
	priceImageOn.src = "assets/nav/price_on.jpg";
}

function priceOn() {
  if (document.images)
    document.images.price.src = priceImageOn.src;
}

function priceOff() {
  if (document.images)
    document.images.price.src = priceImageOff.src;
}

//contact rollover
if (document.images){
	var contactImageOff = new Image();
	contactImageOff.src = "assets/nav/contact_off.jpg";
	var contactImageOn = new Image();
	contactImageOn.src = "assets/nav/contact_on.jpg";
}

function contactOn() {
  if (document.images)
    document.images.contact.src = contactImageOn.src;
}

function contactOff() {
  if (document.images)
    document.images.contact.src = contactImageOff.src;
}


