/*
 * Copyright 2006, Jeffrey Palm.
 */

Jeff.Main = Class.create();
Jeff.Main.prototype = {

	initialize: function() {

		this.api = new Jeff.API();
		this.tree = new Jeff.Tree(this.api);
		this.api.tree = this.tree;
		this.api.main = this;

		//todo: skip
		//var reflect = new Flickr.Reflect(user,'people');
		//var model2 = new Flickr.ReflectNode(reflect);
		//this.tree.addNode(model2);		

		this.map = 0;

	},

	addModel: function(model) {
		this.api.addModel(model);
	},
	
	main: function() {
		this.tree.draw();
		this.tree.main();
	},

	onBodyLoad: function() {
		this.api.onBodyLoad();
	},

	load: function() {
		this.api.load();
	},

	_dummy: function() {}

};

