ns = (document.layers)? true:false
ie = (document.all)? true:false
ns6 = (navigator.appName == "Netscape" && document.getElementById)? true:false
winIE5 = false;
var browserString = navigator.appVersion;
if (navigator.userAgent.indexOf("Win") > -1 && navigator.appName == "Microsoft Internet Explorer"){
	if (parseInt(browserString.charAt(22)) < 6){
		winIE5 = true;
	}
}
macIE = false;
macNS = false;
var browserString = navigator.appVersion;
if (navigator.userAgent.indexOf("Mac") > -1 && navigator.appName == "Microsoft Internet Explorer"){
	macIE = true;
}else if(navigator.userAgent.indexOf("Mac") > -1 && navigator.appName != "Microsoft Internet Explorer"){
	macNS = true;
}
loaded = false;
//alert(macNS);

thelogo = new Image; thelogo.src = "../images/insideLogoA.png"; //"../images/LogoA.png";
thelogoO = new Image; thelogoO.src = "../images/insideLogoB.png"; //"../images/LogoB.png";


function openWin(page,name,width,height,scroll,resize){
window.open(page,name,"toolbar=0,location=0,status=0,menubar=0,scrollbars=" + scroll + ",resizable=" + resize + ",top=0,left=0,width=" + width + ",height=" + height)
}
function hide(id){
	if (ns) document.layers[id].visibility = "hide"
	if (ns6){
		var obj = eval("document.getElementById('" + id + "')")
		obj.style.visibility = "hidden";
	}
	else if (ie) document.all[id].style.visibility = "hidden"
}
function show(id){
	if (ns) document.layers[id].visibility = "show"
	if (ns6){
		var obj = eval("document.getElementById('" + id + "')")
		obj.style.visibility = "visible"
	}
	else if (ie) document.all[id].style.visibility = "visible"
}
function writeOtherMainLinks(theSub,exclude){
	outSUB = "";
	theClass = "pageSub3";
	theMouse = "onmouseover=\"doPageNav2(this,1)\" onmouseout=\"doPageNav2(this,0)\"";
	theSub = eval(theSub);
	for(i = 0; i < theSub.length; i ++){
		if(i != exclude){
			if(ns){
				outSUB += "<tr><td class=\"" + theClass + "\"><a href=\"" + theSub[i].goLink + "\" target=\"_top\"><font class=\"" + theClass + "\">" + theSub[i].displayText + "</font></a></td></tr>";
			}else{
				//Deal with WIN IE 5************									
				if(winIE5){					
					theLink = "<a href=\"" + theSub[i].goLink + "\" target=\"_top\">" + theSub[i].displayText + "</a>";
				}else{
					theLink = theSub[i].displayText;					
				}
				//******************************
				outSUB += "<tr><td class=\"" + theClass + "\" " + theMouse + " onClick=\"parent.location='" + theSub[i].goLink + "';\"><img src=\"../images/spacer.gif\" width=1 height=5><br>" + theLink + "<br><img src=\"../images/spacer.gif\" width=1 height=5></td></tr>";
			}
			outSUB += "<tr><td><img src=\"../images/inside/line.gif\" height=1 width=166></td></tr>";
		}
	}
	document.write(outSUB);
}
function writeFlavors(){
	flavorHTML = "";
	for(j = 0; j < flavors.length; j ++){
		if(flavors[j].id == flavorHighlight){
			theClass = "pageSubOn";
			theMouse = "";
		}else{
			theClass = "pageSub";
			theMouse = "onmouseover=\"doPageNav(this,1)\" onmouseout=\"doPageNav(this,0)\"";
			//Look at doPageNav() Line 412;
		}
		//**********************************************************
		//Deal with displaying the link and rollover
		if(ns){
			flavorHTML += "<tr><td class=\"" + theClass + "\"><a href=\"../flavors/default.asp?flavor=" + flavors[j].id + "\" target=\"_top\"><font class=\"" + theClass + "\">" + flavors[j].displayText + "</font></a></td></tr>";
		}else{
			//Deal with WIN IE 5************
			if(winIE5){
				theLink = "<a href=\"../flavors/default.asp?flavor=" + flavors[j].id + "\" target=\"_top\">" + flavors[j].displayText + "</a>";
			}else{
				theLink = flavors[j].displayText;
			}
			//******************************
			flavorHTML += "<tr><td class=\"" + theClass + "\" " + theMouse + " onClick=\"parent.location='../flavors/default.asp?flavor=" + flavors[j].id + "';\">" + theLink + "</td></tr>";
		}
		//**********************************************************
		flavorHTML += "<tr><td><img src=\"../images/inside/line.gif\" height=1 width=166></td></tr>";
	}
	document.write(flavorHTML);
}
function writeMenus(){
	menuHTML = "";
	//theClass = "pageSub2";
	menuCats = 4;
	theMouse = "onmouseover=\"doPageNav(this,1);\" onmouseout=\"doPageNav(this,0)\""
	//for(i = 1; i <= 3; i ++){
	for(i = 1; i <= menuCats; i ++){
		currArray = eval("menu" + i);
		for(j = 0; j < currArray.length; j ++){
			if(j == 0){
				theClass = "pageSub";
				theURL = "../menus/default.asp?init=" + i
			}else{
				theURL = "../menus/default.asp?id=" + currArray[j].id
				if(currArray[j].id == menuHighlight){
					theClass = "pageSubOn2";
				}else{
					theClass = "pageSub2";
				}
				//theClass = "pageSub2";
			}
			if(ns){
				menuHTML += "<tr><td class=\"" + theClass + "\"><a href=\"" + theURL + "\" target=\"_top\"><font class=\"" + theClass + "\">" + currArray[j].displayText + "</font></a></td></tr>";
			}else{
				//Deal with WIN IE 5************
				if(winIE5){
					theLink = "<a href=\"" + theURL + "\" target=\"_top\">" + currArray[j].displayText + "</a>";
				}else{
					theLink = currArray[j].displayText;
				}
				//******************************
				if(j == 0 && i != 1){
					menuHTML += "<tr><td>&nbsp;</td></tr>";
				}
				menuHTML += "<tr><td class=\"" + theClass + "\" " + theMouse + " onClick=\"parent.location='" + theURL + "';\">" + theLink + "</td></tr>";
			}
			menuHTML += "<tr><td><img src=\"../images/inside/line.gif\" height=1 width=166></td></tr>";
		}
	}
	document.write(menuHTML);
}
function findPosX(obj){
	var curleft = 0;
	if (document.getElementById || document.all){
		while (obj.offsetParent){
			curleft += obj.offsetLeft
			obj = obj.offsetParent;
		}
		//alert(curleft);
		return curleft;
	}
}
function findPosY(obj){
	var curtop = 0;
	if (document.getElementById || document.all){
		while (obj.offsetParent){
			curtop += obj.offsetTop
			obj = obj.offsetParent;
		}
		return curtop;
	}else{
		curtop += obj.y;
		return curtop;
	}
}
outHTML = "";
function setRow(displayText, goLink, otherOverStuff, align){
	if(align){
		align = "align=right";
	}else{
		align = "";
	}
	if(isNaN(otherOverStuff)){
		if(ns){
			other = "onmouseover=\"" + otherOverStuff + "\"";
		}else{
			other = otherOverStuff;
		}
	}else{
		other = "";
	}
	if(ns){
		outHTML += "<tr><td class=\"navSubNS4\" nowrap " + align + ">&nbsp;<a href=\"" + goLink + "\" " + other + " target=\"_top\"><font color='#000000'>" + displayText + "</font></a>&nbsp;</td></tr><tr><td class=\"navSubNS4\"><img src=\"../images/spacer.gif\" width=1 height=3></td></tr>";
	}else{
		theClass = "navSub";
		if(ie && !homepage){
			theClass = "navSubNoTrans";
		}
		//Deal with WIN IE 5************
		if(winIE5){
			theLink = "<a href=\"" + goLink + "\" target=\"_top\">" + displayText + "</a>";
		}else{
			theLink = displayText;
		}
		//******************************
		outHTML += "<tr><td class=\"" + theClass + "\" onmouseover=\"doNav(this,1);" + other + "\" onmouseout=\"doNav(this,0)\" nowrap " + align + " onClick=\"parent.location='" + goLink + "';\">" + theLink + "</td></tr>";
	}
}
function writeLayers(){
	//outHTML = "";
	if(ns){
		outHTML += "<div id=\"mud\" style=\"position:absolute;left:0px;top:0px;visibility:hidden;z-index:0\"></div>"
	}
	if(ie){
		anchorX = findPosX(document.all("theBase"));
		theClass = "navSub";
		if(!homepage){
			theClass = "navSubNoTrans";
		}
	}else if(ns6){
		anchorX = findPosX(document.getElementById("theBase"));
		theClass = "navSub";
	}else if(ns){
		anchorX = document.layers["theBaseNS"].pageX;
		theClass = "navSubNS4";
	}
	//alert(anchorX);

	if(homepage){
			
		
		//RETURN THIS WHEN WANTING TO DISPLAY RANDOM BOY OR GIRL IMAGE
		//key = Math.round(Math.random() * 1);
		key = 1;
		//alert(key);
		if(key < 1){
			mainImg = "razberry_locations";
			secondImage = "quacktracks_tile";
		}else{
			mainImg = "ICFlavors";
			//secondImage = "xtreme_razz_tile";
		}
		
		/*THIS IS THE mainImg FOR THE NEW HOMEPAGE VOTE
		stateSandwich*/

		/*if(key == 0){
				mainImg = "justInTime";
		}else{
			mainImg = "bada";
		}*/
		
		//mainImg = "razberry_locations"
		//mainImg = "razberry_tickets"
		//mainImg = "justInTime"	
		//mainImg = "valentines_08"
		//mainImg = "tistheseason";
		//mainImg = "stateSandwich2"
		
		
		outHTML += "<div id=\"logo\" style=\"position:absolute;top:2px;left:" + (anchorX -80) + ";z-index:101;\"><a href=\"../home/default.asp\" onmouseover=\"document.inLogo.src=thelogoO.src;reset(-1,0);\" onmouseout=\"document.inLogo.src=thelogo.src;\" target=\"_top\"><img src=\"../images/insideLogoA.png\" width=156 height=154 name=\"inLogo\" border=0></a></div>";
		
		//REMOVE THIS LAYER FOR THE REVERSE THE CURSE THING
		outHTML += "<div id=\"tag\" style=\"position:absolute;top:115px;left:" + (anchorX + 123) + ";z-index:100;\"><!--img src=\"../images/home/tag.gif\" alt=\"It's not just Ice Cream. It's Brigham's.\"--></div>";
/*********

change link below

**********/
		
		
		
		//THIS IS FOR THE CHRONICLE FLAVOR
		if(key < 1){
			outHTML += "<div id=\"mainImage\" style=\"position:absolute;top:65px;left:" + (anchorX - 350) + ";z-index:50;\"><a href='../restaurants/locations.asp'><img src=\"../images/home/m_" + mainImg + ".jpg\" border=0></a></div>";
		}else{
			outHTML += "<div id=\"mainImage\" style=\"position:absolute;top:59px;left:" + (anchorX - 350) + ";z-index:50;\"><a href=\"/ice_cream/\"><img src=\"../images/home/m_" + mainImg + ".jpg\" border=0></a></div>";		
		}
		
		//END CHRONICLE FLAVOR
		
		outHTML += "<div id=\"homepagePatch\" style=\"position:absolute;top:50px;left:" + (anchorX - 351) + ";z-index:49;\"><table cellpadding=0 cellspacing=0 border=0 background='../images/home/jimmy_grad.jpg' style='background-position:0px 0px;'><tr><td><img src=\"../images/spacer.gif\" width=703 height=100></td></tr></table></div>";
		

		// old homepage botprize.gif & botlearnmore.gif in left
		
		
// COMMENT OUT FOR SURVEY UPDATE ---->// outHTML += "<div id=\"homeBot\" style=\"position:absolute;top:316px;left:" + (anchorX - 353) + "px;z-index:57\"><img src=\"../images/home/line.gif\"><table cellpadding=0 cellspacing=0 border=0 width=707><tr><td width=2 bgcolor=\"4573B3\"><img src=\"../images/spacer.gif\"></td><td width=703 background=\"../images/home/botbg.gif\"><a href=\"../flavors/default.asp?flavor=29\"><img src=\"../images/home/fluff_tile.jpg\" border=0></a><a href=\"../sundae_parties\"><img src=\"../images/home/botlearnmore2.gif\" border=0></a></td><td width=2 bgcolor=\"4573B3\"><img src=\"../images/spacer.gif\"></td></tr></table><img src=\"../images/home/line.gif\"><br><img src=\"../images/home/bottag.gif\" alt=\"Brigham's - New England's Premium Since 1914\"></div>";
/* UNCOMMENT FOR SURVEY UPDATE  ----> */ //outHTML += "<div id=\"homeBot\" style=\"position:absolute;top:316px;left:" + (anchorX - 353) + "px;z-index:57\"><img src=\"../images/home/line.gif\"><table cellpadding=0 cellspacing=0 border=0 width=707><tr><td width=2 bgcolor=\"4573B3\"><img src=\"../images/spacer.gif\"></td><td width=703 background=\"../images/home/botbg.gif\"><a href=\"http://www.surveymonkey.com/s.asp?u=22982837500\"><img src=\"../images/home/free_quart.gif\" border=0></a><a href=\"../sundae_parties\"><img src=\"../images/home/botlearnmore2.gif\" border=0></a></td><td width=2 bgcolor=\"4573B3\"><img src=\"../images/spacer.gif\"></td></tr></table><img src=\"../images/home/line.gif\"><br><img src=\"../images/home/bottag.gif\" alt=\"Brigham's - New England's Premium Since 1914\"></div>";
		if(key == 1){
			//outHTML += "<div id=\"homeBot\" style=\"position:absolute;top:307px;left:" + (anchorX - 353) + "px;z-index:57\"><img src=\"../images/home/line.gif\"><table cellpadding=0 cellspacing=0 border=0 width=707><tr><td width=2 bgcolor=\"4573B3\"><img src=\"../images/spacer.gif\"></td><td width=703 background=\"../images/home/botbg.gif\"><!--<a href=\"../restaurants/locations.asp\"><img src=\"../images/home/xtreme_razz_tile.jpg\" border=0></a><a href=\"../sundae_parties/online_form.asp\"><img src=\"../images/home/at-work-sundae-parties.gif\" border=0></a>--><img src=\"../images/spacer.gif\" height=\"80\" width=\"5\"></td><td width=2 bgcolor=\"4573B3\"><img src=\"../images/spacer.gif\"></td></tr></table><img src=\"../images/home/line.gif\"><br><img src=\"../images/home/bottag.gif\" alt=\"Brigham's - New England's Premium Since 1914\"></div>";
			outHTML += "<div id=\"homeBot\" style=\"position:absolute;top:307px;left:" + (anchorX - 353) + "px;z-index:57\"><img src=\"../images/home/line.gif\"><table cellpadding=0 cellspacing=0 border=0 width=707><tr><td width=2 bgcolor=\"4573B3\"><img src=\"../images/spacer.gif\"></td><td width=703 background=\"../images/home/botbg.gif\"><img src=\"../images/spacer.gif\" height=\"80\" width=\"5\"></td><td width=2 bgcolor=\"4573B3\"><img src=\"../images/spacer.gif\"></td></tr></table><img src=\"../images/home/line.gif\"><br><img src=\"../images/home/bottag.gif\" alt=\"Brigham's - New England's Premium Since 1914\"></div>";
		}
		if(key == 0){
			//outHTML += "<div id=\"homeBot\" style=\"position:absolute;top:307px;left:" + (anchorX - 353) + "px;z-index:57\"><img src=\"../images/home/line.gif\"><table cellpadding=0 cellspacing=0 border=0 width=707><tr><td width=2 bgcolor=\"4573B3\"><img src=\"../images/spacer.gif\"></td><td width=703 background=\"../images/home/botbg.gif\"><a href=\"../flavors/default.asp?flavor=47\"><img src=\"../images/home/quacktracks_tile.jpg\" border=0></a><a href=\"../sundae_parties/online_form.asp\"><img src=\"../images/home/at-work-sundae-parties.gif\" border=0></a></td><td width=2 bgcolor=\"4573B3\"><img src=\"../images/spacer.gif\"></td></tr></table><img src=\"../images/home/line.gif\"><br><img src=\"../images/home/bottag.gif\" alt=\"Brigham's - New England's Premium Since 1914\"></div>";
                        outHTML += "<div id=\"homeBot\" style=\"position:absolute;top:307px;left:" + (anchorX - 353) + "px;z-index:57\"><img src=\"../images/home/line.gif\"><table cellpadding=0 cellspacing=0 border=0 width=707><tr><td width=2 bgcolor=\"4573B3\"><img src=\"../images/spacer.gif\"></td><td width=703 background=\"../images/home/botbg.gif\"><a href=\"../flavors/default.asp?flavor=48\"><img src=\"../images/home/confetti_tile.jpg\" border=0></a><a href=\"../sundae_parties/online_form.asp\"><img src=\"../images/home/at-work-sundae-parties.gif\" border=0></a></td><td width=2 bgcolor=\"4573B3\"><img src=\"../images/spacer.gif\"></td></tr></table><img src=\"../images/home/line.gif\"><br><img src=\"../images/home/bottag.gif\" alt=\"Brigham's - New England's Premium Since 1914\"></div>";		
		}
		
		outHTML += "<div id=\"homeBot\" style=\"position:absolute;top:128px;left:" + (anchorX - 353) + "px;z-index:0\"><table cellpadding=0 cellspacing=0 border=0 background=\"../images/tablebg.gif\" width=707><tr><td><img src=\"../images/spacer.gif\" width=1 height=188></td></tr></table></div>";
		//Give Flash to everybody but Mac Netscape:
		if(macNS || ns){
			//outHTML += "<div id=\"homeFlash\" style=\"position:absolute;top:301px;left:" + (anchorX + 190) + "px;z-index:100\"><img src=\"../flash/cartons.gif\"></div>";
		}else{
			//outHTML += "<div id=\"homeFlash\" style=\"position:absolute;top:301px;left:" + (anchorX + 187) + "px;z-index:100\"><OBJECT classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\"codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0\" WIDTH=\"190\"HEIGHT=\"121\"><PARAM NAME=movie VALUE=\"../flash/default_new.swf\"><PARAM NAME=quality VALUE=high><PARAM NAME=wmode VALUE=transparent><EMBED src=\"../flash/default_new.swf\" wmode=\"transparent\" quality=high WIDTH=\"190\" scale=\"noscale\" HEIGHT=\"121\" TYPE=\"application/x-shockwave-flash\" PLUGINSPAGE=\"http://www.macromedia.com/go/getflashplayer\"></EMBED></OBJECT></div>";
			//wmode=transparent - this would be for Netscape 7+ with Flash6
		}
		outHTML += "<div id=\"LmainMap\" style=\"position:absolute;top:0px;left:" + (anchorX - 353) + ";z-index:60;\"><img src=\"../images/nav/mainMap.gif\" usemap=\"#mmainMap\" border=0></div>"
	}
	points = new Array();
	if(homepage){
		points[0] = (anchorX - 353);
		points[1] = (anchorX - 278);
		points[2] = (anchorX - 177);
		points[3] = (anchorX + 1);
		points[4] = (anchorX + 151);
		points[5] = (anchorX + 238);
		points[6] = (anchorX - 354);
		points[7] = (anchorX - 354);
		points[8] = (anchorX - 350);
		points[9] = (anchorX - 271);
		points[10] = (anchorX - 172);
		points[11] = anchorX;
		points[12] = (anchorX + 154);
		points[13] = (anchorX + 151);
		points[14] = (anchorX + 51);
		points[15] = (anchorX + 185);
	}else{
		points[0] = anchorX;
		points[1] = (anchorX + 75);
		points[2] = (anchorX + 176);
		points[3] = (anchorX + 353);
		points[4] = (anchorX + 504);
		points[5] = (anchorX + 590);
		points[6] = anchorX;
		points[7] = anchorX;
		points[8] = (anchorX + 3);
		points[9] = (anchorX + 82);
		points[10] = (anchorX + 181);
		points[11] = (anchorX + 353);
		points[12] = (anchorX + 507);
		points[13] = (anchorX + 505);
		points[14] = (anchorX + 405);
		points[15] = (anchorX + 538);
	}
	if(!homepage){
		//outHTML += "<div id=\"logo\" style=\"position:absolute;top:24px;left:" + (anchorX + 273) + ";z-index:101;\"><a href=\"../home/default.asp\" onmouseover=\"document.inLogo.src=thelogoO.src;reset(-1,0);\" onmouseout=\"document.inLogo.src=thelogo.src;\" target=\"_top\"><img src=\"../images/inside/logo.png\" width=149 height=62 name=\"inLogo\" border=0></a></div>";
		outHTML += "<div id=\"logo\" style=\"position:absolute;top:2px;left:" + (anchorX + 271) + ";z-index:101;\"><a href=\"../home/default.asp\" onmouseover=\"document.inLogo.src=thelogoO.src;reset(-1,0);\" onmouseout=\"document.inLogo.src=thelogo.src;\" target=\"_top\"><img src=\"../images/insideLogoA.png\" width=156 height=154 name=\"inLogo\" border=0></a></div>";
	}
	if(spoon){
		outHTML += "<div id=\"spoon\" style=\"position:absolute;top:103px;left:" + (anchorX + 558) + ";z-index:101;\"><img src=\"../images/inside/flavors/spoons/" + imageName + ".gif\"></div>";
	}
	outHTML += "<div id=\"Lnav1\" style=\"position:absolute;top:71px;left:" + points[0] + ";z-index:65;visibility:hidden;\"><img src=\"../images/nav/u_1.gif\" border=0 usemap=\"#mu1\"></div>";
	outHTML += "<div id=\"Lnav2\" style=\"position:absolute;top:50px;left:" + points[1] + ";z-index:65;visibility:hidden;\"><img src=\"../images/nav/u_2.gif\" border=0 usemap=\"#mu2\"></div>";
	outHTML += "<div id=\"Lnav3\" style=\"position:absolute;top:37px;left:" + points[2] + ";z-index:65;visibility:hidden;\"><img src=\"../images/nav/u_3.gif\" border=0 usemap=\"#mu3\"></div>";
	outHTML += "<div id=\"Lnav4\" style=\"position:absolute;top:37px;left:" + points[3] + ";z-index:65;visibility:hidden;\"><img src=\"../images/nav/u_4.gif\" border=0 usemap=\"#mu4\"></div>";
	outHTML += "<div id=\"Lnav5\" style=\"position:absolute;top:47px;left:" + points[4] + ";z-index:65;visibility:hidden;\"><img src=\"../images/nav/u_5.gif\" border=0 usemap=\"#mu5\"></div>";
	outHTML += "<div id=\"Lnav6\" style=\"position:absolute;top:62px;left:" + points[5] + ";z-index:65;visibility:hidden;\"><img src=\"../images/nav/u_6.gif\" border=0 usemap=\"#mu6\"></div>";
	//hideLayers
	outHTML += "<div id=\"topHide\" style=\"position:absolute;top:0px;left:" + points[6] + ";z-index:61;visibility:hidden;\"><a href=\"#\" onmouseover=\"reset(-1,0);\"><img src=\"../images/spacer.gif\" border=0 width=708 height=37></a></div>"
	outHTML += "<div id=\"botHide\" style=\"position:absolute;top:130px;left:" + points[7] + ";z-index:58;visibility:hidden;\"><a href=\"#\" onmouseover=\"reset(-1,0);\"><img src=\"../images/spacer.gif\" border=0 width=708 height=300></a></div>"
	//sub1
	outHTML += "<div id=\"Lc1\" style=\"position:absolute;top:96;left:" + points[8] + "px;z-index:59;visibility:hidden;\"><table cellpadding=0 cellspacing=0 border=0 width=80><tr><td class=\"" + theClass + "\"><img src=\"../images/spacer.gif\" width=1 height=33></td></tr></table><table cellpadding=0 cellspacing=0 border=0 width=150>"
	for(i = 0; i < sub1.length; i ++){
		//outHTML += "<tr><td class=\"navSub\" onmouseover=\"doNav(this,1);\" onmouseout=\"doNav(this,0)\" nowrap>" + sub1[i].displayText + "</td></tr>";
		setRow(sub1[i].displayText, sub1[i].goLink);
	}
	outHTML += "</table></div>"
	//sub2
	outHTML += "<div id=\"Lc2\" style=\"position:absolute;top:76;left:" + points[9] + "px;z-index:59;visibility:hidden;\"><table cellpadding=0 cellspacing=0 border=0 width=99><tr><td class=\"" + theClass + "\"><img src=\"../images/spacer.gif\" width=1 height=52></td></tr></table><table cellpadding=0 cellspacing=0 border=0 width=150>"
	for(i = 0; i < sub2.length; i ++){
		setRow(sub2[i].displayText, sub2[i].goLink);
	}
	outHTML += "</table></div>"
	//sub3
	outHTML += "<div id=\"Lc3\" style=\"position:absolute;top:65;left:" + points[10] + "px;z-index:59;visibility:hidden;\"><table cellpadding=0 cellspacing=0 border=0 width=172><tr><td class=\"" + theClass + "\"><img src=\"../images/spacer.gif\" width=1 height=64></td></tr></table><table cellpadding=0 cellspacing=0 border=0 width=172>"
	for(i = 0; i < sub3.length; i ++){
		setRow(sub3[i].displayText, sub3[i].goLink);
	}
	outHTML += "</table></div>"
	//outHTML += "<div id=\"Lc3\" style=\"position:absolute;top:65;left:" + points[10] + "px;z-index:59;visibility:hidden;\"></div>";
	//sub4
	outHTML += "<div id=\"Lc4\" style=\"position:absolute;top:65;left:" + points[11] + "px;z-index:59;visibility:hidden;\"><table cellpadding=0 cellspacing=0 border=0 width=154><tr><td class=\"" + theClass + "\"><img src=\"../images/spacer.gif\" width=1 height=64></td></tr></table><table cellpadding=0 cellspacing=0 border=0 width=154>"
	for(i = 0; i < sub4.length; i ++){
		if(i == 1){
			sOrH = "show('Lsubsub1')"
		}else{
			sOrH = "hide('Lsubsub1')"
		}
		setRow(sub4[i].displayText, sub4[i].goLink, sOrH, 1);
	}
	outHTML += "</table></div>"
	//subsub1
	outHTML += "<div id=\"Lsubsub1\" style=\"position:absolute;top:149;left:" + points[12] + "px;z-index:59;visibility:hidden;\"><table cellpadding=0 cellspacing=0 border=0 width=154>"
	for(i = 0; i < subsub1.length; i ++){
		setRow(subsub1[i].displayText, subsub1[i].goLink);
	}
	outHTML += "</table></div>"
	//sub5
	outHTML += "<div id=\"Lc5\" style=\"position:absolute;top:74;left:" + points[13] + "px;z-index:59;visibility:hidden;\"><table cellpadding=0 cellspacing=0 border=0 width=87><tr><td class=\"" + theClass + "\"><img src=\"../images/spacer.gif\" width=1 height=54></td></tr></table><table cellpadding=0 cellspacing=0 border=0 width=87>"
	for(i = 0; i < sub5.length; i ++){
		if(i == 1){
			sOrH = "show('Lsubsub2')"
		}else{
			sOrH = "hide('Lsubsub2')"
		}
		setRow(sub5[i].displayText, sub5[i].goLink, sOrH);
	}
	outHTML += "</table></div>"
	//subsub2
	outHTML += "<div id=\"Lsubsub2\" style=\"position:absolute;top:148;left:" + points[14] + "px;z-index:59;visibility:hidden;\"><table cellpadding=0 cellspacing=0 border=0 width=100>"
	for(i = 0; i < subsub2.length; i ++){
		setRow(subsub2[i].displayText, subsub2[i].goLink,0,1);
	}
	outHTML += "</table></div>"
	//sub6
	outHTML += "<div id=\"Lc6\" style=\"position:absolute;top:87;left:" + points[15] + "px;z-index:59;visibility:hidden;\"><table cellpadding=0 cellspacing=0 border=0 width=166><tr><td width=64>&nbsp;</td><td class=\"" + theClass + "\" width=102><img src=\"../images/spacer.gif\" width=1 height=41></td></tr></table><table cellpadding=0 cellspacing=0 border=0 width=167>"
	for(i = 0; i < sub6.length; i ++){
		setRow(sub6[i].displayText, sub6[i].goLink);
	}
	outHTML += "</table></div>"
	if(flavorPage && !macIE){
		if(ie){
			cartonX = findPosX(document.all("pageCarton"));
			cartonY = findPosY(document.all("pageCarton"));
		}else if(ns6){
			cartonX = findPosX(document.getElementById("pageCarton"));
			cartonY = findPosY(document.getElementById("pageCarton"));
		}else if(ns){
			cartonX = document.layers["pageCartonNS"].pageX;
			cartonY = document.layers["pageCartonNS"].pageY;
		}
		//alert(cartonX + " - " + cartonY);
		outHTML += "<div id=\"theCarton\" style=\"position:absolute;left:" + (cartonX - 28) + "px;top:" + (cartonY - 19) + "px;\"><img src=\"../images/inside/cartons/test.gif\"></div>";
	}

//alert(outHTML);
document.write(outHTML);
loaded = true;
}
function reset(n,doHide){
	if(loaded){
		for(i = 1; i <=6; i ++){
			if(n == i){
				show("Lnav" + i);
				show("Lc" + i);
			}else{
				hide("Lnav" + i);
				hide("Lc" + i);
			}
			if(homepage){
				if(n >= 4 && n <= 6){
					hide("tag");
				}else{
					show("tag");
				}
			}else{
				if(spoon){
					if(n >= 4 && n <= 6){
						hide("spoon");
					}else{
						show("spoon");
					}
				}
			}
		}
		hide("Lsubsub1");
		hide("Lsubsub2");
		if(doHide > 0){
			show("topHide");
			show("botHide");
		}else{
			hide("topHide");
			hide("botHide");
		}
	}
}
function doNav(ele,state){
	if(state > 0){
		ele.style.backgroundColor='9F853A';
		ele.style.color='ffffff';
	}else{
		ele.style.backgroundColor='DED4B0';
		ele.style.color='000000';
	}
}
function doPageNav(ele,state){
	if(state > 0){
		ele.style.color='8F742A';
	}else{
		ele.style.color='322F27';
	}
}
function doPageNav2(ele,state){
	if(state > 0){
		ele.style.color='000000';
	}else{
		ele.style.color='9F853A';
	}
}
function menuItem(displayText,goLink,id){
	this.displayText = displayText;
	this.goLink = goLink;
	this.id = id;
}
sub1 = new Array();
	sub1[0] = new menuItem("Ice Cream Quart Flavors","../flavors/");
	//sub1[1] = new menuItem("Ice Cream Pint Flavors","../flavors/default.asp?flavor=36");
	//sub1[1] = new menuItem("Novelties","../ice_cream/bars.asp");
	sub1[1] = new menuItem("Premium Churned Light Flavors","../flavors/light_flavors.asp");
	//sub1[1] = new menuItem("Ice Cream Pint Flavors","../flavors/pints.asp");
	//sub1[2] = new menuItem("Premium Churned Light Flavors","../flavors/default.asp?flavor=37");
	//sub1[2] = new menuItem("&Eacute;lan Frozen Yogurt","../ice_cream/elan.asp");
	sub1[2] = new menuItem("&Eacute;lan Frozen Yogurt","../elan/home/default.asp");
	sub1[3] = new menuItem("Fun Facts","../ice_cream/facts.asp");
