var slidemenu_width=160 	//specify width of menu (in pixels)
var slidemenu_reveal=45 	//specify amount that menu should protrude initially
var slidemenu_top=170   	//specify vertical offset of menu on page

var ns4=document.layers?1:0
var ie4=document.all&&navigator.userAgent.indexOf("Opera")==-1
var ns6=document.getElementById&&!document.all?1:0

function regenerate()
{
	window.location.reload()
}

/* Media Menu Item */

if (ie4||ns6)
	document.write('<div id="slidemenubar1" style="left:'+((177-50)*-1)+'; top:'+100+'; width:'+177+'" onMouseOver="pull()" onMouseOut="draw()">')
else if (ns4)
{
	document.write('<style>\n#slidemenubar1a{\nwidth:'+177+';}\n<\/style>\n')
	document.write('<layer id="slidemenubar1a" left=0 top='+100+' width='+177+' onMouseover="pull()" onMouseout="draw()" visibility=hide>')
}

if (ie4||ns4||ns6)
{
	document.write('<img src="' + zPath + 'images/leftMenu/lmMedia.gif">');
	document.write('<a class="LeftMenuLink" href="' + zPath + 'press/background.php" style="left:10px; top:20px">Background</a>');
	document.write('<a class="LeftMenuLink" href="' + zPath + 'press/press.php" style="left:10px; top:35px">Press Releases</a>');
	document.write('<a class="LeftMenuLink" href="' + zPath + 'press/logos.php" style="left:10px; top:50px">Logos & Images</a>');
}

window.onload=regenerateA

rightboundary=0
leftboundary=(177-50)*-1

if (ie4||ns6)
{
	document.write('</div>')
	themenu=(ns6)? document.getElementById("slidemenubar1").style : document.all.slidemenubar1.style
}
else if (ns4)
{
	document.write('</layer>')
	themenu=document.layers.slidemenubar1a
}

function regenerateA()
{
	if (ns4)
	{
		document.slidemenubar1a.left=((177-50)*-1)
		document.slidemenubar1a.visibility="show"
		setTimeout("window.onresize=regenerate",400)
	}
}

function pull()
{
	if (window.drawit)
	clearInterval(drawit)
	pullit=setInterval("pullengine()",10)
}

function draw()
{
	clearInterval(pullit)
	drawit=setInterval("drawengine()",10)
}

function pullengine()
{
	if ((ie4||ns6)&&parseInt(themenu.left)<rightboundary)
		themenu.left=parseInt(themenu.left)+10
	else if(ns4&&themenu.left<rightboundary)
		themenu.left+=10
	else if (window.pullit)
	{
		themenu.left=0
		clearInterval(pullit)
	}
}

function drawengine()
{
	if ((ie4||ns6)&&parseInt(themenu.left)>leftboundary)
		themenu.left=parseInt(themenu.left)-10
	else if(ns4&&themenu.left>leftboundary)
		themenu.left-=10
	else if (window.drawit)
	{
		themenu.left=leftboundary
		clearInterval(drawit)
	}
}

/* End Media */

/* Families Menu Item */

if (ie4||ns6)
	document.write('<div id="slidemenubar2" style="left:'+((177-50)*-1)+'; top:'+198+'; width:'+177+'" onMouseover="pull2()" onMouseout="draw2()">')
else if (ns4)
{
	document.write('<style>\n#slidemenubar2a{\nwidth:'+177+';}\n<\/style>\n')
	document.write('<layer id="slidemenubar2a" left=0 top='+198+' width='+177+' onMouseover="pull2()" onMouseout="draw2()" visibility=hide>')
}

if (ie4||ns4||ns6)
{
	document.write('<img src="' + zPath + 'images/leftMenu/lmFamilies.gif">')
	document.write('<a class="LeftMenuLink" href="' + zPath + 'visit/hours.php" style="left:10px; top:20px">Hours & Directions</a>');
	document.write('<a class="LeftMenuLink" href="' + zPath + 'join/signup.php" style="left:10px; top:35px">Become a Member</a>');
	document.write('<a class="LeftMenuLink" href="' + zPath + 'educate/birthday.php" style="left:10px; top:50px">Birthday Parties</a>');
}

