$(function() {
	$("a[rel^='prettyPhoto']").prettyPhoto({
		animationSpeed: 'normal', /* fast/slow/normal */
		padding: 40, /* padding for each side of the picture */
		opacity: 0.35, /* Value betwee 0 and 1 */
		showTitle: false, /* true/false */
		allowresize: true, /* true/false */
		counter_separator_label: '/', /* The separator for the gallery counter 1 "of" 2 */
		theme: 'light_rounded' /* light_rounded / dark_rounded / light_square / dark_square */
	});    


    jQuery.getFeed({
        url: 'http://volleyball.crocs.com/utils/load/blogAVP_RSS.php',
        success: function(feed) {
            
            var html = '';
            
            for(var i = 0; i < feed.items.length && i < 7; i++) {
            
                var item = feed.items[i];
                
                html += '<div class="blogitem">';
                
                html += '<div class="blogtitle">'
                + '<a href="' + item.link + '" target="_blank">' + item.title + '</a>'
                + '</div>';
                
                html += '<div class="blogtext">'
                + item.description
                + '</div>';
                
                html += '</div>';
            }
            
            jQuery('#blogcontent').append(html);
        }    
    });

});
