 //Te funkcje nie zawieraja szkodliwych tresci
 
 function Okno(URL,FotoGalery,l,t,w,h) {
   parfoto = "location=no,scrollbars=no,menubar=no,toolbar=no,resizable=no" +
   ",left=" + l + ",top=" + t + ",width=" + w + ",height=" + h;
   foto = window.open("", FotoGalery, parfoto);
   foto.document.open()
   window.foto.resizeTo(w,h);
   foto.document.write("<html>\n<head>\n<title>Foto-" + FotoGalery,"</title>\n</head>\n<body topmargin=5 leftmargin=5 bgcolor=#ddddff>\n<img src=" + URL,"\n</body>\n</html>");
   foto.document.close();
   foto.focus();
   }


       function makeArray(n) {
         this.length = n;
       }

       function stopLinia() {
         if (bannerRunning)
           clearTimeout(timerID);
         bannerRunning = false;
       }

       function startLinia() {
         stopLinia();
         showLinia();
       }

       function showLinia() {
         var text = ar[currentMessage];
         if (offset < text.length) {
           if (text.charAt(offset) == " ")
             offset++;                       
           var partialMessage = text.substring(0, offset + 1);
           window.status = partialMessage;
           offset++;
           timerID = setTimeout("showLinia()", speed);
           bannerRunning = true;
         } else {
           offset = 0;
           currentMessage++;
           if (currentMessage == arlength)
             currentMessage = 0;
           timerID = setTimeout("showLinia()", pause);
           bannerRunning = true;
         }
       }

       var speed = 120
       var pause = 1200
       var timerID = null;
       var bannerRunning = false;
       var currentMessage = 0;
       var offset = 0;

       var arlength =8;
       var ar = new makeArray(arlength);
       ar[0] = "      Witamy !!!";
       ar[1] = "      Części zamienne do samochodów, przyczep transportowych i rolniczych.";
       ar[2] = "      Zabudowa furgonów - pojazdów specjalnych.";
       ar[3] = "      Diagnostyka pojazdów - Badania techniczne - Naprawy bieżące - Serwis podwozia.";
       ar[4] = "      Tel.:  (0-13) 461-10-16    461-10-17";
       ar[5] = "      Fax :  (0-13) 461-18-10";
       ar[6] = "      E-mail: biuro@san-ust.com.pl   produkcja@san-ust.com.pl";
       ar[7] = "      Serdecznie zapraszamy !!!";

