a=1

function tmr(){
	 $("#intro").delay(2200)
	 $("#intro").fadeOut(500, function() {
	 cPic()
	 });
}

function cPic(){
	a++;
	a>=6?a=1:0
	$('#intro').attr("src","Bilder/intro"+a+".jpg");
	$("#intro").fadeIn(1000, function() {
	a==5?b=1:b=a
	$('#introbg').css('backgroundImage','url(Bilder/intro' + b +'.jpg)'); 
	tmr()
	});

}

cPic()
// by oktay.com 2010 ;-)
// thx jquery !

$(document).ready(function (){

	$("img.hv").hover(function (){
		$(this).parent("a").parent("td").css('backgroundImage','url(Bilder/'+ $(this).attr("name") +'-over.jpg)'); 

		$(this+":animated") ?$(this).stop().fadeTo(200,0.1): $(this).fadeTo(100,0.1)   }, 
	function (){ $(this+":animated")?$(this).stop().fadeTo(700,1):$(this).fadeTo(500,1)

	})
})


var cache = [];
for (i=0;i<=document.images.length-1;i++){
	var cacheImage = document.createElement('img');
	 cacheImage.src = document.images[i].src;
	 cache.push(cacheImage);
}
