var NoOffFirstLineMenus=10;

var OverwriteHVOnload = true;

// This is for setting the window onload to load the menu  ***********************************
var AgntUsr6=navigator.userAgent.toLowerCase();
var DomYes6=document.getElementById?1:0;
var NavYes6=AgntUsr6.indexOf('mozilla')!=-1&&AgntUsr6.indexOf('compatible')==-1?1:0;
var ExpYes6=AgntUsr6.indexOf('msie')!=-1?1:0;
var Opr6=AgntUsr6.indexOf('opera')!=-1?1:0;
var DomNav6=DomYes6&&NavYes6?1:0;

var Par6=parent.frames[0]&&FirstLineFrame!=SecLineFrame?parent:window;
var Doc6=Par6.document;
var Bod6=Doc6.body;
var Trigger6=NavYes6?Par6:Bod6;

// Determine browser compatibility
if ( (typeof(is_mac)=="undefined") || (typeof(is_ie)=="undefined") ) {
	var agt=navigator.userAgent.toLowerCase();
	
	//I dont think is_win matters anymore
	//var is_win   = ( (agt.indexOf("win")!=-1) || (agt.indexOf("16bit")!=-1) );
	
	if (typeof(is_mac)=="undefined")
		var is_mac    = (agt.indexOf("mac")!=-1);
	
	if (typeof(is_ie)=="undefined")
		var is_ie     = ((agt.indexOf("msie") != -1) && (agt.indexOf("opera") == -1));
}
var isCompatible = false;
var byID = typeof(document.getElementById);
if(byID.toLowerCase()!='undefined')	// && (is_win))
	isCompatible = true;

if(Trigger6.onload)Dummy6=Trigger6.onload;
if(DomNav6&&!Opr6)Trigger6.addEventListener('load',load_menu_6,false);
else Trigger6.onload=load_menu_6;

function Dummy6(){return}
// *******************************************************************************************


if(isCompatible)	{
	// This is for determining the size of menu items dynamically
	document.write('<span style="visibility : hidden;" id="menuTextSize"></span>');
	document.close();	// So the span is definitely written
}

function get_width_6(the_title, the_font, the_size, the_weight, is_italicized, pre_calculated_width, current_level)	{
			
	// If compatible, dynamically get pixelwidth
	if(isCompatible)	{
		var s = document.getElementById('menuTextSize');
		
		// Clear display, so that we can insert stuff and get the pixelwidth
		// Note, however, that visibility will still be turned off
		s.style.display = '';
		
		// Now set the attributes
		s.innerHTML = the_title;
		s.style.fontFamily = the_font;
		s.style.fontSize = the_size;
		s.style.fontWeight = the_weight;
		if(is_italicized==1)
			s.style.fontStyle = 'italic';
		
		// Get LeftPadding - in hv_menu_setup_2.js
		if(!LeftPaddng || (LeftPaddng==null) || (typeof(window['LeftPaddng']) == 'undefined'))
			LeftPaddng = 0;
		
		// Now get width
		our_scroll_width = ( (is_mac && is_ie) ? s.offsetWidth : s.scrollWidth);
		computed_dynamic_width = LeftPaddng + our_scroll_width;
		
		// if toplevel item and horizontal layout, add in user-inputted breathing room
		if((current_level==1) && (FirstLineHorizontal==1))	{
			//var user_inputted_min_pix = 0;
			//if(is_mac && (user_inputted_min_pix>0))	user_inputted_min_pix -= 5;
			//computed_dynamic_width += user_inputted_min_pix;
			computed_dynamic_width += 0;
		}
		else if (current_level>1)	// otherwise if not top-level, add 5 for breathing room
			computed_dynamic_width += 5;
		
		if(ShowArrow && ((current_level==1 && !FirstLineHorizontal) || (current_level>1)) )
			computed_dynamic_width += 20;
		
		
		// Always clear this stuff when done
		s.innerHTML = '';
		s.style.fontFamily = '';
		s.style.fontSize = '';
		s.style.fontWeight = '';
		s.style.fontStyle = '';
		s.style.display = 'none';	// So there is no display at all
		
		return computed_dynamic_width;
	}
	// If not compatible,  for right now just return the previously-calculated estimated width
	else	{
		return pre_calculated_width;
	}
}


function load_menu_6()	{

Dummy6();

Menu1 = new Array("Communication Arts", "../../gen/hm_generated_pages/Communication_Arts_m79.html", "", 0, menu_height, get_width_6("Communication Arts", "arial", "8pt", 400, 0, 146, 1));
Menu2 = new Array("Fine Arts: Music", "../../gen/hm_generated_pages/Fine_Arts_Music_m6496.html", "", 0, menu_height, get_width_6("Fine Arts: Music", "arial", "8pt", 400, 0, 128, 1));
Menu3 = new Array("Fine Arts: Visual Arts", "../../gen/hm_generated_pages/Fine_Arts_Visual_Arts_m6670.html", "", 0, menu_height, get_width_6("Fine Arts: Visual Arts", "arial", "8pt", 400, 0, 171, 1));
Menu4 = new Array("Foreign Language", "../../gen/hm_generated_pages/Foreign_Language_m6567.html", "", 0, menu_height, get_width_6("Foreign Language", "arial", "8pt", 400, 0, 126, 1));
Menu5 = new Array("Health / Physical Education", "../../gen/hm_generated_pages/Health__Physical_Education_m80.html", "", 0, menu_height, get_width_6("Health / Physical Education", "arial", "8pt", 400, 0, 203, 1));
Menu6 = new Array("Mathematics", "../../gen/hm_generated_pages/Mathematics_m75.html", "", 0, menu_height, get_width_6("Mathematics", "arial", "8pt", 400, 0, 93, 1));
Menu7 = new Array("Practical Arts", "../../gen/hm_generated_pages/Practical_Arts_m81.html", "", 0, menu_height, get_width_6("Practical Arts", "arial", "8pt", 400, 0, 112, 1));
Menu8 = new Array("Science", "../../gen/hm_generated_pages/Science_m76.html", "", 0, menu_height, get_width_6("Science", "arial", "8pt", 400, 0, 62, 1));
Menu9 = new Array("Social Studies", "../../gen/hm_generated_pages/Social_Studies_m78.html", "", 0, menu_height, get_width_6("Social Studies", "arial", "8pt", 400, 0, 112, 1));
Menu10 = new Array("Speech and Theatre", "../../gen/hm_generated_pages/Speech_and_Theatre_m6625.html", "", 0, menu_height, get_width_6("Speech and Theatre", "arial", "8pt", 400, 0, 138, 1));

	Go();
}

