function something(){
		
			if($("#bildfake").width()>20){
				$("#bigbild").attr("src", bighref ).css("display", "none");
				$("#einzel").fadeIn("fast");
				$("#bigbild").fadeIn("fast");
				
				var height  = $(window).height() - 140;
				$("#bigbild").height(height);
				$("#bigbild").css("width", "auto");
				
				$("#bildvor").css({height: "100%"});
				$("#bildback").css({height: "100%"});
			
				var tmp_bildbreite = $("#bigbild").width();
				var tmp_fensterbreite  = $(window).width();
				
					if (tmp_bildbreite > tmp_fensterbreite) {
						
					//var height  = $(window).height() - 240;
					//$("#bigbild").height(height);
					
					var width  = $(window).width() - 60;
					$("#bigbild").width(width);
					
					$("#bigbild").css("height", "auto");
					
					}
					/*var tmp_bildhoehe = $("#bigbild").height();
					tmp_bildbreite = parseInt(tmp_bildbreite);
					tmp_bildhoehe = parseInt(tmp_bildhoehe);
					var tmp_ratio = tmp_bildbreite/tmp_bildhoehe;
					tmp_fensterbreite  = $(window).width() - 100;
					tmp_fensterbreite = parseInt(tmp_fensterbreite);
					var tmp_neuhoch = tmp_fensterbreite/tmp_ratio;
					var tmp_mittig = tmp_neuhoch/2;
					tmp_mittig = "-" + tmp_mittig.toString() + "px";
					$("#bigbild").width(tmp_fensterbreite);
					$("#bigbild").height(tmp_neuhoch);
					
					$(".bildbig").removeAttr("style");
					$(".bildbig").css({top: "50%", "margin-top": tmp_mittig, bottom: "none", "height": tmp_neuhoch});
					$("#bildvor").css({height: tmp_neuhoch});
					$("#bildback").css({height: tmp_neuhoch});
					*/
				
				var tmpbreit = $("#bigbild").width();
				
				var tmp_mittig = tmpbreit/2;
				tmp_mittig = "-" + tmp_mittig.toString() + "px";
				$("#wrap_bigbild_info").css({width: tmpbreit, "margin-left": tmp_mittig});
				
				clearInterval(myint);
				return false;
			}
		}

var mytemp="joij";
		
$(document).ready(function(){
   mytemp="joij";
   
  	$("#info_button").fadeIn("slow");
	$("#uebersicht_button").fadeIn("slow");
	
	var firstthumbid = $("#thumbs img:first").parent().attr("id");
	var firstthumbalt = $("#thumbs img:first").attr("alt");
	var firstthumbtitle = $("#thumbs img:first").attr("title");
   	var lastthumbid = $("#thumbs img:last").parent().attr("id");
	var nextbild = $("#thumbs img:first").parent().parent().next("li").children().attr("id");
	
	bighref = $("#thumbs li img:first").parent().attr("href");
	bigid = $("#thumbs li img:first").parent().attr("id");
	
	$("#bildback").css("display", "none");
		
	var elementCount = $("#thumbs img").length;
	if (elementCount <= 8){
		$('#pfeilrechts').css("display", "none");
		$('#pfeillinks').css("display", "none");
	}
	
	$("#austausch img").fadeOut("fast",function(){
		});
	
		$("#bigbild").attr("rel", bigid );
		$("#bigbild").attr("alt", firstthumbalt );
		$("#bigbild").attr("title", firstthumbtitle );
		var info_alt = $("#bigbild").attr("alt");
		$('#bigbild_beschreibung').html(info_alt);
		var info_title = $("#bigbild").attr("title");
		$('#bigbild_titel').html(info_title);
		$("#bildvor").attr("rel", nextbild );
		$("#bildback").attr("rel", lastthumbid );
	
	$("#bildfake").attr("src", bighref );
	myint = setInterval("something()", 600 );
	return false;
	
})

