$(document).ready(function(){ 

$("a.video").fancybox({
				'titleShow': false,
				'type' : 'iframe',
				'width':600,
				'height':430

});

$(".teammember a").fancybox({
				'titleShow': false,
				'type' : 'iframe',
				'width':600,
				'height':430

});

$("#LayerContentInnterBottom a").fancybox({
				//'titleShow'		: false
				'titlePosition'		: 'over'
});				
			
	

	
	//$("#LayerTeamLink").mouseover(function () { 
	 $("#kontakt").click(function () {
		$('#LayerNewsletterInner').hide();
	 
	  $('#LayerTeamInner').animate({
   			opacity: 1,
    		height: 'toggle'
  			}, 650, function() {

if($("#LayerTeamLinkBtn").attr("src") == "fileadmin/templates/img/btn_peopleatrooms.jpg") {
$("#LayerTeamLinkBtn").attr("src", "fileadmin/templates/img/btn_peopleatrooms_over.jpg");
} else {
$("#LayerTeamLinkBtn").attr("src", "fileadmin/templates/img/btn_peopleatrooms.jpg");
}
  			});
			
    });
	
	
	
	
	
		 $("#Newsletter").click(function () { 
		 $('#LayerTeamInner').hide();
	  $('#LayerNewsletterInner').animate({
   			opacity: 1,
    		height: 'toggle'
  			}, 650, function() {

if($("#LayerTeamLinkBtn").attr("src") == "fileadmin/templates/img/btn_peopleatrooms.jpg") {
$("#LayerTeamLinkBtn").attr("src", "fileadmin/templates/img/btn_peopleatrooms_over.jpg");
} else {
$("#LayerTeamLinkBtn").attr("src", "fileadmin/templates/img/btn_peopleatrooms.jpg");
}
  			});
			
    });
	
      $('#LayerSubmenu').delay(3000).fadeIn('slow', function() {
        // $(this).next(".bigimg").fadeIn("slow").css("display","block"); 
      });
	  
	  $(".mainmenu").mouseover(function () { 
	  		$(".submenu").css("display", "none");
			$(this).next("ul").fadeIn('slow');
	  });
          $(".video").mouseover(function () {
	  		//$(".submenu").css("display", "none");
			$(this).next("ul").fadeIn('slow');
	  });
	  
});	

