var pixCount;
var timeoutr;
var actPath = "acts/act"; // bilderpath
var linxHtml = ".html";
var currentPix = 1;
var tizerList;
var appetizerLoaded;
var path = "www...";

function initAppetizer (anz, warte) {
	pixCount = anz;
	timeoutr = warte;
	preloadAppetizerImages (anz, warte);	
	clearAppetizerID = setTimeout ("change () ",timeoutr);
}

function preloadAppetizerImages () {
	if (document.images) {
		tizerList = new Array (pixCount);
	 	for (whichPix = 0;whichPix<pixCount;whichPix++) { //>
 			tizerList[whichPix] = new Array (new Image (), whichPix+linxHtml);
 			tizerList[whichPix][0].src = actPath + whichPix + ".jpg";
 		}
 //***********temporŠre Šnderung der links erfolgt hier**************//
		tizerList[0][1] = "mensch" +linxHtml;
		tizerList[1][1] = "staedte" +linxHtml;
		tizerList[2][1] = "eu" +linxHtml;
		tizerList[3][1] = "politik" +linxHtml;
	}
	appetizerLoaded = true;
}

function change () {
	if (appetizerLoaded) {
		currentPix++;
		if (currentPix==pixCount) {currentPix=0;}
		document.act.src = tizerList[currentPix][0].src;
		clearAppetizerID = setTimeout ("change () ",timeoutr);
	}
}

function setAppetizerURL () {
		clearTimeout (clearAppetizerID);
		self.location = tizerList[currentPix][1];
}

function showAppetizerStatus () {
	// clearTimeout (clearAppetizerID);
	self.status = path + tizerList[currentPix][1];
}



function hideAppetizerStatus () {
	self.status = "";
	// change ();
	// clearAppetizerID = setTimeout ("change () ",100);
}	
