/// <reference path="jquery-1.4.1-vsdoc.js" />
$(function () {

    $('#picPanel').mouseleave(function () {
        $('#picPanel img').css("opacity", "1");
    });

    var imageCounter = 1;
    var imageUniqueId = 'image_';
    $('#picPanel img').each(
	    function () {
	        $(this).attr('id', imageUniqueId + imageCounter);
	        imageCounter++;
	    }
    );

    $('#picPanel img').mouseenter(function () {
        var images = $('#picPanel img');
        $(this).animate({
            opacity: 1.0
        }, 400);
        for (var i = 0; i < images.length; i++) {
            if ($(images[i]).attr('id') != $(this).attr('id')) {
                $(images[i]).stop().animate({ opacity: 0.3 }, 400);
            }
        }
    });


});

