
// rev03.29.1999 -- DO NOT MODIFY! -- End date display function with y2k compatibility

//	set the base location for reference
	if ((self.location.href.search('bios')>=0) || (self.location.href.search('Directions')>=0))
		baseloc="../";
	else
		baseloc="./";
// rev03.29.1999 -- DO NOT MODIFY! -- Begin date display function with y2k compatibility
//alert(baseloc);
	var dr = new Array(30);
	var drPhoto = new Array(30);
	var office = new Array(20);
	var drn;
	u=document.URL;
	p=u.split("?dr=");
	pd=decodeURI(p[1]);
	drn=pd.split(" ");
	currentDr=drn[drn.length-1];
	currentDrFull=pd;



if (navigator.appName.toUpperCase().match(/MICROSOFT INTERNET EXPLORER/) != null)
	browser="ie";
else
	browser="";
//alert(browser);
setDrs(dr,drPhoto);
setOffices(office);
document.write ("<tr>");
document.write ("	<td width=\"190\" height=\"170\">&nbsp;</td>");
document.write ("	<td width=\"700\" align=\"center\" valign=\"top\">");
document.write("<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" height=\"100px\">");
document.write("	<tbody>");

//document.write("	</tbody>");
//document.write("</table>");
document.write("		<tr>");
document.write("		<td colspan=\"10\" align=\"center\">");
	for (i=0;(i<drPhoto.length && drPhoto[i]!="");i++);
m=i;

var mx=Math.floor(m/2);
mx=mx-1;
//alert(mx);
	for (i=0;(i<drPhoto.length && drPhoto[i]!="");i++) {
		drbg=drPhoto[i].split(":") 	//Fname Lname:A
		drn=drbg[0].split(" ");		// Fname Lname
		//drbg=drn[drn.length-1].split(":");
		bgSize=drbg[drbg.length-1];
		drLname=drn[drn.length-1];
		//alert(d);
		//document.write ("<a href=\"" + baseloc + "Bio.asp?doctor=" + drPhoto[i] + "\"><img src=\"" + baseloc + "images/banner/" + drn[drn.length-1] + "Head.jpg\" title=\"Dr. " + drPhoto[i] + "\" border=\"0\"></a>");
		//if ((d.search("Braendle")>=0) || (d.search("Schneebaum")>=0))
			//loc=baseloc + "Bio.asp?doctor=" + drPhoto[i] + "&bg=B";
		//else {
			//if ((d.search("Glowacki")>=0) || (d.search("Johnston")>=0))
				//loc=baseloc + "Bio.asp?doctor=" + drPhoto[i] + "&bg=C";
			//else
				//loc=baseloc + "Bio.asp?doctor=" + drPhoto[i] + "&bg=A";
		//}
		if (drLname=="Braendle")
			loc=baseloc + "Braendle.asp";
		else
			loc=baseloc + "Bio.asp?doctor=" + drLname + "&bg=" + bgSize;
		//document.write ("<a href=\"javascript:toggleDr('" + drn[drn.length-1] + "')\"><img src=\"" + baseloc + "images/banner/" + drn[drn.length-1] + "Head.jpg\" title=\"Dr. " + drPhoto[i] + "\" border=\"0\"></a>");
		document.write ("<a href=\"" + loc + "\"><img src=\"" + baseloc + "images/banner/" + drLname + "Head.jpg\" title=\"Dr. " + drbg[0] + "\" border=\"0\"></a>");
		if (i==mx)
			document.write ("<br>");
}
document.write ("		</td>");
document.write ("	</tr>");
document.write("		<tr>");
document.write ("			<td class=\"text14whtb\" align=\"center\"><a href=\"default.asp\" STYLE=\"color:white; TEXT-DECORATION: none; background: none\">Home</td><td class=\"text14whtb\"  align=\"center\">&nbsp;&nbsp;|&nbsp;&nbsp;</td>");
document.write("			<td  align=\"center\">");
document.write("					<a onmouseover=\"return !mnShow('1', event)\" href=\"#\" class=\"text14whtb\" STYLE=\"color:white; TEXT-DECORATION: none; background: none\">Physicians</a>");
					if(document.all){
						document.write("<iframe id='Fmnu1' style='position:absolute;left:500px;top:40px;z-index:111; visibility:hidden' scrolling='no' frameborder='0'></iframe>")
					}
