// JavaScript Documentvar type = "IE";function MM_reloadPage(init) {  //reloads the window if Nav4 resized  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();}MM_reloadPage(true);function preloadImages() {	if (document.images) {			img1on = new Image();			img1on.src = "/images/closeover.gif";				img1off = new Image();			img1off.src = "/images/close.gif";				preloadFlag = true;		}}	function imgOn(imgName) {	if (preloadFlag == true) {			document[imgName].src = eval(imgName + "on.src");			}}	function imgOff(imgName) {	if (preloadFlag == true) {			document[imgName].src = eval(imgName + "off.src");	}}function fullScreen(URL)  {   	var newwin = window.open(URL,"newwin",'fullscreen=yes,toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,width=' + screen.width + ',height=' + screen.height);   	newwin.moveTo(0,0);newwin.focus();  }  function popUP(URL,wide,high)  {  	var newWindow = window.open(URL,"win",'toolbar=0,menubar=0,resizeable=0,width='+wide+',height='+high);  }function BrowserSniffer() {	if (navigator.userAgent.indexOf("Opera")!=-1 && document.getElementById) type="OP";		//Opera	else if (document.all) type="IE";														//Internet Explorer e.g. IE4 upwards	else if (document.layers) type="NN";													//Netscape Communicator 4	else if (!document.all && document.getElementById) type="MO";							//Mozila e.g. Netscape 6 upwards	else type = "IE";		//I assume it will not get here}function ShowLayer(id, action){  BrowserSniffer()  if (type=="IE") eval("document.all." + id + ".style.visibility='" + action + "'");  if (type=="NN") eval("document." + id + ".visibility='" + action + "'");  if (type=="MO" || type=="OP")     eval("document.getElementById('" + id + "').style.visibility='" + action + "'");} // This is the styleswitcher script, for switching between// alternative stylesheets.//// by Paul Sowden <mailto:paul@idontsmoke.co.uk>// ala article: <http://alistapart.com/stories/alternate/>// site: <http://idontsmoke.co.uk/2002/ss/>function setActiveStyleSheet(title) {	var a;	for (var i = 0; (a = document.getElementsByTagName("link")[i]); i++) {		if (a.getAttribute("rel") && a.getAttribute("rel").indexOf("style") != -1 && a.getAttribute("title")) {			a.disabled = true;			if (a.getAttribute("title") == title) a.disabled = false;		}	}	if (getActiveStyleSheet() == null) {		title = getPreferredStyleSheet();		if (title != null) setActiveStyleSheet(title, true); 	}	createCookie("style",title, 365);}function getActiveStyleSheet() {	var a;	for (var i = 0; (a = document.getElementsByTagName("link")[i]); i++) {		if (a.getAttribute("rel") && a.getAttribute("rel").indexOf("style") != -1 && a.getAttribute("title") && !a.disabled) return a.getAttribute("title");	}	return null;}function getPreferredStyleSheet() {	var a;	for (var i = 0; (a = document.getElementsByTagName("link")[i]); i++) {		if (a.getAttribute("rel") && a.getAttribute("rel").indexOf("style") != -1 && a.getAttribute("rel").indexOf("alt") == -1 && a.getAttribute("title")) return a.getAttribute("title");	}	return null;}function createCookie(name,value,days) {	if (days) {		var date = new Date();		date.setTime(date.getTime()+(days*24*60*60*1000));		var expires = "; expires="+date.toGMTString();	} else var expires = "";	document.cookie = name+"="+value+expires+"; path=/";}function readCookie(name) {	var nameEQ = name + "=";	var ca = document.cookie.split(';');	for(var i=0;i < ca.length;i++) {		var c = ca[i];		while (c.charAt(0)==' ') c = c.substring(1,c.length);		if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length,c.length);	}	return null;}function start(e) {	var cookie = readCookie("style");	var title = cookie ? cookie : getPreferredStyleSheet();	setActiveStyleSheet(title);}function end(e) {	var title = getActiveStyleSheet();	createCookie("style", title, 365);}if (window.addEventListener) {	window.addEventListener("load", start, true);	window.addEventListener("unload", end, true);} else if (window.attachEvent) {	window.attachEvent("onload", start);	window.attachEvent("onunload", end);}if (document.getElementsByTagName) {	var cookie = readCookie("style");	var title = cookie ? cookie : getPreferredStyleSheet();	setActiveStyleSheet(title);}      function ExplorerFix() {             for (a in document.links) document.links[a].onfocus =                     document.links[a].blur;                          }                                                                if (document.all) {                                          document.onmousedown = ExplorerFix;      }function nospam(tS1,tS2,tS3) {	location="mailto:"+tS1+"@"+tS2+"?subject=Msg from website";}function timeOut() {setTimeout("window.location='http://www.boxel.co.uk/'",0); }function externalLinks() { if (!document.getElementsByTagName) return; var anchors = document.getElementsByTagName("a"); for (var i=0; i<anchors.length; i++) {   var anchor = anchors[i];   if (anchor.getAttribute("href") &&       anchor.getAttribute("rel") == "external")     anchor.target = "_blank"; }}window.onload = externalLinks;function upcoming() {document.write("<script type=\"text/javascript\" src=\"http://badge.upcoming.org/v1/?badge_type=user&badge_size=sm&badge_layout=v&badge_styling=0&badge_no_background=1&badge_venue=1&date_format_type=us_med&id=41150\"></"+"script>");}