	// jQuery Funktionen
	$(document).ready(function(){
		var frontLeftCounter = 0;

		// front page navigation handling
		$('#frontMainContainer a').click(function(e){
			e.preventDefault();
			var newLocation = $(this).attr('href');
			
			$('#frontRight').animate({
				width: 'hide',
				opacity: 'hide'
			}, 'slow');
			$('#frontLeft').animate({
				width: 'hide',
				opacity: 'hide'
			}, 'slow');
			$('.navigationRightShadow').animate({
				width: 'show',
				opacity: 'show'
			}, 'slow');
			$('.navigationLeftShadow').animate({
				width: 'show',
				opacity: 'show'
			}, 'slow');
			
			$('.defaultContentContainer').animate({
				width: 'show',
				opacity: 'show'
				},'slow', function() {
				window.location = newLocation;
			});
		});
		
		// change navigation images on mouseover
		$(".navigation .navImg").hover(function () {
			$(this).animate({opacity:0}, "slow");
		},function () {
			$(this).animate({opacity:1}, "slow");
		});
		
		// alter contact additional options view
		$(".formCheckbox").click(function () {	
			if ($("#offer")[0].checked) {
				$("#offerParameters").slideDown('slow');
			} else {
				$("#offerParameters").slideUp('slow');
			}
		});
		
		if ($("#offer").size()>0) {
			if ($("#offer")[0].checked) {
				$("#offerParameters").slideDown('slow');
			}
		}
		
		// enable lightbox for details of images
		$('a.lightbox').lightBox();
		
		
		// change front image, use cross slide for more than 2 images
		setInterval(function () {
			if (frontLeftCounter%2==0) {
				$("#frontLeft img").animate({opacity:0}, 1000);
			}else{
				$("#frontLeft img").animate({opacity:1}, 1000);
			}
			frontLeftCounter++;
		},7000);
		
	});

	// Suchfeld mit vorbelegtem Text
	function searchfocus(s, t) {
		if (s.value == t)
			s.value = '';
	}
	function searchblur(s, t) {
		if (s.value == '')
			s.value = t;
	}
