//-- standard open window function for glossary
	function OpenGlossary(win_url,win_name) { 
		var newWin; 
		newWin=window.open(win_url, 'Glossary', 'width=400,innerWidth=400,height=250,innerHeight=250,toolbars=0,scrollbars=1,menubar=0,location=0,resizable=1,statusbar=1'); 
		
	} 
	

	
	// Popup Window Features
	var mcAllFeatures ="toolbar,status,menubar,scrollbars,resizable,location";
	var mcMainFeatures = "status,menubar,scrollbars=1,resizable";
	var mcDBFeatures = "toolbars,status,menubar,scrollbars,resizable";
	var mcNoFeatures = "scrollbars,resizable";
	var DEFAULT_WIDTH = 640;
	var DEFAULT_HEIGHT = 460;
	//////////////////////////////////////////////////////////////////////////
	//	DON'T EDIT BELOW HERE
	//////////////////////////////////////////////////////////////////////////
	// Window attributes
	var DEFAULT_NAME = "Aquaculture";
	// Netscape security requirement
	var MIN_WIN_SIZE = 100;
	// Delay time before write to browser (IE3 requirement)
	var mcDelayTime = 10;
	var X_FACTOR = 8;
	
	//////////////////////////////////////////////////////////////////////////
	// Opens window at center of screen
	// Main is used to turn the features on for the main activity and menu windows
	// DB is used to load the features for the stock, equip etc databases + visitors
	//////////////////////////////////////////////////////////////////////////
	function OpenCenteredWindow(url,name,w,h,type)
	{
		if(name == null) { name = DEFAULT_NAME; }
		if(w == null) { w = DEFAULT_WIDTH;}
		if(h == null) { h = DEFAULT_HEIGHT;}
		if(type == null) { WinFeatures = mcMainFeatures;}
		if(type == 'DB') { WinFeatures = mcDBFeatures;}
		if(type == 'link') { WinFeatures = mcAllFeatures;}
		var s = WinFeatures; 
		s += ",height=" + h + ",innerHeight=" + h;
		s += ",width=" + w + ",innerWidth=" + w;
		if(window.screen)
		{
			var aH = screen.availHeight;
			var aW = screen.availWidth;
			var cY = Math.round((aH - h)/2);
			var cX = Math.round((aW - w)/2);
			s += ",left=" + cX + ",screenX=" + cX;
			s += ",top=" + cY + ",screenY=" + cY;
		}
		
		childWindow = window.open(url,name,s);
		//childWindow.location.href = url

	}
	
	
	
//-->