
/* this file is for defining the style of the menu */
/*
 Milonic DHTML Website Navigation Menu - Version 3.4
 Written by Andy Woolley - Copyright 2002 (c) Milonic Solutions Limited. All Rights Reserved.
 Please visit http://www.milonic.co.uk/menu or e-mail menu3@milonic.com for more information.
 
 The Free use of this menu is only available to Non-Profit, Educational & Personal web sites.
 Commercial and Corporate licenses  are available for use on all other web sites & Intranets.
 All Copyright notices MUST remain in place at ALL times and, please keep us informed of your 
 intentions to use the menu and send us your URL.
*/

// Note, the following functions MUST be in this file.  It will not work correctly
// if moved to another file.

function DetectBrowser(HTTPUserAgent) {

    if (HTTPUserAgent.indexOf("opera") != -1) {
        if (HTTPUserAgent.indexOf("windows") != -1) {
            return "OPERA";
        } else if (HTTPUserAgent.indexOf("linux") != -1) {
            return "OPERA_LINUX";
        } else if (HTTPUserAgent.indexOf("mac") != -1) {
            return "OPERA_MAC";
        } else {
            return "OPERA";
        }
    } else if (HTTPUserAgent.indexOf("msie") != -1) {
        if (HTTPUserAgent.indexOf("windows") != -1) {
            return "MSIE";
        } else if (HTTPUserAgent.indexOf("mac") != -1) {
            return "MSIE_MAC";
        } else {
            return "MSIE";
        }
    } else if (HTTPUserAgent.indexOf("gecko") != -1) {
        if (HTTPUserAgent.indexOf("windows") != -1) {
            return "GECKO";
        } else if (HTTPUserAgent.indexOf("linux") != -1) {
            return "GECKO_LINUX";
        } else if (HTTPUserAgent.indexOf("mac") != -1) {
            return "GECKO_MAC";
        } else {
            return "GECKO";
        }
    } else if (HTTPUserAgent.indexOf("mozilla") != -1) {
        if (HTTPUserAgent.indexOf("windows") != -1) {
            return "MOZILLA";
        } else if (HTTPUserAgent.indexOf("linux") != -1) {
            return "MOZILLA_LINUX";
        } else if (HTTPUserAgent.indexOf("mac") != -1) {
            return "MOZILLA_MAC";
        } else {
            return "MOZILLA";
        }
    } else {
        return "DEFAULT";
    }
}

browserType = DetectBrowser(navigator.userAgent.toLowerCase());

switch (browserType) {
    case "MSIE" :
    case "MSIE_MAC" :
    case "GECKO" :
    case "GECKO_LINUX" :
    case "GECKO_MAC" :
    case "MOZILLA" :
    case "MOZILLA_LINUX" :
    case "MOZILLA_MAC" :
    case "OPERA" :
        bln_loadMMenus = true;
        break;
    default : 
        bln_loadMMenus = false;
}

function showMMenu(mn,mpos) {
	if (bln_loadMMenus) {
		//if (eval("x" + mn)) popup(mn,mpos);
		var mYpos = 88;
		var mXpos = mpos;
		if (eval("x" + mn)) popupXY(mn,mXpos, mYpos);
		
	}else return false;
}

function hideMMenu() {
    if (bln_loadMMenus) popdn(); else return false;
}

if (bln_loadMMenus) {
    menunum=0;
    menus=new Array();
    _d=document;
    function addmenu(){
    	menunum++;
    	menus[menunum]=menu;
    }
    function dumpmenus(){
    	mt="<scri" + "pt type=\"text\/javascript\">";
    	for(a=1;a<menus.length;a++){
    		mt+=" menu"+a+"=menus["+a+"];"
    	}
    	mt+="<\/script>";
    	_d.write(mt)
    }
    
}


////////////////////////////////////
// Editable properties START here //
////////////////////////////////////

// Special effect string for IE5.5 or above please visit http://www.milonic.co.uk/menu/filters_sample.php for more filters
if(navigator.appVersion.indexOf("MSIE 6.0")>0)
{
	effect = "Fade(duration=0.2);Alpha(style=0,opacity=88);Shadow(color='#777777', Direction=135, Strength=5)"
}
else
{
	effect = "Shadow(color='#777777', Direction=135, Strength=5)" // Stop IE5.5 bug when using more than one filter
}


