/*
 * Web Toolkit Interface (WTI)
 * Copyright(c) 2007 Jonathan Bond-Caron
 * Released under BSD license
 *
 * The following interface is proposed to be used before declaring objects and functions in a javascript file. 
 * 
 * Any single javascript source file should declare the resource it provides and the other resources it depends upon. 
 * A 'resource' is to be considered abstract, it can be another file (javascript, css, html, image) or even a directory. There 
 * are no limits on what consists of a resource, for example it could also be a URL. 
 *
 * Each toolkit is responsible for their own implementation of how they deal with resources. The goal is use this common
 * interface among javascript toolkits so each toolkit can build a dependency tree of resources required by one or more files. 
 */
if(typeof window.wti == "undefined") {
	var wti = {};
	// Optional basic resource types that could be supported
	wti.types = {css: '.css', 
				js: '.js', 
				directory: 'dir', 
				html: '.html|.htm'};
	
	// What resource does this file provide?
	wti.provide = function(resourceId) {};
	
	// What are the resources this file depends on / requires?
	wti.require = function(resourceId, /*optional*/resourceType) {};
}