fixMozillaZIndex=false; //Fixes Z-Index problem  with Mozilla browsers but causes odd scrolling problem, toggle to see if it helps
var bTestSite=false;
var sHttpPrefix="http://";

// establish test vs live site
if (window.location.toString().toLowerCase().indexOf("minisage.com") > -1)
{
	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=200;				// 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 + "wbnew.minisage.com/";
	sNonSSLBaseSite = "http://" + "wbnew.minisage.com/";
}
else
{
	sNonSSLBaseSite = "http://" + "www.waterbabies.net/";
	
	// live site. If https mode, use safesecureweb address
	if (sHttpPrefix=="https://")
	{
		sBaseSite = sHttpPrefix + "www.waterbabies.net/";  
	}
	else
	{
		// non ssl mode, use normal address
		sBaseSite = sHttpPrefix + "www.waterbabies.net/";
	}
} 

// set home page identifier, necessary to set the 'left' offset for the flyout between
// the home page and all internal pages
var sHomePage = sBaseSite + "index.php";

// Set default locations for flyout menu
var nflyout_top = -1;   // -5
var nflyout_left = 0;  //0




//********************
// 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";

// milonic
_menuCloseDelay=250;           	// 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=5;            	// Sub menu left offset

// MAIN STYLE
with(mainMenuStyle=new mm_style()){
onbgcolor="#4255a4";			// hover background color  
offbgcolor="#d5e6f6";			// normal (non-hover) background color  
offcolor="#4255a4";				// normal (non-hover) text color  
oncolor="#FFFFFF";				// hover text color  
offclass="mmpadding";			// custom style attached to menu
onclass="mmpadding";			// custom style attached to menu
bordercolor="#4255a4";			// border color #B59973
borderstyle="solid";
borderwidth=1;			//1
fontfamily="Arial";				// font / font family
fontsize="11px";				// font size
fontstyle="normal";				// font style   
fontweight="bold";				// font weight (bold)   
//outfilter="Fade(duration=0.1)";
overfilter="Fade(duration=0.1);Alpha(opacity=95);";
//overfilter="Fade(duration=0.1);Alpha(opacity=90);Shadow(color='#777777', Direction=135, Strength=5)";
padding=3;						// menu item cell padding
pagebgcolor="#d5e6f6"; 			// this is the (non-hover) background color of the menu item last clicked #D2B48C
pagecolor="#4255a4";  			// this is the (non-hover) text color of the menu item last clicked 
separatorcolor="#4255a4";		// separator color #D2B48C
separatorsize="1";
subimage=sBaseSite + "graphics/common/topnav/arrow.gif";
subimagepadding="2";
subimageposition="right";
}

//******************** ABOUT US ***********************************
with(milonic=new menuname("mm_aboutwaterbabies")){
//alwaysvisible=1;
//followscroll=1;
//overflow="scroll";  // Do not use scrollbars on this flyout since it can be so close to bottom of page
style=mainMenuStyle;
itemwidth=153;  
top=nflyout_top;
left=nflyout_left;

//aI("align=center;pointer=move;text=drag to move menu;type=dragable;url=#;");
aI("text=Contact Us;url=" + sNonSSLBaseSite + "pages/contactus/contactus.php;");
aI("text=Our Philosophy;url=" + sNonSSLBaseSite + "pages/about/about.php;");
aI("text=Pool Locations;url=" + sNonSSLBaseSite + "pages/about/locations.php;");
aI("text=Our Staff;url=" + sNonSSLBaseSite + "pages/about/staff.php;");
aI("text=Charities;url=" + sNonSSLBaseSite + "pages/about/about_charities.php;");
aI("text=Employment;url=" + sNonSSLBaseSite + "pages/about/employment.php;");
//aI("showmenu=HOWHELP_SPONSORACHILD;text=sponsor a child;url=" + sNonSSLBaseSite + "pages/howhelp/howhelp_sponsor_child_en.php;");
}
	
	/*with(milonic=new menuname("HOWHELP_SPONSORACHILD")){
	style=mainMenuStyle;
	//itemwidth += nSubMenuAdditionalWidthWide;
	aI("text=sponsored children;url=" + sNonSSLBaseSite + "pages/howhelp/howhelp_sponsored_children_en.php;");
	}*/
