 
// preload 
 
  if (document.images)
    {
      preload_image_object = new Image();
      // ustwiam sciezki
      image_url = new Array();
      image_url[0] = "../img/load.gif";
      image_url[1] = "../img/logo_id_blue.jpg";
     
       var i = 0;
       for(i=0; i<=1; i++) 
         preload_image_object.src = image_url[i];
    }
    
    
// tlo formularzy    

function Active(what) {
 if(!document.layers) { what.style.backgroundColor='#F7FEFF' }
}
function NotActive(what) {
 if(!document.layers) { what.style.backgroundColor='#f5f5f5' }
}


//weryfikacja formularz
 
function SprawdzFormularz(d) {

if (d.tytul.value=='') {
alert('Podaj tytuł wiadomości.');
document.getElementById("ctytul").style.border = "solid #cc3333 1px";
return false;
}

if (d.name.value=='') {
alert('Podaj imię.');
document.getElementById("cname").style.border = "solid #cc3333 1px";
return false;
}

if (d.telefon.value=='') {
alert('Podaj numer telefonu.');
document.getElementById("ctelefon").style.border = "solid #cc3333 1px";
return false;
}

if (d.comment.value=='') {
alert('Podaj treśc wiadomości.');
document.getElementById("ccomment").style.border = "solid #cc3333 1px";
return false;
}

else {
return true;
}
}

// rozwin formularz

var stan;
	  function PokazUkryj(nazwa) {
	     stan=(document.getElementById(nazwa).style.display=="none")?true:false;
		  document.getElementById(nazwa).style.display=(stan)?"block":"none";
}




// lightbox

$(function() {
	// Use this example, or...
	$('a[@rel*=lightbox]').lightBox(); // Select all links that contains lightbox in the attribute rel
	// This, or...
//	$('#gallery a').lightBox(); // Select all links in object with gallery ID
	// This, or...
//	$('a.lightbox').lightBox(); // Select all links with lightbox class
	// This, or...
//	$('a').lightBox(); // Select all links in the page
	// ... The possibility are many. Use your creative or choose one in the examples above
});






