/**
 * This script contains the JS code used from the view action (view) of the Classifieds controller.
 */

$(document).ready(function() {
    // If the user take the mouse over the image (classified-photo).
    $('.classified_photo').mouseover(function() {
        //
        var newSrc = $('#big_' + this.id).attr('src');

        // Then, change the src of main classified photo.
        $('#main_classified_photo').attr('src', newSrc);
    });
});
