/*
 * Main.js
 * (c)2009 Bell Systems LLC
 * 
 * License: http://bellspace.net/licenses/non-commercial.html (Non-Commercial) 
 * Licensing: http://bellspace.net/licensing/index.html 
 * 
 * Main Initialization Program
 *
 */

var myHref = window.location.href;
var myHost = window.location.host;

//the url before any parameters
var mySelf = myHref.split("?")[0];

//set output DBUG output var and begin including scripts 

/*** global debug output ***/
var DBUG = document.createElement('div');
DBUG.style.color = "green";
DBUG.style.marginLeft = "15px";
DBUG.style.fontWeight = "bold";
document.body.appendChild(DBUG);

/*** global error output ***/
var ERR = document.createElement('div');
document.body.appendChild(ERR);
ERR.style.marginLeft = "15px";
ERR.style.color = "red";
ERR.style.fontWeight = "bold";

function includeScriptMain(src)
{
    newScript = document.createElement("script");
    newScript.src = src;
    newScript.language = "javascript";
    document.body.appendChild(newScript);
}