//--------------------------------------------------------------------------------------------------
function get_parent_type($type)
{
//--------------------------------------------------------------------------------------------------
function get_parent_type($type)
{