/**
* Autorun
*/
function autorun() {
	$(document).ready(function(){
		$("a[rel^='prettyPhoto']").prettyPhoto({
			animationSpeed: 'normal', /* fast/slow/normal */
			opacity: 0.80, /* Value between 0 and 1 */
			showTitle: true, /* true/false */
			allowresize: true, /* true/false */
			default_width: 500,
			default_height: 344,
			counter_separator_label: '/', /* The separator for the gallery counter 1 "of" 2 */
			theme: 'facebook', /* light_rounded / dark_rounded / light_square / dark_square / facebook */
			hideflash: false, /* Hides all the flash object on a page, set to TRUE if flash appears over prettyPhoto */
			wmode: 'opaque', /* Set the flash wmode attribute */
			autoplay: true, /* Automatically start videos: True/False */
			modal: false, /* If set to true, only the close button will close the window */
			changepicturecallback: function(){}, /* Called everytime an item is shown/changed */
			callback: function(){} /* Called when prettyPhoto is closed */		
		});
	});
}



function img_zoom(nazwa,x,y)
{
 if (y>screen.height) {
   x = x + 20;
   y = screen.height-100;
 }
 x = x+17;
 y = y+5;
 gnwindow=window.open("", "","toolbar=0, scroll status=0, menubar=0, scrollbars=1, resizable=1, width="+x+", height="+y);
 var tmp = gnwindow.document;
	tmp.write('<html><head><title>popup</title></head>');
	tmp.write('<body><p>Please wait. Loading.</p>');
	tmp.write('<div style="position:absolute; left:0; top:0"><a href="javascript:window.close()"><img src="'+nazwa+'" border=0></a></div>');
	tmp.write('</body></html>');
	tmp.close();
 if (gnwindow.focus) { gnwindow.focus(); }
}

function findset(slowo)
{
 document.formfind.s.value=slowo;
 document.formfind.submit();
}

