
 $(document).ready(function(){
		
		// Zeige Bearbeiten Button bei Mausover
			var edit = true;
		    $("li.menu_second").hover(function () {
			  if (edit == true){
		      	$("li.menu_second ul.hoversubmenu").stop(false,true).fadeIn("slow");
		      	edit = false;
			  } 
		    },
		    function () {
		      if (edit == false){
				  edit = true;
		      	$("li.menu_second ul.hoversubmenu").stop(false,true).fadeOut("fast");
		      }
		    });
			
		// Zeige Bearbeiten Button bei Mausover
			
		    $("li.menu_third").hover(function () {
			  if (edit == true){
		      	$("li.menu_third ul.hoversubmenu").stop(false,true).fadeIn("slow");
		      	edit = false;
			  } 
		    },
		    function () {
		      if (edit == false){
				  edit = true;
		      	$("li.menu_third ul.hoversubmenu").stop(false,true).fadeOut("fast");
		      	
		      }
		    });
		
		// Zeige Bearbeiten Button bei Mausover
			
		    $("li.menu_fourth").hover(function () {
			  if (edit == true){
				  
		      	$("li.menu_fourth ul.hoversubmenu").stop(false,true).fadeIn("slow");
		      	edit = false;
			  } 
		    },
		    function () {
		      if (edit == false){
				  edit = true;
		      	$("li.menu_fourth ul.hoversubmenu").stop(false,true).fadeOut("fast");
		      	
		      }
		    });
		
		// Zeige Bearbeiten Button bei Mausover
	
		    $("li.menu_last").hover(function () {
			  if (edit == true){
		      	$("li.menu_last ul.hoversubmenu").stop(false,true).fadeIn("slow");
		      	edit = false;
			  } 
		    },
		    function () {
		      if (edit == false){
				  	edit = true;
		      	$("li.menu_last ul.hoversubmenu").stop(false,true).fadeOut("slow");
		      
		      }
		    });
			
			
	// HOOVER FUNKTION IMG
	/*		$('.csc-textpic-right a')
			.css( {width:"23px", paddingLeft:"0px"} )
			.mouseover(function(){
				$(this).stop().animate(
					{width:"26px", paddingLeft:"3px"},
					{duration:200})
				})	
			.mouseout(function(){
				$(this).stop().animate(
					{width:"23px", paddingLeft:"0px"},
					{duration:200})
				});
	*/		

				
	/**START IMG GALLERY HOME**/
		$('#photos').galleryView({
			panel_width: 617,
			panel_height: 357,
			frame_width: 30,
			frame_height: 30,
			overlay_color: 'transparent',
			overlay_text_color: 'white',
			caption_text_color: 'red',
			background_color: 'transparent',
			border: 'none',
			nav_theme: 'light',
			easing: 'easeInOutQuad',
			pause_on_hover: true
		});
		
		/***ACCORDIOIN LEFT NAVI**/
	
 /*  		$('.leftmenu').hoverAccordion({
     		 activateitem: '1',
     		 speed: 'slow'
   		});
*/		

		
		/**** FANCYBOX *****/
/*		$(".FancyBoxNews a#FancyLightBox").fancybox({
			'titlePosition'  : 'inside'
		});
*/
		/***ACCORDION LEISTUNGEN**/	
		//$(function() {
			$("#accordion").accordion();
		//});
		
		$("a[rel='rzcolorbox']").colorbox();
		$("a.colorBoxOutsideHtml").colorbox();
		$("a.colorBox").colorbox({width:"50%", inline:true, href:".colorBoxInline"});
});
			