window.onload=regenerate2

rightboundary=0
leftboundary=(177-50)*-1

if (ie4||ns6)
{
	document.write('</div>')
	themenu2=(ns6)? document.getElementById("slidemenubar2").style : document.all.slidemenubar2.style
}
else if (ns4)
{
	document.write('</layer>')
	themenu2=document.layers.slidemenubar2a
}

function regenerate2()
{
	if (ns4)
	{
		document.slidemenubar2a.left=((177-50)*-1)
		document.slidemenubar2a.visibility="show"
		setTimeout("window.onresize=regenerate",400)
	}
}

function pull2()
{
	if (window.drawit2)
	clearInterval(drawit2)
	pullit2=setInterval("pullengine2()",10)
}

function draw2()
{
	clearInterval(pullit2)
	drawit2=setInterval("drawengine2()",10)
}

function pullengine2()
{
	if ((ie4||ns6)&&parseInt(themenu2.left)<rightboundary)
		themenu2.left=parseInt(themenu2.left)+10
	else if(ns4&&themenu2.left<rightboundary)
		themenu2.left+=10
	else if (window.pullit2)
	{
		themenu2.left=0
		clearInterval(pullit2)
	}
}

function drawengine2()
{
	if ((ie4||ns6)&&parseInt(themenu2.left)>leftboundary)
		themenu2.left=parseInt(themenu2.left)-10
	else if(ns4&&themenu2.left>leftboundary)
		themenu2.left-=10
	else if (window.drawit2)
	{
		themenu2.left=leftboundary
		clearInterval(drawit2)
	}
}

/* End Families */

/* Businesses Menu Item */

if (ie4||ns6)
	document.write('<div id="slidemenubar3" style="left:'+((177-50)*-1)+'; top:'+293+'; width:'+177+'" onMouseover="pull3()" onMouseout="draw3()">')
else if (ns4)
{
	document.write('<style>#slidemenubar3a{\nwidth:'+177+';}</style>')
	document.write('<layer id="slidemenubar3a" left=0 top='+293+' width='+177+' onMouseOver="pull3()" onMouseOut="draw3()" visibility=hide>')
}

if (ie4||ns4||ns6)
{
	document.write('<img src="' + zPath + 'images/leftMenu/lmBusinesses.gif">')
	document.write('<a class="LeftMenuLink" href="' + zPath + 'partner/events_meetings.php" style="left:10px; top:20px">Events & Meetings</a>');
	document.write('<a class="LeftMenuLink" href="' + zPath + 'partner/sponsor.php" style="left:10px; top:35px">Sponsorships</a>');
	document.write('<a class="LeftMenuLink" href="https://dnbweb1.blackbaud.com/OPXDONATE/AddDonor.asp?cguid=A1D59424%2D4E08%2D493D%2D90CF%2DA3CB5E1408C7&sTarget=https%3A%2F%2Fdnbweb1%2Eblackbaud%2Ecom%2FOPXDONATE%2Fdonate%2Easp%3Fcguid%3DA1D59424%252D4E08%252D493D%252D90CF%252DA3CB5E1408C7%26dpid%3D16502&sid=876D5C9A%2DDA98%2D4452%2DB295%2D5F46B8F7A345" style="left:10px; top:50px">Make a Gift</a>');
	document.write('<a class="LeftMenuLink" href="' + zPath + 'partner/corp_memberships.php" style="left:10px; top:65px">Memberships</a>');
	
}

window.onload=regenerate3

rightboundary=0
leftboundary=(177-50)*-1

if (ie4||ns6)
{
	document.write('</div>')
	themenu3=(ns6)? document.getElementById("slidemenubar3").style : document.all.slidemenubar3.style
}
else if (ns4)
{
	document.write('</layer>')
	themenu3=document.layers.slidemenubar3a
}

