(function ($) {

    $.fn.iehoverfix = function (options) {
        //if (!$.browser.msie)
        //return;

        var settings = {
            'className': 'hover'
        };

        return this.each(function () {
            var $this = $(this),
            data = $this.data('iehoverfix'),
            iehoverfix = 'iehoverfix_marker';

            // If options exist, lets merge them with our default settings
            if (options) {
                $.extend(settings, options);
            }

            // If the plugin hasn't been initialized yet
            if (!data) {

                // TapDropDown plugin initialization code

                // add initialization marker to exclude reinitialization
                $this.data('iehoverfix', {
                    target: $this,
                    iehoverfix: iehoverfix
                });

                initialize($this);
            }

        });

        function initialize(elem) {
            elem.hover(
                function () {
                    //debugger;
                    $(this).addClass(settings.className);
                },
                function () {
                    $(this).removeClass(settings.className);
                }
            );
        }

    };
})(jQuery);

