/**
 * Dependent on jQuery
 *
 * Highlights company items on mouse over
 */
CompamyItem = newClass(null, {

    constructor: function(options) {

        this.itemClass = options.itemClass;

        thisCompanyItem = this;
        if (this.itemClass) {
            $('.' + this.itemClass).each(function() {
                $(this).bind('mouseover', {env: this}, thisCompanyItem.mouseover);
                $(this).bind('mouseout', {env: this}, thisCompanyItem.mouseout);
            });
        }
    },
    mouseover : function(e) {
        $(this).addClass("company-item-hover");
    },
    mouseout:function(e) {
        $(this).removeClass("company-item-hover");
    }
});

$(document).ready(function() {
    new CompamyItem({itemClass: "company-item"});

});