public function params($id)
	{
		$params = '';

		if ($this->app->has('db'))
		{
			$db = $this->app['db'];

			$query = $db->getQuery()
				->select('params')
				->from('#__modules')
				->whereEquals('published', 1);

			// Select module params based on name or ID
			if (is_numeric($id))
			{
				$query->whereEquals('id', (int) $id);
			}
			else
			{
				$query->whereEquals('module', $id);
			}

			$db->setQuery($query->toString());
			$params = $db->loadResult();
		}

		//return params
		return new Registry($params);
	}