sub2 = new Array();
	//sub2[0] = new menuItem("At Work Sundae Parties","../sundae_parties/");
	//sub2[1] = new menuItem("Special Occasion Catering","../sundae_parties/special_occasions.asp");
	//sub2[2] = new menuItem("Online Order Form","../sundae_parties/online_form.asp");
	//sub2[3] = new menuItem("Fax/Mail Order Form","../sundae_parties/fax_mail_default.asp");
	//sub2[4] = new menuItem("Flavors","../sundae_parties/flavors.asp");
	//sub2[0] = new menuItem("Sundae Party Locations","../sundae_parties/locations.asp");
	//sub2[0] = new menuItem("Patriot's&trade; Promotion","../sundae_parties/patriots_promotion.asp");
	//sub2[5] = new menuItem("Price List","../sundae_parties/prices.asp");
sub3 = new Array();
	//sub3[0] = new menuItem("Contests","../special_events/contests.asp");
	sub3[0] = new menuItem("Special Events","../special_events");
	sub3[1] = new menuItem("Photo Gallery","../special_events/photo_gallery.asp");
	sub3[2] = new menuItem("Promotions","../special_events/promotions.asp");
	//sub3[4] = new menuItem("Partners","../special_events/partners.asp");
	//sub3[5] = new menuItem("Kidspeak&reg;","../kidspeak/default.asp");
	//sub3[6] = new menuItem("Mailing List","../special_events/newsletter.asp");
