
var yourBro = [];

//perform checks for different browsers returns the variable yourBro[1]
// returns operating system in yourBro[2]
if( navigator.vendor == 'KDE' || ( document.childNodes && !document.all && !navigator.taintEnabled ) ) { yourBro[0] = 'kde'; yourBro[1] = 'Konqueror / Safari / OmniWeb 4.5+'; }
else if( navigator.__ice_version ) { yourBro[0] = 'ice'; yourBro[1] = 'ICEbrowser'; }
else if( window.ScriptEngine && ScriptEngine().indexOf( 'InScript' ) + 1 ) { yourBro[0] = 'icb'; yourBro[1] = 'iCab'; }
else if( navigator.userAgent.toLowerCase().indexOf( 'hotjava' ) + 1 && typeof( navigator.accentColorName ) == 'undefined' ) { yourBro[0] = 'hjv'; yourBro[1] = 'HotJava'; }
else if( document.layers && !document.classes ) { yourBro[0] = 'omn'; yourBro[1] = 'Omniweb 4.2-'; }
else if( document.layers && !navigator.mimeTypes['*'] ) { yourBro[0] = 'esc'; yourBro[1] = 'Escape'; }
else if( document.layers ) { yourBro[0] = 'ns4'; yourBro[1] = 'Netscape 4'; }
else if( window.opera && document.childNodes ) { yourBro[0] = 'op7'; yourBro[1] = 'Opera 7+'; }
else if( navigator.userAgent.toLowerCase().indexOf( 'opera' ) + 1 ) { yourBro[0] = 'opr'; yourBro[1] = 'Opera 6-'; }
else if( navigator.appName.indexOf( 'WebTV' ) + 1 ) { yourBro[0] = 'wtv'; yourBro[1] = 'WebTV'; }
else if( navigator.userAgent.toLowerCase().indexOf( 'netgem' ) + 1 ) { yourBro[0] = 'nbx'; yourBro[1] = 'Netgem NetBox'; }
else if( navigator.userAgent.toLowerCase().indexOf( 'opentv' ) + 1 ) { yourBro[0] = 'otv'; yourBro[1] = 'OpenTV'; }
else if( navigator.userAgent.toLowerCase().indexOf( 'ipanel' ) + 1 ) { yourBro[0] = 'ipn'; yourBro[1] = 'iPanel MicroBrowser'; }
else if( document.getElementById && !document.childNodes ) { yourBro[0] = 'clu'; yourBro[1] = 'Clue browser'; }
else if( navigator.product == 'Gecko' ) { yourBro[0] = 'gek'; yourBro[1] = 'Gecko engine (Mozilla, Netscape 6+ etc.)'; }
else if( document.getElementById ) { yourBro[0] = 'ie5'; yourBro[1] = 'Internet Explorer 5+'; }
else if( document.all ) { yourBro[0] = 'ie4'; yourBro[1] = 'Internet Explorer 4'; }
else { yourBro[0] = 'oth'; yourBro[1] = 'an unknown browser'; }

//perform checks for different operating systems
if( navigator.userAgent.toLowerCase().indexOf( 'linux' ) + 1 ) { yourBro[2] = 'lin'; yourBro[3] = 'Linux'; }
else if( navigator.userAgent.toLowerCase().indexOf( 'x11' ) + 1 ) { yourBro[2] = 'unx'; yourBro[3] = 'Unix'; }
else if( navigator.userAgent.toLowerCase().indexOf( 'mac' ) + 1 ) { yourBro[2] = 'mac'; yourBro[3] = 'MacOS'; }
else if( navigator.userAgent.toLowerCase().indexOf( 'win' ) + 1 ) { yourBro[2] = 'win'; yourBro[3] = 'Windows'; }
else if( navigator.userAgent.toLowerCase().indexOf( 'webtv' ) + 1 ) { yourBro[2] = 'wtv'; yourBro[3] = 'WebTV Platform'; }
else if( navigator.userAgent.toLowerCase().indexOf( 'netgem' ) + 1 ) { yourBro[2] = 'ngm'; yourBro[3] = 'Netgem'; }
else if( navigator.userAgent.toLowerCase().indexOf( 'opentv' ) + 1 ) { yourBro[2] = 'otv'; yourBro[3] = 'OpenTV Platform'; }
else { yourBro[2] = 'oth'; yourBro[3] = 'an unknown operating system'; }

var sniff = yourBro[1].charAt(0); //sets first letter detect
var smell = yourBro[2].charAt(0); //sets first letter detect

// sorts the browser and os

if (smell == 'm')

	{
		var top_pos = 122;// set location for menu for Mac IE 5
		var left_pos = 130;
	}

if (sniff == 'K')
	
	{
		var top_pos = 102;// set location for menu for Safari
		var left_pos = 130;
	}
	
	else if (sniff == 'G')
	
	{
		var top_pos = 112;// set location for menu for Netscape
		var left_pos = 130;
	
	}

	else

	{
		var top_pos = 110;// sets location for menu
		var left_pos = 130;
	}


