$(document).ready(function(){
  $.preloadCssImages();
}); 

$(document).ready(function() {

			/* 	1st example	*/

			/// wrap inner content of each anchor with first layer and append background layer
			$("#menu li a").wrapInner( '<span class="out"></span>' ).append( '<span class="bg"></span>' );

			// loop each anchor and add copy of text content
			$("#menu li a").each(function() {
				$( '<span class="over">' +  $(this).text() + '</span>' ).appendTo( this );
			});

			$("#menu li a").hover(function() {
				// this function is fired when the mouse is moved over
				$(".out",	this).stop().animate({'top':	'45px'},	250); // move down - hide
				$(".over",	this).stop().animate({'top':	'0px'},		250); // move down - show
				$(".bg",	this).stop().animate({'top':	'0px'},		120); // move down - show

			}, function() {
				// this function is fired when the mouse is moved off
				$(".out",	this).stop().animate({'top':	'0px'},		250); // move up - show
				$(".over",	this).stop().animate({'top':	'-45px'},	250); // move up - hide
				$(".bg",	this).stop().animate({'top':	'-45px'},	120); // move up - hide
			});
					

			/*	2nd example	*/
			
			$("#menu2 li a").wrapInner( '<span class="out"></span>' );
			
			$("#menu2 li a").each(function() {
				$( '<span class="over">' +  $(this).text() + '</span>' ).appendTo( this );
			});

			$("#menu2 li a").hover(function() {
				$(".out",	this).stop().animate({'top':	'45px'},	200); // move down - hide
				$(".over",	this).stop().animate({'top':	'0px'},		200); // move down - show

			}, function() {
				$(".out",	this).stop().animate({'top':	'0px'},		200); // move up - show
				$(".over",	this).stop().animate({'top':	'-45px'},	200); // move up - hide
			});

		});

 $(document).ready(function() {
 $('div.footer_showhide').hide(); 
 $('div.footer_showhide2').hide(); 
 $('div.telefonnummer').hide();			
$('div.abdunkeln_telefonnummer').hide();		
});
 
// CONTACT ON MOUSE OVER FIRE 
 
 
 $(document).ready(function() {
     $('div.telefon').mouseenter( function() {
    $('div.abdunkeln_telefonnummer').fadeIn("fast")
	$('div.telefonnummer').fadeIn("fast")
   });

});
 
  $(document).ready(function() {
     $('div.telefon').mouseleave( function() {
    $('div.abdunkeln_telefonnummer').hide(000);
	$('div.telefonnummer').hide(000);
   });

});
 
 

// SHOW AND HIDE_FOOTER BTNS


// basic show and hide button1
 $(document).ready(function() {
     $('#footer_dropdown1').click( function() {
    $('div.footer_showhide').toggle(000);
	$('div.footer_showhide2').hide(000);
   });

});
 
 
 // basic show and hide button1
 $(document).ready(function() {
     $('div.footer_clients').mouseleave( function() {
	$('div.footer_showhide').hide(000);
   });

});
 
 
 // basic show and hide Button2
 $(document).ready(function() {
     $('#footer_dropdown2').click( function() {
    $('div.footer_showhide2').toggle(000);
	$('div.footer_showhide').hide(000);
   });

});
 
 
  // basic show and hide button1
 $(document).ready(function() {
      $('div.footer_contact').mouseleave( function() {
 	$('div.footer_showhide2').hide(000);
	//$('div.formError').hide(000);
   });

});
