


function getContact() {
	
	$.get("resources/kontakt.php", function(data){
		$("#inhalt").html(data);
		$("#kontakt").addClass("active");
		$("#submtop li a").removeClass("active");
	});
}
/*
$(document).ready(function() {
	var col1height = $("#col1").height();
	var col2height = $("#col2").height();
	var col3height = $("#col3").height();
	var height = Math.max(col1height, col2height, col3height);
	$("#col1").height(height);
	$("#col2").height(height);
	$("#col3").height(height);
});

*/
		function stopCycle() {
	       
	       document.getElementById('stop').style.display='none';    // hide the stop div
	       document.getElementById('start').style.display='block';  // block the start div
	    }
	    
	    function startCycle() {
	       
	       document.getElementById('start').style.display='none';    // hide the start div
	       document.getElementById('stop').style.display='block';  // block the stop div
	    
	    
	   }
	    
    
    	function showDescription(id) {
    		$('#titel').find('span').css('display', 'none');
    		//$('#titel').find('span').hide();
	    	$('#titel').find('span').eq(id).show();
	    	$('.img_descr').css('display', 'none');
	    	$('#col2 .img_descr').eq(id).show();
	    	$('#col3 .img_descr').eq(id).show();
    	}
    
    
	    $(window).load(function() {
	    	showDescription(0);
	    	
	    	
	        $('#slideshow').nivoSlider({changeImage: function(id){showDescription(id);} });
	        
	        

	        $( '#slideshow' ).bind( 'click', function(e){
	        	e.preventDefault();
	        	
	        	var x = e.pageX - this.offsetLeft;
       			var y = e.pageY - this.offsetTop;
       			if (x >= 308 && x <= 625) 

	        	
				$( '#slideshow' ).data( 'nivoslider' ).stop();
				
			}); //stop button
	
	
	
	        $( 'a.nivo-nextNav' ).bind( 'click', function(e){
	        	e.preventDefault();
	        	

	        	
				$( '#slideshow' ).data( 'nivoslider' ).start();
				
			});	    });
	    
	    
	    
	    
	    
	    





/*


 $("#stop").mousemove(function(e){
	    	$('.follow').css('top', e.clientY).css('left', e.clientX);
		});
		$("#start").mousemove(function(e){
	    	$('.follow').css('top', e.clientY).css('left', e.clientX);
		});
		
		*/
