/*
 Milonic DHTML Website Navigation Menu - Version 3.5
 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.
*/


//The following line is critical for menu operation, and MUST APPEAR ONLY ONCE. If you have more than one menu_array.js file rem out this line in subsequent files
menunum=0;menus=new Array();_d=document;function addmenu(){menunum++;menus[menunum]=menu;}function dumpmenus(){mt="<script language=javascript>";for(a=1;a<menus.length;a++){mt+=" menu"+a+"=menus["+a+"];"}mt+="<\/script>";_d.write(mt)}
//Please leave the above line intact. The above also needs to be enabled if it not already enabled unless this file is part of a multi pack.


checkBrowser();     // call function below which sets Menu Top
                    // based on whether the browser is IE or Netscape.


////////////////////////////////////
// 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

effect = "Fade(duration=0.2);Alpha(style=0,opacity=88);Shadow(color='#777777', Direction=135, Strength=5)"


timegap=50          // The time delay for menus to remain visible
followspeed=5       // Follow Scrolling speed
followrate=40       // Follow Scrolling Rate (use a minimum of 40 to avoid problems)
suboffset_top=0;    // Sub menu offset Top position
suboffset_left=0;   // Sub menu offset Left position
closeOnClick = true

style1=[            // 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.
"FFFFFF",           // Mouse Off Font Color
"507C7D",           // Mouse Off Background Color
"FFFFFF",           // Mouse On Font Color
"71A5A6",           // Mouse On Background Color
"507C7D",           // Menu Border Color
12,                 // Font Size in pixels
"normal",           // Font Style (italic or normal)
"bold",             // Font Weight (bold or normal)
"Arial, Helvetica, Verdana, Tahoma, sans-serif",   // Font Name
3,                  // Menu Item Padding
"images/arrow.gif", // Sub Menu Image (Leave this blank if not needed)
,                   // 3D Border & Separator bar
"66ffff",           // 3D High Color
"000099",           // 3D Low Color
"FFFFFF",           // Current Page Item Font Color (leave this blank to disable)
"71A5A6",           // Current Page Item Background Color (leave this blank to disable)
,                   // Top Bar image (Leave this blank to disable) default is "arrowdn.gif"
"ffffff",           // Menu Header Font Color (Leave blank if headers are not needed)
"000099",           // Menu Header Background Color (Leave blank if headers are not needed)
"507C7D",           // Menu Item Separator Color
]


