YAHOO.namespace("novadine");
YAHOO.namespace("novadine.locationdetailwindow");

// Uses functions found in customizeWindow.js

YAHOO.novadine.locationdetailwindow = function ()
{
	 var locationDetailWindow = null;
	 
	 var handleCancel = function() 
	 {
		  this.cancel();
	 };
	 
	 var handleSubmit = function()
	 {
		  this.cancel();
	 }
	 
	 function closeWindowExternal()
	 {
		  locationDetailWindow.hide();
	 }
	 function setupLocationDetailWindow()
	 {
		  try {
			   locationDetailWindow = new YAHOO.ext.BasicDialog("locationDetailFrame",
																{
																modal:false,
																		  width:225, height:180,
																		  shadow:false, constraintoviewport: false,
																		  syncHeightBeforeShow: true,
																		  shim:true});
			   
			   locationDetailWindow.addKeyListener(27, locationDetailWindow.hide, 
												   locationDetailWindow);
			   locationDetailWindow.addButton("Close", locationDetailWindow.hide, 
											  locationDetailWindow);
		  }
		  catch(e)
		  {
			   ;
		  }
		  
	 }

	 function showLocationDetailWindow()
	 {
		  locationDetailWindow.show();
		  locationDetailWindow.moveTo(xCentre(200), yCentre(200) + 5);
		  YAHOO.ext.DialogManager.bringToFront(locationDetailWindow);
	 }

	 return {
	 init: function() {
			   setupLocationDetailWindow();
		  },
	 showWindow: function() {
			   showLocationDetailWindow();
		  },
	 hideWindow: function() {
			   closeWindowExternal();
		  }
	 }
}();	 

