/**
 * jQuery Element Hover PlugIn.
 *
 * This file uses the JavaScript framework jQuery.
 *
 * LICENSE: FOR INTERNAL COMPANY USE ONLY
 *
 * @author     Florian Wolters <webmaster@wolters-baumschulen.de>
 * @copyright  Copyright (c) 2010 Wolters Baumschulen (http://www.wolters-baumschulen.de/)
 * @license    http://www.wolters-baumschulen.de/ FOR INTERNAL COMPANY USE ONLY
 * @version    1.0.0
 */

/**
 * Adds CSS v2.1 ":hover" selector support for any HTML element.
 */
(function($) {
    $.fn.csshover = function(params) {
        params = jQuery.extend( {cssclass: 'hover'}, params);
        return this.each(function() {
            $(this).hover(function() {
                $(this).addClass(params.cssclass);
            }, function() {
                $(this).removeClass(params.cssclass);
            } );
        } );
    };
} )(jQuery);