//Redirect to automatically display menu frame if not present

function showRedirectMessage () 
{
    document.write('<table align="center" width="90%"><tr bgcolor="#0080FF"><td align="center" style="font-family:Book Antiqua, sans-serif; font-size:20; color:#EEEEEE;">')
	document.write('THIS IS A FRAME ELEMENT<br>You will be transported to frames soon...')
	document.write('</td></tr></table><br>')
}

function doRedirect () 
{
    var currentPage = location.pathname.substring(location.pathname.lastIndexOf("www.lyndon-estate.co.uk/")+2);
	var strURL = location.protocol + "//" + location.hostname + "/index.htm?" + currentPage
	window.top.location.replace(strURL)
}
	
if ((top != self.parent) || (top == self)) //if top frame is not our menu (we are in someone else's frame) OR there's no frame
{
    showRedirectMessage()
	setTimeout( 'doRedirect()', 3000) 
}

