/***********************************************************************************
*	(c) Ger Versluis 2000 version 5.411 24 December 2001 (updated Jan 31st, 2003 by Dynamic Drive for Opera7)
*	For info write to menus@burmees.nl		          *
*	You may remove all comments for faster loading	          *		
***********************************************************************************/
	
	var LowBgColor='';			// Background color when mouse is not over
	var LowSubBgColor='FBF9F6';			// Background color when mouse is not over on subs
	var HighBgColor='';			// Background color when mouse is over
	var HighSubBgColor='E1DAD3';			// Background color when mouse is over on subs
	var FontLowColor='';			// Font color when mouse is not over
	var FontSubLowColor='';			// Font color subs when mouse is not over
	var FontHighColor='';			// Font color when mouse is over
	var FontSubHighColor='';			// Font color subs when mouse is over
	var BorderColor='';			// Border color
	var BorderSubColor='c0c0c0';			// Border color for subs
	var BorderWidth=1;				// Border width
	var BorderBtwnElmnts=0;			// Border between elements 1 or 0
	var FontFamily="arial,comic sans ms,technical"	// Font family menu items
	var FontSize=9;				// Font size menu items
	var FontBold=1;				// Bold menu items 1 or 0
	var FontItalic=0;				// Italic menu items 1 or 0
	var MenuTextCentered='left';			// Item text position 'left', 'center' or 'right'
	var MenuCentered='center';			// Menu horizontal position 'left', 'center' or 'right'
	var MenuVerticalCentered='top';		// Menu vertical position 'top', 'middle','bottom' or static
	var ChildOverlap=.5;				// horizontal overlap child/ parent
	var ChildVerticalOverlap=.5;			// vertical overlap child/ parent
	var StartTop=174;				// Menu offset x coordinate
	var StartLeft=0;				// Menu offset y coordinate
	var VerCorrect=0;				// Multiple frames y correction
	var HorCorrect=0;				// Multiple frames x correction
	var LeftPaddng=5;				// Left padding
	var TopPaddng=3;				// Top padding
	var FirstLineHorizontal=1;			// SET TO 1 FOR HORIZONTAL MENU, 0 FOR VERTICAL
	var MenuFramesVertical=1;			// Frames in cols or rows 1 or 0
	var DissapearDelay=200;			// delay before menu folds in
	var TakeOverBgColor=1;			// Menu frame takes over background color subitem frame
	var FirstLineFrame='navig';			// Frame where first level appears
	var SecLineFrame='space';			// Frame where sub levels appear
	var DocTargetFrame='space';			// Frame where target documents appear
	var TargetLoc='';				// span id for relative positioning
	var HideTop=0;				// Hide first level when loading new document 1 or 0
	var MenuWrap=0;				// enables/ disables menu wrap 1 or 0
	var RightToLeft=0;				// enables/ disables right to left unfold 1 or 0
	var UnfoldsOnClick=0;			// Level 1 unfolds onclick/ onmouseover
	var WebMasterCheck=0;			// menu tree checking on or off 1 or 0
	var ShowArrow=0;				// Uses arrow gifs when 1
	var KeepHilite=1;				// Keep selected path highligthed
	var Arrws=['tri.gif',5,10,'tridown.gif',10,5,'trileft.gif',5,10];	// Arrow source, width and height

//  Secure vs Non-Secure Domaine Switching 
	var myLocation        =  document.location;
	var parseURIRe        =  new RegExp('^(https?)://([a-z0-9][-.a-z0-9]*\\.[a-z]{2,20})(/[^/]*)','i');
	var URIArray          =  parseURIRe.exec(myLocation);
	var protocal          =  URIArray[1];
	var hostname          =  URIArray[2];
	var parseStagingURIRe =  new RegExp('^staging\\.','i');
	var isStaging         =  parseStagingURIRe.test(hostname);
	
	var topDir            =  URIArray[3];
	var secureHost        = 'store.freerun.com';
	if (isStaging) {
		secureHost = 'staging.' + secureHost;
	}
	var baseURI           = 'http://' + hostname + '/';
	var secureBaseURI     = 'https://' + secureHost + '/' + hostname + '/';
	var floatingBaseURI   = '/';
	
	if ('https' == protocal.toLowerCase()) {
		baseURI         = 'http:/' + topDir + '/';
		secureBaseURI   = 'https://' + hostname + topDir + '/';
		floatingBaseURI = topDir + '/';
	}
	
	
	
	/* document.write('Base URI: ' + baseURI + "<br>");
	document.write('Secure Base URI: ' + secureBaseURI + "<br>");
	document.write('Floating Base URI: ' + floatingBaseURI + "<br>"); */


function BeforeStart(){return}
function AfterBuild(){return}
function BeforeFirstOpen(){return}
function AfterCloseAll(){return}
function Go(){return}

