// Pete Kaiser
// 8.2.2007
// 11.2.2007	Now ein-mal-ig.js; anfrage.png now anmeldung.png
//
// With grateful acknowledgment to
//
// http://www.scit.wlv.ac.uk/~jphb/javascript/irollpre.html
//================================================================
// Define the image variables.

var imageFile = new Array (
	"IMG/ausdrucksmalen.png",	"IMG/ausdrucksmalen2.png",
	"IMG/angebot.png",		"IMG/angebot2.png",
	"IMG/ausbildung.png",		"IMG/ausbildung2.png",
	"IMG/aktuelle.png",		"IMG/aktuelle2.png",
	"IMG/anmeldung.png",		"IMG/anmeldung2.png"
	);

var PreLoaded = new Array();

//================================================================
// Preload the images and hold them for display.

for (i=0; i<imageFile.length; i++) {
	PreLoaded[i]     = new Image();
	PreLoaded[i].src = imageFile[i];
	}

//================================================================
// slanted = display the slanted text; upright = upright text

function slanted (xid) {
	document[xid].src = eval("PreLoaded[" +  xid*2      + "].src");
	}

function upright (xid) {
	document[xid].src = eval("PreLoaded[" + (xid*2 + 1) + "].src");
	}