sub4 = new Array();
	//sub4[0] = new menuItem("Locations","../restaurants/locations.asp");
	//sub4[1] = new menuItem("Menus","../menus");
	//sub4[2] = new menuItem("Kids Birthday Club","../restaurants/kids.asp");	
	//sub4[3] = new menuItem("Comments","../restaurants/comments.asp");
subsub1 = new Array();
	//subsub1[0] = new menuItem("Breakfast","../menus/default.asp?init=1");
	//subsub1[1] = new menuItem("Lunch/Dinner","../menus/default.asp?init=2");
	//subsub1[2] = new menuItem("Kids Menu","../menus/default.asp?init=3");
	//subsub1[3] = new menuItem("Beverages & Desserts","../menus/default.asp?init=4");
sub5 = new Array();
	//sub5[0] = new menuItem("Gift Certificates","../online_store/gc.asp");
	//sub5[1] = new menuItem("Ice Cream by Mail","../online_store/ice_cream.asp");
	//sub5[2] = new menuItem("Memorabilia","../online_store/memorabilia.asp");
	//sub5[3] = new menuItem("My Shopping Cart","../online_store/shopping_cart.asp");
subsub2 = new Array();
	/*subsub2[0] = new menuItem("4 Quarts","../online_store/quarts4.asp");
	subsub2[1] = new menuItem("6 Quarts","../online_store/quarts6.asp");
	subsub2[2] = new menuItem("12 Quarts","../online_store/quarts12.asp");*/
