var WebApp = new Class({
	posts : [],
	
	Implements : [ Events, Options ],
	
	options : {
		el : 'posts'
	},
	
	initialize : function(options) {
		this.setOptions(options);
	},
	
	onPostsLoaded : function() {
		this.fireEvent('postsLoaded');
	},
	
	loadTumblr : function(jsonString) {
		if (jsonString && jsonString.posts) {
			this.posts = jsonString.posts;
			this.onPostsLoaded();
			this.showTumblr();
		}
	},
	
	showTumblr : function() {
		for (var post in this.posts)
			;
	}
});

window.OlivierDeland = new WebApp();