_menuCloseDelay=500           // The time delay for menus to remain visible on mouse out
_menuOpenDelay=150            // The time delay before menus open on mouse over
_subOffsetTop=1              // Sub menu top offset
_subOffsetLeft=1           // Sub menu left offset
_menuCloseDelay=500;
_menuOpenDelay=150;
//_subOffsetTop=50;
//_subOffsetLeft=-10;

with(style1=new mm_style()){
offcolor="#ffffff";// static font color
offbgcolor="#000000"; //static background color
oncolor="#ffffff";
onbgcolor="#ff5100";
bordercolor="#000000";
borderstyle="solid";
borderwidth=1;
separatorcolor="ff5100ss";
separatorsize="2";
fontsize=11;
fontcolor="#FFFFFF"; 
fontstyle="normal";
fontweight="bold";
fontfamily="Tahoma, Arial";
padding=2;
//high3dcolor="#000000";
//low3dcolor="#000000";
pagecolor="#ffffff"; // font color use this to indicate which page you are on. 
pagebgcolor="000000";// background color use this to indicate which page you are on.
headercolor="#ffffff";
headerbgcolor="#000099";
//subimage="arrow.gif";
//subimagepadding="2";
// dissolve is now turned off
overfilter=""//"Fade(duration=0.2);Alpha(opacity=90);Shadow(color='#777777', Direction=135, Strength=5)";
outfilter=""//"randomdissolve(duration=0.3)"
}
with(milonic=new menuname("mainmenu")){

top=top_pos;
left=left_pos;
style=style1;
alwaysvisible=1;
orientation="horizontal";
aI("text=Home &nbsp; &nbsp; ;url=http://www.unit5.org/nchs;;status=To NCHS Home;separatorsize=1")
aI("text=Students &nbsp; &nbsp; ;showmenu=Students;;separatorsize=1")
aI("text=Staff &nbsp; &nbsp; ;showmenu=Staff;;separatorsize=1")
aI("text=Parents &nbsp; &nbsp; ;showmenu=Parents;;separatorsize=1")
aI("text=School Information &nbsp; &nbsp;  ;showmenu=School Information;;separatorsize=1")
aI("text=Guidance&nbsp; &nbsp; ;url=http://www.unit5.org/nchs/departments/guidance/index.htm;;status=Guidance Department;separatorsize=1")
aI("text=Athletics &nbsp; &nbsp; ;url=http://www.unit5.org/nchs/athletics/index.htm;;status=To NCHS Home;separatorsize=1")
aI("text=Calendar;url=http://www.unit5.org/calendar/nchs;target=_blank;separatorsize=1")

}
with(milonic=new menuname("Students")){
style=style1;
overflow="scroll";

aI("text=Skyward Family Access;url=javascript:Start('https://skyweb.unit5.org/scripts/cgiip.exe/WService=wsStu/fwemnu01.w');;separatorsize=1")
aI("text=Academics;url=http://www.unit5.org/nchs/academics/index.htm;;separatorsize=1")
aI("text=Courses;url=javascript:Start('http://www.unit5.org/departments/curriculum/documents/hs/Course-Description-2009-2010.pdf');;separatorsize=1")
aI("text=Clubs;url=http://www.unit5.org/nchs/organizations/index.html")
aI("text=IMC;url=javascript:Start('http://www.unit5.org/nchsimc/index.htm');;separatorsize=1")
aI("text=Student Handbook;url=javascript:Start('http://www.unit5.org/nchs/pdf/2009/2009-10%20NCHS%20Handbook.pdf');;separatorsize=1")
aI("text=Daily Announcements;url=http://www.unit5.org/nchs/announcements/index.shtml;;separatorsize=1")
aI("text=Lunch;url=javascript:Start('http://www.unit5.org/departments/foodservice/');;separatorsize=1")
aI("text=ROCS;url=javascript:Start('http://www.unit5.org/nchs/rocs/index.htm');;separatorsize=1")



}
with(milonic=new menuname("Staff")){
style=style1;

aI("text=Administration;url=http://www.unit5.org/nchs/administration/index.htm;;separatorsize=1")
aI("text=Departments &nbsp; &nbsp; ;showmenu=departments;;separatorsize=1")
aI("text=Staff Listing;url=http://www.unit5.org/nchs/staff/staff_listing.shtml;;separatorsize=1")
aI("text=Staff Websites;url=http://www.unit5.org/nchs/staff/staff_websites.htm;;separatorsize=1")
aI("text=Skyward Educator Access;url=javascript:Start('https://skyweb.unit5.org/scripts/cgiip.exe/WService=wsEAplus/seplog01.w');;separatorsize=1")
aI("text=Skyward Employee Access;url=javascript:Start('https://skyweb.unit5.org/scripts/cgiip.exe/WService=wsFin/rwestd01.w');;separatorsize=1")


// sub menu call here uses showmenu={name that you gave the sub menu} 

/*--------------------------------------------------------------------------------------------------------
To add a sub menu copy a menu 'instance' like the departments menu below, change the name,
then change the menu display like the above aI -It calls another menu instead of displaying the links info  
----------------------------------------------------------------------------------------------------------*/


}

