jQuery.noConflict();
jQuery(document).ready(function($){					   
	$(".navibutton").hover(function() {
		$(this).fadeTo("fast", 1);
		$(this).find('img').addClass("mainnavi_hover").stop()
		} , function() {
		$(this).fadeTo("slow", 0.50);
		$(this).find('img').removeClass("mainnavi_hover").stop()
	});
	/*$("#c150, #c151").accordion({
			collapsible: true,
			active: 2
	});*/
	$("#header").click(function(){
		window.location.href = "/";
	});
	$("#header").hover(function(){
		$("#header").css('cursor', 'pointer');
	});
	
	
	
	if(!$.browser.msie) {
		
		  /* Javascript für Silbentrennung laden*/	
		  $.getScript('fileadmin/template/js/hyphenator.js');
		  
		  /*** Silbentrennung ***/
		  var setHypClass = false;
		  
		  /* Boxen für Silbentrennung vorhanden? */
		  
		  if( $("p.csc-frame-frame4").length > 0 || $("p.bodytext").length > 0 ) {	
		  
			  /* Klasse für Silbentrennung an Hauptinhalt und TT_News anhängen */
			  if( $("p.csc-frame-frame4").length > 0 ){ $("p.csc-frame-frame4").addClass("hyphenate"); }
			  if( $("div.news-list-item > p").length > 0 ) { $("div.news-list-item > p").addClass("hyphenate"); }	
			  
			  /* Geht scharf */
			  setHypClass = true;			
		  }
		  
		  /* Silbentrennung ausführen */
		  if(setHypClass === true){	
		  
			  /* Keine Silbentrennung für Anstriche */
			  var noHypClassArr = ["span.anstrich", "span.anstrich > span", "span.pdflink"];
			  
			  jQuery.each(noHypClassArr, function(index,val) {
												  
				  if( $(val).length > 0 ){
					  $(val).addClass("donthyphenate");
				  }	
				  
			  });
			  
			  Hyphenator.config({ displaytogglebox : false, minwordlength : 4 });
			  Hyphenator.run();	
		  }	
	}else{
			
		/* IE Version-Check */
		userAgent = $.browser.version;
		userAgent = userAgent.substring(0,userAgent.indexOf('.'));
		version = userAgent;
		
		if(version <= 6){
			/* Keine gepunktete Linien (Boxen) für IE 6 + linksbündig */
			$(".csc-frame-frame4").addClass("csc-frame-frame4-ie6");
			/* keine gepunktete Linie*/
			$(".tx-powermail-pi1").addClass("tx-powermail-pi1-ie6");
			/* keine gepunktete Linie + spezielle Breite*/
			$(".pf-box").addClass("pf-box6");
			/* kein gepunkteter Trennstrich */
			$(".news-list-item").addClass("news-list-item6");
			/* floating von Check- und Radioboxen verhindern */
			$(".tx_powermail_pi1_fieldwrap_html_radio_wrap").addClass('tx_powermail_pi1_fieldwrap_html_radio_wrap-ie6');
			$(".tx_powermail_pi1_fieldwrap_html_checkbox_wrap").addClass('tx_powermail_pi1_fieldwrap_html_checkbox_wrap-ie6');
			

		}else{
			/* Text auf linksbündig für IE */
			$(".csc-frame-frame4").addClass("csc-frame-frame4-ie");	

		}
	}
	

	/* Suchbox - Vorgabe-Text entfernen */
	$(".searchbox_input").click(function(){										 
		$(".searchbox_input").val("");				
	});
	
	/* Social-Bookmark-Links Neues Fenster*/
	$(".tx-timtabsociable-pi1 > a").attr('target','_blank');

})
