// JERICHO GEHÄUSE , jerichogehaeuse.de 2010 JavaScript Document Basic JS in combination with jQuery



$(document).ready(function() {
  
    /* sample function for animation; now in use*/
 $('#wrapper').css('display','none');					   
  var mainAnimation = function() {
	 // var $mainWrapperHeight = $('#wrapper').css('height'); //var not used jet	  
	  //alert($mainWrapperHeight);
	  $('#wrapper').fadeIn('slow'); 

		
  };	
  mainAnimation();

//$('.active').parent().get(0);

  $('#dropmenu').hover(function() {
	//$('#dropdown:eg(1)').hover(function() {  // doesn't work as expected
	$('#droplist').css('display','none');	
	//$('#dropdown ul').css('display','none');	
	$('#droplist').animate({height: 'show'}, 'fast');
   }, function() {
	$('#droplist').css('display','none');	
  }); 
  
  /* Menu item: stellenangebote for all pages, ecxept index and stellenangbote*/
  	  $('.imgBlue').find('h4:eq(7)').after('<div id="dropdown"> <br /> <h4><a href="stellenangebot-mitarbeiter-vertrieb.php"onfocus="this.blur()"> Stellen<b>angebot</b><div>Mitarbeiter Vertrieb </div></a></h4></div>');
  
});





