var m7149_btnCount = 6;
var m7149_staCount = 3;
var m7149_btnImages = new Array();
for (i= 0; i< m7149_btnCount; i++)
{
	m7149_btnImages[i] = new Array();
	for (j= 0; j< m7149_staCount; j++)
	{
		m7149_btnImages[i][j] = new Image();
		m7149_btnImages[i][j].src = 'http://www.sspjyouth.com/img/m7149_mbtn' + i + '_' + j + '.gif';
	}
}
function m7149_btnMouseOut(img)
{
	document.images[img].src = m7149_btnImages[img.substring(img.indexOf('_mbtn')+5,img.length)][0].src;
};
function m7149_btnMouseOver(img)
{
	document.images[img].src = m7149_btnImages[img.substring(img.indexOf('_mbtn')+5,img.length)][1].src;
};
function m7149_btnMouseDown(img)
{
	document.images[img].src = m7149_btnImages[img.substring(img.indexOf('_mbtn')+5,img.length)][2].src;
};
function m7149_gen_td(iIndex,sLink,sTarget,iWidth,iHeight,sHint) {
str="<td id=\"m7149_mbtn_td"+iIndex+"\">";
str+="<a onMouseOver=\"m7149_btnMouseOver('m7149_mbtn"+iIndex+"')\" onMouseOut=\"m7149_btnMouseOut('m7149_mbtn"+iIndex+"')\" onMouseDown=\"m7149_btnMouseDown('m7149_mbtn"+iIndex+"')\" href=\""+sLink+"\"";
if (sTarget.length >0)
	str+=" target=\""+sTarget+"\"";
str+=">";
str+="<img src=\"http://www.sspjyouth.com/img/m7149_mbtn"+iIndex+"_0.gif\" name=m7149_mbtn"+iIndex+" border=0 width=\""+iWidth+"\" height=\""+iHeight+"\" alt=\""+sHint+"\">";
str+="</a></td>";
return str;
};
function m7149_get_table(bHor) {
str="<table id=\"m7149_mbtn_tb\" cellpadding=0 cellspacing=0 border=0>";
str+="<tr>";
str+=m7149_gen_td(0,"index.asp","","146","24","Home Page");
if (bHor==false) str+="</tr><tr>";
str+=m7149_gen_td(1,"http://www.sspjyouth.com/cal/","","146","24","Calendar");
if (bHor==false) str+="</tr><tr>";
str+=m7149_gen_td(2,"http://www.sspjyouth.com/ymi/index.asp","","146","24","Youth Ministry");
if (bHor==false) str+="</tr><tr>";
str+=m7149_gen_td(3,"http://www.sspjyouth.com/imp/index.asp","","146","24","Impact");
if (bHor==false) str+="</tr><tr>";
str+=m7149_gen_td(4,"http://www.sspjyouth.com/cmp/sspj.asp","","146","24","Camp SSPJ");
if (bHor==false) str+="</tr><tr>";
str+=m7149_gen_td(5,"http://www.sspjyouth.com/svc/","","146","24","Service Projects");
str+="</tr>";
str+="</table>";
return str;
};
result=m7149_get_table(false);
document.getElementById("m7149_mtop").innerHTML=result;
