<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"$if(lang)$ lang="$lang$" xml:lang="$lang$"$endif$>
  <head>
    <meta charset="utf-8">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta name="generator" content="pandoc" />

    $for(author-meta)$
    <meta name="author" content="$author-meta$" />
    $endfor$

    $if(date-meta)$
    <meta name="date" content="$date-meta$" />
    $endif$

    <title>$if(title-prefix)$$title-prefix$ - $endif$$pagetitle$</title>

    $for(header-includes)$
    $header-includes$
    $endfor$

    $if(highlightjs)$
    <style type="text/css">code{white-space: pre;}</style>
    <link rel="stylesheet"
	  href="$highlightjs$/$if(highlightjs-theme)$$highlightjs-theme$$else$default$endif$.css"
	  $if(html5)$$else$type="text/css" $endif$/>
    <script src="$highlightjs$/highlight.js"></script>
    <script type="text/javascript">
      if (window.hljs && document.readyState && document.readyState === "complete") {
	  window.setTimeout(function() {
	      hljs.initHighlighting();
	  }, 0);
      }
    </script>
    $endif$

    $if(highlighting-css)$
    <style type="text/css">code{white-space: pre;}</style>
    <style type="text/css">
      $highlighting-css$
    </style>
    $endif$

    $for(css)$
    <link rel="stylesheet" href="$css$" $if(html5)$$else$type="text/css" $endif$/>
    $endfor$

    <!-- tabsets -->
    <script>
      $$(document).ready(function () {
	  window.buildTabsets("toc");
      });
      $$(document).ready(function () {
	  $$('.tabset-dropdown > .nav-tabs > li').click(function () {
	      $$(this).parent().toggleClass('nav-tabs-open')
	  });
      });
    </script>

    <!-- code folding -->
    $if(code_menu)$
    <script>
      $$(document).ready(function () {
	  $if(source_embed)$
	  window.initializeSourceEmbed("$source_embed$");
	  $endif$
	  $if(code_folding)$
	  window.initializeCodeFolding("$code_folding$" === "show");
	  $endif$
      });
    </script>
    $endif$

    <!-- code download -->
    $if(source_embed)$
    <style>
      #rmd-source-code {
	  display: none;
      }
    </style>
    $endif$

    <!-- tabsets dropdown -->

    <style type="text/css">
      .tabset-dropdown > .nav-tabs {
	  display: inline-table;
	  max-height: 500px;
	  min-height: 44px;
	  overflow-y: auto;
	  background: white;
	  border: 1px solid #ddd;
	  border-radius: 4px;
      }
      
      .tabset-dropdown > .nav-tabs > li.active:before {
	  content: "";
	  font-family: 'Glyphicons Halflings';
	  display: inline-block;
	  padding: 10px;
	  border-right: 1px solid #ddd;
      }
      
      .tabset-dropdown > .nav-tabs.nav-tabs-open > li.active:before {
	  content: "&#xe258;";
	  border: none;
      }
      
      .tabset-dropdown > .nav-tabs.nav-tabs-open:before {
	  content: "";
	  font-family: 'Glyphicons Halflings';
	  display: inline-block;
	  padding: 10px;
	  border-right: 1px solid #ddd;
      }
      
      .tabset-dropdown > .nav-tabs > li.active {
	  display: block;
      }

      .tabset-dropdown > .nav-tabs > li.active a {
  	  padding: 0 15px !important;
      }

      .tabset-dropdown > .nav-tabs > li > a,
      .tabset-dropdown > .nav-tabs > li > a:focus,
      .tabset-dropdown > .nav-tabs > li > a:hover {
	  border: none;
	  display: inline-block;
	  border-radius: 4px;
	  background-color: transparent;
      }
      
      .tabset-dropdown > .nav-tabs.nav-tabs-open > li {
	  display: block;
	  float: none;
      }
      
      .tabset-dropdown > .nav-tabs > li {
	  display: none;
	  margin-left: 0 !important;
      }
    </style>
    
</head>

