// CCSR GLOBAL JQUERY FUNCTIONS
// Author: Netgen
// URI: http://ccsrconference.com
// Last updated: 09.11.2011

$(document).ready(function() {   
	///////////////// INITIALIZE JQUERY.TWEET /////////////////
	$(".tweet").tweet({
		username: "NetgenTeam",
    	join_text: "auto",
    	avatar_size: 42,
    	count: 2,
    	auto_join_text_default: "we said,",
    	auto_join_text_ed: "we",
    	auto_join_text_ing: "we were",
    	auto_join_text_reply: "we replied to",
    	auto_join_text_url: "we were checking out",
    	loading_text: "loading tweets..."
    });
    
}); //END JQUERY DOM

///////////////// FLICKR API /////////////////

$.getJSON("http://api.flickr.com/services/feeds/photos_public.gne?id=58814686@N02&format=json&jsoncallback=?", function(data) {
               var target = "#latest-flickr-images"; // Where is it going?
               for (i = 0; i <= 7; i = i + 1) { // Loop through the 10 most recent, [0-4]
                       var pic = data.items[i];
                       var liNumber = i + 1; // Add class to each LI (1-10)
                       $(target).append("<a title='" + pic.title + "' href='" + pic.link + "'><img src='" + pic.media.m + "' /></a>");
               }
       });
