/*
 * JavaScript functions for www.gesundheitswerkstatt.ch
 * Written by thomas@gerstendoerer.com
 * $Id: default.js,v 1.2 2001/11/03 18:47:53 thomas Exp $
 */

function menuOn(id)  { swapImage(id, 'images/menu_' + id + '_a.gif'); }
function menuOff(id) { swapImage(id, 'images/menu_' + id + '.gif'); }

function swapImage(id, url) {
	if(document.images) {
		document.images[id].src=url;
	}
}

function preloadMenuImages() {
	var a = new Array(6);
	a[0] = new Image(); a[0].src = 'images/menu_home_a.gif';
	a[1] = new Image(); a[1].src = 'images/menu_polarity_a.gif';
	a[2] = new Image(); a[2].src = 'images/menu_behandlungen_a.gif';
	a[3] = new Image(); a[3].src = 'images/menu_renate_a.gif';
	a[4] = new Image(); a[4].src = 'images/menu_anreise_a.gif';
	a[5] = new Image(); a[5].src = 'images/menu_links_a.gif';
}

