\documentclass[twoside]{jsarticle}
\usepackage{fancyhdr}

\setlength{\unitlength}{18mm}
\newcommand{\blob}{\rule[-.2\unitlength]{2\unitlength}{.5\unitlength}}

\newcommand\rblob{\thepage
  \begin{picture}(0,0)
    \put(1,-\value{section}){\blob}
  \end{picture}}

\newcommand\lblob{%
  \begin{picture}(0,0)
    \put(-3,-\value{section}){\blob}
  \end{picture}%
  \thepage}

\pagestyle{fancy}
\cfoot{}

\newcounter{line}
\newcommand{\secname}[1]{\addtocounter{line}{1}%
  \put(1,-\value{line}){\blob}
  \put(-7.5,-\value{line}){\Large \arabic{line}}
  \put(-7,-\value{line}){\Large #1}}

\newcommand{\overview}{\thepage
  \begin{picture}(0,0)
    \secname{Introduction}
    \secname{The first year}
    \secname{Specialisation}
    \secname{The second year}
  \end{picture}}

\def\iroh{色は匂へど散りぬるを我が世誰ぞつねならむ
有為の奥山今日越えて浅き夢見じ酔ひもせず一二三\\}

\begin{document}

\fancyhead[R]{\overview}\mbox{}\newpage % This produces the overview page
\fancyhead[R]{} % Front matter may follow here
\clearpage
\fancyhead[RE]{\rightmark}
\fancyhead[RO]{\rblob}
\fancyhead[LE]{\lblob}
\fancyhead[LO]{\leftmark}


\section{Introduction}

\iroh\iroh\iroh\iroh
\iroh\iroh\iroh\iroh

\iroh\iroh\iroh\iroh
\iroh\iroh\iroh\iroh

\section{The first year}

\iroh\iroh\iroh\iroh
\iroh\iroh\iroh\iroh

\iroh\iroh\iroh\iroh

\newpage

\iroh\iroh\iroh\iroh

\section{Specialisation}

\iroh\iroh\iroh\iroh
\iroh\iroh\iroh\iroh

\newpage

\iroh\iroh\iroh\iroh
\iroh\iroh\iroh\iroh

\iroh\iroh\iroh\iroh
\iroh\iroh\iroh\iroh

\section{The second year}

\iroh\iroh\iroh\iroh
\iroh\iroh\iroh\iroh

\newpage

\iroh\iroh\iroh\iroh
\iroh\iroh\iroh\iroh

\newpage

\iroh\iroh\iroh\iroh
\iroh\iroh\iroh\iroh

\end{document}