var NoOffFirstLineMenus=13;  // Number of first level items
// Menu tree
//	MenuX = [ text , link , bg image (optional) , number of child items , height , width ];
//	For rollover images set text to:  "rollover:Image1.jpg:Image2.jpg"

Menu1 = ["rollover:" + floatingBaseURI + "images/pagesnav/page_home.gif:" + floatingBaseURI + "images/pagesnav/page_home_over.gif",baseURI + "","",0,22,69];
	
Menu2 = ["rollover:" + floatingBaseURI + "images/pagesnav/page_top_spacer.gif:" + floatingBaseURI + "images/pagesnav/page_top_spacer.gif", "","",0,22,3];

Menu3 = ["rollover:" + floatingBaseURI + "images/pagesnav/page_ourwinery.gif:" + floatingBaseURI + "images/pagesnav/page_ourwinery_over.gif",baseURI + "our_winery/index.html","",5,22,95];
	Menu3_1 = ["History", baseURI + "our_winery/history.html", "", 0, 20, 130];
	Menu3_2 = ["Paris Tasting", baseURI + "our_winery/paris.html", "", 0, 20, 154];
	Menu3_3 = ["Historical Timeline", baseURI + "our_winery/timeline.html", "", 0, 20, 154];
	Menu3_4 = ["Vineyards", baseURI + "our_winery/vineyards.html", "", 0, 20, 140];
	Menu3_5 = ["Weather", baseURI + "our_winery/weather.html", "", 0, 20, 140];
	Menu3_6 = ["Winemaking", "our_winery/winemaking.html", "", 0, 20, 140];
	//Menu3_6 = ["Our Winery", "our_winery/index.html", "", 0, 20, 140];
	
Menu4 = ["rollover:" + floatingBaseURI + "images/pagesnav/page_top_spacer.gif:" + floatingBaseURI + "images/pagesnav/page_top_spacer.gif", "","",0,22,3];

Menu5 = ["rollover:" + floatingBaseURI + "images/pagesnav/page_ourwines.gif:" + floatingBaseURI + "images/pagesnav/page_ourwines_over.gif",baseURI + "our_wines/index.html","",5,22,88];
	Menu5_1 = ["Futures", baseURI + "our_wines/futures.html", "", 0, 20, 130];
	Menu5_2 = ["Current Releases", baseURI + "our_wines/current.html", "", 0, 20, 100];
	Menu5_3 = ["Mature Wines", baseURI + "our_wines/mature.html", "", 0, 20, 180];
	Menu5_4 = ["Purchase Wine", baseURI + "purchasing.html", "", 0, 20, 100];
	Menu5_5 = ["Accolades", baseURI + "trade/sales/accolades.html", "", 0, 20, 100];
	//Menu5_6 = ["Our Wines", baseURI + "our_wines/index.html", "", 0, 20, 180];
	
Menu6 = ["rollover:" + floatingBaseURI + "images/pagesnav/page_top_spacer.gif:" + floatingBaseURI + "images/pagesnav/page_top_spacer.gif", "","",0,22,3];
	
Menu7 = ["rollover:" + floatingBaseURI + "images/pagesnav/page_maillist.gif:" + floatingBaseURI + "images/pagesnav/page_maillist_over.gif", baseURI + "meet_us/newsletter_signup.html","",2,22,79];
	Menu7_1 = ["Montelena News", baseURI + "meet_us/newsletter.html", "", 0, 20, 150];
	Menu7_2 = ["Sign Up Form", baseURI + "meet_us/newsletter_signup.html", "", 0, 20, 150];
	
Menu8 = ["rollover:" + floatingBaseURI + "images/pagesnav/page_top_spacer.gif:" + floatingBaseURI + "images/pagesnav/page_top_spacer.gif", "","",0,22,3];
	
Menu9 = ["rollover:" + floatingBaseURI + "images/pagesnav/page_visitingus.gif:" + floatingBaseURI + "images/pagesnav/page_visitingus_over.gif",baseURI + "meet_us/visit.html","",2,22,97];
	Menu9_1 = ["Events Calendar", baseURI + "meet_us/reserve.html", "", 0, 20, 125];
	Menu9_2 = ["Tasting Room", baseURI + "/meet_us/visit.html#footer", "", 0, 20, 150];
	//Menu9_3 = ["Visiting Us", baseURI + "meet_us/visit.html", "", 0, 20, 140];
	
Menu10 = ["rollover:" + floatingBaseURI + "images/pagesnav/page_top_spacer.gif:" + floatingBaseURI + "images/pagesnav/page_top_spacer.gif", "","",0,22,3];

