﻿/*
*
* jQuery hover item plugin 
* Version 1.0 (2008-10-09)
* @requires jQuery v1.2.3 or later
*
*/

;(function($) {



    //$.hover = function(opts) { install(window, opts); };

    function install(el, opts) {

    }



    $.fn.hover = function(opts) {
        return this.each(function(i) {
            var el = $(this);
            __changeColor(el, opts);

        });
    }

    var bg = '';
    var color = '';
    var color2 = '';
    var textColor = '';
    function __changeColor(el, opts) {
        color = opts.color;
        color2 = opts.color2;
        if (bg) {
            $(el).animate({
                backgroundColor: color
                }
            , 300);
        } else {
            $(el).animate({
                borderTopColor: color
                , borderBottomColor: color
                , borderLeftColor: color
                , borderRightColor: color
            }
            , 300);
        }
        //        textColor = opts.textcolor;



    }


})(jQuery);