It is far from perfect. Should be investigated by reading fancybox code if there's a better way later on