$(document).ready(function () {
	$('#ajaxSearch_input').attr("autocomplete","off");
			var tabContainers = $('div.tabs > div');
			tabContainers.hide().filter(':first').show();
			$('div.tabs ul.tabNavigation a').click(function () {
				tabContainers.hide();
				tabContainers.filter(this.hash).show();
				$('div.tabs ul.tabNavigation a').removeClass('Current');
				$(this).addClass('Current');
				return false;
			}).filter(':first').click();
	/*
	$(".tab_content").hide();
	// $("ul.tabNavigation2 li:first").addClass("active").show();
	// $(".tab_content:first").show();
	
	$("ul.tabNavigation2 li").click(function() {
		$("ul.tabNavigation2 li").removeClass("active");
		$(this).addClass("active").children("input[@type=radio]").attr("checked","checked");
		$(".tab_content").hide();
		var activeTab = "#" + $(this).children("input").val();
	   $(activeTab).show();
		return false;
	});
	*/
	
 function checkBrowserName(name){  
    var agent = navigator.userAgent.toLowerCase();  
    if (agent.indexOf(name.toLowerCase())>-1) {  
      return true;  
    }  
    return false;  
  }  

$('#ContactForm .bereichswahl input[type="radio"]').click(function() {
    var this_radio_set = $(this).parent().find("span");
	var this_radio_set2 = this_radio_set.html();
	if(checkBrowserName('firefox')){
		var this_radio_set3 = this_radio_set2.replace(/<br>/g, " ");
	} else {
		var this_radio_set3 = this_radio_set2.replace(/<BR>/g, "\n");
	}
	$('#cfMessage').val(this_radio_set3);
});

/*
var bereichstart = $('.bereichstart').html();
	if(checkBrowserName('firefox')){
		var bereichstarts = bereichstart.replace(/<br>/g, " ");
	} else {
		var bereichstarts = bereichstart.replace(/<BR>/g, "\n");
	}
$('#cfMessage').val(bereichstarts);
*/

});