/*CM_Loader.js
* by Peter Belesis. v4.0.13 010712
* Copyright (c) 2001 Peter Belesis. All Rights Reserved.
*/

   CM_DOM = (document.getElementById) ? true : false;
   CM_NS4 = (document.layers) ? true : false;
    CM_IE = (document.all) ? true : false;
   CM_IE4 = CM_IE && !CM_DOM;
   CM_Mac = (navigator.appVersion.indexOf("Mac") != -1);
  CM_IE4M = CM_IE4 && CM_Mac;
CM_IsMenu = (CM_DOM || CM_NS4 || (CM_IE4 && !CM_IE4M));

CM_BrowserString = CM_NS4 ? "NS4" : CM_DOM ? "DOM" : "IE4";

if(window.event + "" == "undefined") event = null;
function CM_f_PopUp(){return false};
function CM_f_PopDown(){return false};
popUp = CM_f_PopUp;
popDown = CM_f_PopDown;


CM_GL_MenuWidth          = 150;
CM_GL_FontFamily         = "Arial,sans-serif";
CM_GL_FontSize           = 10;
CM_GL_FontBold           = true;
CM_GL_FontItalic         = false;
CM_GL_FontColor          = "black";
CM_GL_FontColorOver      = "white";
CM_GL_BGColor            = "transparent";
CM_GL_BGColorOver        = "transparent";
CM_GL_ItemPadding        = 3;

CM_GL_BorderWidth        = 2;
CM_GL_BorderColor        = "red";
CM_GL_BorderStyle        = "solid";
CM_GL_SeparatorSize      = 2;
CM_GL_SeparatorColor     = "yellow";

CM_GL_ImageSrc = "CM_More_black_right.gif";
CM_GL_ImageSrcLeft = "CM_More_black_left.gif";

CM_GL_ImageSrcOver = "CM_More_white_right.gif";
CM_GL_ImageSrcLeftOver = "CM_More_white_left.gif";

CM_GL_ImageSize          = 5;
CM_GL_ImageHorizSpace    = 5;
CM_GL_ImageVertSpace     = 5;

CM_GL_KeepHilite         = false;
CM_GL_ClickStart         = false;
CM_GL_ClickKill          = 0;
CM_GL_ChildOverlap       = 40;
CM_GL_ChildOffset        = 10;
CM_GL_ChildPerCentOver   = null;
CM_GL_TopSecondsVisible  = .5;
CM_GL_ChildSecondsVisible = .3;
CM_GL_StatusDisplayBuild = 0;
CM_GL_StatusDisplayLink  = 1;
CM_GL_UponDisplay        = null;
CM_GL_UponHide           = null;

//CM_GL_RightToLeft      = true;
CM_GL_CreateTopOnly      = CM_NS4 ? true : false;
CM_GL_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 CM_f_CenterMenu(topmenuid) {
	var MinimumPixelLeft = 0;
	var TheMenu = CM_DOM ? document.getElementById(topmenuid) : CM_IE4 ? document.all(topmenuid) : eval("window." + topmenuid);
	var TheMenuWidth = CM_DOM ? parseInt(TheMenu.style.width) : CM_IE4 ? TheMenu.style.pixelWidth : TheMenu.clip.width;
	var TheWindowWidth = CM_IE ? document.body.clientWidth : window.innerWidth;
	return Math.max(parseInt((TheWindowWidth-TheMenuWidth) / 2),MinimumPixelLeft);
}

if(CM_IsMenu) {
	document.write("<SCR" + "IPT LANGUAGE='JavaScript1.2' SRC='CM_Arrays.js' TYPE='text/javascript'><\/SCR" + "IPT>");
	document.write("<SCR" + "IPT LANGUAGE='JavaScript1.2' SRC='CM_Script"+ CM_BrowserString +".js' TYPE='text/javascript'><\/SCR" + "IPT>");
}


//end