
//////////////////////////////////////////////////////////////////
//					configJooma()			           			//
//																//
// Edit the button statements to configure your menu buttons	//
//   and bars   												//
//																//
// Optionally, you can edit the button styles by				//
//   editing the styleDefault statements below,					//
//   or creating and editing additional button styles.			//
//																//
//////////////////////////////////////////////////////////////////

//////////////////////////////////////////////////////////////////
function configSimple(){

//  styleDefault should always be defined because it is used in
//      menu.addButton() if the styleRef parameter is omitted
//	Instantiate (create) a button style object
	styleDefault = new NavButtonStyleFactory();
	styleDefault = styleDefault.getRef();
	styleDefault.styleWrite();
	styleM = new NavButtonStyleFactory("styleMain");
	styleM = styleM.getRef();
	styleM.textAlignCold = "center";
	styleM.textAlignHot   = "center";
	styleM.styleWrite();

//	Instantiate (create) a menu object
//	menu1 = new NavMenu([locX], [locY], styleRef);
	menu1 = new NavMenu(10, 60);

//	Add buttons to the menu
//	menu.addButton(barNum, title, target, parentBarNum, parentBtnNum, horzOrVert, styleRef, persist)
	btn = menu1.addButton(0, "Home", "index.tmpl", null, null, styleM, "H"); // sets style and orientation for bar
	btn = menu1.addButton(0, "About", "McPAbout.html");
	btn = menu1.addButton(0, "Winery", "McPWinery.html");
	btn = menu1.addButton(0, "Wines", "McPWines.html");
	btn = menu1.addButton(0, "Order Wine", "McPOrder.html");
	btn = menu1.addButton(0, "News & Events", "McPNews.html");	
	btn = menu1.addButton(0, "Distribution", "McPDistribution.html");
	btn = menu1.addButton(0, "Contact", "McPContact.html");
	
	btn = menu1.addButton(1, "About McCrea", "McPAbout.html", 0, 1);  // default style and orientation for bar
	btn = menu1.addButton(1, "Winemaker", "McPWinemaker.html", 0, 1);
	btn = menu1.addButton(1, "Washington Wine Country", "McPWaWineCountry.html", 0, 1);


	btn = menu1.addButton(2, "About the Winery", "McPWinery.html", 0, 2);  // default style and orientation for bar
	btn = menu1.addButton(2, "Varietals", "McPVarietals.html", 0, 2);
	btn = menu1.addButton(2, "Vineyards", "McPVineyards.html", 0, 2);

	btn = menu1.addButton(3, "Current Releases", "McPWines.html", 0, 3);
	btn = menu1.addButton(3, "Past Releases", "McPWines.html?PageStatusX=Past", 0, 3);

	btn = menu1.addButton(4, "News/Blog", "http://blog.mccreacellars.com/index.php", 0, 5);
	btn = menu1.addButton(4, "Acclaim/Media", "McPAcclaim.html", 0, 5);
    btn = menu1.addButton(4, "Events", "McPEvents.html", 0, 5);

	btn = menu1.addButton(5, "Restaurants", "McPRestaurants.html", 0, 6);
	btn = menu1.addButton(5, "Shops & Markets", "McPWineShops.html", 0, 6);
    btn = menu1.addButton(5, "Out of State", "McPOutOfState.html", 0, 6);

	btn = menu1.addButton(6, "Mailing List", "McPMailingList.html", 0, 7);
    btn = menu1.addButton(6, "WineClub", "McPWineClub.html", 0, 7);
    btn = menu1.addButton(6, "Contact Us", "McPContact.html", 0, 7);

}


//////////////////////////////////////////////////////////////////
//				NavButtonStyle() Class		           			//
//																//
// You can change the default button style by editing the		//
//    statements below, but we generally recommend changing		//
//    the button style above in configJooma();					//																//
//																//
//////////////////////////////////////////////////////////////////
function NavButtonStyle(styleID){

	this.name           = styleID? styleID: "stylePop";

	this.persist		= false;
	this.horzOrVert     = "V";
	this.locX           = 0;
	this.locY           = 0;
	this.offsetX        = 0;		// -1 to cause mouseover() before mouseout()
	this.offsetY        = 0;		// -1 to cause mouseover() before mouseout()

	this.btnHeight      = "10px";
	this.btnWidth       = "150px";

	this.visibility     = "visible";

	this.fgColorCold    = "#000080";
	this.fgColorHot     = "#000000";
	this.fgImgHot       = "";					// image/pentArrowHot.gif
	this.fgImgCold      = "";					// image/pentArrowCold.gif
	this.bgColorCold    = "#cccccc";
	this.bgColorHot     = "#eeeeee";
//	this.bgColorColdNN4 = this.bgColorCold;		// allows different background colors for NN4
//	this.bgColorHotNN4  = this.bgColorHot;		// allows different background colors for NN4
	this.bgImgHot       = "";
	this.bgImgCold      = "";

	this.fontFamilyCold = "sans-serif";
	this.fontFamilyHot  = "serif";
	this.fontSizeCold   = "10pt";
	this.fontSizeHot    = "10pt";
	this.fontWeightCold = "normal";			// normal,bold
	this.fontWeightHot  = "bold";			// normal,bold
	this.fontStyleCold  = "normal";			// normal,italic
	this.fontStyleHot   = "italic";			// normal,italic

	this.textAlignCold      = "left";
	this.textAlignHot       = "left";
	this.textDecorationCold = "none";		// none,underline,blink,line-through,overline
	this.textDecorationHot  = "none";	// none,underline,blink,line-through,overline

	this.borderWidthHot  = "1px";
	this.borderWidthCold = "1px";
	this.borderStyleHot  = "solid";	// solid, outset, none, ridge
	this.borderStyleCold = "solid";
	this.borderColorHot  = "#aaaaaa";
	this.borderColorCold = "#aaaaaa";

	if(document.getElementById && document.all && !window.opera){
		this.cursorHot = "hand";			// IE5+ browsers
	}else{
		this.cursorHot   = "pointer";		// WC3 browsers except IE5+
	}
	this.cursorCold  = "default";
	
//	alert(this);
}

