/* ZAMIANA SZUKANIA (NORMALNE/ZAAWANSOWANE) */

function zamien_search() 
{ 
   if(document.getElementById('searchadv').style.display=='none') 
   { 
      document.getElementById('searchadv').style.display='block';
      document.getElementById('searchpl').style.display='none';
   }
   else 
   { 
      document.getElementById('searchadv').style.display='none'
	  document.getElementById('searchpl').style.display='block'
   } 

}
/* KONIEC ZAMIANY SZUKANIA (NORMALNE/ZAAWANSOWANE) */
/* -------------------------------------------------------------- */
/* ZAMIANA BUTTONOW W MENU */

function canManipulateImages() {
	if (document.images)
		return true;
	else
		return false;
}

function preLoadImage(imageURL) {
	if (gImageCapableBrowser) {
		image = new Image();
		image.src = imageURL;
		return image;
	}
}


function changeButtonImage(buttonName,sourceImage) {
	if (gImageCapableBrowser) {
		document [buttonName].src = sourceImage.src;
		return true;
	}
}

gImageCapableBrowser = canManipulateImages();

button01Inactive = preLoadImage("img/buton1.png");
button01Active = preLoadImage("img/buton1b.png");

button02Inactive = preLoadImage("img/buton2.png");
button02Active = preLoadImage("img/buton2b.png");

button03Inactive = preLoadImage("img/lupka.jpg");
button03Active = preLoadImage("img/lupka-over.jpg");

/* KONIEC ZAMIANY BUTTONOW W MENU */
/* --------------------------------------------------------- */
/* ZMIENIAJĄCE SIĘ LOGO */

var SlideShowSpeed = 1000;
var CrossFadeDuration = 2;
var Picture = new Array();

Picture[1]  = 'img/wineta1o.png';
Picture[2]  = 'img/wineta1.png';

var tss;
var iss;
var jss = 1;
var pss = Picture.length-1;

var preLoad = new Array();
for (iss = 1; iss < pss+1; iss++){
preLoad[iss] = new Image();
preLoad[iss].src = Picture[iss];}

function runSlideShow(){
if (document.all){
document.images.PictureBox.style.filter="blendTrans(duration=2)";
document.images.PictureBox.style.filter="blendTrans(duration=CrossFadeDuration)";
document.images.PictureBox.filters.blendTrans.Apply();}
document.images.PictureBox.src = preLoad[jss].src;
if (document.all) document.images.PictureBox.filters.blendTrans.Play();
/*jss = jss + 1;*/
}
function runSlideShowBack(){
if (document.all){
document.images.PictureBox.style.filter="blendTrans(duration=2)";
document.images.PictureBox.style.filter="blendTrans(duration=CrossFadeDuration)";
document.images.PictureBox.filters.blendTrans.Apply();}
document.images.PictureBox.src = preLoad[jss].src;
if (document.all) document.images.PictureBox.filters.blendTrans.Play();
jss = jss - 1;
}

/* KONIEC ZMIENIAJĄCEGO SIĘ LOGO */
