Help with log-linearisation

Hi,
I am trying to solve a model but have difficulty log-linearising this particular functional form (Armington aggregator). If anyone know,could you please help me. This is the equation:
p_t^m = chi * (a_t^m)^(-1/mu) * [chi*(a_t^m)^(1-1/mu) + (1-chi) * (a_t^x)^(1-1/mu) ]^(1/(1-1/mu) -1).
chi and mu are paramters. p_t^, a_t^m and a_t^x are endogenous variables.
Thank you so much,
I am trying to solve a model but have difficulty log-linearising this particular functional form (Armington aggregator). If anyone know,could you please help me. This is the equation:
p_t^m = chi * (a_t^m)^(-1/mu) * [chi*(a_t^m)^(1-1/mu) + (1-chi) * (a_t^x)^(1-1/mu) ]^(1/(1-1/mu) -1).
chi and mu are paramters. p_t^, a_t^m and a_t^x are endogenous variables.
Thank you so much,