Jquery.fancybox not working with rajs template

im using jquery.fancybox to display flv videos. the video has many
categories. so i have written a AJAX function to switch the
categories. when i load the page the jquery.fancybox works perfectly.
if i switch the category with AJAX call that dosent work.
NAy body have any idea about this???