
var bTestSite=false;
var sHttpPrefix="http://";

// establish test vs live site
if ((window.location.toString().toLowerCase().indexOf("minisage.com") > -1) || 
   (window.location.toString().toLowerCase().indexOf("3448aad2388c21be") > -1))  // sitelevel test ID
{
	bTestSite=true;
}
// establish http vs https
if (window.location.toString().toLowerCase().indexOf("https") > -1)
{
	sHttpPrefix = "https://";
}

var nSubMenuAdditionalWidthMedium = 150;   	//mfindlay
var nSubMenuAdditionalWidthWide = 200;    	//mfindlay

var nMenuWidth=190;				// width of menus to appear. Set to zero to ignore
var sBaseSite="";
var sNonSSLBaseSite="";

// If test site, just use 1 base site
if (bTestSite) 
{
	sBaseSite = sHttpPrefix + "etcinc.minisage.com/";
	sNonSSLBaseSite = "http://" + "etcinc.minisage.com/";
}
else
{
	sNonSSLBaseSite = "http://" + "www.etcinc.org/";
	
	// live site. If https mode, use safesecureweb address
	if (sHttpPrefix=="https://")
	{
		sBaseSite = sHttpPrefix + "www.etcinc.org/";
	}
	else
	{
		// non ssl mode, use normal address
		sBaseSite = sHttpPrefix + "www.etcinc.org/";
	}
} 

//****************************************************
// reloadCAPTCHA
//****************************************************
function reloadCAPTCHA() 
{
	document.getElementById('CAPTCHA').src=sBaseSite + 'include/CAPTCHA/CAPTCHA_image.asp?'+Date();
}

//********************
// TD Top nav onclick
//********************
function NavigateTo(sTarget)
{
	//window.location.href = sBaseSite + sTarget;
	window.location.href = sNonSSLBaseSite + sTarget;
	return true;
}


//var submenuTopOffset = "offset=5";  see iym for reference use in submenu flyouts
//var submenuLeftOffset = "offset=1";

// Fix for firefox Mac with Flash
fixMozillaZIndex=true;

// milonic
_menuCloseDelay=300;           	// The time delay for menus to remain visible on mouse out
_menuOpenDelay=50;             	// The time delay before menus open on mouse over
_subOffsetTop=4;             	// Sub menu top offset from bottom of image associated with it
_subOffsetLeft=0;            	// Sub menu left offset

// Site Menu Style
with(siteMenuStyle=new mm_style()){
offcolor="#ffffff";				// normal (non-hover) text color  
offbgcolor="#3e8aa4";			// normal (non-hover) background color  
onbgcolor="#666666";			// hover background color  
oncolor="#FFFFFF";				// hover text color 
offclass="mmpadding";			// custom style attached to menu
onclass="mmpadding";			// custom style attached to menu
bordercolor="#3e8aa4";			// border color 
borderstyle="solid";
borderwidth=0;
fontfamily="Verdana";				// font / font family
fontsize="12px";				// font size
fontstyle="normal";				// font style   
fontweight="normal";				// font weight (bold)   
outfilter="Fade(duration=0.1)";
//overfilter="Fade(duration=0.1);Alpha(opacity=90);Shadow(color='#777777', Direction=135, Strength=5)";
padding=2;						// menu item cell padding
pagebgcolor="#3e8aa4"; 			// this is the (non-hover) background color of the menu item last clicked 
pagecolor="#FFFFFF";  			// this is the (non-hover) text color of the menu item last clicked 
separatorcolor="#3e8aa4";		// separator color 
separatorsize="1";
subimage=sBaseSite + "menu/flyoutarrow.gif";
subimagepadding="2";
subimageposition="right";
}
//******************** ABOUT US ***********************************
with(milonic=new menuname("mmabout")){
//alwaysvisible=1;
//followscroll=1;
overflow="scroll";
style=siteMenuStyle;
itemwidth=215;  

top=0;
left=15;
//aI("align=center;pointer=move;text=drag to move menu;type=dragable;url=#;");
aI("text=History;url=" + sNonSSLBaseSite + "pages/about/about_history.asp;");
aI("text=Mission;url=" + sNonSSLBaseSite + "pages/about/about_mission.asp;");
aI("text=Accreditations &amp; Associations;url=" + sNonSSLBaseSite + "pages/about/about_accreditations-and-associations.asp;");
aI("text=School Calendar;url=" + sNonSSLBaseSite + "pages/about/about_school-calendar.asp;");
aI("text=Employment;url=" + sNonSSLBaseSite + "pages/about/about_employment.asp;");
aI("text=FAQ;url=" + sNonSSLBaseSite + "pages/about/about_faqs.asp;");
}
//******************** SERVICES ***********************************
with(milonic=new menuname("mmservices")){
//alwaysvisible=1;
//followscroll=1;
overflow="scroll";
style=siteMenuStyle;
itemwidth=215;  

top=0;
left=15;
//aI("align=center;pointer=move;text=drag to move menu;type=dragable;url=#;");
aI("text=Courses for Credit;url=" + sNonSSLBaseSite + "pages/services/services_courses-for-credit.asp;");
aI("text=Tutoring;url=" + sNonSSLBaseSite + "pages/services/services_tutoring.asp;");
aI("text=SAT/ACT Prep;url=" + sNonSSLBaseSite + "pages/services/services_SAT-ACT-prep.asp;");
aI("text=College Planning;url=" + sNonSSLBaseSite + "pages/services/services_college-planning.asp;");
aI("text=Academic Advocacy/Consulting;url=" + sNonSSLBaseSite + "pages/services/services_academic-consulting.asp;");
aI("text=Speech Therapy;url=" + sNonSSLBaseSite + "pages/services/services_speech.asp;");
}
//******************** GIVING ***********************************
with(milonic=new menuname("mmgiving")){
//alwaysvisible=1;
//followscroll=1;
overflow="scroll";
style=siteMenuStyle;
itemwidth=165;  

top=0;
left=15;
//aI("align=center;pointer=move;text=drag to move menu;type=dragable;url=#;");
aI("text=Support ETC;url=" + sNonSSLBaseSite + "pages/giving/donate.asp;");
aI("target=_blank;text=Donate Now!;url=https://www.networkforgood.org/donation/ExpressDonation.aspx?ORGID2=91-1148082;");
//aI("text=Theory of Change;url=" + sNonSSLBaseSite + "sections/whatwesupport/whatwesupport_theory_of_change.asp;");
//aI("showmenu=SMALLGRANTS;text=Grantees;pointer=default;");
}
	/*
	with(milonic=new menuname("GRANTEES")){
	style=siteMenuStyle;
	itemwidth=140;  
	//itemwidth += nSubMenuAdditionalWidthWide;
	aI("text=Major Initiatives;url=" + sNonSSLBaseSite + "sections/whatwesupport/whatwesupport_major_initiatives.asp;");
	aI("showmenu=SMALLGRANTS;text=Small Grants;pointer=default;");
	}
		with(milonic=new menuname("SMALLGRANTS")){
		style=siteMenuStyle;
		itemwidth=140;  
		//itemwidth += nSubMenuAdditionalWidthWide;
		aI("text=2008;url=" + sNonSSLBaseSite + "sections/whatwesupport/whatwesupport_small_grants_2008.asp;");
		aI("text=2009;url=" + sNonSSLBaseSite + "sections/whatwesupport/whatwesupport_small_grants_2009.asp;");
		aI("text=2010;url=" + sNonSSLBaseSite + "sections/whatwesupport/whatwesupport_small_grants_2010.asp;");
		}
		*/

