﻿
    function jsInclude(url)
    {
      document.write('<scr' + 'ipt type="text/javascript" src="' + url + '"></scr' + 'ipt>');
    }
    function cssInclude(url)
    {
      document.write('<link href="' + url + '" type="text/css" rel="stylesheet"></link>');
    }

	// skrypty strony
    
    
	// skrypty modułów
    function doPokazHover(IDH)  {  
if (document.getElementById(IDH)!=null)  {      var scrR = document.getElementById(IDH);        if (scrR.src.substring(scrR.src.length-7, scrR.src.length)!="-on.gif")      {        var OldSrc = scrR.src.substring(0, scrR.src.length-8) + "-on.gif";             scrR.src = OldSrc;        }      else      {       scrR.onmouseout = ""          }    }   }       function doPokazOut(IDH)  {   var scrR = document.getElementById(IDH);   var OldSrc = scrR.src.substring(0, scrR.src.length-7) + "-off.gif";    scrR.src = OldSrc;  }

function OtworzURL(Adres) { document.location = Adres; }

$(function() { 
     $("#RealizacjePanel1").html($("#RealizacjePanel1Work").html());
     $("#RealizacjePanel2").html($("#RealizacjePanel2Work").html());
     $("#RealizacjePanel3").html($("#RealizacjePanel3Work").html());
     $("#RealizacjePanel4").html($("#RealizacjePanel4Work").html());

     $("#RealizacjePanel1").scrollable({size: 1}).circular().autoscroll({steps: 1});     
     $("#RealizacjePanel2").scrollable({size: 1}).circular().autoscroll({steps: 1});     
     $("#RealizacjePanel3").scrollable({size: 1}).circular().autoscroll({steps: 1});         
     $("#RealizacjePanel4").scrollable({size: 1}).circular().autoscroll({steps: 1});         

     $("#accordion").tabs("#panels div", {effect: 'horizontal', initialIndex: $("#CurrentTabId").text(), current: 'active'});
});
jsInclude('http://www.grupa26.pl/css/js/jquery.sleep.js'); 

 $(document).ready(function(){
	doAnimate()
	window.setInterval("doAnimate()", 50000);

		for (var x = 1;x < $("#ZaufaliNamLoga tr td").size(); x++) {
		$("#ZaufaliNamLoga"+x).mouseover(function(){
		  $(this).fadeTo(500,0);
  		  $(this).fadeTo(500,1);
		});
		}	

});
 
function doAnimate() {
		for (var x = 1;x < $("#ZaufaliNamLoga tr td").size(); x++) {
		$("#ZaufaliNamLoga"+x).fadeTo(1000,0);
		$("#ZaufaliNamLoga"+x).fadeTo(1000,1);	
		}	
}

