var dropDown = function(options){
	var _this = this;
	
	/**
	 * Настройки
	 */
	var defaults = {
		selectors: {
			container:		'.dropDown',
			dropContainer:	'.dropContainer',
			dropContent:	'.dropContent', 
			fastHide:		true
		},
		container_link: null, 
		opacity: 0.9
	};
	if(typeof(options) == 'undefined')
		var options = {};
	this.opts = $.extend(defaults, options);
	
	/**
	 * Ссылки на используемые объекты DOM
	 */
	_this.links = {};
	
	_this.links.container = (_this.opts.container_link != null)?_this.opts.container_link:$(_this.opts.selectors.container);
	_this.links.dropContainer = _this.links.container.find(_this.opts.selectors.dropContainer);
	_this.links.dropContent = _this.links.dropContainer.find(_this.opts.selectors.dropContent);
	
	/**
	 * Процессы
	 */
	_this.process = {
		'show'	: false,
		'hide'	: false
	};
	
	/**
	 * Конструктор
	 */
	_this.init = function(){
		if(_this.links.dropContainer.length == 1 && _this.links.dropContent.length == 1)
		{
			_this.links.dropContainer.css({ opacity: _this.opts.opacity });
			_this.links.container.hover(show, hide);
		}
	};
	
	/**
	 * Метод показывает список
	 */
	var show = function(){
		if($.browser.msie)
		{
			_this.links.dropContainer.show();
		}else{
			/*_this.process.show = true;
			_this.links.dropContent.css({ opacity: 0 }).hide();
			_this.links.dropContainer.stop(false, true).fadeIn();
			_this.links.dropContent.stop(true, true).slideDown(function(){
				_this.links.dropContent.animate({ opacity:1 }, function(){
					_this.process.show = false;
				});
			});*/
			_this.links.dropContainer.show();
		}
	};
	
	/**
	 * Метод прячет список
	 */
	var hide = function(){
		if($.browser.msie)
		{
			_this.links.dropContainer.hide();
		}else{
			/*if(_this.opts.fastHide == false){
				_this.links.dropContent.stop(true, true).animate({ opacity:0 }, 50, function(){
					_this.process.hide = true;
					_this.links.dropContent.slideUp(100);
					_this.links.dropContainer.stop(true, true);
					setTimeout(function(){
						if(!_this.process.show)
						{
							_this.links.dropContainer.stop(true, true).fadeOut(100, function()
							{
								_this.process.hide = false;
							});
						}
					}, 100);
				});
			}else{
				_this.links.dropContent.stop(true, true).hide();
				_this.links.dropContainer.stop(true, true).fadeOut();
			}*/
			_this.links.dropContainer.hide();
		}
	};
	
	_this.init();
	
};