//******************** SWIM CLASSES ***********************************
with(milonic=new menuname("mm_swimclasses")){
//alwaysvisible=1;
//followscroll=1;
//overflow="scroll";  // Do not use scrollbars on this flyout since it can be so close to bottom of page
style=mainMenuStyle;
itemwidth=152;  
top=nflyout_top;
left=nflyout_left;

//aI("align=center;pointer=move;text=drag to move menu;type=dragable;url=#;");
aI("text=Waterbabies<br>Parent / Tot;tooltip=for Children under 3 yrs with a Parent in the water;tipdelay=100;url=" + sNonSSLBaseSite + "pages/swimclasses/parenttot.php;");
aI("text=Waterkids Preschool;tooltip=for Children over 3 yrs. no parent in the water;tipdelay=100;url=" + sNonSSLBaseSite + "pages/swimclasses/preschool.php;");
aI("text=Youth;url=" + sNonSSLBaseSite + "pages/swimclasses/youth.php;");
//aI("text=Adult;url=" + sNonSSLBaseSite + "pages/swimclasses/adult.php;");
aI("text=Bathtub Babies;tooltip=for Babies under 5 months old;tipdelay=100;url=" + sNonSSLBaseSite + "pages/specclasses/bathtubbabies.php;");
aI("text=Private Lessons;url=" + sNonSSLBaseSite + "pages/specclasses/privatelessons.php;");
aI("text=Swim Camp;url=" + sNonSSLBaseSite + "pages/swimclasses/swimcamp.php;");
}
//******************** SPECIALTY CLASSES ***********************************
with(milonic=new menuname("mm_specclasses")){
//alwaysvisible=1;
//followscroll=1;
//overflow="scroll";  // Do not use scrollbars on this flyout since it can be so close to bottom of page
style=mainMenuStyle;
itemwidth=153;  
top=nflyout_top;
left=nflyout_left;

//aI("align=center;pointer=move;text=drag to move menu;type=dragable;url=#;");
//aI("text=Private Lessons;url=" + sNonSSLBaseSite + "pages/specclasses/privatelessons.php;");
}
//******************** REGISTRATION ***********************************
with(milonic=new menuname("mm_registration")){
//alwaysvisible=1;
//followscroll=1;
//overflow="scroll";  // Do not use scrollbars on this flyout since it can be so close to bottom of page
style=mainMenuStyle;
itemwidth=153;  
top=nflyout_top;
left=nflyout_left;

//aI("align=center;pointer=move;text=drag to move menu;type=dragable;url=#;");
aI("text=For New Families;url=" + sNonSSLBaseSite + "pages/swimclasses/swimclasses.php;");
aI("text=Register Now;url=" + sNonSSLBaseSite + "pages/registration/registernow.php;");
aI("text=Registration FAQ's;url=" + sNonSSLBaseSite + "pages/registration/registrationfaqs.php;");
aI("text=Class Schedules;url=" + sNonSSLBaseSite + "pages/swimclasses/schedules_select.php;");
aI("text=Calendar;url=" + sNonSSLBaseSite + "pages/swimclasses/schedules.php;");
aI("text=Pricing;url=" + sNonSSLBaseSite + "pages/swimclasses/pricing.php;");
}
//******************** RESOURCES ***********************************
with(milonic=new menuname("mm_resources")){
//alwaysvisible=1;
//followscroll=1;
//overflow="scroll";  // Do not use scrollbars on this flyout since it can be so close to bottom of page
style=mainMenuStyle;
itemwidth=152;  
top=nflyout_top;
left=nflyout_left;

//aI("align=center;pointer=move;text=drag to move menu;type=dragable;url=#;");
aI("text=Family Swim;url=" + sNonSSLBaseSite + "pages/resources/familyswim.php;");
aI("text=Articles;url=" + sNonSSLBaseSite + "pages/resources/usefulinformation_articles.php;");
aI("text=Recommended Activities;url=" + sNonSSLBaseSite + "pages/resources/usefulinformation_activities.php;");
aI("text=Fun Places to Swim;url=" + sNonSSLBaseSite + "pages/resources/usefulinformation_funplaces.php;");
aI("text=Health &amp; Support;url=" + sNonSSLBaseSite + "pages/resources/usefulinformation_health.php;");
aI("text=Social Links;url=" + sNonSSLBaseSite + "pages/resources/usefulinformation_social.php;");
aI("text=Skin Care;url=" + sNonSSLBaseSite + "pages/resources/usefulinformation_skincare.php;");
aI("text=Books &amp; Videos;url=" + sNonSSLBaseSite + "pages/resources/usefulinformation_booksvideo.php;");
}
//******************** CONTACT US ***********************************
with(milonic=new menuname("mm_contactus")){
//alwaysvisible=1;
//followscroll=1;
//overflow="scroll";  // Do not use scrollbars on this flyout since it can be so close to bottom of page
style=mainMenuStyle;
itemwidth=152;  
top=nflyout_top;
left=nflyout_left;

//aI("align=center;pointer=move;text=drag to move menu;type=dragable;url=#;");
aI("text=Orientation;tooltip=for Children Under 3yrs with Parent in water;tipdelay=100;url=" + sNonSSLBaseSite + "pages/resources/parentorientation_orientation.php;");
aI("text=About Us;url=" + sNonSSLBaseSite + "pages/resources/parentorientation_aboutus.php;");
aI("text=Parent-tot Classes;url=" + sNonSSLBaseSite + "pages/resources/parentorientation_parenttot.php;");
aI("text=Preschool Thru Youth Classes;url=" + sNonSSLBaseSite + "pages/resources/parentorientation_preschool.php;");
aI("text=Policies;url=" + sNonSSLBaseSite + "pages/resources/parentorientation_allclasses.php;");
aI("text=Locations;url=" + sNonSSLBaseSite + "pages/resources/parentorientation_locations.php;");
}
	

//drawMenus();  will do this in main body so we don't lose the page background (milonic bug)

