jQuery.preloadImages = function()
{
        for(var i = 0; i<arguments.length; i++)
        {
                jQuery("img").attr("src", arguments[i]);
        }
};
jQuery.preloadImages('images/homeslide/healthfellow.jpg','images/homeslide/batteryprofessional.jpg', 'images/homeslide/austinroofguys.jpg', 'images/homeslide/weightlossfatlossmotivation.jpg'); 

jQuery(function($) {
jQuery('#fading').crossSlide({
 fade: 1,
 shuffle: true,
}, [
{
    src:  'images/homeslide/healthfellow.jpg',
    href: 'portfolio.html',
    from: 'top left 1x',
    to:   'bottom right 1x',
    time: 6
  },
   {
    src:  'images/homeslide/batteryprofessional.jpg',
    href: 'portfolio.html',
    from: 'top left 1x',
    to:   'bottom right 1x',
    time: 6
  },
     {
    src:  'images/homeslide/austinroofguys.jpg',
    href: 'portfolio.html',
    from: '60% 0% 1x',
    to:   'bottom left 1x',
    time: 6
  },
        {
    src:  'images/homeslide/weightlossfatlossmotivation.jpg',
    href: 'portfolio.html',
    from:' top left 1x',
    to:   'top right 1x',
    time: 6
  }
]);

}); //End of parent funcion

