// JavaSkript edition-verbrueggen.de v1.0
// (c) 2005 m.c. machat | animaris

function preloadImg() {
	 if (document.images) {
		if (!document.img)
		   document.img = new Array(preloadImg.arguments.length/3);

		var i,j;
		for (i=0,j=1,k=2;j<preloadImg.arguments.length;i+=3,j+=3,k+=3) {
			if (preloadImg.arguments[i].indexOf("#")!=0 && preloadImg.arguments[j].indexOf("#")!=0 && preloadImg.arguments[k].indexOf("#")!=0) {
			   a=preloadImg.arguments[i]; //name
			   b=preloadImg.arguments[j]; //img norm
			   c=preloadImg.arguments[k]; //img rollover
				
			   document.img[a] = new Array(2);
			   document.img[a][0] = new Image();
			   document.img[a][0].src = b;
			   document.img[a][1] = new Image();
			   document.img[a][1].src = c;
			}//end if
		}//end for
	 }//end if
}

function switchImg(x,y) {  // bildname, to-do
	window.document.images[x].src = document.img[x][y].src;
}