/*
 * bi-o javascript skripte
 * by dp on 11.09.2008
 */

// das hier ist erst einmal nur für das automatische wechseln
// der Panorama-Bilder gedacht

function setzeBild() {
	
	// berechne Zufallszahl
	// 1 + (anzahl bilder - 1)
	// die bilder liegen in /wp1/wp-content/themes/default/images/
	a = 1 + 16 * (Math.random());
	a = Math.round(a);
	a = String(a);
	
	// setze Hintergrundbild
	document.getElementById('header').style.backgroundImage = "url(wp-content/themes/default/images/header-bg-" + a + ".jpg)";
}
