code: function( url, rez, params ) {
  			params = params || '';
  
  			if ( $.type( params ) === "object" ) {
  				params = $.param(params, true);
  			}
  
  			$.each(rez, function(key, value) {
  				url = url.replace( '$' + key, value || '' );
  			});
  
  			if (params.length) {
  				url += ( url.indexOf('?') > 0 ? '&' : '?' ) + params;
  			}
  
  			return url;
  		}
docs: Shortcut for fancyBox object