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){
	var altezza=height+120;
	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 - 560) / 2);
 	var cnty = y + Math.round((h - altezza) / 2);
 	var aa = window.open (url, name, 'left=' + cntx + ',top=' + cnty + ',width=560,height='+altezza);
 	aa.document.open();
 	aa.document.write('<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">\n');
	aa.document.write('<html>\n');
	aa.document.write('<head>\n');
	aa.document.write('<title>Follow Saint Francis</title>\n');
	aa.document.write('<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">\n');
	aa.document.write('<link rel="stylesheet" type="text/css" href="../css/stili.css"/>\n');
	aa.document.write('</head>\n');
	aa.document.write('<body>\n');
	aa.document.write('<table style="height:'+altezza+'px;" class="bgPopup" cellpadding="0" cellspacing="0" border="0" summary="PopUp">\n');
    aa.document.write('<tr>\n');
	aa.document.write('<td colspan="2" height="25"><img src="../images/spacer.gif" width="1" height="1" alt="img"></td>\n');
	aa.document.write('</tr>\n');
	aa.document.write('<tr>\n');
	aa.document.write('<td width="430" height="1"><img src="../images/spacer.gif" width="1" height="1" alt="img"></td>\n');
	aa.document.write('<td width="130" valign="top"><a href="javascript:self.close();"><img src="../images/btnClose.gif" width="96" height="17" alt="img" border="0"></a></td>\n');
	aa.document.write('</tr>\n');
	aa.document.write('<tr>\n');
	aa.document.write('<td colspan="2" height="40"><img src="../images/spacer.gif" width="1" height="1" alt="img"></td>\n');
	aa.document.write('</tr>\n');
	aa.document.write('<tr>\n');
	aa.document.write('<td colspan="2" height="1" valign="top" align="center"><img src="'+url+'" width="'+width+'" height="'+height+'" alt="img"></td>\n');
	aa.document.write('</tr>\n');
	aa.document.write('<tr>\n');
	aa.document.write('<td colspan="2"><img src="../images/spacer.gif" width="1" height="1" alt="img"></td>\n');
	aa.document.write('</tr>\n');
	aa.document.write('</table>\n');
	aa.document.write('</body>\n');
	aa.document.write('</html>');
 	aa.document.close();
}

function popTour(){
	var width=640;
	var height=480;
	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 ('', name, 'left=' + cntx + ',top=' + cnty + ',width=' + width + ',height=' + height);
 	aa.document.open();
 	aa.document.write('<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">\n');
	aa.document.write('<html>\n');
	aa.document.write('<head>\n');
	aa.document.write('<title>Follow Saint Francis</title>\n');
	aa.document.write('<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">\n');
	aa.document.write('<link rel="stylesheet" type="text/css" href="../css/stili.css"/>\n');
	aa.document.write('</head>\n');
	aa.document.write('<body>\n');
	aa.document.write('<table cellpadding="0" cellspacing="0" border="0" summary="PopUp">\n');
   aa.document.write('<tr>\n');
	aa.document.write('<td colspan="2" height="1" valign="top" align="center">\n');
	aa.document.write('<object type="application/x-shockwave-flash" data="video.swf" width="640" height="480">\n');
	aa.document.write('<param name="movie" value="video.swf" />\n');
	aa.document.write('<img src="../images/spacer.gif" width="640" height="480" alt="img" />\n');
	aa.document.write('</object>\n');
	aa.document.write('</td>\n');
	aa.document.write('</tr>\n');
	aa.document.write('</table>\n');
	aa.document.write('</body>\n');
	aa.document.write('</html>');
 	aa.document.close();
}