<!--
		function ShowPic(id,gal,width,height) {
			width = parseInt(width)+60;
			height = parseInt(height)+170;
			PhotoWindow = window.open('/showpic.php?id='+ id +'&gal='+ gal,'PhotoWindow','width=' + width + ',height=' + height + ',scrollbars=yes,toolbar=no,menubar=no,status=no,location=no,personalbar=no,directories=no,dependent=yes,resizable=yes');
			PhotoWindow.moveTo((screen.width - width)/2,(screen.height - height)/2);
			PhotoWindow.focus();
		}
/* ADMIN */
		
		function AdminShowPhoto(ida,fn,width,height) {
			width = parseInt(width)+20;
			height = parseInt(height)+45;
			PhotoWindow = window.open('/page_admin/admin_sph.php/ida/'+ ida +'/fn/'+ fn,'PhotoWindow','width=' + width + ',height=' + height + ',scrollbars=no,toolbar=no,menubar=no,status=no,location=no,personalbar=no,directories=no,dependent=yes,resizable=no');
			PhotoWindow.moveTo((screen.width - width)/2,(screen.height - height)/2);
			PhotoWindow.focus();
		}
		
		function AdminShowUploadWindow(field,id,width,height) {
			width = parseInt(width)+20;
			height = parseInt(height)+45;
			UploadWindow = window.open('".UPLS."/field/'+ field +'/' + field +'/'+ id,'UploadWindow','width=' + width + ',height=' + height + ',scrollbars=no,toolbar=no,menubar=no,status=no,location=no,personalbar=no,directories=no,dependent=yes,resizable=no');
			UploadWindow.moveTo((screen.width - width)/2,(screen.height - height)/2);
			UploadWindow.focus();
			}

		function NewsletterTest(idnws,width,height) {
			width = parseInt(width)+20;
			height = parseInt(height)+45;
			PhotoWindow = window.open('http://czytaj.org','width=' + width + ',height=' + height + ',scrollbars=no,toolbar=no,menubar=no,status=no,location=no,personalbar=no,directories=no,dependent=yes,resizable=no');
			PhotoWindow.moveTo((screen.width - width)/2,(screen.height - height)/2);
			PhotoWindow.focus();
		}

		function AdminShowCarPhoto(idc,fn,width,height) {
			width = parseInt(width)+20;
			height = parseInt(height)+45;
			PhotoWindow = window.open('/page_admin/admin_scph.php/idc/'+ idc +'/fn/'+ fn,'PhotoWindow','width=' + width + ',height=' + height + ',scrollbars=no,toolbar=no,menubar=no,status=no,location=no,personalbar=no,directories=no,dependent=yes,resizable=no');
			PhotoWindow.moveTo((screen.width - width)/2,(screen.height - height)/2);
			PhotoWindow.focus();
		}


		function AdminShowTuningPhoto(idt,fn,width,height) {
			width = parseInt(width)+20;
			height = parseInt(height)+45;
			PhotoWindow = window.open('/page_admin/admin_stph.php/idt/'+ idt +'/fn/'+ fn,'PhotoWindow','width=' + width + ',height=' + height + ',scrollbars=no,toolbar=no,menubar=no,status=no,location=no,personalbar=no,directories=no,dependent=yes,resizable=no');
			PhotoWindow.moveTo((screen.width - width)/2,(screen.height - height)/2);
			PhotoWindow.focus();
		}


		function PageShowCarPhoto(idc,fn,width,height) {
			width = parseInt(width)+20;
			height = parseInt(height)+45;
			PhotoWindow = window.open('/page_scph.php/idc/'+ idc +'/fn/'+ fn,'PhotoWindow','width=' + width + ',height=' + height + ',scrollbars=no,toolbar=no,menubar=no,status=no,location=no,personalbar=no,directories=no,dependent=yes,resizable=no');
			PhotoWindow.moveTo((screen.width - width)/2,(screen.height - height)/2);
			PhotoWindow.focus();
		}


		function PageShowTuningPhoto(idt,fn,width,height) {
			width = parseInt(width)+20;
			height = parseInt(height)+45;
			PhotoWindow = window.open('/page_stph.php/idt/'+ idt +'/fn/'+ fn,'PhotoWindow','width=' + width + ',height=' + height + ',scrollbars=no,toolbar=no,menubar=no,status=no,location=no,personalbar=no,directories=no,dependent=yes,resizable=no');
			PhotoWindow.moveTo((screen.width - width)/2,(screen.height - height)/2);
			PhotoWindow.focus();
		}


/* SKLEP */

		function PageShowPhoto(ida,file) {
			PhotoWindow = window.open('/page_sph.php/ida/'+ ida +'/file/'+ file,'PhotoWindow','scrollbars=no,toolbar=no,menubar=no,status=no,location=no,personalbar=no,directories=no,dependent=yes,resizable=no');
		}


/* OGOLNE */

		function MM_preloadImages() { //v3.0
		  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
			var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
			if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
		}

		function MM_jumpMenu(targ,selObj,restore){ //v3.0
		  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
		  if (restore) selObj.selectedIndex=0;
		}

		function SetStatus(status_text) {   
			window.defaultStatus = status_text;
			window.status = status_text;
		}

		function CloseWindow() {
			self.close();
		}

/* FORMULARZE */



/* SZUKANIE */

function SHformesy(ktore) {
	var zm1 = document.getElementById("sz_wdziale");
	var zm2 = document.getElementById("sz_autora");
	var zm3 = document.getElementById("sz_tresc");
	
	if(ktore == 1) {
		zm1.style.display = "inline";
		zm2.style.display = "inline";
		zm3.style.display = "inline";
	} else if (ktore == 2) {
		zm1.style.display = "none";
		zm2.style.display = "none";
		zm3.style.display = "none";
	}
}

/* MENU VERT */
/*function PokaSuba(ktorego) {
	var menu = document.getElementById("tmenu");
	var lises = menu.getElementsByTagName("LI");
	for (var i = 0; i < lises.length; i++) {
		node = lises[i];
		if(node.nodeName == 'LI') {
			node.className = 'off';
		}
	}
	ktorego.className = "on";
}
*/
//
//function InitialMen(exp) {
//	var menu = document.getElementById("tmenu");
//	var lises = menu.getElementsByTagName("LI");
//	for (var i = 0; i < lises.length; i++) {
//		node = lises[i];
//		var atrybut = node.getAttribute('ext');
//		if (atrybut == exp) {
//			node.className = "on";	
//		} else {
//			node.className = "off";	
//		}
//	}
//}
//

//-->