var mainbtnCount = 6;
var mainstaCount = 3;
var mainbtnImages = new Array();
function mainbtnMouseOut(img)
{
	document.images[img].src = mainbtnImages[img.substring(img.indexOf('mbtn')+4,img.length)][0].src;
};
function mainbtnMouseOver(img)
{
	document.images[img].src = mainbtnImages[img.substring(img.indexOf('mbtn')+4,img.length)][1].src;
};
function mainbtnMouseDown(img)
{
	document.images[img].src = mainbtnImages[img.substring(img.indexOf('mbtn')+4,img.length)][2].src;
};
var maintimerID = null;
var maintimerOn = false;
var maintimeCount = 1000;
var mainmnuCount = 1;
function mainshowLayer(btntd,btnmnu,bdir,mdir,mpos,xoffset,yoffset)
{
	var td,layer;
	if (btnmnu==0) return;
	td = document.getElementById(btntd);
	layer = document.getElementById(btnmnu);
	if (bdir==0)
	{
		switch(mpos)
		{
			case 0:
			layer.style.left = xoffset + "px";
			break;
			case 1:
			layer.style.left = td.offsetWidth/2 + xoffset + "px";
			break;
			case 2:
			layer.style.left = td.offsetWidth+xoffset + "px";
			break;
		}
		if (mdir==0)
			layer.style.top = td.offsetHeight+yoffset + "px";
		else
			layer.style.top = -layer.offsetHeight-yoffset + "px";
	}
	else
	{
		switch(mpos)
		{
			case 0:
			layer.style.top = yoffset + "px";
			break;
			case 1:
			layer.style.top = td.offsetHeight/2 + yoffset + "px";
			break;
			case 2:
			layer.style.top = td.offsetHeight+yoffset + "px";
			break;
		}
		if (mdir==0)
			layer.style.left = td.offsetWidth+xoffset + "px";
		else
			layer.style.left = -layer.offsetWidth-xoffset + "px";
	}
	layer.style.visibility = "visible";
};
function mainhideLayer(btnmnu)
{
	var layer;
	if (btnmnu==0) return;
	layer = document.getElementById(btnmnu);
	layer.style.visibility = "hidden";
};
function mainhideAllLayers()
{
	for (i=0; i<mainmnuCount; i++)
		mainhideLayer("mainmbtn_mnu"+i);
};
function mainstartTime()
{
	if (maintimerOn == false)
	{
 		maintimerID=setTimeout( "mainhideAllLayers()" , maintimeCount);
 		maintimerOn = true;
 	}
};
function mainstopTime()
{
	if (maintimerOn)
	{
 		clearTimeout(maintimerID);
 		maintimerID = null;
 		maintimerOn = false;
 	}
};
function mainget_menu_tb_css(iMIndex,bTbAutosize,iTbWidth,iTbHeight,bTbBgColor,TbBgColor,bTbBgImage,strTbBgImage,bTbBrSetParts,iTbBrSize,TbBrColor,strTbBrStyle,bTbBrLeft,iTbBrSizeLeft,TbBrColorLeft,strTbBrStyleLeft,bTbBrRight,iTbBrSizeRight,TbBrColorRight,strTbBrStyleRight,bTbBrTop,iTbBrSizeTop,TbBrColorTop,strTbBrStyleTop,bTbBrBottom,iTbBrSizeBottom,TbBrColorBottom,strTbBrStyleBottom,imgFolder)
{
str=".mainmnu"+iMIndex+"_tb {";
if(!bTbAutosize)
	str+="width:"+iTbWidth+"px;height:"+iTbHeight+"px;";
if(bTbBgColor)
	str+="background-color:#"+TbBgColor+";";
if(bTbBgImage)
	str+="background-image:url("+imgFolder+"/"+strTbBgImage+");"
if(!bTbBrSetParts)
	str+="border:"+iTbBrSize+"px #"+TbBrColor+" "+strTbBrStyle+";";
else{
	if(bTbBrLeft) str+="border-left:"+iTbBrSizeLeft+"px #"+TbBrColorLeft+" "+strTbBrStyleLeft+";";
	if(bTbBrRight) str+="border-right:"+iTbBrSizeRight+"px #"+TbBrColorRight+" "+strTbBrStyleRight+";";
	if(bTbBrTop) str+="border-top:"+iTbBrSizeTop+"px #"+TbBrColorTop+" "+strTbBrStyleTop+";";
	if(bTbBrBottom) str+="border-bottom:"+iTbBrSizeBottom+"px #"+TbBrColorBottom+" "+strTbBrStyleBottom+";";
};
str+="} ";
return str;
};
function mainget_menu_line_css(iMIndex,SeperateColor)
{
str=".mainmnu"+iMIndex+"_line {height:0px;background-color:#"+SeperateColor+"} ";
return str;
};
function mainget_menu_td_css(bNormal,iMIndex,iTdIndex,strTdHorizontal,strTdVertical,iTdPadding,fcolor,ffamily,fsize,fitalic,fbold,funderline,iTdBrSize,TdBrColor,strTdBrStyle,bTdBgColor,TdBgColor,bTdBgImage,strTdBgImage,imgFolder)
{
var sLink;
sLink="{display:block;";
sLink+="text-align:"+strTdHorizontal+";vertical-align:"+strTdVertical+";padding:"+iTdPadding+"px;";
sLink+="color:#"+fcolor+";font-family:"+ffamily+";font-size:"+fsize+"px;";
if(fitalic) sLink+="font-style:italic;"; else sLink+="font-style:normal;";
if(fbold) sLink+="font-weight:bold;"; else sLink+="font-weight:normal;";
if(funderline) sLink+="text-decoration:underline;"; else sLink+="text-decoration:none;";
sLink+="border:"+iTdBrSize+"px #"+TdBrColor+" "+strTdBrStyle+";";
if(bTdBgColor) sLink+="background-color:#"+TdBgColor+";";
if(bTdBgImage) sLink+="background-image:url("+imgFolder+"/"+strTdBgImage+");";
sLink+="} ";
if(bNormal) str=".mainmnu"+iMIndex+"_td"+iTdIndex+" a:link "+sLink+".mainmnu"+iMIndex+"_td"+iTdIndex+" a:visited "+sLink;
else str=".mainmnu"+iMIndex+"_td"+iTdIndex+" a:hover "+sLink+".mainmnu"+iMIndex+"_td"+iTdIndex+" a:active "+sLink;
return str;
};
function mainget_menu_tb_td(iMIndex,iTdIndex,bSetAsDivision,strTdLink,strTdTarget,strTdIcon,strTdText,iTdIconAlign,imgFolder)
{
if(bSetAsDivision) {
	str="<tr><td class=\"mainmnu"+iMIndex+"_line\"></td></tr>";
	return str;
};
str="<tr><td nowrap class=\"mainmnu"+iMIndex+"_td"+iTdIndex+"\">";
str+="<a href=\""+strTdLink+"\"";
if(strTdTarget.length>0) str+=" target=\""+strTdTarget+"\"";
str+=">";
if(strTdIcon.length>0){
if(iTdIconAlign==0) str+="<img src=\""+imgFolder+"/"+strTdIcon+"\" border=\"0\">"+strTdText;
else if(iTdIconAlign==1) str+=strTdText+"<img src=\""+imgFolder+"/"+strTdIcon+"\" border=\"0\">";
else if(iTdIconAlign==2) str+="<img src=\""+imgFolder+"/"+strTdIcon+"\" border=\"0\"><br>"+strTdText;
else if(iTdIconAlign==3) str+=strTdText+"<br><img src=\""+imgFolder+"/"+strTdIcon+"\" border=\"0\">";
}
else str+=strTdText;
str+="</a></td></tr>";
return str;
};
function mainget_menu(iMIndex,imgFolder)
{
str="<div style=\"position:relative;\">";
str+="<div id=\"mainmbtn_mnu"+iMIndex+"\" style=\"position:absolute;visibility:hidden;z-index:100;\">";
if(iMIndex==0) {
str+="<style type=\"text/css\">";str+=mainget_menu_tb_css(0,true,"1","1",true,"727272",false,"",false,"1","000000","solid",false,"0","FFFFFF","solid",false,"0","FFFFFF","solid",false,"0","FFFFFF","solid",false,"0","FFFFFF","solid",imgFolder);
str+=mainget_menu_line_css(0,"C0C0C0");
str+=mainget_menu_td_css(true,0,0,"Center","Middle","5","FFFFFF","Arial","12",false,false,false,"1","555555","solid",false,"666666",false,"",imgFolder);
str+=mainget_menu_td_css(false,0,0,"Center","Middle","5","FFFFFF","Arial","12",false,false,false,"1","808080","solid",true,"000000",false,"",imgFolder);
str+=mainget_menu_td_css(true,0,1,"Left","Middle","4","FFFFFF","Arial","12",false,false,false,"1","555555","solid",false,"666666",false,"",imgFolder);
str+=mainget_menu_td_css(false,0,1,"Left","Middle","4","FFFFFF","Arial","12",false,false,false,"1","808080","solid",true,"000000",false,"",imgFolder);
str+="</style>";
str+="<table class=\"mainmnu"+iMIndex+"_tb\" cellspacing=\"1\" cellpadding=\"0\" onMouseOver=\"mainstopTime();\" onMouseOut=\"mainstartTime();\">";str+=mainget_menu_tb_td(0,0,false,"archive.html","_top","","Meeting Handouts&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;",0,imgFolder);
str+=mainget_menu_tb_td(0,1,false,"audio_files.php","_top","","Meeting Audio Files",0,imgFolder);
str+="</table>";
};
str+="</div></div>";
return str;
};
function mainget_menutd(iIndex,iMIndex,bOver,bdir,mdir,mpos,xoffset,yoffset,iWidth,iHeight,sHint,sLink,sTarget,imgFolder) {
str="<td style=\"padding-bottom:0px\" id=\"mainmbtn_td"+iIndex+"\">";
str+=mainget_menu(iMIndex,imgFolder);
str+="<a ";
if (bOver)
	str+="onMouseOver=\"mainbtnMouseOver('mainmbtn"+iIndex+"');mainhideAllLayers();"
else
	str+="onMouseOver=\"mainbtnMouseOver('mainmbtn"+iIndex+"');mainhideAllLayers();\" onclick=\"";
str+="mainshowLayer('mainmbtn_td"+iIndex+"','mainmbtn_mnu"+iMIndex+"',"+bdir+","+mdir+","+mpos+","+xoffset+","+yoffset+");mainstopTime();\"";
str+=" onMouseOut=\"mainbtnMouseOut('mainmbtn"+iIndex+"');mainstartTime();\" onMouseDown=\"mainbtnMouseDown('mainmbtn"+iIndex+"');\" href=\""+sLink+"\"";
if (sTarget.length >0)
	str+=" target=\""+sTarget+"\"";
str+=">";
str+="<img src=\""+imgFolder+"/mainmbtn"+iIndex+"_0.gif\" name=mainmbtn"+iIndex+" border=0 width=\""+iWidth+"\" height=\""+iHeight+"\" alt=\""+sHint+"\">";
str+="</a></td>";
return str;
};
function maingen_td(iIndex,bOver,sLink,sTarget,iWidth,iHeight,sHint,imgFolder) {
str="<td style=\"padding-bottom:0px\" id=\"mainmbtn_td"+iIndex+"\">";
str+="<a ";
str+="onMouseOver=\"mainbtnMouseOver('mainmbtn"+iIndex+"');"
str+="mainhideAllLayers();mainstopTime();\" ";
str+="onMouseOut=\"mainbtnMouseOut('mainmbtn"+iIndex+"');mainstartTime();\" onMouseDown=\"mainbtnMouseDown('mainmbtn"+iIndex+"');\" href=\""+sLink+"\"";
if (sTarget.length >0)
	str+=" target=\""+sTarget+"\"";
str+=">";
str+="<img src=\""+imgFolder+"/mainmbtn"+iIndex+"_0.gif\" name=mainmbtn"+iIndex+" border=0 width=\""+iWidth+"\" height=\""+iHeight+"\" alt=\""+sHint+"\">";
str+="</a></td>";
return str;
};
function mainget_table(bHor,imgFolder) {
str="<table id=\"mainmbtn_tb\" cellpadding=0 cellspacing=0 border=0>";
str+="<tr>";
str+=maingen_td(0,true,"index.php","_top","116","30","Home",imgFolder);
if (bHor==false) str+="</tr><tr>";
str+=maingen_td(1,true,"news.php","_top","116","30","Current News",imgFolder);
if (bHor==false) str+="</tr><tr>";
str+=mainget_menutd(2,0,true,1,0,0,3,3,"116","30","News Archive","archive.html","_top",imgFolder);
if (bHor==false) str+="</tr><tr>";
str+=maingen_td(3,true,"qna.html","_top","116","30","Q & A",imgFolder);
if (bHor==false) str+="</tr><tr>";
str+=maingen_td(4,true,"links.html","_top","116","30","Helpful Links",imgFolder);
if (bHor==false) str+="</tr><tr>";
str+=maingen_td(5,true,"contact.html","_top","116","30","Contact Info",imgFolder);
str+="</tr>";
str+="</table>";
return str;
};
function draw_buttons(imgFolder,divID,iPressed)
{
for (i= 0; i< mainbtnCount; i++)
{
	mainbtnImages[i] = new Array();
	for (j= 0; j< mainstaCount; j++)
	{
		mainbtnImages[i][j] = new Image();
		mainbtnImages[i][j].src = imgFolder + '/mainmbtn' + i + '_' + j + '.gif';
	}
}
result=mainget_table(false,imgFolder);
document.write(result);
}