$(document).ready(function() {
	$("ul.hoversubmenu").hide();

//// Second Menu
	$(".menu_second").hover(function(){   
	
		$(".menu_second ul.hoversubmenu").stop(false, true).show();
		
	},
	function () {
		$(".menu_second ul.hoversubmenu").stop(false, true).hide();
	});
	
//// Third Menu
	$(".menu_third").hover(function(){   
	
		$(".menu_third ul.hoversubmenu").stop(false, true).show();
		
	},
	function () {
		$(".menu_third ul.hoversubmenu").stop(false, true).hide();
	});
	
//// Fourth Menu
	$(".menu_fourth").hover(function(){   
	
		$(".menu_fourth ul.hoversubmenu").stop(false, true).show();
		
	},
	function () {
		$(".menu_fourth ul.hoversubmenu").stop(false, true).hide();
	});
	
//// Fifth Menu
	$(".menu_fifth").hover(function(){   
	
		$(".menu_fifth ul.hoversubmenu").stop(false, true).show();
		
	},
	function () {
		$(".menu_fifth ul.hoversubmenu").stop(false, true).hide();
	});
	
//// Fifth Menu
	$(".menu_last").hover(function(){   
	
		$(".menu_last ul.hoversubmenu").stop(false, true).show();
		
	},
	function () {
		$(".menu_last ul.hoversubmenu").stop(false, true).hide();
	});


/**HOVER BOX***/
/* Hover Box 1 News */
	$("#HoverBox").stop(true, true).click(function(){   
		if ($("#HoverBoxHeaderHidden").is(":hidden")) {
			$("#HoverBoxHeaderHidden").stop(true, true).fadeIn('slow', function() {
				$("#HoverBoxHidden").stop(true, false).fadeIn(400);	
			});
		}
		else {
			$("#HoverBoxHeaderHidden").stop(false, true).fadeOut('fast');
			$("#HoverBoxHidden").stop(false, true).fadeOut('fast');		
		}
	});

/* Hover Box 2 */
	$("#HoverBox2").stop(true, true).click(function(){   
		if ($("#HoverBoxHeaderHidden2").is(":hidden")) {
			$("#HoverBoxHeaderHidden2").stop(true, true).fadeIn('slow', function() {
				$("#HoverBoxHidden2").stop(true, false).fadeIn(400);	
			});
		}
		else {
			$("#HoverBoxHeaderHidden2").stop(false, true).fadeOut('fast');
			$("#HoverBoxHidden2").stop(false, true).fadeOut('fast');		
		}
	});

/* Hover Box 3 */
	$("#HoverBox3").stop(true, true).click(function(){   
		if ($("#HoverBoxHeaderHidden3").is(":hidden")) {
			$("#HoverBoxHeaderHidden3").stop(true, true).fadeIn('slow', function() {
				$("#HoverBoxHidden3").stop(true, false).fadeIn(400);	
			});
		}
		else {
			$("#HoverBoxHeaderHidden3").stop(false, true).fadeOut('fast');
			$("#HoverBoxHidden3").stop(false, true).fadeOut('fast');		
		}
	});


    $(".scroll_award").scrollable({keyboard:true}).navigator({navi:".navi",indexed:true});
    $("#frame_award img[title]").tooltip({effect:"slide",position:"bottom center", opacity: 0.95});

//// Facebook

        $("#fbc_h").mouseenter(function(){
            $("#fbc").hide();
	});

        $("#fbc_h").mouseleave(function(){
            $("#fbc").show();
	});


// Scrollable Slider
$(".scrollable").scrollable({keyboard:false});
$(".scrollable2").scrollable({keyboard:false});
$(".scrollable3").scrollable({keyboard:false});
$("a[class='gcbox']").colorbox({opacity:"0.8",rel:'gcboxgr',previous:"",next:""});
/*$(".gcbox").colorbox({slideshow:true});*/

/* Coin-Slider */   
$('#coin-slider').coinslider({width:632, height:342, navigation:true, sph:1, spw:1, links:true, delay:5000});
  
/* ACCORDION **/  
$("#accordion").accordion({autoHeight: false, collapsible: true, active:false, header: 'h6' });

// Video-Trailer
$("#vtrailer").colorbox({opacity:"0.8",transition:"elastic",speed:"350",slideshowSpeed:"10000",previous:"voriges",next:"n�chstes",close:"schliessen",iframe:true,width:"690",height:"440"});
$("#vimeo_t").colorbox({opacity:"0.8",innerWidth:"641", innerHeight:"359", iframe:true});
});
