$(document).ready(function(){

    $(".opacity-content").css({ opacity: 0}).hide();
    $(".over-change").mouseover(function(){
        $(this).prev(".content-opacity").show().children(".opacity").css({ opacity: 0.6 }).show().prev("a").show();
    });

    $(".content-opacity").mouseleave(function(){
        $(this).hide().children(".opacity").css({ opacity: 0.6}).hide().children("a").hide();
    });

    $(".show-next-image").click(function(){
        if($(this).parent().prev('.section-box-pics').find(".image-shown:last").next().html() != null){
            $(this).parent().prev('.section-box-pics').find(".image-shown:first").removeClass("image-shown").addClass("image-not-shown").hide();
            $(this).parent().prev('.section-box-pics').find(".image-shown:last").next().removeClass("image-not-shown").addClass("image-shown").show();
        }
    });
    $(".show-prev-image").click(function(){
        if($(this).parent().next('.section-box-pics').find(".image-shown:first").prev().html() != null){
            $(this).parent().next('.section-box-pics').find(".image-shown:last").removeClass("image-shown").addClass("image-not-shown").hide();
            $(this).parent().next('.section-box-pics').find(".image-shown:first").prev().removeClass("image-not-shown").addClass("image-shown").show();
        }
    });

    $(".control-hidden-job-offer").click(function(){
        $(this).hide();
        $(".content-hidden-job-offer").show();
    });

    $(".control-hidden-job-opportunity").click(function(){
        $(this).hide();
        $(".content-hidden-job-opportunity").show();
    });

});


