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

// 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 = 0;   // -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=3;            	// Sub menu left offset

// MAIN STYLE
with(mainMenuStyle=new mm_style()){
onbgcolor="#cfd5e2";			// hover background color  
offbgcolor="#cfd5e2";			// normal (non-hover) background color  
offcolor="#1a4277";				// normal (non-hover) text color  
oncolor="#e38125";				// hover text color  
offclass="mmpadding";			// custom style attached to menu
onclass="mmpadding";			// custom style attached to menu
bordercolor="#cfd5e2";			// border color #B59973
borderstyle="solid";
borderwidth=2;			//1
fontfamily="Arial";				// font / font family
fontsize="11px";				// font size
fontstyle="normal";				// font style   
fontweight="bold";			// font weight (bold,normal)   
//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="#cfd5e2"; 			// this is the (non-hover) background color of the menu item last clicked #D2B48C
pagecolor="#e38125";  			// this is the (non-hover) text color of the menu item last clicked 
subimage=sBaseSite + "graphics/common/flyoutarrow.gif";
subimagepadding="2";
subimageposition="right";
separatorimage=sBaseSite + "graphics/common/menuseparator.gif";
//separatorcolor="#ffffff";		// separator color #D2B48C
separatorsize="3";
}

//******************** PRACTICE AREAS ***********************************
with(milonic=new menuname("mm_practiceareas")){
//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=200;  
top=nflyout_top;
left=nflyout_left;

aI("text=Research;url=" + sNonSSLBaseSite + "pages/pa/research/research_main.php;");
aI("text=Media;url=" + sNonSSLBaseSite + "pages/pa/media/media_main.php;");

	with(milonic=new menuname("PA_RESEARCH")){
	style=mainMenuStyle;
	//itemwidth += nSubMenuAdditionalWidthWide;
	aI("text=Competitive Analysys;url=" + sNonSSLBaseSite + "pages/pa/research/competitiveanalysis.php;");
	aI("text=Target Portraits;url=" + sNonSSLBaseSite + "pages/pa/research/targetportraits.php;");
	aI("text=Brand Positioning;url=" + sNonSSLBaseSite + "pages/pa/research/brandpositioning.php;");
	aI("text=Content Frameworks;url=" + sNonSSLBaseSite + "pages/pa/research/contentframeworks.php;");
	aI("text=Creative Testing;url=" + sNonSSLBaseSite + "pages/pa/research/creativetesting.php;");
	}

	with(milonic=new menuname("PA_MEDIA")){
	style=mainMenuStyle;
	//itemwidth += nSubMenuAdditionalWidthWide;
	aI("text=Connection Planning;url=" + sNonSSLBaseSite + "pages/pa/media/connectionplanning.php;");
	aI("text=Media Buying;url=" + sNonSSLBaseSite + "pages/pa/media/mediabuying.php;");
	aI("text=Digital Media Services;url=" + sNonSSLBaseSite + "pages/pa/media/digitalmediaservices.php;");
	aI("text=Small Agency Media Solutions;url=" + sNonSSLBaseSite + "pages/pa/media/smallagencymediasolutions.php;");
	aI("text=Media Property Valuation;url=" + sNonSSLBaseSite + "pages/pa/media/mediapropertyvaluation.php;");
	}

//aI("align=center;pointer=move;text=drag to move menu;type=dragable;url=#;");
//aI("text=staff;url=" + sNonSSLBaseSite + "pages/about/about_staff_en.php;");
//aI("text=board;url=" + sNonSSLBaseSite + "pages/about/about_board_en.php;");
//aI("text=our founder;url=" + sNonSSLBaseSite + "pages/about/about_founder_en.php;");
//aI("text=mission &amp; history;url=" + sNonSSLBaseSite + "pages/about/about_mission_en.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=200;  
top=nflyout_top;
left=nflyout_left;

//aI("align=center;pointer=move;text=drag to move menu;type=dragable;url=#;");
aI("text=White Papers;url=" + sNonSSLBaseSite + "pages/res/resources_whitepapers.php;");
aI("text=The Little Luxuries Project;url=" + sNonSSLBaseSite + "pages/res/resources_wp_littleluxuries_landing.php;");
aI("target=_blank;text=Blog;url=http://www.luminositymarketing.com/blog/;");
aI("text=Newsletters;url=" + sNonSSLBaseSite + "pages/res/resources_newsletters.php;");
}
	
//******************** ABOUT ***********************************
with(milonic=new menuname("mm_about")){
//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=200;  
top=nflyout_top;
left=nflyout_left;

//aI("align=center;pointer=move;text=drag to move menu;type=dragable;url=#;");
aI("text=Company;url=" + sNonSSLBaseSite + "pages/about/company.php;");
aI("text=Press Room;url=" + sNonSSLBaseSite + "pages/about/pressroom.php;");
aI("text=Careers;url=" + sNonSSLBaseSite + "pages/about/careers.php;");
}
	with(milonic=new menuname("HOWHELP_SPONSORACHILD")){
	style=mainMenuStyle;
	//itemwidth += nSubMenuAdditionalWidthWide;
	aI("text=sponsored children;url=" + sNonSSLBaseSite + "pages/howhelp/howhelp_sponsored_children_en.php;");
	}
	
//******************** CONTACT ***********************************
with(milonic=new menuname("mm_contact")){
//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=200;  
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/contact/contact_main.php;");
}


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

