
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=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 + "cw2.minisage.com/";
	sNonSSLBaseSite = "http://" + "cw2.minisage.com/";
}
else
{
	sNonSSLBaseSite = "http://" + "www.careerwomaninc.com/";
	
	// live site. If https mode, use safesecureweb address
	if (sHttpPrefix=="https://")
	{
		sBaseSite = sHttpPrefix + "www.careerwomaninc.com/";
	}
	else
	{
		// non ssl mode, use normal address
		sBaseSite = sHttpPrefix + "www.careerwomaninc.com/";
	}
} 

//****************************************************
// 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=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=-4;            	// Sub menu left offset

// ABOUT US STYLE
with(aboutusMenuStyle=new mm_style()){
onbgcolor="#3E647E";			// hover background color  
offbgcolor="#00497A";			// normal (non-hover) background color  
offcolor="#FFFFFF";				// normal (non-hover) text color  
oncolor="#D2C378";				// hover text color  
offclass="mmpadding";			// custom style attached to menu
onclass="mmpadding";			// custom style attached to menu
bordercolor="#A89C91";			// border color 
borderstyle="solid";
borderwidth=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=90);Shadow(color='#777777', Direction=135, Strength=5)";
padding=2;						// menu item cell padding
pagebgcolor="#3E647E"; 			// this is the (non-hover) background color of the menu item last clicked 
pagecolor="#D2C378";  			// this is the (non-hover) text color of the menu item last clicked 
separatorcolor="#666666";		// separator color 
separatorsize="1";
subimage=sBaseSite + "menu/flyoutarrow.gif";
subimagepadding="2";
}
//******************** ABOUT US ***********************************
with(milonic=new menuname("mmaboutus")){
//alwaysvisible=1;
//followscroll=1;
overflow="scroll";
style=aboutusMenuStyle;
itemwidth=190;  

//top=80;
//left=0;
//aI("align=center;pointer=move;text=drag to move menu;type=dragable;url=#;");
aI("showmenu=whatwedo;text=What We Do;url=" + sNonSSLBaseSite + "whatwedo.php;");
aI("text=Company Overview;url=" + sNonSSLBaseSite + "overview.php;");
aI("text=People;url=" + sNonSSLBaseSite + "people.php;");
aI("text=Press Room;url=" + sNonSSLBaseSite + "press.php;");

}

	with(milonic=new menuname("whatwedo")){
	style=aboutusMenuStyle;
	//itemwidth += nSubMenuAdditionalWidthWide;
aI("text=Publications;url=" + sNonSSLBaseSite + "wwd_publications.php;");
aI("text=Coaching;url=" + sNonSSLBaseSite + "wwd_coaching.php;");
aI("text=Training;url=" + sNonSSLBaseSite + "wwd_training.php;");
aI("text=Career Planning;url=" + sNonSSLBaseSite + "wwd_careerplanning.php;");
aI("text=Workshops;url=" + sNonSSLBaseSite + "wwd_workshops.php;");
aI("text=Speaking Engagements;url=" + sNonSSLBaseSite + "wwd_speaking.php;");
aI("text=Consulting;url=" + sNonSSLBaseSite + "wwd_consulting.php;");
}
//******************** YOUR CAREER YOUR WAY ***********************************
with(milonic=new menuname("mmycyw")){
//alwaysvisible=1;
//followscroll=1;
overflow="scroll";
style=aboutusMenuStyle;
itemwidth=210;  

//top=80;
//left=0;
//aI("align=center;pointer=move;text=drag to move menu;type=dragable;url=#;");
aI("text=Your Career, Your Way!;url=" + sNonSSLBaseSite + "book.php;");
aI("text=Inside the Book;url=" + sNonSSLBaseSite + "book_inside.php;");
aI("text=5 Strategic Tips;url=" + sNonSSLBaseSite + "book_tips.php;");
aI("text=Testimonials;url=" + sNonSSLBaseSite + "testimonials.php;");
aI("text=Templates;url=" + sNonSSLBaseSite + "templates.php;");
}
//******************** WHAT WE DO ***********************************
with(milonic=new menuname("mmwhatwedo")){
//alwaysvisible=1;
//followscroll=1;
overflow="scroll";
style=aboutusMenuStyle;
itemwidth=210;  

//top=80;
//left=0;
//aI("align=center;pointer=move;text=drag to move menu;type=dragable;url=#;");
aI("text=Publications;url=" + sNonSSLBaseSite + "wwd_publications.php;");
aI("text=Coaching;url=" + sNonSSLBaseSite + "wwd_coaching.php;");
aI("text=Training;url=" + sNonSSLBaseSite + "wwd_training.php;");
aI("text=Career Planning;url=" + sNonSSLBaseSite + "wwd_careerplanning.php;");
aI("text=Workshops;url=" + sNonSSLBaseSite + "wwd_workshops.php;");
aI("text=Speaking Engagements;url=" + sNonSSLBaseSite + "wwd_speaking.php;");
aI("text=Consulting;url=" + sNonSSLBaseSite + "wwd_consulting.php;");
}
//******************** RESOURCES ***********************************
with(milonic=new menuname("mmresources")){
//alwaysvisible=1;
//followscroll=1;
overflow="scroll";
style=aboutusMenuStyle;
itemwidth=210;  

//top=80;
//left=0;
//aI("align=center;pointer=move;text=drag to move menu;type=dragable;url=#;");
aI("text=1:1 with Career Women;url=" + sNonSSLBaseSite + "featurestory.php;");
aI("text=Recommended Reading &amp; Links;url=" + sNonSSLBaseSite + "links.php;");
//aI("text=Ask Lisa;url=" + sNonSSLBaseSite + "qa.php;");
aI("showmenu=RESOURECS_ASKLISA;text=Ask Lisa;url=" + sNonSSLBaseSite + "qa.php;");

}

	with(milonic=new menuname("RESOURECS_ASKLISA")){
	style=aboutusMenuStyle;
	//itemwidth += nSubMenuAdditionalWidthWide;
	aI("text=Ask Lisa Archive;url=" + sNonSSLBaseSite + "qa_archive.php;");
	}

	

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

