$(document).ready(function() {
 
 //topMenu drop down
 var toggle = function(direction, display, speed, self) {
    return function() {
      var div = $("div", this);
      if( div.css("display") == display && !self["block" + direction] ) {
        self["block" + direction] = true;
        div["slide" + direction](speed, function() {
          self["block" + direction] = false;
        });
      }
    };
  }
  $("div.menu").hover(toggle("Down", "none", "fast", this), toggle("Up", "block", "fast", this));
  $("div.dropDown").hide();
  //end topMenu drop down
  
  //services list details
  $("div.list").toggle(toggle("Down", "none", "fast", this), toggle("Up", "block", "fast", this));
/*  $("div.list").click(function () {
  	$nextDiv = $(this).next('div');
	
	$nextDiv.css("background","yellow");
  });*/
  $("div.listDetail").hide();
  
  $(".list").mouseover(function(){$(this).addClass("over");}).mouseout(function(){$(this).removeClass("over");});
  
  //end services list details
  
  
});
