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

// Site Menu Style
with(siteMenuStyle=new mm_style()){
offcolor="#C4C4C4";				// normal (non-hover) text color  // ABABAB
offbgcolor="#6D6D6D";			// normal (non-hover) background color  
onbgcolor="#2B2B2B";			// hover background color  
oncolor="#C4C4C4";				// 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="#6D6D6D"; 			// this is the (non-hover) background color of the menu item last clicked 
pagecolor="#C4C4C4";  			// this is the (non-hover) text color of the menu item last clicked 
separatorcolor="#6D6D6D";		// separator color 
separatorsize="1";
subimage=sBaseSite + "menu/flyoutarrow.gif";
subimagepadding="2";
subimageposition="right";
}
//******************** PROJECTS ***********************************
with(milonic=new menuname("mmprojects")){
//alwaysvisible=1;
//followscroll=1;
overflow="scroll";
style=siteMenuStyle;
itemwidth=120;  

top=-3;
left=35;
aI("text=HOSPITALITY;url=" + sNonSSLBaseSite + "pages/projects/hospitality/hospitality_main.html;");
aI("text=COMMUNITY;url=" + sNonSSLBaseSite + "pages/projects/community/community_main.html;");
//aI("text=INTERIORS;url=" + sNonSSLBaseSite + "pages/projects/interiors/interiors_main.html;");
}

//*********************** NEWS *************************************
with(milonic=new menuname("mmnews")){
//alwaysvisible=1;
//followscroll=1;
overflow="scroll";
style=siteMenuStyle;
itemwidth=120;  

top=-3;
left=35;
aI("text=ARTICLES;url=" + sNonSSLBaseSite + "pages/news/news_articles.html;");
aI("text=RECOGNITION;url=" + sNonSSLBaseSite + "pages/news/news_recognition.html;");
}


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

