
// Functions used in the portfolio homepage

// make the portfolio-item-names fade in and out.. WRONG THOUGH
$(document).ready( function () {

    // hide all the portfolio items texts
    $('.portfolio-item-name').each(function () {
       $(this).show();
       $(this).hide();

    });

    $('.portfolio-item-image').each(function () {
        $(this).css('position','relative');
        this.onclick = function() {
            $(this).animate({top:"-10px"},350);
        };
    });

    // jiggle links
    $('.portfolio-button').each(function () {
       this.onmouseover = function() {
           $(this).css('position','relative');
           $(this).animate({top:"-=4px"},150).animate({top:"+=4px"},150);
           //alert("YES!");
       };
    });
});

function hideName(img, id) {
    $('#'+id).fadeOut(300);
}

function showName(img, id) {
    //$('#'+id).slideDown(300);
    $('#'+id).fadeIn(150);
}