//JavaScript file for ballardpediatrics.com virtual header
//Updating this document changes header on every page in the site


// starting images:

mapclosed = new Image();
mapclosed.src = "graphics/mapclosed.gif";

phone = new Image();
phone.src = "graphics/phone.gif";

geninfono = new Image();
geninfono.src = "graphics/geninfono.gif";

// rollover images:

mapopen = new Image();
mapopen.src = "graphics/mapopen.gif";

phonering = new Image();
phonering.src = "graphics/phonering.gif";

geninfo = new Image();
geninfo.src = "graphics/geninfo.gif";

function rollover(imgDocID,imgObjName) {
 document.images[imgDocID].src = eval(imgObjName + ".src")
}


function printVirtualHeader(pagename)
{

document.write("<!-- begin header -->\n");
document.write("<DIV ALIGN=CENTER>\n");
document.write("<TABLE BORDER=0 CELLSPACING=0 CELLPADDING=0 WIDTH=620 HEIGHT=138>\n");
document.write("   <TR>\n");
document.write("      <TD WIDTH=2 HEIGHT=36>\n");
document.write("         <P></P>\n");
document.write("      </TD>\n");
document.write("      <TD COLSPAN=3 WIDTH=221 HEIGHT=36>\n");
document.write("         <P><A HREF=\"index.html\"><IMG SRC=\"graphics/balpedhead.gif\" WIDTH=221 HEIGHT=36 ALIGN=bottom BORDER=0 ALT=\"Ballard Pediatrics\"></A></P>\n");
document.write("      </TD>\n");

// HOURS
document.write("      <TD ROWSPAN=4 WIDTH=91 HEIGHT=138>\n");
document.write("         <P>");
if(pagename == "hours"){
document.write("<IMG SRC=\"graphics/hours.gif\" WIDTH=91 HEIGHT=138 ALIGN=bottom BORDER=0 ALT=\"\">");
} else {
document.write("<A HREF=\"hours.html\"><IMG SRC=\"graphics/hours.gif\" WIDTH=91 HEIGHT=138 ALIGN=bottom BORDER=0 ALT=\"\"></A>");
}
document.write("</P>\n");
document.write("      </TD>\n");
document.write("      <TD ROWSPAN=4 WIDTH=10 HEIGHT=138>\n");
document.write("         <P><IMG SRC=\"graphics/vertspacer.gif\" WIDTH=10 HEIGHT=138 BORDER=0 ALT=\"\"></P>\n");
document.write("      </TD>\n");

// DOCTORS
document.write("      <TD ROWSPAN=4 WIDTH=92 HEIGHT=138>\n");
document.write("         <P>");
if(pagename == "doctors"){
document.write("<IMG SRC=\"graphics/doctors.gif\" WIDTH=92 HEIGHT=138 ALIGN=bottom BORDER=0 ALT=\"The Doctors\">");
} else {
document.write("<A HREF=\"doctors.html\"><IMG SRC=\"graphics/doctors.gif\" WIDTH=92 HEIGHT=138 ALIGN=bottom BORDER=0 ALT=\"The Doctors\"></A>");
}
document.write("</P>\n");
document.write("      </TD>\n");
document.write("      <TD ROWSPAN=4 WIDTH=10 HEIGHT=138>\n");
document.write("         <P><IMG SRC=\"graphics/vertspacer.gif\" WIDTH=10 HEIGHT=138 BORDER=0 ALT=\"\"></P>\n");
document.write("      </TD>\n");

// BUSINESS
document.write("      <TD ROWSPAN=4 WIDTH=92 HEIGHT=138>\n");
document.write("         <P>");
if(pagename == "business"){
document.write("<IMG SRC=\"graphics/business.gif\" WIDTH=92 HEIGHT=138 ALIGN=bottom BORDER=0 ALT=\"Business Office\">");
} else {
document.write("<A HREF=\"business.html\"><IMG SRC=\"graphics/business.gif\" WIDTH=92 HEIGHT=138 ALIGN=bottom BORDER=0 ALT=\"Business Office\"></A>");
}
document.write("</P>\n");
document.write("      </TD>\n");
document.write("      <TD ROWSPAN=4 WIDTH=10 HEIGHT=138>\n");
document.write("         <P><IMG SRC=\"graphics/vertspacer.gif\" WIDTH=10 HEIGHT=138 BORDER=0 ALT=\"\"></P>\n");
document.write("      </TD>\n");

// HEALTH
document.write("      <TD ROWSPAN=4 WIDTH=92 HEIGHT=138>\n");
document.write("         <P>");
if(pagename == "health"){
document.write("<IMG SRC=\"graphics/health.gif\" WIDTH=92 HEIGHT=138 ALIGN=bottom BORDER=0 ALT=\"Health Info\">");
} else {
document.write("<A HREF=\"health.html\"><IMG SRC=\"graphics/health.gif\" WIDTH=92 HEIGHT=138 ALIGN=bottom BORDER=0 ALT=\"Health Info\"></A>");
}
document.write("</P>\n");
document.write("      </TD>\n");
document.write("      <TD ROWSPAN=4 WIDTH=10 HEIGHT=138>\n");
document.write("         <P><IMG SRC=\"graphics/vertspacer.gif\" WIDTH=10 HEIGHT=138 BORDER=0 ALT=\"\"></P>\n");
document.write("      </TD>\n");

// LINKS
document.write("      <TD ROWSPAN=4 WIDTH=91 HEIGHT=138>\n");
document.write("         <P>");
if(pagename == "links"){
document.write("<IMG SRC=\"graphics/links.gif\" WIDTH=91 HEIGHT=138 ALIGN=bottom BORDER=0 ALT=\"Links\">");
} else {
document.write("<A HREF=\"links.html\"><IMG SRC=\"graphics/links.gif\" WIDTH=91 HEIGHT=138 ALIGN=bottom BORDER=0 ALT=\"Links\"></A>");
}
document.write("</P>\n");
document.write("      </TD>\n");

document.write("   </TR>\n");
document.write("   <TR>\n");
document.write("      <TD WIDTH=2 HEIGHT=36>\n");
document.write("         <P></P>\n");
document.write("      </TD>\n");
document.write("      <TD WIDTH=43 HEIGHT=36>\n");
document.write("         <P><!-- MAP --><A HREF=\"map.html\" onMouseOver=\"rollover('mapimg','mapopen')\" onMouseOut=\"rollover('mapimg','mapclosed')\"><IMG SRC=\"graphics/mapclosed.gif\" WIDTH=43 HEIGHT=36 ALIGN=bottom BORDER=0 NAME=\"mapimg\" ALT=\"Map\"></A></P>\n");
document.write("      </TD>\n");
document.write("      <TD WIDTH=42 HEIGHT=36>\n");
document.write("         <P><!-- PHONE --><A HREF=\"hours.html\" onMouseOver=\"rollover('phoneimg','phonering')\" onMouseOut=\"rollover('phoneimg','phone')\"><IMG SRC=\"graphics/phone.gif\" WIDTH=42 HEIGHT=36 ALIGN=bottom BORDER=0 NAME=\"phoneimg\" ALT=\"Phone\"></A></P>\n");
document.write("      </TD>\n");
document.write("      <TD ROWSPAN=2 WIDTH=136 HEIGHT=70>\n");
document.write("         <P><A HREF=\"hours.html\"><IMG SRC=\"graphics/numdesksquare.gif\" WIDTH=136 HEIGHT=70 ALIGN=bottom BORDER=0 ALT=\"\"></A></P>\n");
document.write("      </TD>\n");
document.write("   </TR>\n");
document.write("   <TR>\n");
document.write("      <TD WIDTH=2 HEIGHT=34>\n");
document.write("         <P></P>\n");
document.write("      </TD>\n");
document.write("      <TD ROWSPAN=2 COLSPAN=2 WIDTH=85 HEIGHT=66>\n");
document.write("         <P><A HREF=\"index.html\" onMouseOver=\"rollover('geninfoimg','geninfo')\" onMouseOut=\"rollover('geninfoimg','geninfono')\"><IMG SRC=\"graphics/deskwelcsquare.gif\" WIDTH=85 HEIGHT=66 ALIGN=bottom BORDER=0 ALT=\"\"></A></P>\n");
document.write("      </TD>\n");
document.write("   </TR>\n");
document.write("   <TR>\n");
document.write("      <TD WIDTH=2 HEIGHT=32>\n");
document.write("         <P></P>\n");
document.write("      </TD>\n");
document.write("      <TD WIDTH=136 HEIGHT=32>\n");
document.write("         <P><!-- GENERAL INFO --><A HREF=\"index.html\" onMouseOver=\"rollover('geninfoimg','geninfo')\" onMouseOut=\"rollover('geninfoimg','geninfono')\"><IMG SRC=\"graphics/geninfono.gif\" WIDTH=136 HEIGHT=32 ALIGN=bottom BORDER=0 NAME=\"geninfoimg\" ALT=\"General Information\"></A></P>\n");
document.write("      </TD>\n");
document.write("   </TR>\n");
document.write("</TABLE>\n");
document.write("\n");
document.write("<TABLE WIDTH=616 CELLPADDING=10 CELLSPACING=0 BORDER=0>\n");
document.write("<TR>\n");
document.write("<TD>\n");
document.write("<!-- end header -->\n");

}
