var m5416_btnCount = 12;
var m5416_staCount = 3;
var m5416_btnImages = new Array();
for (i= 0; i< m5416_btnCount; i++)
{
	m5416_btnImages[i] = new Array();
	for (j= 0; j< m5416_staCount; j++)
	{
		m5416_btnImages[i][j] = new Image();
		m5416_btnImages[i][j].src = 'http://www.youinc.org/Menu/m5416_mbtn' + i + '_' + j + '.gif';
	}
}
function m5416_btnMouseOut(img)
{
	document.images[img].src = m5416_btnImages[img.substring(img.indexOf('_mbtn')+5,img.length)][0].src;
};
function m5416_btnMouseOver(img)
{
	document.images[img].src = m5416_btnImages[img.substring(img.indexOf('_mbtn')+5,img.length)][1].src;
};
function m5416_btnMouseDown(img)
{
	document.images[img].src = m5416_btnImages[img.substring(img.indexOf('_mbtn')+5,img.length)][2].src;
};
var m5416_timerID = null;
var m5416_timerOn = false;
var m5416_timeCount = 1000;
var m5416_mnuCount = 1;
function m5416_showLayer(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;
			break;
			case 1:
			layer.style.left = td.offsetWidth/2 + xoffset;
			break;
			case 2:
			layer.style.left = td.offsetWidth+xoffset;
			break;
		}
		if (mdir==0)
			layer.style.top = td.offsetHeight+yoffset;
		else
			layer.style.top = -layer.offsetHeight-yoffset;
	}
	else
	{
		switch(mpos)
		{
			case 0:
			layer.style.top = yoffset;
			break;
			case 1:
			layer.style.top = td.offsetHeight/2 + yoffset;
			break;
			case 2:
			layer.style.top = td.offsetHeight+yoffset;
			break;
		}
		if (mdir==0)
			layer.style.left = td.offsetWidth+xoffset;
		else
			layer.style.left = -layer.offsetWidth-xoffset;
	}
	layer.style.visibility = "visible";
};
function m5416_hideLayer(btnmnu)
{
	var layer;
	if (btnmnu==0) return;
	layer = document.getElementById(btnmnu);
	layer.style.visibility = "hidden";
};
function m5416_hideAllLayers()
{
	for (i=0; i<m5416_mnuCount; i++)
		m5416_hideLayer("m5416_mbtn_mnu"+i);
};
function m5416_startTime()
{
	if (m5416_timerOn == false)
	{
 		m5416_timerID=setTimeout( "m5416_hideAllLayers()" , m5416_timeCount);
 		m5416_timerOn = true;
 	}
};
function m5416_stopTime()
{
	if (m5416_timerOn)
	{
 		clearTimeout(m5416_timerID);
 		m5416_timerID = null;
 		m5416_timerOn = false;
 	}
};
function m5416_get_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)
{
str=".m5416_mnu"+iMIndex+"_tb {";
if(!bTbAutosize)
	str+="width:"+iTbWidth+"px;height:"+iTbHeight+"px;";
if(bTbBgColor)
	str+="background-color:#"+TbBgColor+";";
if(bTbBgImage)
	str+="background-image:url(http://www.youinc.org/Menu/"+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 m5416_get_menu_line_css(iMIndex,SeperateColor)
{
str=".m5416_mnu"+iMIndex+"_line {height:0px;background-color:#"+SeperateColor+"} ";
return str;
};
function m5416_get_menu_td_css(bNormal,iMIndex,iTdIndex,strTdHorizontal,strTdVertical,iTdPadding,fcolor,ffamily,fsize,fitalic,fbold,funderline,iTdBrSize,TdBrColor,strTdBrStyle,bTdBgColor,TdBgColor,bTdBgImage,strTdBgImage)
{
var sLink;
sLink="{display:block;";
sLink+="text-align:"+strTdHorizontal+";vertical-align:"+strTdVertical+";padding:"+iTdPadding+";";
sLink+="color:#"+fcolor+";font-family:"+ffamily+";font-size:"+fsize+";";
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(http://www.youinc.org/Menu"+strTdBgImage+");";
sLink+="} ";
if(bNormal) str=".m5416_mnu"+iMIndex+"_td"+iTdIndex+" a:link "+sLink+".m5416_mnu"+iMIndex+"_td"+iTdIndex+" a:visited "+sLink;
else str=".m5416_mnu"+iMIndex+"_td"+iTdIndex+" a:hover "+sLink+".m5416_mnu"+iMIndex+"_td"+iTdIndex+" a:active "+sLink;
return str;
};
function m5416_get_menu_tb_td(iMIndex,iTdIndex,bSetAsDivision,strTdLink,strTdTarget,strTdIcon,strTdText,iTdIconAlign)
{
if(bSetAsDivision) {
	str="<tr><td class=\"m5416_mnu"+iMIndex+"_line\"></td></tr>";
	return str;
};
str="<tr><td nowrap class=\"m5416_mnu"+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=\"http://www.youinc.org/Menu"+strTdIcon+"\" border=\"0\">"+strTdText;
else if(iTdIconAlign==1) str+=strTdText+"<img src=\"http://www.youinc.org/Menu"+strTdIcon+"\" border=\"0\">";
else if(iTdIconAlign==2) str+="<img src=\"http://www.youinc.org/Menu"+strTdIcon+"\" border=\"0\"><br>"+strTdText;
else if(iTdIconAlign==3) str+=strTdText+"<br><img src=\"http://www.youinc.org/Menu"+strTdIcon+"\" border=\"0\">";
}
else str+=strTdText;
str+="</a></td></tr>";
return str;
};
function m5416_get_menu(iMIndex)
{
str="<div style=\"position:relative;\">";
str+="<div id=\"m5416_mbtn_mnu"+iMIndex+"\" style=\"position:absolute;visibility:hidden;z-index:100;\">";
if(iMIndex==0) {
str+="<style type=\"text/css\">";str+=m5416_get_menu_tb_css(0,true,"1","1",true,"FFFFFF",false,"",false,"2","0067CE","solid",false,"0","FFFFFF","solid",false,"0","FFFFFF","solid",false,"0","FFFFFF","solid",false,"0","FFFFFF","solid");
str+=m5416_get_menu_line_css(0,"C0C0C0");
str+=m5416_get_menu_td_css(true,0,0,"Left","Middle","5","005CB9","Arial","12",false,true,false,"1","FFFFFF","solid",false,"FFFFFF",false,"");
str+=m5416_get_menu_td_css(false,0,0,"Left","Middle","5","FFFFFF","Arial","12",false,true,false,"1","808080","solid",true,"0080FF",false,"");
str+=m5416_get_menu_td_css(true,0,1,"Left","Middle","5","005CB9","Arial","12",false,true,false,"1","FFFFFF","solid",false,"FFFFFF",false,"");
str+=m5416_get_menu_td_css(false,0,1,"Left","Middle","5","FFFFFF","Arial","12",false,true,false,"1","808080","solid",true,"0080FF",false,"");
str+=m5416_get_menu_td_css(true,0,2,"Left","Middle","5","005CB9","Arial","12",false,true,false,"1","FFFFFF","solid",false,"FFFFFF",false,"");
str+=m5416_get_menu_td_css(false,0,2,"Left","Middle","5","FFFFFF","Arial","12",false,true,false,"1","808080","solid",true,"0080FF",false,"");
str+=m5416_get_menu_td_css(true,0,3,"Left","Middle","5","005CB9","Arial","12",false,true,false,"1","FFFFFF","solid",false,"FFFFFF",false,"");
str+=m5416_get_menu_td_css(false,0,3,"Left","Middle","5","FFFFFF","Arial","12",false,true,false,"1","808080","solid",true,"0080FF",false,"");
str+=m5416_get_menu_td_css(true,0,4,"Left","Middle","5","005CB9","Arial","12",false,true,false,"1","FFFFFF","solid",false,"FFFFFF",false,"");
str+=m5416_get_menu_td_css(false,0,4,"Left","Middle","5","FFFFFF","Arial","12",false,true,false,"1","808080","solid",true,"0080FF",false,"");
str+="</style>";
str+="<table class=\"m5416_mnu"+iMIndex+"_tb\" cellspacing=\"2\" cellpadding=\"0\" onMouseOver=\"m5416_stopTime();\" onMouseOut=\"m5416_startTime();\">";str+=m5416_get_menu_tb_td(0,0,false,"http://www.youinc.org/programs/programs.htm","","","Parent/Guardian&nbsp;&nbsp;",0);
str+=m5416_get_menu_tb_td(0,1,false,"http://www.youinc.org/programs/programs.htm","","","Referring Worker",0);
str+=m5416_get_menu_tb_td(0,2,false,"http://www.youinc.org/donations/donate.htm","","","Donor&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;",0);
str+=m5416_get_menu_tb_td(0,3,false,"http://www.youinc.org/programs/CBS/fostercare.htm","","","Foster Parent&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;",0);
str+=m5416_get_menu_tb_td(0,4,false,"http://www.youinc.org/employment/employment.htm","","","Job Applicant&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;",0);
str+="</table>";
};
str+="</div></div>";
return str;
};
function m5416_get_menutd(iIndex,iMIndex,bOver,bdir,mdir,mpos,xoffset,yoffset,iWidth,iHeight,sHint) {
str="<td id=\"m5416_mbtn_td"+iIndex+"\">";
str+=m5416_get_menu(iMIndex);
str+="<a ";
if (bOver)
	str+="onMouseOver=\"m5416_btnMouseOver('m5416_mbtn"+iIndex+"');"
else
	str+="onMouseOver=\"m5416_btnMouseOver('m5416_mbtn"+iIndex+"');\" onclick=\"";
str+="m5416_hideAllLayers();m5416_showLayer('m5416_mbtn_td"+iIndex+"','m5416_mbtn_mnu"+iMIndex+"',"+bdir+","+mdir+","+mpos+","+xoffset+","+yoffset+");m5416_stopTime();\"";
str+=" onMouseOut=\"m5416_btnMouseOut('m5416_mbtn"+iIndex+"');m5416_startTime();\" onMouseDown=\"m5416_btnMouseDown('m5416_mbtn"+iIndex+"');\" href=\"javascript:void(null);\"";
str+=">";
str+="<img src=\"http://www.youinc.org/Menu/m5416_mbtn"+iIndex+"_0.gif\" name=m5416_mbtn"+iIndex+" border=0 width=\""+iWidth+"\" height=\""+iHeight+"\" alt=\""+sHint+"\">";
str+="</a></td>";
return str;
};
function m5416_gen_td(iIndex,bOver,sLink,sTarget,iWidth,iHeight,sHint) {
str="<td id=\"m5416_mbtn_td"+iIndex+"\">";
str+="<a ";
if (bOver)
	str+="onMouseOver=\"m5416_btnMouseOver('m5416_mbtn"+iIndex+"');"
else
	str+="onMouseOver=\"m5416_btnMouseOver('m5416_mbtn"+iIndex+"');\" onclick=\"";
str+="m5416_hideAllLayers();m5416_stopTime();\" ";
str+="onMouseOut=\"m5416_btnMouseOut('m5416_mbtn"+iIndex+"');m5416_startTime();\" onMouseDown=\"m5416_btnMouseDown('m5416_mbtn"+iIndex+"');\" href=\""+sLink+"\"";
if (sTarget.length >0)
	str+=" target=\""+sTarget+"\"";
str+=">";
str+="<img src=\"http://www.youinc.org/Menu/m5416_mbtn"+iIndex+"_0.gif\" name=m5416_mbtn"+iIndex+" border=0 width=\""+iWidth+"\" height=\""+iHeight+"\" alt=\""+sHint+"\">";
str+="</a></td>";
return str;
};
function m5416_get_table(bHor) {
str="<table id=\"m5416_mbtn_tb\" cellpadding=0 cellspacing=0 border=0>";
str+="<tr>";
str+=m5416_gen_td(0,true,"http://www.youinc.org/Index1.htm","","170","23","Home");
if (bHor==false) str+="</tr><tr>";
str+=m5416_get_menutd(1,0,true,1,0,0,-100,20,"170","23","Iam");
if (bHor==false) str+="</tr><tr>";
str+=m5416_gen_td(2,true,"http://www.youinc.org/About/About.htm","","170","23","About Us");
if (bHor==false) str+="</tr><tr>";
str+=m5416_gen_td(3,true,"http://www.youinc.org/Employment/Employment.htm","","170","23","Employment");
if (bHor==false) str+="</tr><tr>";
str+=m5416_gen_td(4,true,"http://www.youinc.org/Programs/Programs.htm","","170","23","Programs");
if (bHor==false) str+="</tr><tr>";
str+=m5416_gen_td(5,true,"http://www.youinc.org/Intern/Internship.htm","","170","23","Intern/Volunteer");
if (bHor==false) str+="</tr><tr>";
str+=m5416_gen_td(6,true,"http://www.youinc.org/Media/Media.htm","","170","23","Media/Video");
if (bHor==false) str+="</tr><tr>";
str+=m5416_gen_td(7,true,"http://www.youinc.org/Training/Training.htm","","170","23","Training/Quality Management");
if (bHor==false) str+="</tr><tr>";
str+=m5416_gen_td(8,true,"http://www.youinc.org/Donations/Donate.htm","","170","23","Donate");
if (bHor==false) str+="</tr><tr>";
str+=m5416_gen_td(9,true,"http://www.youinc.org/Directions/Directions.htm","","170","23","Directions");
if (bHor==false) str+="</tr><tr>";
str+=m5416_gen_td(10,true,"http://www.youinc.org/Calendar/Calendar.aspx","","170","23","Calendar");
if (bHor==false) str+="</tr><tr>";
str+=m5416_gen_td(11,true,"http://www.youinc.org/Contact/Contact.htm","","170","23","Contact Us");
str+="</tr>";
str+="</table>";
return str;
};
result=m5416_get_table(false);
document.write(result);
