
function bildwechsel_starten()
{
   bildwechselthread = setInterval("bildwechsel()", 5000);
}
function bildwechsel()
{
	var bcNode;

   zufall = Math.random();
   zufall = zufall * 10;
   zufall = Math.round(zufall);
bcNode = window.document.getElementById("bannerStandorte");
bcNode.style.backgroundImage = "url(/images/standorte/" + zufall +".jpg)";

} 


function preloader() 

{
	var i = 0;

	imageObj = new Image();


     	images = new Array();
     	images[0]="/images/standorte/0.jpg"
     	images[1]="/images/standorte/1.jpg"
     	images[2]="/images/standorte/2.jpg"
      	images[3]="/images/standorte/3.jpg"
 	images[4]="/images/standorte/4.jpg"
 	images[5]="/images/standorte/5.jpg"
 	images[6]="/images/standorte/6.jpg"
 	images[7]="/images/standorte/7.jpg"
 	images[8]="/images/standorte/8.jpg"
 	images[9]="/images/standorte/9.jpg"
 	images[10]="/images/standorte/10.jpg"


     // start preloading
     for(i=0; i<=10; i++) 
     {
          imageObj.src=images[i];
     }



} 


