// -----------------------------------------------------------------
//						Redland Shire Council 
// -----------------------------------------------------------------
// Class    : AsCon 
// Purpose  : Handlers for the client side functionality of 
//				displaying the AsCon drawings window
// -----------------------------------------------------------------
// Calls    :
// Called by: mouse events within default.aspx
// -----------------------------------------------------------------
// Arguments:
// Globals  :
// Returns  :
// -----------------------------------------------------------------
// Notes    : This JavaScript file contains client side code to
//			  handle the map clicking on the AsCon layer.
// -----------------------------------------------------------------
// History  :
// =================================================================

function ieMouseUpAsCon(event)
{
	//Calculate where the map window actually is, and store this in the offset variables
	var imgMapXOffset = parseInt(document.getElementById('divImgMap').style.left) + 2;
	var imgMapYOffset = parseInt(document.getElementById('divImgMap').style.top) + 2;
	
	//Set the source of the asCon window to show a list of features returned
	//from the click point which is passed as a query string
	var sURL = 'asCon.aspx?xClick=' + (parseInt(event.clientX) - imgMapXOffset) + '&yClick=' + (parseInt(event.clientY) - imgMapYOffset);
	
	// load the ascon file and X/Y coord into the common floating div
	showCommonDiv('Ascon Sheets',550,400,200,63,sURL,true,true,true);
	
}
