/*
 * 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 Navigation 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";

//include navigation
includeScriptMain("../../lib/js/Nav.js");

//include keyboard navigation
useKeyboardNav = true;
if(useKeyboardNav)
{
	includeScriptMain("../../lib/js/keyboardNav.js");
}

//include Libs
useLib = true;
if(useLib)
{
    includeScriptMain("../../lib/js/Lib.js");
}

//ie6 csshover.htc parseStylesheets() function
if(browserDetect.browser == "Explorer" && browserDetect.version == "6")
{
	includeScriptMain("../../lib/js/ie6_csshover.js")
}

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