

//plugin definition
(function($){
    $.fn.extend({

    //pass the options variable to the function
    dropDownPanels: function(options) {

		
		//Assign current element to variable, in this case is UL element
 		var $this = $(this);
	
 		 $this.find(">li").hover(function() {
 			//cancelTimer();
 			if(!$(this).find(".submenu").is(":visible")){
 				$(this).parent().find(".hover").removeClass("hover");
 				$(this).parent().find(".submenu:visible").hide();
 				if($(this).has(".submenu")){
 					$(this).find(".submenu").css('display','block');
 					$(this).find("a:first").addClass("hover");
 				}
 			}
 		}, function(){
 			$this.find(".hover").removeClass("hover");
 			$this.find(".submenu:visible").css('display','none');

		});
    }
});
})(jQuery);

