Add support for titleid or textid in TiShadow.

Hi!

I changed some code to add support of using titleid or textid in TiShadow. Hope it will be helpful to someone else.