var msg1=new Array()
msg1[0]="<p align=\"center\"><a href=\"http\://www.anestezjologiairatownictwo.pl/main.php?k0=Anestezjologia w położnictwie i medycynie perinatalnej\"><img src=\"img/awpimp_mala.gif\" border=\"0\"><font class=\"norm\"><br>Książka ta daje Czytelnikowi wgląd w wiedzę i doświadczenie wybitnych osobistości w dziedzinie anestezjologii . . . </a></font></p>"
msg1[1]="<p align=\"center\"><a href=\"http\://www.anestezjologiairatownictwo.pl/zamyslenia.php\"><img src=\"img/zamyslenia_mala.gif\" border=\"0\"><font class=\"norm\"><br>Spotkał nas zaszczyt przedstawienia w jednym tomiku artykułów wstępnych zamieszczanych w kolejnych numerach „Anestezjologii i Ratownictwa”</a></font></p>"
msg1[2]="<p align=\"center\"><a href=\"http\://www.ceea.org.pl\"><img src=\"img/ceea.png\" border=\"0\"><font class=\"norm\"><br>Zaprzaszamy do zapoznania się z ofertą szkoleń Europejskiego Komitetu Edukacji w Anestezjologii CEEA - Ośrodek Bydgosko-Poznański</a></font></p>"
msg1[3]="<p align=\"center\"><a href=\"http\://www.anestezjologiairatownictwo.pl/archiwum/Wytyczne PTP etyka.pdf\"><img src=\"img/etyka_ptp.png\" border=\"0\" width=\"130\" height=\"185\"></a></p>"
/* The variables below are the ones you want to change  */

speed1=60                      // Sets the speed in milliseconds at which the link or text scrolls.
var divwidth1=180            // Sets the width of the div or layer in pixels.  You will have to play with this to get it set correctly.
var divheight1=200            // Sets the height of the div or layer in pixels.  Same as above.

/*
   The variables divincbt, divinctb, divincrl and divinclr set the increment in pixels that the div that contains the text
    or links is moved.  Which one is used is determined by the direction that you pick in the variable whichscroll.
    The variable divinctb would be used if you set whichscroll to 1, divinctb if you set whichscroll to 2, divincrl if
     you set whichscroll to 3 and divinclr if you set whichscroll to 4.  You can change these variables to speed up
     or slow down the movement of the scroll.
*/

var divincbt1=1                 
var divinctb1=-1
var divincrl1=10
var divinclr1=-10

var divpause1=5000        // Sets how long to pause in milliseconds before scrolling the next link or text. 

var divtop1="0"              // divtop and divleft set the top and left positions of the container div or layer in pixels. 
var divleft1="0"               

var divcolor1=""      // Sets the background color of the div or layer

var divname11="cos"  // Sets the name of your div or layer for the first link or text that is displayed
var divname12="cos2"  // Sets the name of your div or layer for the next link or text to be displayed

/*
   The variable whichscroll is used to set the direction of the scrolling.  It is currently set to 1.
    1 = Bottom to Top
    2 = Top to Bottom
    3 = Right to Left
    4 = Left to Right
*/
var whichscroll1="1"


var divinc1
var stopposa1
var stopposb1
var scrollmsga1
var scrollmsgb1 
var thediva1
var thedivb1
var posa1
var posb1
var a=msg1.length
var firsttime1="y"
var divprop1
var whichdiv1=divname11
if(whichscroll1=="1")
  {
   stopposa1=0
   stopposb1=divheight1*-1
   divprop1="top"
   divinc1=divincbt1
  }
if(whichscroll1=="2")
  {
   stopposa1=0
   stopposb1=divheight1
   divprop1="top"
   divinc1=divinctb1
  }
if(whichscroll1=="3")
  {
   stopposa1=0
   stopposb1=divwidth1*-1
   divprop1="left"
   divinc1=divincrl1
  }
if(whichscroll1=="4")
  {
   stopposa1=1
   stopposb1=divwidth1+2
   divprop1="left"
   divinc1=divinclr1
  }

function Scrollboxa1(obja1)
     {
         savobja1=obja1
         posa1=posa1-divinc1
         if(((whichscroll1=="1" || whichscroll1=="3")&&(posa1<=stopposa1))||
           ((whichscroll1=="2" || whichscroll1=="4")&&(posa1>=stopposa1)))
           {
            clearTimeout(scrollmsga1)
            setTimeout("scrollit1()",divpause1)
           } 
         else
             {
              if(document.getElementById) // IE5 and NS6
                {
                 eval("elma1.style."+divprop1+"=posa1")
                 elma1.style.visibility="visible"
                }
              if(document.layers)    // NS4+
                {
                 eval("obja1."+divprop1+"=posa1")
                 document.main1.visibility="show"
                }
              scrollmsga1=setTimeout("Scrollboxa1(savobja1)",speed1)
             }
     }
function Scrollboxb1(objb1)
     {
         savobjb1=objb1
         posb1=posb1-divinc1
         if(((whichscroll1=="1" || whichscroll1=="3")&&(posb1<=stopposb1))||
            ((whichscroll1=="2" || whichscroll1=="4")&&(posb1>=stopposb1)))
           {
            clearTimeout(scrollmsgb1)
           }
         else
              {
               if(document.getElementById) // IE5 and NS6
                 {
                  eval("elmb1.style."+divprop1+"=posb1")
                 }
               if(document.layers)  // NS4+
                 {
                  eval("objb1."+divprop1+"=posb1")
                  objb1.visibility="show"
                 }
               scrollmsgb1=setTimeout("Scrollboxb1(savobjb1)",speed1)
              }
     }
function scrollit1()
   {
    a++
    if(a>=msg1.length)
      {a=0}
    posa1=stopposb1*-1
    posb1=0
    if(firsttime1=="y")
      {
       firsttime1= "n"
       if(document.getElementById)      // IE5 and NS6
         {
          elma1=document.getElementById(divname11)
          elma1.innerHTML=msg1[a]
         }
      if(document.layers)   // NS4+
        {
         thediva1=eval("document.main1.document."+divname11)
         thediva1.document.write(msg1[i])
         thediva1.document.close()
        }
       Scrollboxa1(thediva1)
      }
    else
      {
       if(whichdiv1==divname11)
         {
          if(document.getElementById)  // IE5 and NS6
            {
             elmb1=document.getElementById(divname11)
             elma1=document.getElementById(divname12)
             elma1.innerHTML=msg1[a]
            }
          if(document.layers)  //  NS4+
            {
             thedivb1=eval("document.main1.document."+divname11)
             thediva1=eval("document.main1.document."+divname12)  
             thediva1.document.write(msg1[a])
             thediva1.document.close()
            }
          Scrollboxb1(thedivb1)
          whichdiv1=divname12
          Scrollboxa1(thediva1)
         }
       else
         {
          if(document.getElementById)   // IE5 and NS6
            {
             elmb1=document.getElementById(divname12)
             elma1=document.getElementById(divname11)
             elma1.innerHTML=msg1[a]
             }
          if(document.layers)  // NS4+
            {
             thedivb1=eval("document.main1.document."+divname12)
             thediva1=eval("document.main1.document."+divname11)
             thediva1.document.write(msg1[a])
             thediva1.document.close()
             }
          Scrollboxb1(thedivb1)
          whichdiv1=divname11
          Scrollboxa1(thediva1)
         }
      }
  }
