﻿        // Webprovider.pl 2008 (c) 
				// by Artos 
				// ROTACJA OBRAZKOW 0.5a
				function Kolor(id, on) {
        
        if (on=='0') {
        document.getElementById(id).style.background='white';
        document.getElementById(id).style.color='black';
        }
        
        if (on=='1') {
        
        document.getElementById(id).style.background='black';
        document.getElementById(id).style.color='white'
        
        }
        
        
        }
				
				function RotImg(text) {
				    if (text=='s0') {
                m="<B>Wycena</B><br>Dokonaj wstępnej wyceny swojego pokazu \n [<a href='pokazy-pirotechniczne-wycena.php'>zobacz</a>]";
                m2="<a href='pokazy-pirotechniczne-wycena.php' class='js_img_href'><!--wycena--></a>";
                document.getElementById('js_img').style.background='url(slajdy.jpg) no-repeat 0px 0px';
            	  
            	  Kolor('link1','1');
            	  Kolor('link2','0');
            	  Kolor('link3','0');
            	  Kolor('link4','0');
            	  Kolor('link5','0');
            	  Kolor('link6','0');            
            	   
        	   }
        	   if (text=='s1') {
                m="<B>Galeria</B><br> Zobacz zdjęcia z naszych pokazów  \n [<a href='galeria.php'>zobacz</a>]";
                m2="<a href='galeria.php' class='js_img_href'><!--galeria--></a>";
                document.getElementById('js_img').style.background='url(slajdy.jpg) no-repeat -267px 0px';
                
                Kolor('link1','0');
            	  Kolor('link2','1');
            	  Kolor('link3','0');
            	  Kolor('link4','0');
            	  Kolor('link5','0');
            	  Kolor('link6','0');
            	  
             
        	   }
        	   if (text=='s2') {
                m="<B>Chińskie latarnie</B><br>Całkowita nowość na Polskiej scenie iventowej! Pokazy podniebnych latarni to popularne widowisko plenerowe na całym świecie.  \n [<a href='efekty-spec-latarnie.php'>zobacz</a>]";
                m2="<a href='efekty-spec-latarnie.php' class='js_img_href'><!--latarnie--></a>";
                document.getElementById('js_img').style.background='url(slajdy.jpg) no-repeat -534px 0px';
                
                Kolor('link1','0');
            	  Kolor('link2','0');
            	  Kolor('link3','1');
            	  Kolor('link4','0');
            	  Kolor('link5','0');
            	  Kolor('link6','0');
               
        	  
        	   }
        	   if (text=='s3') {
                m="<B>Hurtownia fajerwerków</B><br>zapraszamy do odwiedzenia naszej nowej hurtowni z fajerwerkami  \n [<a href='hurtownia.php'>zobacz</a>]";                
                m2="<a href='hurtownia.php' class='js_img_href'><!--hurtownia--></a>";
                document.getElementById('js_img').style.background='url(slajdy.jpg) no-repeat -803px 0px';
                
                Kolor('link1','0');
            	  Kolor('link2','0');
            	  Kolor('link3','0');
            	  Kolor('link4','1');
            	  Kolor('link5','0');
            	  Kolor('link6','0');
                /*803 1079 1360*/
        	  
        	   }
        	   
        	   if (text=='s4') {
                m="<B>Jak zorganizować pokaz</B><br>Zaplanuj swój pokaz - 10 kroków by zaplonować bezpieczne widowisko pirotechniczne.  \n [<a href='pokazy-pirotechniczne-jak-zorganizowac.php'>zobacz</a>]";                
                m2="<a href='pokazy-pirotechniczne-jak-zorganizowac.php' class='js_img_href'><!--jak zorganizowac--></a>";
                document.getElementById('js_img').style.background='url(slajdy.jpg) no-repeat -1079px 0px';
                
                Kolor('link1','0');
            	  Kolor('link2','0');
            	  Kolor('link3','0');
            	  Kolor('link4','0');
            	  Kolor('link5','1');
            	  Kolor('link6','0');
                
        	  
        	   }
        	   
        	   if (text=='s5') {
                m="<B>Lasery</B><br>Zapoznaj się z możliwościami naszych nowych laserów  \n [<a href='efekty-spec-lasery.php'>zobacz</a>]";
                m2="<a href='efekty-spec-lasery.php' class='js_img_href'><!--lasery--></a>";                
                document.getElementById('js_img').style.background='url(slajdy.jpg) no-repeat -1360px 0px';
                
                Kolor('link1','0');
            	  Kolor('link2','0');
            	  Kolor('link3','0');
            	  Kolor('link4','0');
            	  Kolor('link5','0');
            	  Kolor('link6','1');
                
        	  
        	   }
        //m2="<a href='hurtownia.php' class='js_img_href'>test</a>";
        document.getElementById('js_text').innerHTML=m;
        document.getElementById('js_img').innerHTML=m2;
        
        
        }
        
 
      //ROTACJA OBRAZKÓW
      
      var c=0
      var t
      
      function Rotacja(com)
      
      {
     
          //document.getElementById('txt').value=c;
          c=c+1;
      
            
      if (c==6) {
      
          c=0;
          
          RotImg('s5');
      
      }
      
      else if (c==5) {
      
          RotImg('s4');
      
      }
      
      else if (c==4) {
      
        RotImg('s3');
      
      }
      
      else if (c==3) {
      
        RotImg('s2');
      
      }
      
      else if (c==2) {
      
        RotImg('s1');
      
      }
      
      else if (c==1) {
      
        RotImg('s0');
      
      }
      
      
      
      //com="1";
      //ON/OFF
       if (com==1) {    
      
             t=setTimeout("Rotacja(1)",6000); 
          
          }
    
      

      
      }
      
      // ON & OFF
      
      function Rot(nr,on) {
      
      Rotacja(on);
      RotImg(nr);
      
      }
      
      