function regenerate3()
{
	if (ns4)
	{
		document.slidemenubar3a.left=((177-50)*-1)
		document.slidemenubar3a.visibility="show"
		setTimeout("window.onresize=regenerate",400)
	}
}

function pull3()
{
	if (window.drawit3)
	clearInterval(drawit3)
	pullit3=setInterval("pullengine3()",10)
}

function draw3()
{
	clearInterval(pullit3)
	drawit3=setInterval("drawengine3()",10)
}

function pullengine3()
{
	if ((ie4||ns6)&&parseInt(themenu3.left)<rightboundary)
		themenu3.left=parseInt(themenu3.left)+10
	else if(ns4&&themenu2.leftrightboundary)
		themenu3.left+=10
	else if (window.pullit3)
	{
		themenu3.left=0
		clearInterval(pullit3)
	}
}

function drawengine3()
{
	if ((ie4||ns6)&&parseInt(themenu3.left)>leftboundary)
		themenu3.left=parseInt(themenu3.left)-10
	else if(ns4&&themenu3.left>leftboundary)
		themenu3.left-=10
	else if (window.drawit3)
	{
		themenu3.left=leftboundary
		clearInterval(drawit3)
	}
}

/* End Businesses */

/* Educators Menu Item */
if (ie4||ns6)
	document.write('<div id="slidemenubar4" style="left:'+((177-50)*-1)+'; top:'+390+'; width:'+177+'" onMouseOver="pull4()" onMouseOut="draw4()">')
else if (ns4)
{
	document.write('<style>#slidemenubar4a{width:'+177+';}</style>\n')
	document.write('<layer id="slidemenubar4a" left=0 top='+390+' width='+177+' onMouseOver="pull4()" onMouseOut="draw4()" visibility=hide>')
}

if (ie4||ns4||ns6)
{
	document.write('<img src="' + zPath + 'images/leftMenu/lmEducators.gif">')
	document.write('<a class="LeftMenuLink" href="' + zPath + 'educate/programs.php" style="left:10px; top:15px">Camps</a>');
	// document.write('<a class="LeftMenuLink" href="' + zPath + 'educate/prof_dev.php" style="left:10px; top:60px">Professional Dev.</a>');
	document.write('<a class="LeftMenuLink" href="' + zPath + 'educate/camp_ins.php" style="left:10px; top:30px">Camp-Ins</a>');
	document.write('<a class="LeftMenuLink" href="' + zPath + 'visit/school_groups.php" style="left:10px; top:45px">Field Trips</a>');
}

window.onload=regenerate4

rightboundary=0
leftboundary=(177-50)*-1

if (ie4||ns6)
{
	document.write('</div>')
	themenu4=(ns6)? document.getElementById("slidemenubar4").style : document.all.slidemenubar4.style
}
else if (ns4)
{
	document.write('</layer>')
	themenu4=document.layers.slidemenubar4a
}

function regenerate4()
{
	if (ns4)
	{
		document.slidemenubar4a.left=((177-50)*-1)
		document.slidemenubar4a.visibility="show"
		setTimeout("window.onresize=regenerate",400)
	}
}

function pull4()
{
	if (window.drawit4)
	clearInterval(drawit4)
	pullit4=setInterval("pullengine4()",10)
}

function draw4()
{
	clearInterval(pullit4)
	drawit4=setInterval("drawengine4()",10)
}

function pullengine4()
{
	if ((ie4||ns6)&&parseInt(themenu4.left)<rightboundary)
		themenu4.left=parseInt(themenu4.left)+10
	else if(ns4&&themenu4.leftrightboundary)
		themenu4.left+=10
	else if (window.pullit4)
	{
		themenu4.left=0
		clearInterval(pullit4)
	}
}

function drawengine4()
{
	if ((ie4||ns6)&&parseInt(themenu4.left)>leftboundary)
		themenu4.left=parseInt(themenu4.left)-10
	else if(ns4&&themenu4.left>leftboundary)
		themenu4.left-=10
	else if (window.drawit4)
	{
		themenu4.left=leftboundary
		clearInterval(drawit4)
	}
}

/* End Educators */