$(document).ready(function(){loadImage();})

function loadImage(){
    
    $(".comment-background").fadeTo(0,0.55);
    // getimage.php is the php file that gets my images from the images folder
    $.post("getimage.php", function(data){
        if(data.length >0) { 
        // evaluate the string to a group of objects
        myObject = eval(data);
        // create a slideshow with the image objects and drop them in the placeholder
        $('#imgcontainer').crossSlide({sleep:2,fade:2},myObject);
        }
    });
    
}
