$(document).ready(function() {
	$('div#top-menu li a').hover(
		function(){
			$(this).animate({
				color: '#dedede'
			},'fast')
		},
		function(){
			$(this).animate({
				color: '#ffffff'
			},'fast')
		}
	);

	$('div#top-submenu li a').hover(
		function(){
			$(this).animate({
				backgroundColor: '#dedede'
			},'fast')
		},
		function(){
			$(this).animate({
				backgroundColor: '#ffffff'
			},'fast')
		}
	);
    
	$('a.lightbox, .lightbox a').click(function(){
		lightbox.open($(this));
		return false;
	});

    // Tooltip
    $('.content-view-line-class-product').find('.attribute-image').hover(
        function() {
            $(this).find('.tooltip').show().parents('li:first').css('z-index', 1000);
        },
        function() {
            $(this).find('.tooltip').stop(true, true).hide().parents('li:first').removeAttr('style');
        }
    ).bind('click', function(){
        window.location.href = $(this).find('.attribute-title').find('a').attr('href');
    });

});

function shopGroupToggle( element )
{
    element.className = ( element.className == 'shop-group-closed' )? 'shop-group-open': 'shop-group-closed';
    return false;
}

