// JavaScript Document
<!--
var noTbodies = 5 // put number of collapsable boxes here
    function init()
    {
        var cookie = getCookie('myTbody');
        if(cookie)
        {
            var values = cookie.split(',');

			for(var i = 1; i <= noTbodies; i++) {
                document.getElementById('myTbody' + i).style.display = values[i-1]
            }
        } else {
			for(var i = 1; i <= noTbodies; i++) {
                document.getElementById('myTbody' + i).style.display = 'none'
            }
			cookieVal = ""
			for(var i = 1; i <= noTbodies; i++) {
			    cookieVal += document.getElementById('myTbody' + i).style.display + ','
			}
			document.cookie = 'myTbody=' + cookieVal
		}
    }

    function getCookie(name)
    {
        if(document.cookie == '')
            return false;

        var firstPos;
        var lastPos;
        var cookie = document.cookie;

        firstPos = cookie.indexOf(name);

        if(firstPos != -1)
        {
            firstPos += name.length + 1;
            lastPos = cookie.indexOf(';', firstPos);

            if(lastPos == -1)
                lastPos = cookie.length;

            return unescape(cookie.substring(firstPos, lastPos));
        }

        else
            return false;
    }

    function toggleItem(id)
    {
        document.getElementById(id).style.display = (document.getElementById(id).style.display == 'none') ? 'inline' : 'none' ;

		cookieVal = ""
		for(var i = 1; i <= noTbodies; i++) {
            cookieVal += document.getElementById('myTbody' + i).style.display + ','
        }
		document.cookie = 'myTbody=' + cookieVal
		for(var i = 1; i <= noTbodies; i++) {
           document.getElementById('myTbody' + i).style.display = 'none'
        }
		init()
        return false;
    }

// Set Status Bar Text
function hidestatus(){
window.status='Welcome to Jonny Longlife'
return true
}

if (document.layers)
document.captureEvents(Event.MOUSEOVER | Event.MOUSEOUT)

document.onmouseover=hidestatus
document.onmouseout=hidestatus

// AddToFaves

function AddToFaves_hp(){
	var is_4up = parseInt(navigator.appVersion);
	var is_mac   = navigator.userAgent.toLowerCase().indexOf("mac")!=-1;
	var is_ie   = navigator.userAgent.toLowerCase().indexOf("msie")!=-1;
	var thePage = location.href;
	if (thePage.lastIndexOf('#')!=-1)
		thePage = thePage.substring(0,thePage.lastIndexOf('#'));
	if (is_ie && is_4up && !is_mac) 
		window.external.AddFavorite(thePage,document.title);
	else if (is_ie || document.images)
		booker_hp = window.open(thePage,'booker_','menubar,width=325,height=100,left=140,top=60');
	//booker_hp.focus();
	}

if (window.name=='booker_'){
	var pre_fix = document.images? '<BR>':'';
	document.write(pre_fix + '<P align="center">'
	+ 'Use the menu or ctrl/cmd-D now <BR>to bookmark the page then <BR>'
	+ '<A href="javascript:window.close();">close this window</A></p>'
	+ '<P>&nbsp;</P><P>&nbsp;</P><P>&nbsp;</P><P>&nbsp;</P><P>&nbsp;</P>');
	}

-->