jQuery(function () {
function render_image(o) {
return '
\n\
\n\
';
};
function populate_flickr(data, text_status) {
var ul = $("ul", "#flickr");
ul.empty();
jQuery.each($('photo', data), function(i, obj) {
var photo = $(obj);
var image = {
href: photo.attr('url_m'),
src: '/images/photos.jpg',
alt: photo.attr('title'),
};
var li = $(render_image(image));
$('img', li).css({left: (i * -75) + 'px'});
ul.append(li);
});
$("a[rel^='prettyPhoto']").prettyPhoto({theme: "facebook"});
};
// Populate Flickr
jQuery.get("/photos.xml", {dataType: 'xml'}, populate_flickr);
});