function putFlashHere( sPath, iWidth, iHeight, sID) {
with (document) {
write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="../download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0/#version=5,0,0,0/default.htm" width="'+iWidth+'" height="'+iHeight+'" id="'+sID+'">');
write('  <param name="movie" value="'+sPath+'" />');
write('  <param name="quality" value="best" />');
write('  <param name="wmode" value="transparent" />');
write('  <param name="menu" value="false" />');
write('  <embed src="'+sPath+'" quality="best" wmode="transparent" menu="false" width="'+iWidth+'" height="'+iHeight+'" swLiveConnect=true name="'+sID+'" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="../www.macromedia.com/go/getflashplayer" />');
write('</object>');
}
}
//¹

function popupWindow(url) {
  window.open(url,'popupWindow','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,copyhistory=no,width=600,height=400,screenX=150,screenY=150,top=150,left=150')
}

function CaricaFoto(img){
  foto1= new Image();
  foto1.src=(img);
  Controlla(img);
}
function Controlla(img){
  if((foto1.width!=0)&&(foto1.height!=0)){
    viewFoto(img);
  }
  else{
    funzione="Controlla('"+img+"')";
    intervallo=setTimeout(funzione,20);
  }
}
function viewFoto(img){
  largh=foto1.width+20;
  altez=foto1.height+20;
  stringa="width="+largh+",height="+altez;
  finestra=window.open(img,"",stringa);
}


function getAdvSearchForm(param)
{
	document.getElementById(param).style.display = "block";
	document.getElementById('searchContainer').style.height = "295px";
	document.getElementById('searchContainer').style.background = "url(./html/images/bg_advszukaj.gif) no-repeat";
	document.getElementById('advSearchLink').innerHTML = '<a href="javascript:rollAdvSearchForm(\'advSearchDiv\')">zwiÅ„</a>&nbsp;&laquo;';
}
function rollAdvSearchForm(param)
{
	document.getElementById(param).style.display = "none";
	document.getElementById('searchContainer').style.height = "90px";
	document.getElementById('searchContainer').style.background = "url(./html/images/bg_szukaj.gif) no-repeat";
	document.getElementById('advSearchLink').innerHTML = '<a href="javascript:getAdvSearchForm(\'advSearchDiv\')">opcje zaawansowane</a>&nbsp;&raquo;';
}