<?php 
$time = microtime(); $time = explode(" ", $time); $time = $time[1] + $time[0]; $startload = $time;
$uri=parse_url("http://".$_SERVER["HTTP_HOST"].$_SERVER["REQUEST_URI"]);
if(!$uri) { header("Status: 400 Bad Request"); exit; }
$path_excess=substr($uri["path"], strlen($_SERVER["SCRIPT_NAME"]));
if(strlen($path_excess)) { header("Status: 404 Not Found"); exit; }
header("Content-type: text/html; charset=utf-8");
header("Last-Modified: " . gmdate("D, d M Y H:i:s", getlastmod()) . " GMT");
ob_start();
$gzipthis = (filesize(__FILE__)>65535);
if($gzipthis) ob_start("ob_gzhandler");
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
 
<head>
<meta http-equiv="Content-Style-Type" content="text/css" />
<meta http-equiv="Content-Type" content="application/xhtml\+xml; charset=utf-8" />
<meta http-equiv="Content-Language" content="en-gb" />
<link rel="stylesheet" type="text/css" href="../genstyles.css" />
<title>Untitled 1</title>
<link rel="search" href="/search.html" />
<link rel="author" href="/Niall_stuff/vdiary/bio.html" />
 
</head>
 
<body>
	<div class="donationbox">
	<div style="width: 80%; border: thick; border-style: double; text-align: center; margin-left:auto; margin-right: auto;  border-radius: 9px; " class="shadow8">
	<p><img alt="A pint of beer" style="float:left; margin-right: 8px" src="costacoffee.jpg" /><img alt="A pint of beer" style="float:right; margin-bottom: 0.5em;" src="beamishPint.png" />Would you like to buy Niall a beer/coffee to thank him for writing &amp; maintaining this page?
	A beer or coffee costs around £2.99 here in Cork, Ireland.</p>
	<p>Thanks to recent donators: <strong>Keith P, Daniel H, Chris E, Mary P, Joseph S, Patricia S, Michael W, Adam K</strong></p>
	<iframe id="currencyframe" width="300" height="160" src="donatesrc.html" frameborder="0" marginwidth="0" marginheight="0" scrolling="no" style="background-color:transparent;"></iframe>
	<script type="text/javascript"><!--
	function TogglePaymentOptions()
	{
	  if(document.getElementById("paymentoptions").style.display=='block')
	  {
	    document.getElementById("paymentoptions").style.display='none';
	    document.getElementById("togglepaymenttext").innerText='Click to show Payment Options';
	  }
	  else
	  {
	    document.getElementById("paymentoptions").style.display='block';
	    document.getElementById("togglepaymenttext").innerText='Click to hide Payment Options';
	  }
	}
	//--></script>
	<p><a id="togglepaymenttext" href="javascript:TogglePaymentOptions()">
	Click to show Payment Options</a></p>
	<table id="paymentoptions" style="width: 100%; display: none;">
	<tr><td colspan="2">Amount to donate:
	£<input id="donateamount" size="5" type="text" value="2.99" onkeyup="javascript:calcPayments()" onchange="javascript:calcPayments()" />
    </td>
	</tr>
	<tr>
	<td valign="top">After fees =£<span id="paypaloutput">+3.9%+£0.20</span> via Paypal (takes debit &amp; credit
		cards without needing prior account creation):</td>
	<td>
	<form id="_xclick" action="https://www.paypal.com/us/cgi-bin/webscr" method="post">
	<div><input type="hidden" name="cmd" value="_xclick" />
	<input type="hidden" name="business" value="SSRDT9SCPM8H4" />
	<input type="hidden" name="item_name" value="One coffee or beer for Niall" />
	<input type="hidden" name="currency_code" value="GBP" />
	<input type="hidden" name="amount" value="3.47" />
	<input alt="" src="paypal.png" type="image" />
	</div></form>
	</td>
	</tr>
	<tr>
	<td valign="top">After fees =£<span id="googleoutput">+3.5%+£0.20</span> via Google Checkout:</td>
	<td>
	<form action="https://checkout.google.com/cws/v2/Merchant/816503374014798/checkoutForm" id="BB_BuyButtonForm" method="post">
	<div><input name="item_name_1" type="hidden" value="One coffee or beer for Niall"/>
	<input name="item_description_1" type="hidden" value=""/>
	<input name="item_quantity_1" type="hidden" value="1"/>
	<input name="item_price_1" type="hidden" value="3.29"/>
	<input name="item_currency_1" type="hidden" value="GBP"/>
	<input name="_charset_" type="hidden" value="utf-8"/>
	<input alt="" src="https://checkout.google.com/buttons/buy.gif?merchant_id=816503374014798&amp;w=121&amp;h=44&amp;style=white&amp;variant=text&amp;loc=en_US" type="image"/>
	</div></form>
	</td>
	</tr>
	</table>	
	<script type="text/javascript"><!--
	function calcPayments() {
	   var v=Math.round(+document.getElementById("donateamount").value*100)/100.0;
 
	   var paypalv=(v*1.039)+0.2;
	   paypalv=Math.round(paypalv*100)/100.0;
	   document.getElementById("paypaloutput").innerHTML=paypalv;
	   document.forms["_xclick"].amount.value=paypalv;
 
	   var googlev=(v*1.034)+0.2;
	   googlev=Math.round(googlev*100)/100.0;
	   document.getElementById("googleoutput").innerHTML=googlev;
	   document.forms["BB_BuyButtonForm"].item_price_1.value=googlev;
	}
	calcPayments();
	//--></script>
	</div>
	</div>
 
</body>
 
</html>
<?php if($gzipthis) ob_end_flush();
header("Content-Length: " . ob_get_length());
$time = microtime(); $time = explode(" ", $time); $time = $time[1] + $time[0]; $finish = $time; $total_time = round(($finish - $startload), 4); header("X-Page-Build-Time: " . $total_time);
ob_end_flush();
?>