function rotate(obr) 
{
  if (rotator==pocet) {rotator=0;}
  if (window.document.sample)
  {
    if (transtyp=1){transtyp=7};
    sample.filters.revealTrans.transition=transtyp;
    sample.filters.revealTrans.Apply();
    sample.src = obrsrc[rotator];
    sample.filters.revealTrans.Play();
    transtyp=transtyp + 1
  }
  else 
  {
    document.images["obraz"].src = obrsrc[rotator];
  } 
  rotator = rotator + 1
  window.setTimeout('rotate();',doba); 
}