sub6 = new Array();
	sub6[0] = new menuItem("Brigham's History","../about/history.asp");
	sub6[1] = new menuItem("News","../about/news.asp");
	//sub6[2] = new menuItem("Employment","../about/employment.asp");
	sub6[2] = new menuItem("Community Outreach","../about/outreach.asp");
	//sub6[4] = new menuItem("Hurricane Relief","../about/hurricane_relief.asp");
	//sub6[4] = new menuItem("TV & Radio Ads","../about/tv_radio.asp");
	//sub6[4] = new menuItem("Private Labeling","../about/private_labeling.asp");
	sub6[5] = new menuItem("Contact Us","../about/contact.asp");
	sub6[3] = new menuItem("Privacy Policy","../about/privacy.asp");
	sub6[4] = new menuItem("Terms of Use","../about/terms.asp");
	//sub6[6] = new menuItem("About Kidspeak&reg;","../kidspeak/default.asp");
	sub6[6] = new menuItem("The Scoop On Brigham's, Inc.","../about/news_article.asp?id=19");
	
sub7 = new Array();
	//sub7[0] = new menuItem("Read More","../special_events/reverse2.asp");
	//sub7[1] = new menuItem("Photo Gallery","../special_events/reverse3.asp");
	//sub7[2] = new menuItem("Celebrity Reviews","../special_events/reverse4.asp");
	//sub7[3] = new menuItem("I Believe Stickers","../special_events/reverse5.asp");
	//sub7[3] = new menuItem("Curse Reversed! News","../special_events/reverse6.asp");
	//sub7[4] = new menuItem("Memorabilia","../special_events/reverse7.asp");
	//sub7[5] = new menuItem("Baseball Hall of Fame","../hof/default.asp");

