public static function getRootPageId ($strTable, $intId)
	{
		if ($strTable == 'tl_article')
		{
			$objArticle = \ArticleModel::findById($intId);

			if ($objArticle === null)
			{
				return null;
			}
			
			$objPage = \PageModel::findWithDetails($objArticle->pid);

			if ($objPage === null)
			{
				return null;
			}

			return $objPage->rootId;
		}
		
		elseif($strTable == 'tl_news')
		{
			$objNews = \NewsModel::findById($intId);

			if ($objNews === null)
			{
				return null;
			}
			
			$objPage = \PageModel::findWithDetails($objNews->getRelated('pid')->jumpTo);

			if ($objPage === null)
			{
				return null;
			}
			
			return $objPage->rootId;
		}
		
		else
		{
			// HOOK: custom method to discover the layout id
			if (isset($GLOBALS['TL_HOOKS']['getRootPageId']) && is_array($GLOBALS['TL_HOOKS']['getRootPageId']))
			{
				foreach ($GLOBALS['TL_HOOKS']['getRootPageId'] as $callback)
				{
					//$this->import($callback[0]);
					$rootId = static::importStatic($callback[0])->{$callback[1]}($strTable, $intId);
			
					if (rootId)
					{
						return $rootId;
					}
				}
			}
		}
		
		return null;
	}