
    <!--
    //makes links that are dynamically loaded, use the ajax and stuff
    function fixSubLinks(){
    		var sublinks = document.getElementsByName("subnav");
			for(var i=0; i< sublinks.length; i++) {
				var href = sublinks[i].getAttribute("href");
				var hash = href.substr(href.indexOf("hash=")+5);
				var detect = navigator.userAgent.toLowerCase();
				if(detect.indexOf("msie")>-1){
				  sublinks[i].setAttribute("href","javascript:document.getElementById('ajaxnav').setAttribute('src', 'mock-page.php?hash="+hash+"');");
				}else{
				  sublinks[i].setAttribute("href","#"+hash);
				}
			}
		}
		
	/* CROSS-BROWSER EVENT HANDLER */
		function addEvent(obj, evType, fn){
			 if (obj.addEventListener){
				 obj.addEventListener(evType, fn, true);
				 return true;
			 } else if (obj.attachEvent){
				 var r = obj.attachEvent("on"+evType, fn);
				return r;
			 } else {
				return false;
			 }
		}
	/* END EVENT HANDLER */

	
	/* JPSPAN */
		function doGetPage(i) {
			if(i) {
			    document.title="The Hyde Park Cafe - "+ i;
				var p = new pageholder(PageHolderHandler);
				p.ashtml(i);
				setContent("<table width='940' border='0' cellspacing='0' cellpadding='0'><tr><td><div><img src='images/content_header1.gif' border='0' width='940' height='6' style='margin-left:6px;' /></div><div id='content_navigation'><div class='cnc' style='margin-left:9px'></div></div><table border='0' height='400' cellspacing='0' cellpadding='0'><tr><td valign='top'><div style='padding:10px;padding-left:20px;'>LOADING FILE</div></td></tr></table>");
			}
		}
		var PageHolderHandler = {
			ashtml: function(result) {
				setContent(result);
				fixSubLinks();
				lbinitialize();
				getBrowserInfo();
				setTall();
				
			}
		}
	/* END JPSPAN */
	
	
	/* PAGELOCATOR */
		function PageLocator(propertyToUse, dividingCharacter) {
			this.propertyToUse = propertyToUse;
			this.defaultQS = "home";
			this.dividingCharacter = dividingCharacter;
		}
		PageLocator.prototype.getLocation = function() {
			return eval(this.propertyToUse);
		
		}

		PageLocator.prototype.getHashFlash = function() {
			var url = this.getLocation();
			
			if(url.indexOf(this.dividingCharacter)>-1) {
				var url_elements = url.split(this.dividingCharacter);
				
				var url_elements2 = url_elements[url_elements.length-1];
				var myreturn = url_elements2.split("/");
			
				
				return myreturn[0];
				
			} else {
				return this.defaultQS;
			}
		}
		PageLocator.prototype.getHash = function() {
		    
			var url = this.getLocation();
			
			if(url.indexOf(this.dividingCharacter)>-1) {
				var url_elements = url.split(this.dividingCharacter);
				return url_elements[url_elements.length-1];
			} else {
				return this.defaultQS;
			}
		}
		
		PageLocator.prototype.getHref = function() {
			var url = this.getLocation();
			var url_elements = url.split(this.dividingCharacter)
			//alert (url_elements[0]);
			
			return url_elements[0];
		}
		PageLocator.prototype.makeNewLocation = function(new_qs) {
		    var qs_elem = new_qs.split(this.dividingCharacter);
			return this.getHref() + this.dividingCharacter + qs_elem[0];
			
		}
	/* END PAGELOCATOR */
	
	
	/* AjaxIframesFixer */
		function AjaxIframesFixer(iframeid) {
			this.iframeid = iframeid;
			if (document.getElementById('ajaxnav')) {
				this.fixLinks();
				
				this.locator = new PageLocator("document.frames['"+this.iframeid+"'].getLocation()", "?hash=");
				this.windowlocator = new PageLocator("window.location.href", "#");
				this.timer = new Timer(this);
				
				this.delayInit(); // required or IE doesn't fire
			}
		}
		AjaxIframesFixer.prototype.fixLinks = function (iframeid) {
			var links = document.getElementsByName("nav");
			for(var i=0; i<links.length; i++) {
				var href = links[i].getAttribute("href");
				var hash = href.substr(href.indexOf("hash=")+5);
				links[i].setAttribute("href","javascript:document.getElementById('"+this.iframeid+"').setAttribute('src', 'mock-page.php?hash="+hash+"');");
			}
		}
		AjaxIframesFixer.prototype.delayInit = function(){
			this.timer.setTimeout("checkBookmark", 100, "");
		}
		AjaxIframesFixer.prototype.checkBookmark = function(){
			window.location = this.windowlocator.makeNewLocation(this.locator.getHash());
			this.checkWhetherChanged(0);
		}
		AjaxIframesFixer.prototype.checkWhetherChanged = function(location){
			if(this.locator.getHash() != location) {
				doGetPage(this.locator.getHash());
				window.location = this.windowlocator.makeNewLocation(this.locator.getHash());
			}
			this.timer.setTimeout("checkWhetherChanged", 100, this.locator.getHash());
		}
	/* END AjaxIframesFixer */
	
	
	/* AjaxUrlFixer */
		function AjaxUrlFixer() {
			this.fixLinks();
			
			this.locator = new PageLocator("window.location.href", "#");
			this.timer = new Timer(this);
			this.checkWhetherChanged(0);
		}
		AjaxUrlFixer.prototype.fixLinks = function () {
			var links = document.getElementsByName("nav");
			for(var i=0; i<links.length; i++) {
				var href = links[i].getAttribute("href");
				var hash = href.substr(href.indexOf("hash=")+5);
				links[i].setAttribute("href","#"+hash);
			}
		}
		AjaxUrlFixer.prototype.checkWhetherChanged = function(location){
			if(this.locator.getHash() != location) {
				doGetPage(this.locator.getHash());
			}
			this.timer.setTimeout("checkWhetherChanged", 100, this.locator.getHash());
		}
	/* END AjaxUrlFixer */
	
	function setContent(new_content) {	
		if(!document.getElementById || !document.getElementsByTagName) return;
		var container = document.getElementById("container");
		container.innerHTML = new_content;
	}
	
	function FixBackAndBookmarking() {
		if(!document.getElementById || !document.getElementsByTagName) return;
		if(document.iframesfix) {
			fix = new AjaxIframesFixer('ajaxnav');
		} else {
			fix = new AjaxUrlFixer();
		}
	}
	
	
	var detect = navigator.userAgent.toLowerCase();
	if(detect.indexOf("msie")>-1 ) document.iframesfix = true;
	addEvent(window, "load", FixBackAndBookmarking);
	
    -->