function flash (url,width,height) {
document.write('<object type="application/x-shockwave-flash" data="' + url + '" width="' + width + '" height="' + height + '">');
document.write('<param name="movie" value="' + url + '">');
document.write('</object>');
}


function ukryj_pokaz(element){
	if(document.getElementById(element).className=='') 
	{
	document.getElementById(element).className = 'dnone';
	}
 	else
	{
	document.getElementById(element).className = '';
	}
}


function selecturl(s) { 
   var gourl = s.options[s.selectedIndex].value;  window.top.location.href = gourl; 
} 


function preLoadPic(index)
{
 if (Pic[index] != ''){
         window.status='Loading : '+Pic[index]
         preLoad[index] = new Image()
         preLoad[index].src = Pic[index]
         Pic[index] = ''
         window.status=''
 }
}

function runSlideShow(){
if (document.all){
     document.images.SlideShow.style.filter="blendTrans(duration=2)"
         document.images.SlideShow.style.filter= "blendTrans(duration=crossFadeDuration)"
document.images.SlideShow.filters.blendTrans.Apply()
 }
 document.images.SlideShow.src = preLoad[j].src
 if (document.all){
    document.images.SlideShow.filters.blendTrans.Play()
 }
 
 pos = j

 j = j + 1
 if (j > (p-1)) j=0
 t = setTimeout('runSlideShow()', slideShowSpeed)
 preLoadPic(j)
}

function SprawdzEmail(AdresEmail) 
{
var TestEmail =/^[^@]+@([a-z0-9\-]+\.)+[a-z]{2,4}$/i;
var Wynik = AdresEmail.match(TestEmail);

if (Wynik == null) 
{
alert("Niepoprawnie wpisany adres e-mail.");
return false;
}
return true;
}

function show_hide (objekt)
{
if (document.all[objekt].style.display=='') 
	{document.all[objekt].style.display='none'; return '0';} 
else 
	{document.all[objekt].style.display=''; return '1';}
}


function movein(which)
{
which.className = 'but2';
}
function moveout(which)
{
which.className = 'but1';
}