dispEventLink = new Array();
dispEventLink[0] = new menuItem("Special Events","../special_events/");

sub8 = new Array();
	sub8[0] = new menuItem("Contest Info","../special_events/wicked_default.asp");
	//sub8[1] = new menuItem("Official Rules","../special_events/wicked_rules.asp");
	//sub8[2] = new menuItem("Wicked Chocolate&reg; Flavor Info","../flavors/default.asp?flavor=25");
	//sub8[3] = new menuItem("Press Release","../special_events/wicked_press.asp");
	sub8[1] = new menuItem("The 2005 Winnah","../special_events/wicked1.asp");
	sub8[2] = new menuItem("Wicked Chocolate&reg; Flavor Info","../flavors/default.asp?flavor=25");
	sub8[3] = new menuItem("Photos","../special_events/wicked2.asp");

sub9 = new Array();
	sub9[0] = new menuItem("Special Events","../special_events/default.asp");
	//sub9[1] = new menuItem("KidSpeak Solutions Challenge&reg;","challenge.asp");
	sub9[1] = new menuItem("KidSpeak Solutions Challenge&reg;","../kidspeak/default.asp");
	sub9[2] = new menuItem("How to Get Started","../kidspeak/get_started.asp");
	sub9[3] = new menuItem("About KidSpeak","../kidspeak/about.asp");
	sub9[4] = new menuItem("2008 Winners","../kidspeak/2008_winners.asp");
	sub9[5] = new menuItem("2008 Finalists","../kidspeak/2008_finalists.asp");
	sub9[6] = new menuItem("2007 Finalists","../kidspeak/2007Finalists.asp");
	sub9[7] = new menuItem("2006 Winners","../press/5-4-06.asp");
	sub9[8] = new menuItem("Participation Form","../kidspeak/participate.asp");
	

	/*sub9[0] = new menuItem("About Kidspeak&reg;","../kidspeak/default.asp");
	sub9[1] = new menuItem("KidSpeak Solutions Challenge&reg;","special_events.asp");
	sub9[2] = new menuItem("How to Get Started","../press/5-4-06.asp");
	sub9[3] = new menuItem("About KidSpeak","../press/5-4-06.asp");
	sub9[4] = new menuItem("2006 Winners","../press/5-4-06.asp");
	sub9[5] = new menuItem("Participation Form","../press/5-4-06.asp");*/