<body class="preload">

   $if(html_clean)$
   <!-- html_clean start -->
   <div class="container-fluid main-container">
     <div class="row">
       <div class="col-md-10">
   $endif$	
   $if(html_docco)$
   <!-- html_docco start -->
   <div class="container-fluid main-container">
     <div class="row">
       <div class="col-md-10 col-md-offset-1 page">
   $endif$
   $if(readthedown)$
   <!-- readthedown start -->   
   <div id="content" data-toggle="wy-nav-shift">
     <nav id="nav-top" role="navigation" aria-label="top navigation">
       <a role="button" href="#" data-toggle="wy-nav-top"><span class="glyphicon glyphicon-menu-hamburger"></span></a>
     </nav>
   $endif$
   $if(robobook)$
   <!-- robobook start -->   
   <div class="book with-summary">
      <div class="book-summary">
        <ul>
          <li class="title">$title$</li>
          <li class="divider"></li>
        </ul>
        <nav role="navigation" id="toc">
          $toc$
        </nav>
        <ul class="authors">
          <li class="divider"></li>
          $for(author)$
          $if(author.name)$
            <li><span><i class="glyphicon glyphicon-user"></i> $author.name$
	          $if(author.affiliation)$
              <br />$author.affiliation$
            $endif$
	          $if(author.email)$
	            <br />$author.email$<
	          $endif$
            </span></li>
          $else$
            <li><span><i class="glyphicon glyphicon-user"></i> $author$</span></li>
          $endif$
          $endfor$
          $if(date)$
           <li><span><i class="glyphicon glyphicon-calendar"></i> $date$</span></li>
          $endif$
        </ul>     
      </div>
      <div class="book-body fixed">
        <div class="body-inner">
            <a class="btn pull-left js-toolbar-action toggle-sidebar" aria-label="Toggle Sidebar" title="Toggle Sidebar" href="#">
              <span class="glyphicon glyphicon-menu-hamburger"></span>
            </a>
            <div class="page-inner">
              <section id="content" class="normal">
   $endif$
   $if(downcute)$
   <!-- downcute start -->   
   <div id="docute" class="Root theme-$downcute_theme$">
     <div class="Page layout-narrow">
      <div class="Wrap">
        <div class="Sidebar">
          <div class="SidebarItems" id="toc">
            $toc$
          </div>
          <div data-position="sidebar:post-end" class="InjectedComponents"><div class="dark-theme-toggler"><div class="toggle $dark_toggler_status$"><div class="toggle-track"><div class="toggle-track-check"><img  src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAAAlwSFlzAAALEwAACxMBAJqcGAAAAVlpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IlhNUCBDb3JlIDUuNC4wIj4KICAgPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4KICAgICAgPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIKICAgICAgICAgICAgeG1sbnM6dGlmZj0iaHR0cDovL25zLmFkb2JlLmNvbS90aWZmLzEuMC8iPgogICAgICA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Jxlq7xEl3nVPM4fDeIbPkD16/ptNc0bDu7qxbsu0R2JGywWMIjF2ft3tjfloAyQAGXiOn8hrqwbVvMXzaO+QeHXP6nF0wvX74Hf4NGG5GPjSlYoyM3P/0FbCT6zvM/yYoAAAAASUVORK5CYII=" role="presentation" style="pointer-events: none;" width="16" height="16"></div> <div class="toggle-track-x"><img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAAAlwSFlzAAALEwAACxMBAJqcGAAAAVlpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IlhNUCBDb3JlIDUuNC4wIj4KICAgPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4KICAgICAgPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIKICAgICAgICAgICAgeG1sbnM6dGlmZj0iaHR0cDovL25zLmFkb2JlLmNvbS90aWZmLzEuMC8iPgogICAgICAgICA8dGlmZjpPcmllbnRhdGlvbj4xPC90aWZmOk9yaWVudGF0aW9uPgogICAgICA8L3JkZjpEZXNjcmlwdGlvbj4KICAgPC9yZGY6UkRGPgo8L3g6eG1wbWV0YT4KTMInWQAABwNJREFUWAmtV1tsFFUY/s6Z2d22zLYlZakUCRVaQcqlWIiCiS1gTEB9UAO+GR9En3iQGI0xJiSiRB98MjEq8cEQTSBeHhQM0V7whtEGDWC90BYitxahtNtu25058/v/ZzvLbilawJNM5+yZ89+//1LgJhYRNLW1uDfBAvpGiIk2O5auvfFxqIH3ZJ8/u06GN6Z9+wVl5SjcD1IbZa/UPkPyYl2uR4dreoD2bnbYxTlBBRytkHXtAREphP5KuH4lddx9h70yxX05t7yYXwGb6W8nx1jibpl2rFlGBxcG9M18okOrn7Bnk/BAO/4bI0Ue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6BdLhDa5dC6ryU2pHBe1BVO9tUcwfitJt2CLJZUHoG6T7Op75u0IyK31TCPcwFqgPk/KCaD3dFOuZBCO7xvCT/j048b3I3c7F2+WuOW7qdgkucFYlcQ4qop3yzTX7WaKfOCccye3Ts1Etq0+a/BHCF1yPgF3tAUkR6OrtGmo6gl94qqcXKh3rDyrOkPa58URoWcov2Mo6M+0QjrqKB+b7++oMa9Sz+ZkM0mie6aAtnGUvhmxaI+TogPOSQedgWioGSHFLn3v4kLh4HRspNmOGv41k+55siLFp2z6xYeJjhljFcbmxJlr4ga06TbevSByz/glQq4BJx46/c+237PbBqEYKxX3HpmKZEnQnr65X20hqJYaNcLoFOLiJk2LuBbyg7Q0OEn+hm0P3honxFD6rdxYorKpeIoi4YSSvyQHQIbM5t4+YNxLj/OxhVOOE4585qGpjnq+wSx6Q9CtNxTjd5klB+g6Mv36r0+b9cZFi44WYkHdG2ZWb3TtOUOXyVAlKlpGvJIAJ3eBMyfYS5C0qRZGtC85j+4sOasDe9xznPYezhhO/2Q6eP2fSOvYHOjtuQ1a9Q1VKynVDaMc8E0tptdxUsTFpFIYjcZKcbnoaQTNdiqCwNlL4G7oziSqGnT1ALf34vhk4R5zU3qYV9ONp9K88RtouShE68JwaU8dFw5W617shWa9ykeaBIn2hcsvPgL00k45QdTCZuSVcTRNs+8fnyLvooQfR5iujAnR9bxfY2xOVOxFS8SK3Le0l48VyYu1M8HRe5JD8wKPTjYnifaK3Wfn/GChYQ8ZAi6WRzWgqLV5YrsVLnZaVSoXU1g9gOIDwFySiGi+Zdrnzr7J3r+SMuszlcQCRn8lNGcTuSy2jOI7o9mxjZo+vR3ej3tN+ifRSOyUTS0+VMOid93cCubeiy/6TImS0QxRSCq2vxKr45zV+FQnjWH6D2xg+E9EatLcLAdHTgtGGD80D6jM0+aOl4wJgO/f96R2aJKCQ3yvgftRhdFMOpd6oAAAAASUVORK5CYII=" role="presentation" style="pointer-events: none;" width="16" height="16"></div></div> <div class="toggle-thumb"></div></div> <input type="checkbox" aria-label="Switch between Dark and Default theme" class="toggler-screen-reader-only"></div></div>
        </div>
        <div class="Main">
          <div class="Content" id="content"> 
   $endif$

   $if(code_menu)$
   <div class="btn-group pull-right">
     <button type="button" class="btn btn-default btn-xs dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"><span>Code</span> <span class="caret"></span></button>
     <ul class="dropdown-menu" style="min-width: 50px;">
	    $if(code_folding)$
	    <li><a id="rmd-show-all-code" href="#">Show All Code</a></li>
	    <li><a id="rmd-hide-all-code" href="#">Hide All Code</a></li>
	    $if(source_embed)$
	    <li role="separator" class="divider"></li>
	    $endif$
	    $endif$
	    $if(source_embed)$
	    <li><a id="rmd-download-source" href="#">Download Rmd</a></li>
	    $endif$
     </ul>
   </div>
   $endif$

   $for(include-before)$
   $include-before$
   $endfor$
     
   $if(title)$
   <h1 class="title">$title$</h1>
   $endif$
   $if(subtitle)$
   <h1 class="subtitle">$subtitle$</h1>
   $endif$

   $if(downcute)$
   <p class="authors">
   $for(author)$
   $if(author.name)$
     <span class="glyphicon glyphicon-user"></span> $author.name$
     $if(author.affiliation)$
      - $author.affiliation$
     $endif$
     $if(author.email)$
      - $author.email$<
     $endif$
     <br>
   $else$
     <span class="glyphicon glyphicon-user"></span> $author$
   $endif$
   </p>
   $endfor$
   $if(date)$
   <p class="date"><span class="glyphicon glyphicon-calendar"></span> $date$</p>
   $endif$
   $endif$
   $if(readthedown)$
   <!-- readthedown authors -->
   <div id="sidebar">
    <h2><a href="#content">$title$</a></h2>
    <div id="toc">
      $toc$
    </div>
    <div id="postamble" data-toggle="wy-nav-shift" class="status">
      $for(author)$
      $if(author.name)$
      <p class="author"><span class="glyphicon glyphicon-user"></span> $author.name$
	$if(author.affiliation)$
	<br /><span class="author_affil">$author.affiliation$</span>$endif$
	$if(author.email)$
	<br /><a class="author_email" href="mailto:#">$author.email$</a>
	$endif$
      </p>
      $else$
      <p class="author"><span class="glyphicon glyphicon-user"></span> $author$</p>
      $endif$
      $endfor$
      $if(date)$
      <p class="date"><span class="glyphicon glyphicon-calendar"></span> $date$</p>
      $endif$
    </div>
   </div>
   $endif$  

   $if(html_clean)$
   <!-- html_clean authors -->
   $for(author)$
   $if(author.name)$
   <h4 class="author"><em>$author.name$</em></h4>
   <address class="author_afil">
     $if(author.affiliation)$
     $author.affiliation$<br>
     $endif$
     $if(author.email)$
     <a class="author_email" href="mailto:#">$author.email$</a>
     $endif$
   </address>
   $else$
   <h4 class="author"><em>$author$</em></h4>
   $endif$
   $endfor$
   $if(date)$
   <h4 class="date"><em>$date$</em></h4>
   $endif$
   $endif$

   $if(html_docco)$
   <!-- html_docco authors -->
   $for(author)$
   $if(author.name)$
   <h4 class="author"><em>$author.name$</em></h4>
   <address class="author_afil">
     $if(author.affiliation)$
     $author.affiliation$<br>
     $endif$
     $if(author.email)$
     <a class="author_email" href="mailto:#">$author.email$</a>
     $endif$
   </address>
   $else$
   <h4 class="author"><em>$author$</em></h4>
   $endif$
   $endfor$
   $if(date)$
   <h4 class="date"><em>$date$</em></h4>
   $endif$
   $endif$
   
   $if(html_docco)$
   <div id="toc">
     $toc$
   </div>
   $endif$

