var QuickviewButton = Class.create();
QuickviewButton.prototype = {
	
    settings: {
        'loadingMessage': 'Please wait ...'
    },
    
    initialize: function(parent)
    {
        var that = this;
        $$(parent).each(function(el, index){
            el.observe('mouseover', that.showButton);
            el.observe('mouseout', that.hideButton);
        });
    },
    
    showButton: function(e)
    {
        el = this;
        while (el.tagName != 'LI') {
            el = el.up();
        }
        $(el).select('.quickshoppinglink')[0].setStyle({
            display: 'block'
        });
    },
    
    hideButton: function(e)
    {
        el = this;
        while (el.tagName != 'LI') {
            el = el.up();
        }
        $(el).select('.quickshoppinglink')[0].setStyle({
            display: 'none'
        });
    }

}