timegap=500			// The time delay for menus to remain visible
followspeed=5		// Follow Scrolling speed - was 5
followrate=40		// Follow Scrolling Rate - was 40
suboffset_top=10;	// Sub menu offset Top position 
suboffset_left=10;	// Sub menu offset Left position
    menu_border_width   = 2;

    oldmenu_style_x = [
        "#FFFFFF",
        "#6699CC",
        "#003366",
        "#FFCC66",
        "#336699",
        9,
        "normal",
        "bold",
        "verdana, arial, helvetica, sans-serif",
        4,
        "/images/arrow_r_FFF.gif",
        1,
        "#99CCFF",
        "#336699",
        ,,,,,,
    ];

    menu_style_corporate = [
        "#000000", // Mouse Off Font Color
        "#FFFFFF", // Mouse Off Background Color
        "#990000", // Mouse On Font Color
        "#FFFFFF", // Mouse On Background Color
        "#990000", // Menu Border Color 
        10,		   // Font Size in pixels
        "normal",  // Font Style (italic or normal)
        "normal",  // Font Weight (bold or normal)
        "verdana, arial, helvetica, sans-serif",
        4,		   // Menu Item Padding
        "/images/arrow_r_FFF.gif",
        0,			// 3D Border & Separator bar
        "#FFFFFF",	// 3D High Color
        "#FFFFFF",	// 3D Low Color
        ,,,,,,
    ];   

    menu_style_agent = [
        "#000000", // Mouse Off Font Color
        "#FFFFFF", // Mouse Off Background Color
        "#B13037", // Mouse On Font Color
        "#FFFFFF", // Mouse On Background Color
        "#B13037", // Menu Border Color 
        9,		   // Font Size in pixels
        "normal",  // Font Style (italic or normal)
        "normal",  // Font Weight (bold or normal)
        "verdana, arial, helvetica, sans-serif",
        3,		   // Menu Item Padding
        "/images/arrow_r_FFF.gif",
        0,			// 3D Border & Separator bar
        "#99CCFF",	// 3D High Color
        "#336699",	// 3D Low Color
        ,,,,,,
    ];   

//Vertical Site Menu Color
var sMenuBorderColor;
var sOffFontColor;
var sOnFontColor;

//sMenuBorderColor = "#861818" ;
//sOffFontColor = "#000000" ;
//sOnFontColor = "#861818" ;

    menu_style_vertical = [
        sOffFontColor, // Mouse Off Font Color
        "#FFFFFF", // Mouse Off Background Color
        sOnFontColor, // Mouse On Font Color
        "#FFFFFF", // Mouse On Background Color
        sMenuBorderColor, // Menu Border Color 
        9,		   // Font Size in pixels
        "normal",  // Font Style (italic or normal)
        "normal",  // Font Weight (bold or normal)
        "verdana, arial, helvetica, sans-serif",
        3,		   // Menu Item Padding
        "/images/arrow_r_FFF.gif",
        0,			// 3D Border & Separator bar
        "#99CCFF",	// 3D High Color
        "#336699",	// 3D Low Color
        ,,,,,,
    ];   



xmenu_style_1=[			// style1 is an array of properties. You can have as many property arrays as you need. This means that menus can have their own style.
"navy",				// Mouse Off Font Color
"ccccff",			// Mouse Off Background Color
"ffebdc",			// Mouse On Font Color
"4b0082",			// Mouse On Background Color
"000000",			// Menu Border Color 
12,					// Font Size in pixels
"normal",			// Font Style (italic or normal)
"bold",				// Font Weight (bold or normal)
"Verdana, Arial",	// Font Name
4,					// Menu Item Padding
"arrow.gif",		// Sub Menu Image (Leave this blank if not needed)
,					// 3D Border & Separator bar
"66ffff",			// 3D High Color
"000099",			// 3D Low Color
"Purple",			// Current Page Item Font Color (leave this blank to disable)
"pink",				// Current Page Item Background Color (leave this blank to disable)
"arrowdn.gif",		// Top Bar image (Leave this blank to disable)
"ffffff",			// Menu Header Font Color (Leave blank if headers are not needed)
"000099",			// Menu Header Background Color (Leave blank if headers are not needed)
"navy",			// Menu Item Separator Color
]

