jQuery(document).ready(function($){loadImage();})

function loadImage(){
    
    jQuery(".comment-background").fadeTo(0,0.55);
    // getimage.php is the php file that gets my images from the images folder
    jQuery.post("wp-content/themes/Intent/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
        jQuery('#bannertekst').crossSlide({sleep:5,fade:2},myObject);
        }
    });
    
}