Menu11 = ["rollover:" + floatingBaseURI + "images/homenav/home_wineclubs.gif:" + floatingBaseURI + "images/homenav/home_wineclubs_over.gif",baseURI + "our_wines/wineclubs.html","",5,27,111];
	Menu11_1 = ["Friends of Montelena", "http://shop.montelena.com/index.cfm?fuseaction=category_detail&category_id_int=13658", "", 0, 20, 140];
	Menu11_2 = ["Futures", "http://shop.montelena.com/index.cfm?fuseaction=category_detail&category_id_int=13659", "", 0, 20, 120];
	Menu11_3 = ["Choice", "http://shop.montelena.com/index.cfm?fuseaction=category_detail&category_id_int=13657", "", 0, 20, 110];
	Menu11_4 = ["Select", "http://shop.montelena.com/index.cfm?fuseaction=category_detail&category_id_int=13660", "", 0, 20, 110];
	Menu11_5 = ["UltraMont", baseURI + "our_wines/wineclubs_ultramont.html", "", 0, 20, 110];
	//Menu11_6 = ["Wine Clubs", baseURI + "our_wines/wineclubs.html", "", 0, 20, 110];
	
//OLD MENU	

//Menu11 = ["rollover:" + floatingBaseURI + "images/homenav/home_wineclubs.gif:" + floatingBaseURI + "images/homenav/home_wineclubs_over.gif",baseURI + "our_wines/wineclubs.html","",5,27,111];
	//Menu11_1 = ["Friends of Montelena", baseURI + "our_wines/wineclubs_details.html#iihbpcjeiihdceeeopfikpghchicahcbijdkhacp", "", 0, 20, 140];
	//Menu11_2 = ["Futures", baseURI + "our_wines/wineclubs_details.html#jkbibokmmihbbmmcioabjpigidebolmokpndidkb", "", 0, 20, 120];
	//Menu11_3 = ["Choice", baseURI + "our_wines/wineclubs_details.html#adbkikdghfdkanchfalephmcgbclicfiabihecge", "", 0, 20, 110];
	//Menu11_4 = ["Select", baseURI + "our_wines/wineclubs_details.html#ndgkofibgfijepngklapdolabllpjemolhgmnage", "", 0, 20, 110];
	//Menu11_5 = ["UltraMont", baseURI + "our_wines/wineclubs_ultramont.html", "", 0, 20, 110];
	//Menu11_6 = ["Wine Clubs", baseURI + "our_wines/wineclubs.html", "", 0, 20, 110];
	
Menu12 = ["rollover:" + floatingBaseURI + "images/pagesnav/page_top_spacer.gif:" + floatingBaseURI + "images/pagesnav/page_top_spacer.gif", "","",0,22,3];

Menu13 = ["rollover:" + floatingBaseURI + "images/pagesnav/page_orderonline.gif:" + floatingBaseURI + "images/pagesnav/page_orderonline_over.gif", "http://shop.montelena.com/","",11,22,96];
	Menu13_1 = ["Current Releases", "http://shop.montelena.com/index.cfm?fuseaction=category_detail&category_id_int=13671", "", 0, 20, 150];
	Menu13_2 = ["CellarMaster Exclusives", "http://shop.montelena.com/index.cfm?fuseaction=category_detail&category_id_int=13672", "", 0, 20, 150];
	Menu13_3 = ["Flagship Wines", "http://shop.montelena.com/index.cfm?fuseaction=category_detail&category_id_int=13673", "", 0, 20, 150];
	Menu13_4 = ["Montelena Estate Wines", "http://shop.montelena.com/index.cfm?fuseaction=category_detail&category_id_int=13674", "", 0, 20, 150];
	Menu13_5 = ["Napa Valley Wines", "http://shop.montelena.com/index.cfm?fuseaction=category_detail&category_id_int=13675", "", 0, 20, 150];
	Menu13_6 = ["Large Formats", "http://shop.montelena.com/index.cfm?fuseaction=category_detail&category_id_int=13676", "", 0, 20, 150];
	Menu13_7 = ["Wine Gift Sets", "http://shop.montelena.com/index.cfm?fuseaction=category_detail&category_id_int=13677", "", 0, 20, 150];
	Menu13_8 = ["All Wines by Variety", "http://shop.montelena.com/index.cfm?fuseaction=category_detail&category_id_int=13646", "", 0, 20, 150];
	Menu13_9 = ["Customer Service", "http://shop.montelena.com/index.cfm?fuseaction=category_detail&category_id_int=14000", "", 0, 20, 150];
	Menu13_10 = ["Shipping Rules", "http://shop.montelena.com/index.cfm?fuseaction=category_detail&category_id_int=13999", "", 0, 20, 150];
	Menu13_11 = ["FAQ's", "http://shop.montelena.com/index.cfm?fuseaction=category_detail&category_id_int=13998", "", 0, 20, 150];
	

