//preload all the images for the menu

if (document.images) {
ales_off = new Image();ales_off.src = 'graphics/ales-button-off.jpg';
ales_on = new Image();ales_on.src = 'graphics/ales-button-on.jpg';
bock_off = new Image();bock_off.src = 'graphics/bock-button-off.jpg';
bock_on = new Image();bock_on.src = 'graphics/bock-button-on.jpg';
bitter_off = new Image();bitter_off.src = 'graphics/bitter-button-off.jpg';
bitter_on = new Image();bitter_on.src = 'graphics/bitter-button-on.jpg';
dark_off = new Image();dark_off.src = 'graphics/dark-button-off.jpg';
dark_on = new Image();dark_on.src = 'graphics/dark-button-on.jpg';
light_off = new Image();light_off.src = 'graphics/light-button-off.jpg';
light_on = new Image();light_on.src = 'graphics/light-button-on.jpg';
old_off = new Image();old_off.src = 'graphics/old-button-off.jpg';
old_on = new Image();old_on.src = 'graphics/old-button-on.jpg';
pale_off = new Image();pale_off.src = 'graphics/pale-button-off.jpg';
pale_on = new Image();pale_on.src = 'graphics/pale-button-on.jpg';
pils_off = new Image();pils_off.src = 'graphics/pils-button-off.jpg';
pils_on = new Image();pils_on.src = 'graphics/pils-button-on.jpg';
spark_off = new Image();spark_off.src = 'graphics/spark-button-off.jpg';
spark_on = new Image();spark_on.src = 'graphics/spark-button-on.jpg';
stout_off = new Image();stout_off.src = 'graphics/stout-button-off.jpg';
stout_on = new Image();stout_on.src = 'graphics/stout-button-on.jpg';
wheat_off = new Image();wheat_off.src = 'graphics/wheat-button-off.jpg';
wheat_on = new Image();wheat_on.src = 'graphics/wheat-button-on.jpg';
brew_off = new Image();brew_off.src = 'graphics/brew-button-off.jpg';
brew_on = new Image();brew_on.src = 'graphics/brew-button-on.jpg';
links_off = new Image();links_off.src = 'graphics/links-button-off.jpg';
links_on = new Image();links_on.src = 'graphics/links-button-on.jpg';
}

function swapimages(id,name){
// function that doesn't swap 2 images... (for the buttons at the bottom)
	if (document.images) {
  		document.images[id].src=eval(name+".src");
	}
}

function fixemail(){
   var out1=document.getElementById("email");
   out1.innerHTML="<a href='mailto:webmaster@significantbit.com'>E-mail</a> the Author corrections, comments or questions ";
   return;
}