<!-- Don't indent these lines or it will mess pre blocks indentation --> 
$if(readthedown)$
<div id="main">
$body$
</div>
$endif$
$if(html_clean)$
<div id="content">
$body$
</div>
$endif$
$if(html_docco)$
<div id="content">
$body$
</div>
$endif$
$if(robobook)$
$body$
$endif$
$if(downcute)$
<div class="page-content has-page-title">
$body$
</div>
$endif$

   
   $for(include-after)$
   $include-after$
   $endfor$

   $if(html_clean)$
   </div>
   <div class="col-md-2">
     $if(toc)$
     <div id="toc">
       <button type="button" class="close">×</button>
       $toc$
     </div>
     $endif$
   </div>
   </div>
   </div>
   $endif$
   $if(html_docco)$
   </div>
   </div>
   </div>
   $endif$
   $if(robobook)$
  </section>
  </div>
  </div>
  </div>
  </div>
   $endif$
   $if(downcute)$
  </div>
  </div>
  </div>
  </div>
   $endif$

      

  <script>
    $$(document).ready(function () {

	$if(readthedown)$
	$else$
	// add bootstrap table styles to pandoc tables
	$$('tr.header').parent('thead').parent('table').addClass('table table-condensed');
	$endif$
	
 	$if(thumbnails)$
 	$$('#content img').addClass("image-thumb");
	$endif$
	
	$if(lightbox)$
	$$('#content img:not(.no-lightbox)').addClass("image-lb");
	$$('#content').magnificPopup({
	    type:'image',
	    closeOnContentClick: false,
	    closeBtnInside: false,
	    delegate: '.image-lb',
	    gallery: {enabled: $gallery$ },
	    image: {
	        verticalFit: true,
		titleSrc: 'alt'
	    }
 	});
 	$endif$
    });
  </script>



  $if(mathjax-url)$
  <!-- dynamically load mathjax for compatibility with self-contained -->
  <script>
    (function () {
	var script = document.createElement("script");
	script.type = "text/javascript";
	script.src  = "$mathjax-url$";
	document.getElementsByTagName("head")[0].appendChild(script);
    })();
  </script>
  $endif$

</body>
</html>
