var ie=(document.all)?1:0;
function menu(x,y){
		if(ie){
		eval("m"+ x).style.backgroundColor = "#FF6600";
		if (y!=100)	eval("m"+ y).style.backgroundColor = "#CC6600";
		}
	}

function mout(x,y){
			if(ie){
			eval("m"+ x).style.backgroundColor = "#CC6600";
			if (y!=100)	eval("m"+ y).style.backgroundColor = "#FF6600";
			}
	}
	
function Selected(y){
			if(ie){
			eval("m"+ y).style.backgroundColor = "#FF6600";
			}
	}
function fnOpen(objval){
		if (objval==0){window.location.href=linkPath+'aboutus/aboutus.html'; }
		if (objval==1){window.location.href=linkPath+'publicity/publicity.html'; }
		if (objval==2){window.location.href=linkPath+'trainingdocs/training.html'; }
		if (objval==3){window.location.href=linkPath+'faq/faqs.html'; }
		if (objval==4){window.location.href=linkPath+'support/support.html'; }
		if (objval==5){window.location.href=linkPath+'policies/policies.html'; }
		if (objval==6){window.location.href=linkPath+'usergroup/usergroup.html'; }
		if (objval==7){window.location.href=linkPath+'statistics/statistics.html'; }
		if (objval==8){window.location.href=linkPath+'sitemap.html'; }
	}
	
function fnMenu(i){
var str="";

str+="<table cellpadding='0' cellspacing='0' border='0' width='780' background='"+ linkPath +"home/menu_bg.gif' height='34'>";
str+="<tr><td colspan='17' height='1' bgcolor='#330099'><img src='"+ linkPath +"home/spacer.gif' height='1' border='0'></td></tr>";
str+="<tr bgcolor='#CC6600'>";
str+="<td height='32' class='tdmenu' align='center' id='m0' onMouseOver='menu(0,"+ i +");hideall();' onmouseout='mout(0,"+ i +");' onClick='fnOpen(0);'><a href='"+ linkPath +"aboutus/aboutus.html' class='amenu'>About Us</a></td><td width='1' class='tdmenu'>|</td>";
str+="<td class='tdmenu' align='center' id='m1' onMouseOver='menu(1,"+ i +");fnMenuOver(1);Menu1(0,false);' onmouseout='mout(1,"+ i +");' onClick='fnOpen(1);'><a href='"+ linkPath +"publicity/publicity.html' class='amenu'>Publicity</a></td><td width='1' class='tdmenu'>|</td>";
str+="<td class='tdmenu' align='center' id='m2' onMouseOver='menu(2,"+ i +");hideall();' onmouseout='mout(2,"+ i +");' onClick='fnOpen(2);'><a href='"+ linkPath +"trainingdocs/training.html' class='amenu'>Training</a></td><td width='1' class='tdmenu'>|</td>";
str+="<td class='tdmenu' align='center' id='m3' onMouseOver='menu(3,"+ i +");hideall();' onmouseout='mout(3,"+ i +");' onClick='fnOpen(3);'><a href='"+ linkPath +"faq/faqs.html' class='amenu'>FAQ’s</a></td><td width='1' class='tdmenu'>|</td>";
str+="<td class='tdmenu' align='center' id='m4' onMouseOver='menu(4,"+ i +");hideall();' onmouseout='mout(4,"+ i +");' onClick='fnOpen(4);'><a href='"+ linkPath +"support/support.html' class='amenu'>Support</a></td><td width='1' class='tdmenu'>|</td>";
str+="<td class='tdmenu' align='center' id='m5' onMouseOver='menu(5,"+ i +");hideall();' onmouseout='mout(5,"+ i +");' onClick='fnOpen(5);'><a href='"+ linkPath +"policies/policies.html' class='amenu'>Policies</a></td><td width='1' class='tdmenu'>|</td>";
str+="<td class='tdmenu' align='center' id='m6' onMouseOver='menu(6,"+ i +");hideall();' onmouseout='mout(6,"+ i +");' onClick='fnOpen(6);'><a href='"+ linkPath +"usergroup/usergroup.html' class='amenu'>User Group</a></td><td width='1' class='tdmenu'>|</td>";
str+="<td class='tdmenu' align='center' id='m7' onMouseOver='menu(7,"+ i +");hideall();' onmouseout='mout(7,"+ i +");' onClick='fnOpen(7);'><a href='"+ linkPath +"statistics/statistics.html' class='amenu'>Statistics</a></td><td width='1' class='tdmenu'>|</td>";
str+="<td class='tdmenu' align='center' id='m8' onMouseOver='menu(8,"+ i +");hideall();' onmouseout='mout(8,"+ i +");' onClick='fnOpen(8);'><a href='"+ linkPath +"sitemap.html' class='amenu'>Site Map</a></td>";
str+="</tr>";
str+="<tr><td colspan='17' height='1' bgcolor='#330099'><img src='"+ linkPath +"home/spacer.gif' height='1' border='0'></td></tr>";
str+="</table>";
document.write(str);
if (i!=100) Selected(i);
}