//******************** TESTIMONIALS ***********************************
with(milonic=new menuname("mmtestimonials")){
//alwaysvisible=1;
//followscroll=1;
overflow="scroll";
style=siteMenuStyle;
itemwidth=140;  

top=0;
left=15;
//aI("align=center;pointer=move;text=drag to move menu;type=dragable;url=#;");
aI("text=Students;url=" + sNonSSLBaseSite + "pages/testimonials/testimonials_students.asp;");
aI("text=Parents;url=" + sNonSSLBaseSite + "pages/testimonials/testimonials_parents.asp;");
aI("text=Teachers;url=" + sNonSSLBaseSite + "pages/testimonials/testimonials_teachers.asp;");
aI("text=Professionals;url=" + sNonSSLBaseSite + "pages/testimonials/testimonials_professionals.asp;");
//aI("target=_blank;text=Blog;url=" + "http://seaifcentralamerica.wordpress.com;");
}

//******************** CURRENT STUDENTS ***********************************
with(milonic=new menuname("mmcurrentstudents")){
//alwaysvisible=1;
//followscroll=1;
overflow="scroll";
style=siteMenuStyle;
itemwidth=255;  

top=0;
left=15;
//aI("align=center;pointer=move;text=drag to move menu;type=dragable;url=#;");
aI("text=Hours of Operation &amp; Weather Policy;url=" + sNonSSLBaseSite + "pages/currentstudents/currentstudents_hours-and-weather.asp;");
aI("text=Cancellation Policy;url=" + sNonSSLBaseSite + "pages/currentstudents/currentstudents_cancellation-policy.asp;");
aI("text=School Calendar;url=" + sNonSSLBaseSite + "pages/currentstudents/currentstudents_school-calendar.asp;");
aI("text=Graduation 2009 Album;url=" + sNonSSLBaseSite + "pages/currentstudents/currentstudents_graduation-2009.asp;");
//aI("target=_blank;text=Blog;url=" + "http://seaifcentralamerica.wordpress.com;");
}


//******************** CONTACT ***********************************
with(milonic=new menuname("mmcontact")){
//alwaysvisible=1;
//followscroll=1;
overflow="scroll";
style=siteMenuStyle;
itemwidth=190;  

top=0;
left=15;
//aI("align=center;pointer=move;text=drag to move menu;type=dragable;url=#;");
aI("text=Contact Info;url=" + sNonSSLBaseSite + "pages/contact/contact_information.asp;");
aI("text=Staff Directory;url=" + sNonSSLBaseSite + "pages/currentstudents/currentstudents_staff-directory.asp;");
aI("text=Directions;url=" + sNonSSLBaseSite + "pages/contact/contact_directions.asp;");
aI("text=Request More Information;url=" + sNonSSLBaseSite + "pages/contact/contact_email-staff.asp;");
//aI("target=_blank;text=Blog;url=" + "http://seaifcentralamerica.wordpress.com;");
}





//drawMenus();  will do this in main body so we don't lose the page background (milonic bug)