sub10 = new Array();
	sub10[0] = new menuItem("Celebration Vacation<br/>Contest Winner","../special_events/iparty.asp");
	sub10[1] = new menuItem("Photo Gallery","../special_events/iparty2.asp");

sub11 = new Array();
	//sub11[0] = new menuItem("Entry Information","../special_events/fluffernutter_ei.asp");
	sub11[0] = new menuItem("Jingle Contest Winners","../special_events/fluffernutterVote1.asp");
	//sub11[1] = new menuItem("Contest Rules","../special_events/fluffernutter_rules.asp");
	sub11[1] = new menuItem("Flavor Information","../flavors/default.asp?flavor=29");
	sub11[2] = new menuItem("Press Release","../special_events/fluffernutter_press.asp");
	sub11[3] = new menuItem("Winner's Press Release","../special_events/fluffernutter_press2.asp");
	sub11[4] = new menuItem("State Sandwich Poll Results","../special_events/fluffernutter_vote.asp");

sub12 = new Array();
	sub12[0] = new menuItem("Special Events","../special_events/default.asp");
	//sub12[1] = new menuItem("KidSpeak Solutions Challenge&reg;","challenge.asp");
	sub12[1] = new menuItem("KidSpeak Solutions Challenge&reg;","../kidspeak/solutions.asp");
	sub12[2] = new menuItem("How to Get Started","../kidspeak/get_started.asp");
	sub12[3] = new menuItem("About KidSpeak","../kidspeak/about.asp");
	sub12[4] = new menuItem("2006 Winners","../press/5-4-06.asp");
	sub12[5] = new menuItem("Participation Form","../kidspeak/participate.asp");

