BUT—don't do that. Don't rely on id="rel"
IDs are supposed to be unique on a page. So that would mean you can't
have more than one link on the page. Not very good for a gallery. ;)
Use a class. Say, "fancyLink"...
So your script would be:
<--------------------Begin Script----------------------->
<script type="text/javascript">
$(document).ready(function() {
$("a.fancyLink").fancybox();
});
</script>
<--------------------End Script-------------------------->
And then on any anchor tag you want to use FB, give it the attribute
class="fancyLink"