The fact that you have a sale in both 2003 and 2004 is terribly important.
From the first gain in 2003, you deduct your Eircom loss, then from the net gain, deduct the 'annual exemption' of €1270 (assuming no other gains) and then calculate the tax on the net gain.
For 2004, you can deduct the 'annual exemption' of €1270 and then calculate the tax due on net gain.
It looks like you may not have returned 2003 yet, so dont forget that.
For FA the shares had a 'NIL' cost and similarly a Bonus share also has a NIL cost. The isssue is the proceeds for each year and you have luckily split the share neatly in two.
I wont wade through the detail and hope that gives you the pic.