
$().ready(function() {


$("#wrapper").corner("bl br 6px");	

$("#footer").corner("6px");
	
$("#suchen").corner("bl br 6px");


$(".inputbutton_wrapper01").corner("5px");
	
$(".datum").corner("tl tr br 6px");

$(".button02").corner("4px");	
	
	

	
if ($.browser.safari) { 
	
	$( function() { 
	
		$("#mehr_teaser").css('display', 'block');
		
		$("#button_mehr_teaser").css('display', 'none');
	
	} ); 

}


	
	
	
$("#button_mehr_teaser").click(function() {
		
	$("#mehr_teaser").fadeToggle(1000, function() {   
		  
		
		
		if ($("#button_mehr_teaser").html() == 'weniger') {
				  				  
			$("#button_mehr_teaser").html('mehr');
						  
		} else {
			  
		    $("#button_mehr_teaser").html('weniger');
				  				  
		}
			
		
		
		
	});
		
});

	
	
	
	
$.fn.search = function() {
	
	return this.focus(function() {
			
		if (this.value == this.defaultValue) {
			
			this.value = "";
				
		}
		
	}).blur(function() {
			
		if(!this.value.length) {
				
			this.value = this.defaultValue;
				
		}
			
	});

};
	

$("#usrSuchbegriff").search();
	

	
});	




function slideSwitch() {
    
	var $active = $('#slideshow DIV.active');
 	  
    if ($active.length == 0) {
    	
    	$active = $('#slideshow DIV:last');
    	
    }	
	
       
	if ( $('#slideshow DIV').length == 1 ) {
		  
		$('#slideshow DIV').css({opacity: 1.0});

		return;
		
	}

    // use this to pull the divs in the order they appear in the markup
    var $next = $active.next().length ? $active.next() : $('#slideshow DIV:first');

    $active.addClass('last-active');

    $next.css({opacity: 0.0})
         .addClass('active')
         .animate({opacity: 1.0}, 2000, function() {
        	 
            $active.removeClass('active last-active');
            
         }         
    );
    
}


setInterval( "slideSwitch()", 10000);










