
<!--
// browser independent script for detecting mouse click position events
function ShowDetail(e, theDiv) {
	var posx = 0;
	var posy = 0;
	if (!e) var e = window.event;
	if (e.pageX || e.pageY) 	{
		posx = e.pageX;
		posy = e.pageY;
	}
	else if (e.clientX || e.clientY) 	{
		posx = e.clientX + document.body.scrollLeft + document.documentElement.scrollLeft;
		posy = e.clientY + document.body.scrollTop + document.documentElement.scrollTop;
	}
	// posx and posy contain the mouse position relative to the document
	document.getElementById(theDiv).style.display="block";
	
	//this line sets puts the div at top of screen
	document.getElementById(theDiv).style.top=document.body.scrollTop;
	
	//this line sets puts the div where the mouse was clicked
	//document.getElementById(theDiv).style.top=posy;
	
	//trial line to force focus on popup box to help with scrolling behaviour
	//document.getElementById('DetailFrameSubscr').focus();
}

function CloseDetail(theDiv) {
	document.getElementById('DetailFrameSubscr').src="http://www.pinelandsdirectory.co.za/style/blank.html";
	document.getElementById('DetailFrameFree').src="http://www.pinelandsdirectory.co.za/style/blank.html";
	document.getElementById(theDiv).style.display="none";
	
}

//-->