var bereich = '';
var typ = '';
var action = '';
var myCarousel;
var dataString = '';
var currentProjektXml = '';
var cache = [];
var resizeTimer;

$(document).ready(function(){
/*	var foo = initBackground();

	jQuery(window).resize(function() {
	    clearTimeout(resizeTimer);
	    resizeTimer = setTimeout(doResize, 100);
	});
*/	
	// Options for SuperBGImage
	$.fn.superbgimage.options = {
		randomtransition: 0, // 0-none, 1-use random transition (0-7)
		slideshow: 0, // 0-none, 1-autostart slideshow
		slide_interval: 2000, // interval for the slideshow
		randomimage: 0, // 0-none, 1-random image
		speed: 'slow' // animation speed
	};
	jQuery('#thumbs').superbgimage().show();
	//jQuery('#thumbs').superbgimage({ reload: true }).show().removeClass('hidden');
	
	/*
	function doResize() {
		backgroundResizeHandler();
	}
	*/
	
		$('.cText.unternehmen, .cText.pavillon, .cText.trockenbau, .cText.stuck, .cText.impressum').jScrollPane({
			scrollbarWidth:4, 
			scrollbarMargin: 20
		});
	
		$('.contentBox.ansprechpartner').jScrollPane({
			scrollbarWidth:4, 
			scrollbarMargin:0
		});
	
	

	


	
});

