(function($) {
//
// plugin definition
$.fn.dropdown = function(options) {
	$this = $(this);
	//try{console.log('Ok...')}catch(e){}
	$.fn.dropdown.defaults  = $.extend({}, $.fn.dropdown.defaults, options);
	var opt = $.fn.dropdown.defaults;
	$this.each(function(){
		$this.children("li").hover(
			function(){	    
			    //console.log($('.content').attr('class')  + 'aaa')
			    if(opt.effect_in == null)$(this).children("ul").css({"display":"block"});	    
			    else eval( '$(this).children("ul").'+ opt.effect_in + '('+ opt.params_in +')');    
			},
			function(){          
			  if(opt.effect_out == null)$(this).children("ul").css({"display":"none"});
			  else eval( '$(this).children("ul").'+ opt.effect_out + '('+ opt.params_out+')');
			  
			}
	        );
	})
};
//
$.fn.dropdown.defaults = {
  effect_in : null,	
  params_in : '',
  effect_out : null,	
  params_out : ''
}

//
})(jQuery);
