var browser=navigator.appName;
function getInternetExplorerVersion()
{
  var rv = -1; // Return value assumes failure.
  if (navigator.appName == 'Microsoft Internet Explorer')
  {
    var ua = navigator.userAgent;
    var re  = new RegExp("MSIE ([0-9]{1,}[\.0-9]{0,})");
    if (re.exec(ua) != null)
      rv = parseFloat( RegExp.$1 );
  }
  return rv;
}
var bVersion = getInternetExplorerVersion();

var currentTime = new Date();
 
document.writeln("<style type=\"text/css\">");
document.writeln(".buttonText { ");
document.writeln("    width:80%;");
document.writeln("    font: 10pt arial; ");
document.writeln("    height: 12px;");
document.writeln("    color: #542d05;");
document.writeln("    text-align: center;");
document.writeln("    position:relative;");
document.writeln("    line-height: 1.2;");
document.writeln("    margin-left:10px;");
document.writeln("    margin-right:1px;");
if (browser=="Microsoft Internet Explorer" && bVersion<8.0)
  {
       document.writeln("    top:7px;");
  }
else
  {
       document.writeln("    top:-5px;");
  }
document.writeln("}");
document.writeln(".smallButtonText { ");
document.writeln("    width:100%;");
document.writeln("    font: 10pt arial; ");
document.writeln("    height: 12px;");
document.writeln("    vertical-align: bottom;");
document.writeln("    color: #542d05;");
document.writeln("    text-align: center;");
document.writeln("    position:relative;");
if (browser=="Microsoft Internet Explorer" && bVersion<8.0)
  {
      document.writeln("    top:3px;");
  }
else
  {
       document.writeln("    top:-9px;");
  }
document.writeln("}");
document.writeln("</style>");

document.writeln("<!-- header left side -->");
document.writeln("<div class=\"TopSection\">");

/*document.writeln("<div id=\"topHeaderLHS\">");
document.writeln("<a href=\"index.html\">");
document.writeln("<img src=\"newLogo.jpg\" width=\"535\" height=\"346\" border=\"0\" alt=\"SMC Logo\"></a>");
document.writeln("</div> <!-- topHeaderLHS -->");*/

document.writeln("<div id=\"topHeaderLHS\">");
document.writeln("<p style=\"margin-top: 15px;\"><a style=\"color: #363001;\" href=\"index.html\">");
document.writeln("<img src=\"newLogo.jpg\" width=\"139\" height=\"90\" border=\"0\" alt=\"Sellwood Medical Clinic\">");
if (browser=="Microsoft Internet Explorer")
  {
      document.writeln("</a></p><p style=\"margin-top: -15px;\"><a style=\"color: #363001;\" href=\"index.html\">");
      document.writeln("8332 S.E. 13th Ave, Portland, OR 97202<br/>(503) 595-9300<br/>fax: (503) 595-9301</a></p>");
  }
else
  {
      document.writeln("<br/>8332 S.E. 13th Ave, Portland, OR 97202<br/>(503) 595-9300<br/>fax: (503) 595-9301</a></p>");
  }
document.writeln("</div> <!-- topHeaderLHS -->");

document.writeln("<div style=\"font-style: italic;float: right;text-align: right;\">");
document.writeln("<div id=\"valignOuter\">");
document.writeln("<div id=\"valignInner\">");
/*document.writeln("<span class=\"smallSize\" onclick=\"javascript:setSize(1);\">A</span>&nbsp;");
document.writeln("<span class=\"medSize\" onclick=\"javascript:setSize(2);\">A</span>&nbsp;");
document.writeln("<span class=\"largeSize\" onclick=\"javascript:setSize(3);\">A</span>&nbsp;&nbsp;");
document.writeln("<a class=\"langLink\" href=\"index.html\">English</a>&nbsp;");
document.writeln("<a class=\"langLink\" href=\"indexESP.html\">Espa&ntilde;ol</a>&nbsp;");*/
document.writeln("<br/><IMG style=\"margin-right:5px;\" name=\"SLIDESIMG\" src=\"images/mainFront.jpg\"></img>");
document.writeln("<SCRIPT type=\"text/javascript\">");
document.writeln("<!--");
document.writeln("if (document.images) {");
document.writeln("  SLIDES.image = document.images.SLIDESIMG;");
document.writeln("  SLIDES.textid = \"SLIDESTEXT\";");
document.writeln("  SLIDES.update();");
document.writeln("  SLIDES.play();");
document.writeln("}");
document.writeln("//-->");
document.writeln("</SCRIPT>");

/*
document.writeln("<br/><object classid=\"clsid:d27cdb6e-ae6d-11cf-96b8-444553540000\" codebase=\"http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0\" width=\"157\" height=\"122\" id=\"slideshow_as2\" align=\"middle\">");
document.writeln("<param name=\"allowScriptAccess\" value=\"sameDomain\" />");
document.writeln("<param name=\"movie\" value=\"slideshow_as2.swf\" />");
document.writeln("<param name=\"quality\" value=\"high\" />");
document.writeln("<param name=\"bgcolor\" value=\"#fff1af\" />");
document.writeln("<embed src=\"slideshow_as2.swf\" quality=\"high\" bgcolor=\"#fff1af\" width=\"157\" height=\"122\" name=\"slideshow_as2\" align=\"middle\" allowScriptAccess=\"sameDomain\" type=\"application/x-shockwave-flash\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" />");
*/

document.writeln("</div></div></div>");

document.writeln("<div id=\"topHeaderLHS\" style=\"height:55px\">");
document.writeln("<!-- Button section -->");
document.writeln("<!-- Center -->");
document.writeln("<!-- Button bar -->");
/*document.writeln("<a href=\"schedule.html\" class=\"button\"><p class=\"buttonText\">Schedule an Appointment</p></a>");*/
document.writeln("<a href=\"info.html\" class=\"button\"><p class=\"buttonText\">Get More Information</p></a>");
document.writeln("<a href=\"about.html\" class=\"button\"><p class=\"buttonText\">Find Out<br/>About Us</p></a>");
if ( currentTime.getMonth()> 6 || currentTime.getMonth() < 3 ) document.writeln("<a href=\"flu.html\" class=\"button\"><p class=\"buttonText\">Info for<br/>Flu Season</p></a>");
document.writeln("<a href=\"prescription.html\" class=\"button\"><p class=\"buttonText\">Prescription<br/>Refill Policy</p></a>");
document.writeln("<a href=\"communityservice.html\" class=\"button\"><p class=\"buttonText\">Community<br/>Service</p></a>");

/*
document.writeln("<a href=\"pediatrics.html\" class=\"shortRedButton\"><p class=\"smallButtonText\">Pediatrics</p></a><br/>");
document.writeln("<a href=\"cardiology.html\" class=\"shortButton\"><p class=\"smallButtonText\">Cardiology</p></a>");
*/

document.writeln("</div> <!-- topHeaderLHS -->");

if (browser=="Microsoft Internet Explorer")
  {
      document.writeln("<p style=\"margin-bottom:5px;\">&nbsp;</p>");
  }

document.writeln("</div> <!-- TopSection -->");

document.writeln("<p class=\"cleaner\">&nbsp;</p>");

document.writeln("<div class=\"hSpacer\">&nbsp;</div>");

document.writeln("<!-- Main -->");


