//<script type="text/javascript">

//=============================================================================
// The Doodle class provides the framework that binds the application's 
// components together

Doodle = JSX.Class.create({
	name: 'Doodle',
	constructor: function(divCanvas) {

		// create the document
		this.doc = new Doodle.Doc();
		
		// create any views
		this.views = new Array();
		this.views.push(new Doodle.Canvas(divCanvas, this.doc));
	},
	members: {
		newDocument: function() {
			this.doc.init();
		}
	}
});

//</script>