jQuery(document).ready(function($) {
	
		// Initialisierung sIFR
//	if(!(jQuery.browser.msie && jQuery.browser.version=='6.0'))
//	{
		// Compatil Letter Bold
//		var compatil={src: 'sifr3/fonts/Compatil_Letter_Bold.swf'};	
//		sIFR.activate(compatil);	
//		sIFR.replace(compatil, {selector: '.csc-subheader.csc-subheader-0'});
//	}
	
	
	// Vorbereitung Navigation: Fix für den IE6
	if($.browser.msie) $('div.head div.navigation li').append("<span></span>");
	
	// Steuerung Navigation Kopfbereich
	$('div.head div.navigation li').hover(
		function() {
			$(this).addClass('active');
		},
		function() {
			$(this).removeClass('active');
		}
	);
	
		// Menü-Accordion komplett schließen bei hover out
//	$('div.sidebar_left').hover(
//		function(){
//			$('ul#accordion_navigation_left').accordion('activate', true);
//		},
//		function(){
//			$('ul#accordion_navigation_left').accordion('activate', false);
//		}
//	);
	// Initialisierung Menü-Accordion
//	$('ul#accordion_navigation_left').accordion({
//		event: 'mouseover',
//		header: 'a.accordion_header',
//		active: false,
//		autoHeight: false,
//		alwaysOpen: false,
//		selectedClass: 'active'
//	});
	

	
	
	// jQuery smoothScroll
	$('a[href*=#]').click(function() {
		
		// make shure its the same location		
		if(location.pathname.replace(/^\//,'')==this.pathname.replace(/^\//,'') && location.hostname==this.hostname && this.hash.replace(/#/,''))
		{
			// get parameters
			var hash=this.hash;
			var target=$(hash).offset().top;
			
			// animate to target and set the hash to the window.location after the animation
			$("html:not(:animated),body:not(:animated)").animate({ scrollTop: target }, 500, function() { location.hash=hash; });
			
			// chancel default click action
			return false;
		}		
	});
	
});