Andy
i hate playing devils advocate BUT ....... is it really worth spending all of this time sorting a coloured link ?
personally i would ditch the template , the mods it is using are badly written and re-writing them is going to take an age .....
your time could be better spent elsewhere
Rainee x