﻿
    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;  }

$(document).ready(function() {
$("div.scrollable").scrollable({  items: '#thumbs',  size: 1,  speed: 1000 }).circular().autoscroll({interval: 11000,  steps: 1});
});jsInclude('http://www.grupa26.pl/css/js/jquery.validate.min.js'); 

$(function() {            $("ul.tabs").tabs("div.panes > div", function(event, index) {                         var terms = $("#terms");                        if (index > 0 && !terms.get(0).checked)  {      terms.parent().addClass("error");      return false;      }    terms.parent().removeClass("error");         });     var api = $("ul.tabs").tabs(0);     $("button.next").click(function() {      api.next(); });           $("button.prev").click(function() {      api.prev(); });     });      $().ready(function() {    $("#IleKosztujeStronaWWW").validate({       rules: {         ImieNazwisko: "required",         Miasto: "required",         Adres: "required",         Email: {required: true, email: true},            Telefon: {required: true, minlength: 9}       },       messages: {         ImieNazwisko: "Proszę podać Imię i Nazwisko",         Miasto: "Proszę podać Miasto",         Adres: "Proszę podać Adres",            Email: "Proszę podać prawidłowy adres e-mail",         Telefon: "Proszę podać numer telefonu"       }     });  });   function PokazWynik()  {   
var szukaj = document.getElementById('SzukajTxt').value;   
var adres = 'http://www.grupa26.pl/30-Wyszukiwarka.htm';
location = adres+'?Szukaj='+szukaj;  
} function checkCurrent() {
   if (document.getElementById('Current')!=null)   { 
          if (document.getElementById('m'+document.getElementById('Current').innerHTML)!=null)   {  
            var scrR = document.getElementById('m'+document.getElementById('Current').innerHTML);
            if (scrR.src==null)     {
                   scrR.style.backgroundColor = "#dee0e1";       
                   scrR.style.color = "#00589d";        
            }     
          } 
    }
}

$(document).ready(function() {
checkCurrent();
});

