/* coded by nimai */if (document.createElement && document.getElementsByTagName) {function tocclick() {  if (this.lastChild.className=='hidden')    this.lastChild.className='qqq';  else    this.lastChild.className='hidden';}function jumpto(n) {  var e=document.getElementById('notka'+n);  var top=e.offsetTop;    while (e=e.offsetParent)      top+=e.offsetTop;  window.scroll(0,top-6);}function init() {  var i,j,e,  daty=new Array(),  tytuly=new Array(),  ilekomentow=new Array();  var notki=document.getElementById('content');  e=document.getElementsByTagName('input');  for (i=0;e.length>i;i++)    if (e[i].className=='loginb') {      e[i].onmouseover=function() {this.className='loginb fakelink'};      e[i].onmouseout=function() {this.className='loginb'};    }  e=notki.getElementsByTagName('h1');  for (i=0,j=0;e.length>i;i++)    if (e[i].className=='tytul') {      e[i].id='notka'+(j++);      tytuly.push(e[i].firstChild.innerHTML);    }  if (tytuly.length>1) {    e=notki.getElementsByTagName('li');    for (i=0;e.length>i;i++)      if (e[i].className.indexOf('czas')!=-1)        daty.push(e[i].innerHTML);    e=notki.getElementsByTagName('span');    for (i=0;e.length>i;i++)      if (e[i].className=='nkom')        ilekomentow.push(e[i].innerHTML);    var toc=document.createElement('div');    toc.className='toc';    var S='<div class="tochdr">spis notek</div><div id="toccont" class="hidden">';    for(i=0;tytuly.length>i;i++) {      S+=daty[i].substr(8,2)+'.'+daty[i].substr(5,2);      S+=' <a href="javascript:jumpto('+i+')"> '+tytuly[i]+'</a> ';      S+=ilekomentow[i]+'<br />';    }    S+='</div>';    toc.innerHTML=S;    toc.onclick=tocclick;    document.body.appendChild(toc);  }}window.onload=init;}
