﻿// JScript File
function writeHeader() {
  document.writeln('    <div id="header">');
  document.writeln('      <div id="logo">');
  document.writeln('        <a href="index.html"><img src="images/header.gif" alt="Chicago Securities Attorney" /></a>');
  document.writeln('      </div>');
  document.writeln('      <div id="header-text">');
  document.writeln('        332 S. Michigan Avenue, Suite 1000<br />');
  document.writeln('        Chicago, Illinois 60604-4398<br />');
  document.writeln('        Phone: (312) 408-1114<br />');
  document.writeln('        Fax: (312) 408-1936<br />');
  document.writeln('        Email:  <a href="mailto:pberman@pbermanlaw.com">pberman@pbermanlaw.com</a>');
  document.writeln('      </div>');
  document.writeln('    </div><br style="line-height: 0; clear: both;" />');
  document.writeln('    <div id="main-graphic">');
  document.writeln('      <div id="nav-bar">');
  document.writeln('        <ul class="menu-items">');
  document.writeln('          <li><a href="index.html">Home</a></li>');
  document.writeln('          <li><a href="illinois_securities_fraud_firm_overview.html">Firm Overview</a></li>');
  document.writeln('          <li><a href="illinois_securities_arbitration.html">Securities and Commodities Arbitration and Litigation</a></li>');
  document.writeln('          <li><a href="webresources.html">Web Resources</a></li>');
  document.writeln('          <li><a href="securities_fraud_illinois_faq.html">FAQs</a></li>');
  document.writeln('          <li><a href="contact_illinois_securities_attorney.html">Contact Us</a></li>');
  document.writeln('        </ul>');
  document.writeln('      </div>');
  document.writeln('    </div>');
}

function writeFooter() {
  document.writeln('    <div id="bottom-main">');
  document.writeln('      <br style="line-height: 13px;" />');
  document.writeln('      <div id="bottom-text">');
  document.writeln('        <a href="index.html">Home</a> &nbsp;&nbsp;|&nbsp;&nbsp;');
  document.writeln('        <a href="illinois_securities_fraud_firm_overview.html">Firm Overview</a> &nbsp;&nbsp;|&nbsp;&nbsp;');
  document.writeln('        <a href="illinois_securities_arbitration.html">Securities and Commodities Arbitration and Litigation</a> &nbsp;&nbsp;|&nbsp;&nbsp;');
  document.writeln('        <a href="webresources.html">Web Resources</a> &nbsp;&nbsp;|&nbsp;&nbsp;');
  document.writeln('        <a href="securities_fraud_illinois_faq.html">FAQs</a> &nbsp;&nbsp;|&nbsp;&nbsp;');
  document.writeln('        <a href="contact_illinois_securities_attorney.html">Contact Us</a> &nbsp;&nbsp;|&nbsp;&nbsp;');
  document.writeln('        <a href="sitemap_chicago_securities.html">Sitemap</a> &nbsp;&nbsp;|&nbsp;&nbsp;');
  document.writeln('        <a href="resources.html">Resources</a><br /><br style="line-height: 3px;" />');
  document.writeln('        Copyright &copy; Peter J. Berman, LTD.  <a href="chicago_securities_disclaimer.html">Disclaimer</a>');
  document.writeln('      </div>');
  document.writeln('    </div>');
}

function writeSEO() {
  document.writeln('  <div id="props">');
  document.writeln('    Search Engine Optimization Services, site design, and hosting provided by <a href="http://www.thesearchengineguys.com">The Search Engine Guys</a>.');
  document.writeln('  </div>');
}

function writeMedia(fileName) {
  var WMP7;

  if(window.ActiveXObject) {
    WMP7 = new ActiveXObject("WMPlayer.OCX.7");
  }
  else if (window.GeckoActiveXObject) {
    WMP7 = new GeckoActiveXObject("WMPlayer.OCX.7");
  }

  // Windows Media Player 7 Code
  if (WMP7) {
   document.write ('<object ID=MediaPlayer ');
   document.write ('  classid=CLSID:6BF52A52-394A-11D3-B153-00C04F79FAA6');
   document.write ('  standby="Loading Microsoft Windows Media Player components..."');
   document.write ('  type="application/x-oleobject" width="286" height="46">');
   document.write ('  <param name="url" value="' + fileName + '">');
   document.write ('  <param name="AutoStart" value="false">');
   document.write ('  <param name="ShowControls" value="1">');
   document.write ('  <param name="uiMode" value="mini">');
   document.write ('    <Embed type="application/x-mplayer2"');
    document.write ('        pluginspage="http://www.microsoft.com/windows/windowsmedia/"');
    document.write ('        filename="' + fileName + '"');
    document.write ('        src="' + fileName + '"');
    document.write ('        Name=MediaPlayer');
    document.write ('        ShowControls=1');
    document.write ('        ShowDisplay=1');
    document.write ('        ShowStatusBar=1');
    document.write ('        width=290');
    document.write ('        height=320>');
    document.write ('    </embed>');
   document.write ('</object>');
  }
  // Windows Media Player 6.4 Code
  else {
    //IE Code
    document.write ('<object ID=MediaPlayer ');
    document.write (' classid=CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95 ');
    document.write ('  codebase=http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=6,4,5,715 ');
    document.write ('  standby="Loading Microsoft Windows Media Player components..." ');
    document.write ('  type="application/x-oleobject" width="286" height="225">');
    document.write ('  <param name="FileName" value="' + fileName + '">');
    document.write ('  <param name="AutoStart" value="true">');
    document.write ('  <param name="ShowControls" value="1">');
    
    //Netscape code
    document.write ('    <Embed type="application/x-mplayer2"');
    document.write ('        pluginspage="http://www.microsoft.com/windows/windowsmedia/"');
    document.write ('        filename="' + fileName + '"');
    document.write ('        src="' + fileName + '"');
    document.write ('        Name=MediaPlayer');
    document.write ('        ShowControls=1');
    document.write ('        ShowDisplay=1');
    document.write ('        ShowStatusBar=1');
    document.write ('        width=290');
    document.write ('        height=320>');
    document.write ('    </embed>');
    document.write ('</object>');
  }
}