function credits(url,width,height){
	if (document.all){
    	var x = window.screenLeft;
      	var y = window.screenTop;
      	var w = window.document.body.offsetWidth;
      	var h = window.document.body.offsetHeight;
 	} else {
   		var x = window.screenX;
   		var y = window.screenY;
   		var w = window.outerWidth;
   		var h = window.outerHeight;
 }
 var cntx = x + Math.round((w - width) / 2);
 var cnty = y + Math.round((h - height) / 2);
 var aa = window.open (url, null, 'left=' + cntx + ',top=' + cnty + ',width=' + width + ',height=' + height);
}

function popImage(url,name,width,height){
	if (document.all){
    	var x = window.screenLeft;
     	var y = window.screenTop;
      	var w = window.document.body.offsetWidth;
      	var h = window.document.body.offsetHeight;
 	} else {
   		var x = window.screenX;
   		var y = window.screenY;
   		var w = window.outerWidth;
   		var h = window.outerHeight;
 	}
 	var cntx = x + Math.round((w - width) / 2);
 	var cnty = y + Math.round((h - height) / 2);;
 	var aa = window.open (url, name, 'left=' + cntx + ',top=' + cnty + ',width=' + width + ',height=' + height);
 	aa.document.open();
	if(navigator.appName== "Microsoft Internet Explorer"){
 		aa.document.write('<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html><title>Nostra Signora Madre della Misericordia</title><body bgcolor="#FFFFFF" style="margin: 0px"><table style="width:'+width+'px;" cellpadding="0" cellspacing="0" border="0" align="center"><tr><td align="center"><img src="'+url+'" alt="'+name+'" width="'+width+'" height="'+height+'"></td></tr></table></body></html>');
	}else{
		aa.document.write('<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html><title>Nostra Signora Madre della Misericordia</title><body bgcolor="#FFFFFF" style="margin: 0px"><img src="'+url+'" alt="'+name+'" width="'+width+'" height="'+height+'"></body></html>');
	}
 	aa.document.close();
}

function popUp(url,name,width,height){
 	if (document.all){
    	var x = window.screenLeft;
      	var y = window.screenTop;
      	var w = window.document.body.offsetWidth;
      	var h = window.document.body.offsetHeight;
 	} else {
   		var x = window.screenX;
   		var y = window.screenY;
   		var w = window.outerWidth;
   		var h = window.outerHeight;
 	}
 	var cntx = x + Math.round((w - width) / 2);
 	var cnty = y + Math.round((h - height) / 2);
 	var aa = window.open (url, name, 'resizable=yes,scrollbars=yes,left=' + cntx + ',top=' + cnty + ',width=' + width + ',height=' + height);
}