

/*my irritating nrc script!! */
function clickIE() {if (document.all) {return false;}}
function clickNS(e) {if 
(document.layers||(document.getElementById&&!document.all)) {
if (e.which==2||e.which==3) {return false;}}}
if (document.layers) 
{document.captureEvents(Event.MOUSEDOWN);document.onmousedown=clickNS;}
else{document.onmouseup=clickNS;document.oncontextmenu=clickIE;}
/*end my irritating nrc script!! */

var rp = "http://haslemerebells.members.beeb.net/"; //relative path

function getPageTop() {
	
	return '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">'
	+'<html>'
	+'<head>'
	+'<title>haslemerebells.com</title>'
	+'<META HTTP-EQUIV="imagetoolbar" CONTENT="no">'
	+'<script language="JavaScript" src="'+rp+'script/script.js"></script>'
	+'</head>'
	+'<body bgcolor="#FFFFFF" leftmargin=0 topmargin=0 marginheight="0" marginwidth="0">'
	+'<center>'
	+'<table cellspacing="0" cellpadding="0" border="0" width="720" align="center">'
	+'<tr>'
	+'<td>'
	+'<img src="'+rp+'images/spacer.gif" width="540" height="5" alt="" border="0"><br>'
	+'</td>'
	+'</tr>'
	+'</table>'
	+'<table cellspacing="0" cellpadding="0" border="0" width="720" align="center">'
	+'<tr>'
	+'<td width="16" valign="top" bgcolor="#000000">&nbsp;</td>'
	+'<td width="230" valign="top" bgcolor="#000000"><img src="'+rp+'images/spacer.gif" width="230" height="15" alt="" border="0"></td>'
	+'<td width="458" valign="top" bgcolor="#000000"><img src="'+rp+'images/spacer.gif" width="458" height="15" alt="" border="0"></td>'
	+'<td width="16" valign="top" bgcolor="#000000">&nbsp;</td>'
	+'</tr>'
	+'<tr>'
	+'<td valign="top" colspan="4" bgcolor="#000000"><img src="'+rp+'images/spacer.gif" width="720" height="10" alt="" border="0"></td>'
	+'</tr>'
	+'</table>';
	

}

function getPageBottom() {
	return '<table cellspacing="0" cellpadding="0" border="0" width="720" align="center">'
	+'<tr>'
	+'<td valign="top" colspan="4" bgcolor="#000000"><img src="'+rp+'images/spacer.gif" width="720" height="10" alt="" border="0"></td>'
	+'</tr>'
	+'<tr>'
	+'<td width="16" valign="top" bgcolor="#000000">&nbsp;</td>'
	+'<td width="230" valign="top" bgcolor="#000000"><img src="'+rp+'images/spacer.gif" width="230" height="15" alt="" border="0"></td>'
	+'<td width="458" valign="top" bgcolor="#000000"><img src="'+rp+'images/spacer.gif" width="458" height="15" alt="" border="0"></td>'
	+'<td width="16" valign="top" bgcolor="#000000">&nbsp;</td>'
	+'</tr>'
	+'</table>'
	+'<table cellspacing="0" cellpadding="0" border="0" width="720" align="center">'
	+'<tr>'
	+'<td valign="top" align="left" bgcolor="#FFCC00">'
	+'<font color="#777777" face="Verdana, Helvetica, Arial" size="1">© haslemerebells.com all rights reserved 2003-2004</font>&nbsp;&nbsp;&nbsp;<a href="http://www.haslemerebells.com/terms"><font color="#999999" face="Verdana, Helvetica, Arial" size="1"><u>terms and conditions</u></font></a>'
	+'</td>'
	+'<td valign="top" align="right" bgcolor="#FFCC00">&nbsp;</td>'
	+'</tr>'
	+'</table>'
	+'</body>'
	+'</html>';
}


function showImageAtPath(filename, copyrightwarning, relativePath) {
	rp = relativePath;
	showImage(filename, copyrightwarning);
}

function showImage(filename, copyrightwarning) {

	var output = getPageTop();
	output += '<table cellspacing="0" cellpadding="0" border="0" bgcolor="#000000" width="720" align="center">'
	+'<tr>'
	+'<td width="16" valign="top"><img src="'+rp+'images/spacer.gif" width="16" height="1" alt="" border="0"></td>'
	+'<td width="688" valign="top"><img src="'+rp+'images/spacer.gif" width="688" height="1" alt="" border="0"></td>'
	+'<td width="16" valign="top"><img src="'+rp+'images/spacer.gif" width="16" height="1" alt="" border="0"></td>'
	+'</tr>'
	+'<tr>'
	+'<td valign="top" bgcolor="#000000"><img src="'+rp+'images/spacer.gif" width="16" height="15" alt="" border="0"></td>'
	+'<td valign="top" align="center" bgcolor="#000000"><img src="'+filename+'" alt="" border="0"></td>'
	+'<td valign="top" bgcolor="#000000"><img src="'+rp+'images/spacer.gif" width="16" height="10" alt="" border="0"></td>'
	+'</tr>';


	if (null != copyrightwarning) output += '<tr><td><br></td><td valign="top"><br><center><font color="#999999" face="Verdana, Helvetica, Arial" size="1">';

	if (1 == copyrightwarning) {
		output += 'this image is the property of the Haslemere Bells Trust';
	}
	if (null != copyrightwarning) output += '</font></center></td><td><br></td></tr>';


	output += '</table>';


	output += getPageBottom();
	
	document.write(output);
}


