most probably (surely) you have
$("a").fancybox();
it will try to open ANY <a href=""></a> you may have
so add a CLASS to those elements you want to open with fancybox only
and leave without a class (or a different one) those you don't want to
open with fancy box
so set
$("a.yesopen").fancybox();
and
<a class="yesopen" href=""></a> //this will open in a fancybox
<a href=""></a> //this will not
<a class="doggy" href=""></a> //this will not