function fnTop(){
var str="";

str+="<table cellpadding='0' cellspacing='0' border='0' width='780' bgcolor='#669999' onMouseOver='hideall();'>";

str+="<tr><td colspan='7' height='65'><img src='"+ linkPath +"home/spacer.gif' width='780' height='65' border='0'></td></tr>";

str+="<tr><td width='36' class='tdtop' align='center'><a href='"+ linkPath +"index.html' class='alink'>Home</a></td><td width='360' height='27'><img src='"+ linkPath +"home/spacer.gif' width='360' height='27' border='0'></td>";

str+="<td width='75' class='tdtop'><a href='"+ linkPath +"members/members.html' class='alink'>Members</a></td><td width='67' class='tdtop'><a href='"+ linkPath +"listserv/listserv.html' class='alink'>Listserv</a></td><td width='52' class='tdtop'><a href='"+ linkPath +"indexlink.html' class='alink'>Index</a></td><td width='135'> <a href='http://mblc.state.ma.us/books/catalogs/vc/index.php' class='alink'>Search the Virtual Catalog</a></td>";

//str+="<td width='55'><input type='image' src='"+ linkPath +"home/search.gif' value='Search'></td>";
str+="</tr>";
str+="</table>";
document.write(str);
}

function fnHTop(){
var str="";

str+="<table cellpadding='0' cellspacing='0' border='0' width='780' bgcolor='#669999'>";

str+="<tr><td colspan='6' height='65'><img src='"+ linkPath +"home/spacer.gif' width='780' height='65' border='0'></td></tr>";

str+="<tr><td width='396' height='27'><img src='"+ linkPath +"home/spacer.gif' width='396' height='27' border='0'></td>";

str+="<td width='75' class='tdtop'><a href='"+ linkPath +"members/members.html' class='alink'>Members</a></td><td width='67' class='tdtop'><a href='"+ linkPath +"listserv/listserv.html' class='alink'>Listserv</a></td><td width='52' class='tdtop'><a href='"+ linkPath +"indexlink.html' class='alink'>Index</a></td><td width='135'> <a href='http://mblc.state.ma.us/books/catalogs/vc/index.php' class='alink'>Search the Virtual Catalog</a></td>";

//str+="<td width='55'><input type='image' src='home/search.gif' value='Search'></td>";

str+="</tr>";
str+="</table>";
document.write(str);
}

function fnTopimg(){
var str="";

str+="<table cellpadding='0' cellspacing='0' border='0' width='531'>";
str+="<tr><td><img src='"+ linkPath +"innerimg/top1.gif' width='183' height='136' border='0'></td>";
str+="<td><img src='"+ linkPath +"innerimg/top2.gif' width='271' height='136' border='0'></td>";
str+="<td><img src='"+ linkPath +"innerimg/top3.gif' width='177' height='136' border='0'></td>";
str+="</tr>";
str+="</table>";
document.write(str);
}


function fnLeft(){
var str="";

str+="<table cellpadding='0' cellspacing='0' border='0'>";
str+="<tr><td><img src='"+ linkPath +"innerimg/left_1.jpg' width='149' height='214' border='0'></td></tr>";
str+="<tr><td><img src='"+ linkPath +"innerimg/left_2.gif' width='149' height='231' border='0'></td></tr>";
str+="<tr><td><img src='"+ linkPath +"innerimg/left_3.gif' width='149' height='87' border='0'></td></tr>";
str+="</table>";

document.write(str);
}