with(milonic=new menuname("departments")){// sub menu from Staff
style=style1;
aI("text=All Departments;url=http://www.unit5.org/nchs/departments/index.htm;;separatorsize=1")
aI("text=Agriculture;url=http://www.unit5.org/ncwhs/academics/departments/agriculture/agriculturemain.html;;separatorsize=1")
aI("text=Art;url=http://www.unit5.org/nchs/departments/art/index.htm;;separatorsize=1")
aI("text=Business;url=http://www.unit5.org/nchs/departments/business/index.htm;;separatorsize=1")
aI("text=Drivers Ed;url=javascript:Start('http://www.unit5.org/colej/');;separatorsize=1")
aI("text=English;url=http://www.unit5.org/nchs/departments/english/index.htm;;separatorsize=1")
aI("text=FACS;url=http://www.unit5.org/nchs/departments/family_cons_science/index.htm;;separatorsize=1")
aI("text=Foreign Language;url=http://www.unit5.org/nchs/departments/foreign_language/index.htm;;separatorsize=1")
aI("text=Guidance;url=http://www.unit5.org/nchs/departments/guidance/index.htm;;separatorsize=1")
aI("text=IMC;url=http://www.unit5.org/nchsimc/index.htm;;separatorsize=1")
aI("text=Math;url=http://www.unit5.org/nchs/departments/math/index.htm;;separatorsize=1")
aI("text=Music;url=http://www.unit5.org/nchs/departments/music/index.htm;;separatorsize=1")
aI("text=Physical Ed;url=http://www.unit5.org/nchs/departments/physical_ed/index.htm;;separatorsize=1")
aI("text=Science;url=http://www.unit5.org/nchs/departments/science/index.shtml;;separatorsize=1")
aI("text=Social Studies;url=http://www.unit5.org/nchs/departments/social_studies/index.htm;;separatorsize=1")
aI("text=Special Services;url=http://www.unit5.org/nchs/departments/special_services/index.htm;;separatorsize=1")
aI("text=Technology;url=http://www.unit5.org/nchs/techdept/;;separatorsize=1")


//aI("text=Technology;url=http://www.unit5.org/nchs/techdept/;;separatorsize=1")


}
with(milonic=new menuname("Parents")){
style=style1;

aI("text=Skyward Family Access;url=javascript:Start('https://skyweb.unit5.org/scripts/cgiip.exe/WService=wsStu/fwemnu01.w');;separatorsize=1")
aI("text=Open House/Conferences;url=http://www.unit5.org/nchs/parents/conferences.shtml;;separatorsize=1")
aI("text=Iron Pride/PTO;url=javascript:Start('http://www.unit5.org/nchs/spirit/index.htm');;separatorsize=1")
aI("text=Friends of Ironmen Football;url=javascript:Start('http://www.ironmenfootball.com');;separatorsize=1")

}
with(milonic=new menuname("School Information")){
style=style1;
aI("text=Community Flyers;url=javascript:Start('http://www.unit5.org/flyers');;separatorsize=1")
aI("text=Newsletters;url=http://www.unit5.org/nchs/newsletters/index.shtml;;separatorsize=1")
aI("text=Directions;url=http://www.unit5.org/nchs/directions.htm;;separatorsize=1")
aI("text=Unit 5 Web;url=javascript:Start('http://www.unit5.org');;separatorsize=1")
aI("text=Mission Statement;url=http://www.unit5.org/nchs/administration/mission_page.htm;;separatorsize=1")
aI("text=Policies;url=http://www.unit5.org/nchs/policies.shtml")
aI("text=NCHS Alumni;url=javascript:Start('http://www.unit5.org/districtinformation/partnerships/nchsalumni/index.shtml');;separatorsize=1")
aI("text=School History;url=http://www.unit5.org/nchs/history/history.htm;;separatorsize=1")
aI("text=Athletics;url=http://www.unit5.org/nchs/athletics/index.htm;;separatorsize=1")
aI("text=Music;url=javascript:Start('http://www.unit5.org/nchs/music/index.shtml');;separatorsize=1")



}




drawMenus();


// this function is called to open a new window use code in link as shown
function Start(page) {
OpenWin = this.open(page, "CtrlWindow", "toolbar=yes,menubar=yes,location=yes,scrollbars=yes,resizable=yes,status=no,left=0,top=0,width=700,height=600");
}
//<a href="javascript:Start('http://www.unit5.org')"> Script to use in the body
// End -->
