function Package()
{
	this.path = new Array();
	this.path.push("/maag/js");
}

/**
 * @param scriptFile name of the scriptFile to include
 * @param contains function or varname to check on script presence
 */
Package.prototype.load = function(scriptFile, contains)
{
	var check;
	try
	{
		check = eval(contains);
	}
	catch(e){}
	if(typeof(check) == "undefined")
	{
		document.open();
		var i;
		for(i=0; i < this.path.length; ++i)
		{
			document.write("<script type=\"text/javascript\" src=\""+this.path[i]+"/"+scriptFile+"\"></script>\n");
		}
		document.close();
	}
}

var scripts = new Package();