addmenu(menu=[      // This is the array that contains your menu properties and details
"mainmenu",         // Menu Name - This is needed in order for the menu to be called
menu_top,           // Menu Top - The Top position of the menu in pixels
125,                // Menu Left - The Left position of the menu in pixels
,                   // Menu Width - Menus width in pixels
1,                  // Menu Border Width
"center",           // Screen Position - here you can use "center;left;right;middle;top;bottom" or a combination of "center:middle"
style1,             // Properties Array - this is set higher up, as above
1,                  // Always Visible - allows the menu item to be visible at all time (1=on/0=off)
"left",             // Alignment - sets the menu elements text alignment, values valid here are: left, right or center
,                   // Filter - Text variable for setting transitional effects on menu activation - see above for more info
,                   // Follow Scrolling - Tells the menu item to follow the user down the screen (visible at all times) (1=on/0=off)
1,                  // Horizontal Menu - Tells the menu to become horizontal instead of top to bottom style (1=on/0=off)
0,                  // Keep Alive - Keeps the menu visible until the user moves over another menu or clicks elsewhere on the page (1=on/0=off)
,                   // Position of TOP sub image left:center:right
,                   // Set the Overall Width of Horizontal Menu to 100% and height to the specified amount (Leave blank to disable)
,                   // Right To Left - Used in Hebrew for example. (1=on/0=off)
,                   // Open the Menus OnClick - leave blank for OnMouseover (1=on/0=off)
,                   // ID of the div you want to hide on MouseOver (useful for hiding form elements)
,                   // Background image for menu when BGColor set to transparent.
,                   // Scrollable Menu
,                   // Reserved for future use
                    //
                    // use "Programs&nbsp;","show-menu=programs",,"",1   to add space
                    // between column headers
                    //
//                  ,"Home","http://www.dynamicdrive.com",,"Back to the home page",1 // "Description Text", "URL", "Alternate URL", "Status", "Separator Bar"
,"People &nbsp;&nbsp;&nbsp;","show-menu=people",,"People",1
,"Research &nbsp;&nbsp;&nbsp;","show-menu=research",,"Research Foci, Research Group Directory, etc.",1
,"Publications &nbsp;&nbsp;&nbsp;","show-menu=publications",,"ICICS Publications",1
,"Programs &nbsp;&nbsp;&nbsp;","show-menu=programs",,"Programs",1
,"News & Events &nbsp;&nbsp;&nbsp;","show-menu=news",,"News & Events",1
,"Community &nbsp;&nbsp;&nbsp;","show-menu=community",,"Community",1
,"About ICICS &nbsp;&nbsp;&nbsp;","show-menu=about",,"About The Institute for Computing, Information & Cognitive Systems",0
])



    addmenu(menu=["about",,,100,1,,style1,0,"left",effect,0,,,,,,,,,,,
    ,"overview","about/index.html",,,1
    ,"the ICICS vision","about/index.html#vision",,,1
    ,"motivation","about/index.html#motivation",,,1
    ,"goals","about/index.html#goals",,,1
    ,"history","about/index.html#history",,,1
    ,"who we are","about/index.html#whoweare",,,1
    ,"links to ASI/PIMS/Green College","about/index.html#links",,,1
    ,"support","about/support.html",,,1
    ])

    addmenu(menu=["people",,,100,1,,style1,0,"left",effect,0,,,,,,,,,,,
    ,"who we are","people/whoweare.html",,,1
    ,"faculty directory","people/index.html",,,1
    ,"administration and staff","people/admin.html",,,1
    ,"membership guidelines","people/join_us.html",,,1
    ])

    addmenu(menu=["research",,,100,1,,style1,0,"left",effect,0,,,,,,,,,,,
    ,"overview","research/overview.html",,,1
    ,"research group directory","research/index.html",,,1
    ,"research group descriptions","research/descriptions.html",,,1
    ,"research themes","research/themes.html",,,1
    ,"research foci","research/foci.html",,,1
    ])

    addmenu(menu=["publications",,,100,1,,style1,0,"left",effect,0,,,,,,,,,,,
    ,"about publications","publications/index.html",,,1
    ,"periodicals","publications/periodicals.html",,,1
    ,"research group publications","research/index.html",,,1
    ,"archived technical reports","publications/techreports.html",,,1
    ])

    addmenu(menu=["programs",,,100,1,,style1,0,"left",effect,0,,,,,,,,,,,
    ,"about programs","programs/index.html",,,1
    ,"Master of Software Systems","programs/index.html#mss",,,1
    ,"connecting departments","programs/index.html#connecting",,,1
    ])

    addmenu(menu=["news",,,100,1,,style1,0,"left",effect,0,,,,,,,,,,,
    ,"top stories","show-menu:news_archive","news/index.html",,1
    ,"upcoming","show-menu:events_archive","news/index.html#upcoming_events",,1
    ,"date calendar","news/index.html#calendar",,,1
    ])

        addmenu(menu=["news_archive",,,100,1,,style1,0,"left",effect,0,,,,,,,,,,,
        ,"&nbsp;&nbsp;&nbsp;news archive","news/more_news.html#news_archive",,,1
        ])

        addmenu(menu=["events_archive",,,100,1,,style1,0,"left",effect,0,,,,,,,,,,,
        ,"&nbsp;&nbsp;&nbsp;events archive","news/events_archive.html",,,1
        ])


    addmenu(menu=["community",,,100,1,,style1,0,"left",effect,0,,,,,,,,,,,
    ,"about community","community/index.html",,,1
    ,"university and government","community/govt.html",,,1
    ,"funding partners","community/partners.html",,,1
    ,"industry","community/industry.html",,,1
    ])


dumpmenus()


var menu_top;

function checkBrowser() {
    var browserName = navigator.appName;
    // alert(browserName);
    var ie_value = 194;
    var netscape_value = 187;

    // Checking for IE
    if (browserName == 'Microsoft Internet Explorer') {
        menu_top = ie_value;
    }
    // Checking for non-IE
    else {
        // Checking for NN
        if (browserName == 'Netscape') {
            menu_top = netscape_value;
        }
        else {
            // Non-popular browser [send IE CSS]
            menu_top = netscape_value;
        }
    }
}

