
DD_DOM = (document.getElementById) ? true : false;
DD_NS4 = (document.layers) ? true : false;
DD_IE = (document.all) ? true : false;
DD_IE4 = DD_IE && !DD_DOM;
DD_Mac = (navigator.appVersion.indexOf("Mac") != -1);
DD_IE4M = DD_IE4 && DD_Mac;
DD_Opera = (navigator.userAgent.indexOf("Opera")!=-1);
DD_Konqueror = (navigator.userAgent.indexOf("Konqueror")!=-1);

DD_IsMenu = !DD_Opera && !DD_IE4M && (DD_DOM || DD_NS4 || DD_IE4 || DD_Konqueror);
DD_BrowserString = DD_NS4 ? "NS4" : DD_DOM ? "DOM" : "IE4";

if(window.event + "" == "undefined") event = null;
function DD_f_PopUp(){return false};
function DD_f_PopDown(){return false};
popUp = DD_f_PopUp;
popDown = DD_f_PopDown;


DD_GL_MenuWidth          = 150;
DD_GL_FontFamily         = "Arial,sans-serif";
DD_GL_FontSize           = 10;
DD_GL_FontBold           = true;
DD_GL_FontItalic         = false;
DD_GL_FontColor          = "black";
DD_GL_FontColorOver      = "white";
DD_GL_BGColor            = "transparent";
DD_GL_BGColorOver        = "transparent";
DD_GL_ItemPadding        = 3;

DD_GL_BorderWidth        = 2;
DD_GL_BorderColor        = "red";
DD_GL_BorderStyle        = "solid";
DD_GL_SeparatorSize      = 2;
DD_GL_SeparatorColor     = "yellow";
DD_GL_ImageSrc = "DD_More_black_right.gif";
DD_GL_ImageSrcLeft = "DD_More_black_left.gif";
DD_GL_ImageSrcOver = "DD_More_white_right.gif";
DD_GL_ImageSrcLeftOver = "DD_More_white_left.gif";

DD_GL_ImageSize          = 5;
DD_GL_ImageHorizSpace    = 5;
DD_GL_ImageVertSpace     = 5;

DD_GL_KeepHilite         = false;
DD_GL_ClickStart         = false;
DD_GL_ClickKill          = 0;
DD_GL_ChildOverlap       = 40;
DD_GL_ChildOffset        = 10;
DD_GL_ChildPerCentOver   = null;
DD_GL_TopSecondsVisible  = .5;
DD_GL_ChildSecondsVisible = .3;
DD_GL_StatusDisplayBuild = 0;
DD_GL_StatusDisplayLink  = 1;
DD_GL_UponDisplay        = null;
DD_GL_UponHide           = null;

DD_GL_RightToLeft      = false;
DD_GL_CreateTopOnly      = DD_NS4 ? true : false;
DD_GL_ShowLinkCursor     = true;

DD_GL_ScrollEnabled = false;
DD_GL_ScrollBarHeight = 14;
DD_GL_ScrollBarColor = "lightgrey";
DD_GL_ScrollImgSrcTop = "DD_More_black_top.gif";
DD_GL_ScrollImgSrcBot = "DD_More_black_bot.gif";
DD_GL_ScrollImgWidth = 9;
DD_GL_ScrollImgHeight = 5;
DD_GL_ScrollBothBars = true;


function DD_f_CenterMenu(topmenuid) {
    var MinimumPixelLeft = 0;
    var TheMenu = DD_DOM ? document.getElementById(topmenuid) : window[topmenuid];
    var TheMenuWidth = DD_DOM ? parseInt(TheMenu.style.width) : DD_IE4 ? TheMenu.style.pixelWidth : TheMenu.clip.width;
var TheWindowWidth = DD_IE ? (DD_DOM ? DD_Canvas.clientWidth : document.body.clientWidth) : window.innerWidth;

return Math.max(parseInt((TheWindowWidth-TheMenuWidth) / 2),MinimumPixelLeft);
}

if(DD_IsMenu) {
	var cur_lang=document.form5.cur_lang.value;
	document.write("<SCR" + "IPT LANGUAGE='JavaScript1.2' SRC='menu/DD_Arrays_" + cur_lang + ".js' TYPE='text/javascript'><\/SCR" + "IPT>");
    document.write("<SCR" + "IPT LANGUAGE='JavaScript1.2' SRC='menu/DD_Script"+ DD_BrowserString +".js' TYPE='text/javascript'><\/SCR" + "IPT>");
}



