
g_intMenuCount = 6;
document.write("<SCR" + "IPT LANGUAGE='JavaScript1.2' SRC='http://www.bostonherald.com/navigation/browsercheck.js' TYPE='text/javascript'><\/SCR" + "IPT>");

var timerID;  /* timer for menus vanish delay*/
var placeDiv = new Array(g_intMenuCount);
var contentDiv = new Array(g_intMenuCount);

/*global vars for X,Y coords*/
var arrX = new Array(g_intMenuCount);
var arrY = new Array(g_intMenuCount);
	
/*'''''''''''''''''''''''''''''''''''''''''''''''''''''''''''*/
var g_init=0;
function reveal(contentDiv, intShow){
	/*shows one menu element and hides the others*/ 
		
	var i;
	/*init the div*/
	if(g_init == 0){
		for(i=0;i<=g_intMenuCount ;i++){
			placeDiv[i] = document.getElementById('placeMenu' + (i+1) + 'Div');
			contentDiv[i] = document.getElementById('menu' + (i+1) + 'Div');
		}
		g_init = 1;
	}
			
	/*get X,Y (IE method. NS6 adopted. not W3C)*/
	for (i=0; i < placeDiv.length; i++){
		arrX[i] = placeDiv[i].offsetLeft;	
		arrY[i] = placeDiv[i].offsetTop;
	}
			
	/*tweak X,Y coords*/	
	for (i=0; i < arrX.length; i++){
		tweakCoords(i);
	}
						
	/*move content divs to place holder divs*/
	for (i=0; i < arrX.length; i++){
		contentDiv[i].style.left = arrX[i];
		contentDiv[i].style.top = arrY[i];
	}
			
	/*do the magic act*/
	for (i=0; i < contentDiv.length; i++){
		if (intShow == i){
			contentDiv[i].style.visibility = "visible";
		} else {
			contentDiv[i].style.visibility = "hidden";
		}
	}
}
	
