var bTestSite=false;
var sHttpPrefix="http://";

// establish test vs live site
if (window.location.toString().toLowerCase().indexOf("rods'rub") > -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=100;				// 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 + "";
	sNonSSLBaseSite ="http://" + "";
}
else
{
	sNonSSLBaseSite = ""/"http://" + "";
	
	// live site. If https mode, use safesecureweb address
	if (sHttpPrefix=="https://")
	{
		sBaseSite = sHttpPrefix + "";
	}
	else
	{
		// non ssl mode, use normal address
		sBaseSite = sHttpPrefix + "";
	}
} */

//****************************************************
// 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";

// 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="#9d8d3d";			// hover background color  
offbgcolor="#FFFFFF";			// normal (non-hover) background color  
offcolor="#3F3C36";				// 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="#A89C91";			// border color 
borderstyle="solid";
borderwidth=1;
fontfamily="Tahoma";				// 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=3;						// menu item cell padding
pagebgcolor="#ffffff"; 			// this is the (non-hover) background color of the menu item last clicked 
pagecolor="#000000";  			// this is the (non-hover) text color of the menu item last clicked 
separatorcolor="#FFFFFF";		// separator color 
separatorsize="1";
subimage=sBaseSite + "sub_arrow.gif";
subimagepadding="2";
}
// POVERTY STYLE
with(povertyMenuStyle=new mm_style()){
onbgcolor="#9d8d3d";			// hover background color  
offbgcolor="#FFFFFF";			// normal (non-hover) background color  
offcolor="#3F3C36";				// 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="#A89C91";			// border color 
borderstyle="solid";
borderwidth=1;
fontfamily="Tahoma";				// 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=3;						// menu item cell padding
pagebgcolor="#ffffff"; 			// this is the (non-hover) background color of the menu item last clicked 
pagecolor="#000000";  			// this is the (non-hover) text color of the menu item last clicked 
separatorcolor="#FFFFFF";		// separator color 
separatorsize="1";
subimage=sBaseSite + "sub_arrow.gif";
subimagepadding="2";
}
// PARTNERS STYLE
with(partnersMenuStyle=new mm_style()){
onbgcolor="#9d8d3d";			// hover background color  
offbgcolor="#FFFFFF";			// normal (non-hover) background color  
offcolor="#3F3C36";				// 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="#A89C91";			// border color 
borderstyle="solid";
borderwidth=1;
fontfamily="Tahoma";				// 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=3;						// menu item cell padding
pagebgcolor="#ffffff"; 			// this is the (non-hover) background color of the menu item last clicked 
pagecolor="#000000";  			// this is the (non-hover) text color of the menu item last clicked 
separatorcolor="#FFFFFF";		// separator color 
separatorsize="1";
subimage=sBaseSite + "sub_arrow.gif";
subimagepadding="2";
}

//******************** ABOUT UNITUS ***********************************
with(milonic=new menuname("mmaboutunitus")){
//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("text=Steak Out!;url=" + sNonSSLBaseSite + "steak_out.htm;");
aI("text=In the Black;url=" + sNonSSLBaseSite + "inthe_black.htm;");
aI("text=Citrus Tang;url=" + sNonSSLBaseSite + "citrus_tang.htm;");
aI("text=Sweet Mesquite;url=" + sNonSSLBaseSite + "sweet_mesquite.htm;");
aI("text=Original All Purpose;url=" + sNonSSLBaseSite + "original_allpurpose.htm;");
//aI("text=Grilling Items;url=" + sNonSSLBaseSite + "grilling_items.htm;");
}

	
	
//******************** POVERTY & MICROFINANCE ***********************************
with(milonic=new menuname("mmpovertymf")){
//alwaysvisible=1;
//followscroll=1;
overflow="scroll";
style=povertyMenuStyle;
itemwidth=230;  

//top=80;
//left=0;
//aI("align=center;pointer=move;text=drag to move menu;type=dragable;url=#;");
aI("text=The Best Pulled Pork Ever!;url=" + sNonSSLBaseSite + "the-best-pulled-pork-ever.htm;");
aI("text=Rod's Perfect Steak;url=" + sNonSSLBaseSite + "rod-perfect-steak.htm;");
aI("text=Rod's Delicious Yard Bird;url=" + sNonSSLBaseSite + "rod-delicious-yard-bird.htm;");
aI("text=Rod's Southern Fried Chicken;url=" + sNonSSLBaseSite + "rod-southern-friend-chicken.htm;");
aI("text=Pan Fried Fish;url=" + sNonSSLBaseSite + "pan-fried-fish.htm;");
aI("text=In the Black Shrimp ;url=" + sNonSSLBaseSite + "black-shrimp.htm;");
}

	
//******************** OUR PARTNERS ***********************************
with(milonic=new menuname("mmourpartners")){
//alwaysvisible=1;
//followscroll=1;
overflow="scroll";
style=partnersMenuStyle;
itemwidth=245;  
//top=80;
//left=0;
//aI("align=center;pointer=move;text=drag to move menu;type=dragable;url=#;");
aI("text=MenInAprons.net Review;url=" + sNonSSLBaseSite + "review-resources.htm;");
aI("text=Well Fed Network's Review;url=" + sNonSSLBaseSite + "rod-sweet-mesquite.htm;");
aI("text=Grits and More Review;url=" + sNonSSLBaseSite + "rod's-roasted-garlic-grits.htm;");
aI("text=Boss-Man Bar-B-Que's Review;url=" + sNonSSLBaseSite + "rod-rub-original.htm;");
aI("text=Rod's Rub Resources;url=" + sNonSSLBaseSite + "rod-rub-resources.htm;");

}

	
	

