/*missetm_Loader.js
* by Guy Jascht v0.9.2/11.02.2002
* Copyright (c) 2001,2002 SimCat Technologies. All Rights Reserved.
*
* Loader of the dynamic textbased Menusystem
*
* Browser compatiblity: Internet Explorer 4.x
*						Internet Explorer 5.+
*						Netscape 4.x (Communicator)
*						Netscape 6.x (Gecko)
*						Opera 5.x (DOM level-2 compatible)
* 
*/

// define here the browser compatibility specific for the menusystem
// Note: SCT_browserdetect.js must have be runned (placed in the <head> section
	
  SCT_DOM = is_nav5up || is_ie5up || (document.getElementById) ? true : false;  // this definition is redundant but save
// the properties 'navigator.vendor' and 'navigator.product' are Netscape specific
  SCT_NS4 = is_nav4;
	SCT_NS6 = is_nav5up && (navigator.vendor == ("Netscape6") || navigator.product == ("Gecko"));
  SCT_IE = (document.all) ? true : false;
  SCT_IE4 = is_ie4;
// platform specific
  SCT_MAC = is_mac;
  SCT_IE4M = SCT_IE4 && SCT_MAC;
  SCT_IE5M = SCT_IE && SCT_MAC;
  SCT_IE5W = SCT_IE && !SCT_MAC;

	SCT_IsMenu = (SCT_DOM || SCT_NS4 || (SCT_IE4 && !SCT_IE4M));
	
// what browserscript will be inserted ?
	SCT_BrowserCode = SCT_NS4 ? "NS4" : SCT_DOM ? "DOM" : "IE4";
	
// Pre event-handler
	if(window.event + "" == "undefined") // window.event --> Netscape 4
		event = null;
		
	function SCT_func_PopUp()
		{return false};
	function SCT_func_PopDown()
		{return false};
	popUp = SCT_func_PopUp;
	popDown = SCT_func_PopDown;

// Global menu properties
SCT_GLOB_MenuWidth          = 184;
SCT_GLOB_FontFamily         = "Verdana,EurostileT,Arial,sans-serif";
SCT_GLOB_FontSize           = 9;
SCT_GLOB_FontBold           = false;
SCT_GLOB_FontItalic         = false;
SCT_GLOB_FontColor          = "black";
SCT_GLOB_FontColorOver      = "white";
SCT_GLOB_BGColor            = "transparent";
SCT_GLOB_BGColorOver        = "transparent";
SCT_GLOB_ItemPadding        = 4;

SCT_GLOB_BorderWidth        = 1;
SCT_GLOB_BorderColor        = "red";
SCT_GLOB_BorderStyle        = "solid";
SCT_GLOB_SeparatorSize      = 1;
SCT_GLOB_SeparatorColor     = "yellow";

SCT_GLOB_ImageSrc = SCT_Hierarchy_Level + "scripts/SCT_More_black_right.gif";
SCT_GLOB_ImageSrcLeft = SCT_Hierarchy_Level + "scripts/SCT_More_black_left.gif";

SCT_GLOB_ImageSrcOver = SCT_Hierarchy_Level + "scripts/SCT_More_white_right.gif";
SCT_GLOB_ImageSrcLeftOver = SCT_Hierarchy_Level + "scripts/SCT_More_white_left.gif";

SCT_GLOB_ImageSize          = 5;
SCT_GLOB_ImageHorizSpace    = 5;
SCT_GLOB_ImageVertSpace     = 3;

SCT_GLOB_KeepHilite         = false;
SCT_GLOB_ClickStart         = false;
SCT_GLOB_ClickKill          = 0;
SCT_GLOB_ChildOverlap       = 60;
SCT_GLOB_ChildOffset        = 17;
SCT_GLOB_ChildPerCentOver   = null;
SCT_GLOB_TopSecondsVisible  = .5;
SCT_GLOB_ChildSecondsVisible = .3;
SCT_GLOB_StatusDisplayBuild = 0;
SCT_GLOB_StatusDisplayLink  = 0;
SCT_GLOB_UponDisplay        = null;
SCT_GLOB_UponHide           = null;

SCT_GLOB_RightToLeft      = true;
SCT_GLOB_CreateTopOnly      = SCT_NS4 ? true : false;
SCT_GLOB_ShowLinkCursor     = true;

// the following function is included to illustrate the improved JS expression handling of
// the left_position and top_position parameters
// you may delete if you have no use for it

function SCT_func_CenterMenu(topmenuid)
{
	var MinimumPixelLeft = 0;
	var TheMenu = SCT_DOM ? document.getElementById(topmenuid) : SCT_IE4 ? document.all(topmenuid) : eval("window." + topmenuid);
	var TheMenuWidth = SCT_DOM ? parseInt(TheMenu.style.width) : SCT_IE4 ? TheMenu.style.pixelWidth : TheMenu.clip.width;
	var TheWindowWidth = SCT_IE ? document.body.clientWidth : window.innerWidth;
	return Math.max(parseInt((TheWindowWidth-TheMenuWidth) / 2),MinimumPixelLeft);
}

	document.write("<SCR" + "IPT language='JavaScript1.3' SRC='" + SCT_Hierarchy_Level + "scripts/missedate.js' TYPE='text/javascript'><\/SCR" + "IPT>");

if(SCT_IsMenu)
{
	document.write("<SCR" + "IPT LANGUAGE='JavaScript1.2' SRC='" + SCT_Hierarchy_Level + "scripts/misse_menus_fin_" + SCT_Language + ".js' TYPE='text/javascript'><\/SCR" + "IPT>");
	document.write("<SCR" + "IPT LANGUAGE='JavaScript1.2' SRC='" + SCT_Hierarchy_Level + "scripts/SCT_m"+ SCT_BrowserCode +".js' TYPE='text/javascript'><\/SCR" + "IPT>");
}


//end