		/*
		Generic onload-functions, making it possible to enter several onload-thingies 
		without risking them to crash and without altering the body-tag...
		
		Examples: 
		
		addOnLoad("someFunction");
		addOnLoad("rndImage");
		
		*/
		onLoadList = new Array();
		function addOnLoad(func){ onLoadList[onLoadList.length] = func; }
		function runOnLoad(){
			for(i in onLoadList){
				var addPar = "";
				if (onLoadList[i].indexOf("(") == -1) addPar = "()";
				eval(onLoadList[i]+addPar);
			}
		}
		window.onload = runOnLoad;
		
		
		
		/* /////////////////////////////////////////////////////////////////////////
		
		SETTINGS
		
		///////////////////////////////////////////////////////////////////////// */
		
		pictFolder = "gfx/fotos/topfotos/"; // folder, relative to this page...
		pictName = "rndImage"; //the name of the img in the document to change
		
		
		pictArray = new Array(); 
		
		pictArray[0] = "topfoto_1.jpg";
		pictArray[1] = "topfoto_2.jpg";
		pictArray[2] = "topfoto_3.jpg";
		pictArray[3] = "topfoto_4.jpg";
		pictArray[4] = "topfoto_5.jpg";
		pictArray[5] = "topfoto_6.jpg";
		
		/*
		//or the third array creation alternative, the most compact...
		pictArray = new Array("splash1.jpg", "splash10.jpg", "splash30.jpg");
		*/
		
		function rndImage() 
		{
		index = Math.floor(Math.random() * pictArray.length); //fetch random image from array
			temp = new Image(); //load it...
			temp.src = pictFolder + pictArray[index];
			imgObj = eval("document.images.rndImage");
			imgObj.src = temp.src; // swap it...
		}
		
		addOnLoad("rndImage");
