function menu() {
	document.write('<a href="http://www.edc.pitt.edu/labs/participants/index.html">Home</a>');
	document.write('<a href="http://www.edc.pitt.edu/labs/participants/docs/LABSFactSheet.pdf" target="_blank">History <span style="font-size:0.8em;">(PDF)</span></a>');
	document.write('<a href="http://www.edc.pitt.edu/labs/participants/newsletter.html">Newsletter </a>');
	document.write('<a href="http://www.edc.pitt.edu/labs/participants/sites.html">Clinical Sites</a>');
	document.write('<a href="http://www.edc.pitt.edu/cgi-win/LABSPUBLIC/News_P/News_Page.exe?S">Study Publications</a>');
	document.write('<a href="http://www.edc.pitt.edu/labs/participants/ancillary.html">Ancillary Studies</a>');
	//document.write('<a href="http://www.edc.pitt.edu/labs/participants/ask.html">Ask a Coordinator</a>');
	document.write('<br>');
	document.write('<a href="http://www.edc.pitt.edu/cgi-win/LABSPUBLIC/News_P/News_Page.exe">News</a>');
	document.write('<a href="http://www.edc.pitt.edu/cgi-win/LABSPUBLIC/News_P/News_Page.exe?R">Recipes</a>');
	document.write('<a href="http://www.edc.pitt.edu/cgi-win/LABSPUBLIC/News_P/News_Page.exe?H">WIN</a>');
	// old win   document.write('<a href="http://www.edc.pitt.edu/labs/participants/win.html">WIN</a>');
	document.write('<br>');
	document.write('<a href="http://www.edc.pitt.edu/labs/participants/labs-2-visits.html">LABS-2 Visits</a>');
	document.write('<br>');
	document.write('<a href="http://www.edc.pitt.edu/labs/participants/links.html">Recommended Links</a>');
	document.write('<a href="http://www.edc.pitt.edu/labs/participants/contact.html">Contact Us</a>');
}

function footer() {
	document.write('	<tr>');
	document.write('		<td>');
	document.write('			<table width="741" border="0" cellspacing="0" cellpadding="0">');
	document.write('				<tr valign="top">');
	document.write('					<td class="left-side" width="20"></td>');
	document.write('					<td class="content-wrap" width="701">');
	document.write('					<table width="701" border="0" cellspacing="0" cellpadding="0">');
	document.write('							<tr valign="top">');
	document.write('								<td width="701" class="footer"><a href="http://www.edc.pitt.edu" target="_blank">Epidemiology Data Center</a> &#183; <a href="http://www.publichealth.pitt.edu" target="_blank">Graduate School of Public Health</a> &#183; <a href="http://www.pitt.edu" target="_blank">University of Pittsburgh</a><br>&copy; <Script Language="JavaScript">var now = new Date; document.write(now.getYear() < 1000 ? now.getYear() + 1900 : now.getYear());</Script> All Rights Reserved.</td>');
	document.write('							</tr>');
	document.write('						</table>');
	document.write('					</td>');
	document.write('					<td class="right-side" width="20"></td>');
	document.write('				</tr>');
	document.write('			</table>');
	document.write('		</td>');
	document.write('	</tr>');
	document.write('	<tr>');
	document.write('		<td><div id="footer"></div></td>');
	document.write('	</tr>');
}

/**********************************************************

DO NOT MODIFY ANYTHING BELOW THIS LINE --
THIS IS IMAGEREADY IMAGE SWAPPING CODE

**********************************************************/

function newImage(arg) {
	if (document.images) {
		rslt = new Image();
		rslt.src = arg;
		return rslt;
	}
}

function changeImages() {
	if (document.images && (preloadFlag == true)) {
		for (var i=0; i<changeImages.arguments.length; i+=2) {
			document[changeImages.arguments[i]].src = changeImages.arguments[i+1];
		}
	}
}

/**********************************************************

DO NOT MODIFY ANYTHING BELOW THIS LINE --
THIS MAKES TRANSPARENT PNGS WORK IN IE5.5+

**********************************************************/


if (navigator.platform == "Win32" && navigator.appName == "Microsoft Internet Explorer" && window.attachEvent)
{
	document.writeln('<style type="text/css">img { visibility:hidden; } </style>');
	window.attachEvent("onload", fnLoadPngs);
}

function fnLoadPngs()
{
	var rslt = navigator.appVersion.match(/MSIE (\d+\.\d+)/, '');
	var itsAllGood = (rslt != null && Number(rslt[1]) >= 5.5);

	for (var i = document.images.length - 1, img = null; (img = document.images[i]); i--)
	{
		if (itsAllGood && img.src.match(/\.png$/i) != null)
		{
			var src = img.src;
			var div = document.createElement("DIV");
			div.style.filter = "progid:DXImageTransform.Microsoft.AlphaImageLoader(src='" + src + "', sizing='scale')"
			div.style.width = img.width + "px";
			div.style.height = img.height + "px";
			img.replaceNode(div);
		}
		img.style.visibility = "visible";
	}
}


/**********************************************************
Sleight for Backgrounds
**********************************************************/
if (navigator.platform == "Win32" && navigator.appName == "Microsoft Internet Explorer" && window.attachEvent) {
	window.attachEvent("onload", alphaBackgrounds);
}

function alphaBackgrounds(){
	var rslt = navigator.appVersion.match(/MSIE (\d+\.\d+)/, '');
	var itsAllGood = (rslt != null && Number(rslt[1]) >= 5.5);
	for (i=0; i<document.all.length; i++){
		var bg = document.all[i].currentStyle.backgroundImage;
		if (itsAllGood && bg){
			if (bg.match(/\.png/i) != null){
				var mypng = bg.substring(5,bg.length-2);
				document.all[i].style.filter = "progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+mypng+"', sizingMethod='scale')";
				document.all[i].style.backgroundImage = "url('/assets/images/x.gif')";
			}
		}
	}
}