/*'''''''''''''''''''''''''''''''''''''''''''''''''''''''''''*/
function HideMenu(menu){
	menu.style.visibility = "hidden";
}
/*'''''''''''''''''''''''''''''''''''''''''''''''''''''''''''*/
function setTimer(menu) {
	navActive = menu;
	timerID = setTimeout('HideMenu(navActive)', 100);
}
function stopTimer() {
    window.clearTimeout(timerID);
}
/*'''''''''''''''''''''''''''''''''''''''''''''''''''''''''''*/
function tweakCoords(i){
	/* Y = UP/DOWN */
	/* X = LEFT/RIGHT */
	/* fixing lame browser rendered differences. */
	if (is.ie5 || is.ie55){
		arrY[i] = arrY[i]+14;
	}else if(is.ie6){
		arrY[i] = arrY[i]+14;
	}else if (is.ns5){
		arrY[i] = arrY[i]+1;
		/* arrX[i] = arrX[i]+10 */
	}
	
	/* last menus (cant be on advertorial)*/
	if (arrX[i] > 700){
		arrX[i] = 700;
	}
	//if(is.ie5 && is.userAgent.indexOf("Mac")){arrX[i] = arrX[i]+10;}
}
document.writeln('<style>');
document.writeln('<!--');
document.writeln('.popMenu		{ background-color:#FFFFFF; position:absolute; visibility:hidden; z-index: 50; width:150; border-color:black; border-style:solid; border-width:0px; }');
document.writeln('.headlinesDiv	{ background-color:#ECECEC; border-color:#999999; border-style:solid; border-top-width:1px; border-bottom-width:0px; border-left-width:1px; border-right-width:1px; padding-left:7px; }');
document.writeln('.headlinesDivA	{ background-color:#ECECEC; border-color:#999999; border-style:solid; border-top-width:1px; border-bottom-width:1px; border-left-width:1px; border-right-width:1px; padding-left:7px; }');
document.writeln('.adDiv			{ background-color:#CFCF9A; width=100%; border-color:#999999; border-style:solid; border-top-width:1px; border-bottom-width:1px; border-left-width:1px; border-right-width:1px; padding: 2px;	}');
document.writeln('.MWDiv			{ background-color:#000000; width=100%; border-color:#999999; border-style:solid; border-top-width:1px; border-bottom-width:1px; border-left-width:1px; border-right-width:1px; padding: 2px;	}');
document.writeln('.tolDiv			{ background-color:#006666; width=100%; border-color:#999999; border-style:solid; border-top-width:1px; border-bottom-width:1px; border-left-width:1px; border-right-width:1px; padding: 2px;	}');
document.writeln('.tolADDiv		{ background-color:#CFCF9A; width=100%; border-color:#999999; border-style:solid; border-top-width:1px; border-bottom-width:1px; border-left-width:1px; border-right-width:1px; padding: 2px;	}');
document.writeln('.BHADDiv		{ background-color:#CFCF9A; width=100%; border-color:#999999; border-style:solid; border-top-width:1px; border-bottom-width:1px; border-left-width:1px; border-right-width:1px; padding: 2px;	}');
document.writeln('.DailyADDiv		{ background-color:#CFCF9A; width=100%; border-color:#999999; border-style:solid; border-top-width:1px; border-bottom-width:1px; border-left-width:1px; border-right-width:1px; padding: 2px;	}');
document.writeln('.LYNNADDiv		{ background-color:#FFFFFF; width=100%; border-color:#999999; border-style:solid; border-top-width:1px; border-bottom-width:1px; border-left-width:1px; border-right-width:1px; padding: 2px;	}');
document.writeln('');
document.writeln('#placeMenu1Div {position:absolute;}');
document.writeln('#placeMenu2Div {position:absolute;}');
document.writeln('#placeMenu3Div {position:absolute;}');
document.writeln('#placeMenu4Div {position:absolute;}');
document.writeln('#placeMenu5Div {position:absolute;}');
document.writeln('#placeMenu6Div {position:absolute;}');
document.writeln('#placeMenu7Div {position:absolute;}');
document.writeln('--></style>');
document.writeln('');
document.writeln('<div id=\"menu1Div\" class=\"popMenu\" onMouseover=\"stopTimer()\" onMouseout=\"setTimer(contentDiv[0])\">');
document.writeln('  <div align=\"justify\" class=\"headlinesDiv\"><a class=buttonFont href=\"http://pqasb.pqarchiver.com/bostonherald/\">Archives</a></div>');
document.writeln('  <div align=\"justify\" class=\"headlinesDiv\"><a class=buttonFont href=\"http://www.bostonherald.com\">News & Opinion</a></div>');
document.writeln('  <div align=\"justify\" class=\"headlinesDiv\"><a class=buttonFont href=\"http://www.businesstoday.com\">BusinessToday</a></div>');
document.writeln('  <div align=\"justify\" class=\"headlinesDiv\"><a class=buttonFont href=\"http://www.bostonherald.com/sports.html\">Sports</a></div>');
document.writeln('  <div align=\"justify\" class=\"headlinesDiv\"><a class=buttonFont href=\"http://www.bostonherald.com/entertainment.html\">Entertainment</a></div>');
document.writeln('  <div align=\"justify\" class=\"headlinesDiv\"><a class=buttonFont href=\"http://www.bostonherald.com/lifestyle.html\">Lifestyle</a></div>');
document.writeln('  <div class=\"BHADDiv\" align=center>');
document.writeln('    <a href=\"http://adveng.hiasys.com:80/servlet/ajrotator/64/0/clickCGI?\"><img src=\"http://adveng.hiasys.com:80/servlet/ajrotator/64/0/viewCGI?pool=112&theme=126&type=2647\" width=\"100\" height=\"22\" border=\"0\"></a>');
document.writeln('  </div>');
document.writeln('</div>');
document.writeln('<div id=\"menu2Div\" class=\"popMenu\" onMouseover=\"stopTimer()\" onMouseout=\"setTimer(contentDiv[1])\">');
document.writeln('  <div align=\"justify\" class=\"headlinesDiv\"><a class=buttonFont href=\"http://www.dailynewstribune.com/HiasysTools/Search/search.bg?mode=all\">Archives</a></div>');
document.writeln('  <div align=\"justify\" class=\"headlinesDiv\"><a class=buttonFont href=\"http://www.dailynewstribune.com\">News & Opinion</a></div>');
document.writeln('  <div align=\"justify\" class=\"headlinesDiv\"><a class=buttonFont href=\"http://www.businesstoday.com\">BusinessToday</a></div>');
document.writeln('  <div align=\"justify\" class=\"headlinesDiv\"><a class=buttonFont href=\"http://www.dailynewstribune.com/sports.html\">Sports</a></div>');
document.writeln('  <div align=\"justify\" class=\"headlinesDiv\"><a class=buttonFont href=\"http://www.dailynewstribune.com/arts_lifestyle.html\">Arts & Lifestyle</a></div>');
document.writeln('  <div class=\"adDiv\" align=center>');
document.writeln('    <a href=\"http://adveng.hiasys.com:80/servlet/ajrotator/365/1/clickCGI?\"><img src=\"http://adveng.hiasys.com:80/servlet/ajrotator/365/1/viewCGI?pool=166&theme=126&type=2647\" width=\"100\" height=\"22\" border=\"0\"></a>');
document.writeln('  </div>');
document.writeln('</div>');
document.writeln('<div id=\"menu3Div\" class=\"popMenu\" onMouseover=\"stopTimer()\" onMouseout=\"setTimer(contentDiv[2])\">');
document.writeln('  <div align=\"justify\" class=\"headlinesDiv\"><a class=buttonFont href=\"http://www.metrowestdailynews.com/HiasysTools/Search/search.bg?mode=all\">Archives</a></div>');
document.writeln('  <div align=\"justify\" class=\"headlinesDiv\"><a class=buttonFont href=\"http://www.metrowestdailynews.com\">News & Opinion</a></div>');
document.writeln('  <div align=\"justify\" class=\"headlinesDiv\"><a class=buttonFont href=\"http://www.businesstoday.com\">BusinessToday</a></div>');
document.writeln('  <div align=\"justify\" class=\"headlinesDiv\"><a class=buttonFont href=\"http://www.metrowestdailynews.com/sports.html\">Sports</a></div>');
document.writeln('  <div align=\"justify\" class=\"headlinesDiv\"><a class=buttonFont href=\"http://www.metrowestdailynews.com/arts_lifestyle.html\">Arts & Lifestyle</a></div>');
document.writeln('  <div class=\"MWDiv\" align=center>');
document.writeln('    <a href=\"http://adveng.hiasys.com:80/servlet/ajrotator/363/2/clickCGI?\"><img src=\"http://adveng.hiasys.com:80/servlet/ajrotator/363/2/viewCGI?pool=163&theme=126&type=2647\" width=\"100\" height=\"22\" border=\"0\"></a>');
document.writeln('  </div>');
document.writeln('</div>');
document.writeln('<div id=\"menu4Div\" class=\"popMenu\" onMouseover=\"stopTimer()\" onMouseout=\"setTimer(contentDiv[3])\">');
document.writeln('  <div align=\"justify\" class=\"headlinesDiv\"><a class=buttonFont href=\"http://www.milforddailynews.com/HiasysTools/Search/search.bg?mode=all\">Archives</a></div>');
document.writeln('  <div align=\"justify\" class=\"headlinesDiv\"><a class=buttonFont href=\"http://www.milforddailynews.com\">News & Opinion</a></div>');
document.writeln('  <div align=\"justify\" class=\"headlinesDiv\"><a class=buttonFont href=\"http://www.businesstoday.com\">BusinessToday</a></div>');
document.writeln('  <div align=\"justify\" class=\"headlinesDiv\"><a class=buttonFont href=\"http://www.milforddailynews.com/sports.html\">Sports</a></div>');
document.writeln('  <div align=\"justify\" class=\"headlinesDivA\"><a class=buttonFont href=\"http://www.milforddailynews.com/arts_lifestyle.html\">Arts & Lifestyle</a></div>');
document.writeln('</div>');
document.writeln('<div id=\"menu5Div\" class=\"popMenu\" onMouseover=\"stopTimer()\" onMouseout=\"setTimer(contentDiv[4])\">');
document.writeln('  <div align=\"justify\" class=\"headlinesDiv\"><a class=buttonFont href=\"http://www.dailynewstranscript.com/HiasysTools/Search/search.bg?mode=all\">Archives</a></div>');
document.writeln('  <div align=\"justify\" class=\"headlinesDiv\"><a class=buttonFont href=\"http://www.dailynewstranscript.com\">News & Opinion</a></div>');
document.writeln('  <div align=\"justify\" class=\"headlinesDiv\"><a class=buttonFont href=\"http://www.businesstoday.com\">BusinessToday</a></div>');
document.writeln('  <div align=\"justify\" class=\"headlinesDiv\"><a class=buttonFont href=\"http://www.dailynewstranscript.com/sports.html\">Sports</a></div>');
document.writeln('  <div align=\"justify\" class=\"headlinesDiv\"><a class=buttonFont href=\"http://www.dailynewstranscript.com/arts_lifestyle.html\">Arts & Lifestyle</a></div>');
document.writeln('  <div class=\"BHADDiv\" align=center>');
document.writeln('  <a href=\"http://adveng.hiasys.com:80/servlet/ajrotator/2048/4/clickCGI?\"><img src=\"http://adveng.hiasys.com:80/servlet/ajrotator/2048/4/viewCGI?pool=2046&theme=126&type=2647\" width=\"100\" height=\"22\" border=\"0\"></a>');
document.writeln('  </div>');
document.writeln('</div>');
document.writeln('<div id=\"menu6Div\" class=\"popMenu\" onMouseover=\"stopTimer()\" onMouseout=\"setTimer(contentDiv[5])\">');
document.writeln('  <div align=\"justify\" class=\"tolDiv\">');
document.writeln('<center>');
document.writeln('<table border=\"0\" cellspacing=\"0\" cellpadding=1>');
document.writeln('   <tr><form action=\"http://www.townonline.com/cgi-bin/URL.pl\" method=\"post\">');
document.writeln('    <td colspan=\"2\" align=center><font class=\"storyFont\" color=\"#FFFFCC\">Connect with your<br>Eastern MA Community!</font></td></tr><tr>');
document.writeln('    <td align=\"center\"><input name=\"textfield\" size=\"15\" maxlength=\"99\"></td>');
document.writeln('    <td valign=\"bottom\"><input class=\"button\" type=\"submit\" value=\"GO\" name=\"submit\"></td>');
document.writeln('  </tr></form>');
document.writeln('</table>');
document.writeln('</center>');
document.writeln('  </div>');
document.writeln('  <div class=\"tolADDiv\" align=center>');
document.writeln('<a href=\"http://adveng.hiasys.com:80/servlet/ajrotator/359/5/clickCGI?\"><img src=\"http://adveng.hiasys.com:80/servlet/ajrotator/359/5/viewCGI?pool=174&theme=126&type=2647\" width=\"100\" height=\"22\" border=\"0\"></a>');
document.writeln('  </div>');
document.writeln('</div>');
document.writeln('<div id=\"menu7Div\" class=\"popMenu\" onMouseover=\"stopTimer()\" onMouseout=\"setTimer(contentDiv[6])\">');
document.writeln('  <div align=\"justify\" class=\"headlinesDiv\"><a class=buttonFont href=\"http://www.thedailyitemoflynn.com/\">News & Opinion</a></div>');
document.writeln('  <div align=\"justify\" class=\"headlinesDiv\"><a class=buttonFont href=\"http://www.thedailyitemoflynn.com/news/all_news.html\">More Coverage</a></div>');
document.writeln('  <div align=\"justify\" class=\"headlinesDivA\"><a class=buttonFont href=\"http://www.thedailyitemoflynn.com/news/obituaries.html\">Obituaries</a></div>');
document.writeln('  <div class=\"LYNNADDiv\" align=center>');
document.writeln('  <a href=\"http://adveng.hiasys.com:80/servlet/ajrotator/2553/6/clickCGI?\"><img src=\"http://adveng.hiasys.com:80/servlet/ajrotator/2553/6/viewCGI?pool=2550&theme=126&type=2647\" width=\"100\" height=\"22\" border=\"0\"></a>');
document.writeln('  </div>');
document.writeln('</div>');
document.writeln('');
document.writeln('<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\" width=\"760\" bgcolor=\"#333333\">');
document.writeln('  <tr>');
document.writeln('   <td align=left bgcolor=\"#666666\"><span id=\"placeMenu1Div\"></span><font class=buttonFont>&nbsp;&nbsp;</font><a href=http://www.bostonherald.com onMouseover=\"reveal(contentDiv, 0)\" onMouseout=\"setTimer(contentDiv[0])\"><font class=buttonFont color=#FFFFFF>Boston Herald</font></a></td>');
document.writeln('   <td align=left width=1><SPACER height=\"1\" width=\"1\" type=\"block\"></td>');
document.writeln('   <td align=left bgcolor=\"#666666\"><span id=\"placeMenu2Div\"></span><font class=buttonFont>&nbsp;&nbsp;</font><a href=http://www.dailynewstribune.com onMouseover=\"reveal(contentDiv, 1)\" onMouseout=\"setTimer(contentDiv[1])\"><font class=buttonFont color=#ffffff>Daily News Tribune</font></a></td>');
document.writeln('   <td align=left width=1><SPACER height=\"1\" width=\"1\" type=\"block\"></td>');
document.writeln('   <td align=left bgcolor=\"#666666\"><span id=\"placeMenu3Div\"></span><font class=buttonFont>&nbsp;&nbsp;</font><a href=http://www.metrowestdailynews.com onMouseover=\"reveal(contentDiv, 2)\" onMouseout=\"setTimer(contentDiv[2])\"><font class=buttonFont color=#ffffff>MetroWest Daily News</font></a></td>');
document.writeln('   <td align=left width=1><SPACER height=\"1\" width=\"1\" type=\"block\"></td>');
document.writeln('   <td align=left bgcolor=\"#666666\"><span id=\"placeMenu4Div\"></span><font class=buttonFont>&nbsp;&nbsp;</font><a href=http://www.milforddailynews.com onMouseover=\"reveal(contentDiv, 3)\" onMouseout=\"setTimer(contentDiv[3])\"><font class=buttonFont color=#ffffff>Milford Daily News</font></a></td>');
document.writeln('   <td align=left width=1><SPACER height=\"1\" width=\"1\" type=\"block\"></td>');
document.writeln('   <td align=left bgcolor=\"#666666\"><span id=\"placeMenu5Div\"></span><font class=buttonFont>&nbsp;&nbsp;</font><a href=http://www.dailynewstranscript.com onMouseover=\"reveal(contentDiv, 4)\" onMouseout=\"setTimer(contentDiv[4])\"><font class=buttonFont color=#ffffff>Daily News Transcript</font></a></td>');
document.writeln('   <td align=left width=1><SPACER height=\"1\" width=\"1\" type=\"block\"></td>');
document.writeln('   <td align=left bgcolor=\"#666666\"><span id=\"placeMenu6Div\"></span><font class=buttonFont>&nbsp;&nbsp;</font><a href=http://www.townonline.com onMouseover=\"reveal(contentDiv, 5)\" onMouseout=\"setTimer(contentDiv[5])\"><font class=buttonFont color=#FFFFFF>Town Online</font></a></td>');
document.writeln('   <td align=left width=1><SPACER height=\"1\" width=\"1\" type=\"block\"></td>');
document.writeln('   <td align=left bgcolor=\"#666666\"><span id=\"placeMenu7Div\"></span><font class=buttonFont>&nbsp;&nbsp;</font><a href=http://www.thedailyitemoflynn.com onMouseover=\"reveal(contentDiv, 6)\" onMouseout=\"setTimer(contentDiv[6])\"><font class=buttonFont color=#FFFFFF>The Daily Item</font></a></td>');
document.writeln('  </tr>');
document.writeln('  <tr>');
document.writeln('    <td width=\"760\" colspan=\"13\"><SPACER height=\"1\" width=\"1\" type=\"block\"></td>');
document.writeln('  </tr>');
document.writeln('</table>');