document.write("				<div id=\"mnu1\" style=\"position: absolute; left: 500px; top: 40px; z-index: 112; visibility: hidden;\" onmouseover=\"event.cancelBubble = true;\">");
document.write("					<table class=\"menuNew\" cellpadding=\"1\" cellspacing=\"0\">");
document.write("						<tbody>");
for (i=0;(i<dr.length && dr[i]!="");i++) {
	drNew=dr[i].split(":");
//alert("dr[" + i + "]=" + dr[i]);
document.write("							<tr>");
document.write("								<td nowrap=\"nowrap\">");
//document.write("<a class=\"menuNew\" name=\"mnItm\" href=\"" + loc + "\">" + dr[i] + "</a>");
//document.write("									<a class=\"menuNew\" name=\"mnItm\" href=\"default.asp\">All</a>");
//		d=dr[i];
		d=drNew[0];
		if (d.search("Braendle")>=0)
			loc="Braendle.asp";
		else {
			if (d.search("Schneebaum")>=0)
//			loc="Bio.asp?doctor=" + dr[i] + "&bg=B";
				loc="Bio.asp?doctor=" + drNew[0] + "&bg=B";
			else
//			loc="Bio.asp?doctor=" + dr[i] + "&bg=A";
				loc="Bio.asp?doctor=" + drNew[0] + "&bg=A";
		}
//		drName="Dr. " + dr[i];
		//fw_menu_physicians.addMenuItem(drName,"location='" + loc + "'");
//document.write("									<a class=\"menuNew\" name=\"mnItm\" href=\"" + loc + "\"  >" + dr[i] + "</a>");
document.write("									<a class=\"menuNew\" name=\"mnItm\" href=\"" + loc + "\"  >" + drNew[0] + "</a>");
document.write("								</td>");
document.write("							</tr>");
}
document.write("						</tbody>");
document.write("					</table>");
document.write("				</div>");
document.write("			</td>");
document.write ("			<td class=\"text14whtb\"  align=\"center\">&nbsp;&nbsp;|&nbsp;&nbsp;</td>");
document.write("			<td  align=\"center\">");
document.write("					<a onmouseover=\"return !mnShow('2', event)\" href=\"#\" class=\"text14whtb\" STYLE=\"color:white; TEXT-DECORATION: none; background: none\">Offices</a>");
					if(document.all){
						document.write("<iframe id='Fmnu2' style='position:absolute;left:700px;top:40px;z-index:111; visibility:hidden' scrolling='no' frameborder='0'></iframe>")
					}
document.write("				<div id=\"mnu2\" style=\"position: absolute; left: 700px; top: 40px; z-index: 112; visibility: hidden;\" onmouseover=\"event.cancelBubble = true;\">");
document.write("					<table class=\"menuNew\" cellpadding=\"1\" cellspacing=\"0\">");
document.write("						<tbody>");
for (i=0;(i<office.length && office[i]!="");i++) {
document.write("							<tr>");
document.write("								<td nowrap=\"nowrap\">");
		o=office[i].split(":");
	if (o[9].search('bio')>=0)
		loc=o[9];
	else
		loc=o[9] + "?office=" + o[6];
document.write("									<a class=\"menuNew\" name=\"mnItm\" href=\"" + loc + "\">" + o[8] + "</a>");
document.write("								</td>");
document.write("							</tr>");
}
document.write("						</tbody>");
document.write("					</table>");
document.write("				</div>");
document.write("			</td>");


//document.write ("			<td class=\"text14whtb\"  align=\"center\">&nbsp;&nbsp;|&nbsp;&nbsp;</td>");
document.write ("			<td class=\"text14whtb\"  align=\"center\"></td>");
//document.write ("<td class=\"text14whtb\" align=\"center\"><a href=\"SuggestionBox.asp\" STYLE=\"color:white; TEXT-DECORATION: none; background: none\">Suggestion Box</a></td>");
document.write("		</tr>");
document.write("	</tbody>");
document.write("</table>");
function toggle(targetID) {
	//alert("toggle(" + targetID + ")");
	target=document.all(targetID);
	if (target.style.display=="none") 
			target.style.display="";
	else
		target.style.display="none";
}
function resizeWin(form) {
	var myWidth=form.width.value;
	var myHeight=form.height.value;
	window.resizeTo(myWidth,myHeight);
}