sub13 = new Array();
	sub13[0] = new menuItem("Winning Charity","../special_events/chronicle_default.asp");
	sub13[1] = new menuItem("Contest Rules","../special_events/chronicle_rules.asp");
	sub13[2] = new menuItem("Contest Info","../special_events/chronicle_info.asp");
	//sub13[1] = new menuItem("Enter Now!","../special_events/coffee_crunch.asp");
	//sub13[1] = new menuItem("Vote For Finalists!","../special_events/chronicleContest_charityVote.asp");
	sub13[3] = new menuItem("Finalists' Press Release","../about/news_article.asp?id=40");
	sub13[4] = new menuItem("Chronicle Coffee Crunch Flavor Information","../flavors/default.asp?flavor=31");


sub14 = new Array();
	sub14[0] = new menuItem("Contest Rules","../special_events/rename_completerules.asp");
	sub14[1] = new menuItem("Enter Now!","../special_events/rename_cursereversed.asp");
	sub14[2] = new menuItem("Press Release","../special_events/rename_default.asp");
	sub14[3] = new menuItem("Curse Reversed! Flavor Information","../flavors/default.asp?flavor=24");

sub15 = new Array();
	sub15[0] = new menuItem("Contest Rules","../special_events/oneLiner_completerules.asp");
	sub15[1] = new menuItem("Vote Now!","../special_events/oneLiner_final.asp");
	sub15[2] = new menuItem("Pints<br>Press Release","../special_events/oneLiner_press.asp");
	sub15[3] = new menuItem("Top 10 One-Liners<br>Press Release","../special_events/oneLiner_press2.asp");
	sub15[4] = new menuItem("Our Pint Flavor Information","../flavors/default.asp?flavor=36");

sub16 = new Array();
	sub16[0] = new menuItem("Rename Curse Reversed!","../special_events/rename_curseReversed.asp");
	sub16[1] = new menuItem("Curse Reversed!","../special_events/reverse.asp");
	sub16[2] = new menuItem("Wicked Chocolate","../special_events/wicked_default.asp");
	sub16[3] = new menuItem("iParty&reg; No Bake Cake","../special_events/iparty.asp");
	sub16[4] = new menuItem("Fluffernutter&trade;","../special_events/fluffernutterVote1.asp");
	//sub16[5] = new menuItem("Tell us Your Favorite One Liner","../special_events/oneLiner_press.asp");