      
$(document).ready(function() { 

   
    $("a.fbox").fancybox();
    
	 // Insert here your custom js code that needs to execute when document was loaded. 

});
