function newImage(arg) {
	if (document.images) {
		rslt = new Image();
		rslt.src = arg;
		return rslt;
	}
}

function changeImages() {
	if (document.images && (preloadFlag == true)) {
		for (var i=0; i<changeImages.arguments.length; i+=2) {
			document[changeImages.arguments[i]].src = changeImages.arguments[i+1];
		}
	}
}

var preloadFlag = false;
if (document.images) {
   preloadFlag = true;
}

function change(rys, naco) {
	if (preloadFlag == true) rys.src = naco.src;
	return true;
}

function View2(url,x,y){
   var newWindow=window.open('pic.php?url='+url,'n','width='+x+',height='+y+',left=10,top=10');
   newWindow.focus();
}

   function View(fota,x,y,tytul){
     tytul=escape(tytul);
     var newWindow=window.open('photo.html?photo='+fota+'&tytul='+tytul,'Photo','width='+x+',height='+y+',left=10,top=10');
     newWindow.focus();
   }

function PPrint(id){
   var PWindow=window.open('dd.php?f_print=1&aid='+id,'n','width=580,height=550,left=10,top=10,scrollbars');
   PWindow.focus();
}

function OpenW(url){
   var PWindow=window.open('oprawy/'+url,'oculus','width=500,height=550,left=10,top=10,scrollbars');
   PWindow.focus();
}

function Jump(where){
   if (where!='#' && where!='') location.href=where;
}

