jQuery.preloadImages = function()
{
        for(var i = 0; i<arguments.length; i++)
        {
                jQuery("img").attr("src", arguments[i]);
        }
};
jQuery.preloadImages('images/home_photo/01.jpg','images/home_photo/02.jpg','images/home_photo/03.jpg','images/home_photo/04.jpg'); 

jQuery(function($) {
jQuery('#fading').crossSlide({
 fade: 1,
 shuffle: true,
}, [
{
    src:  'images/home_photo/01.jpg',
    href: 'portfolio.html',
    from: 'top left 1x',
    to:   'bottom right 1x',
    time: 3
  },
   {
    src:  'images/home_photo/02.jpg',
    href: 'portfolio.html',
    from: 'bottom right 1x',
    to:   'top left 1x',
    time: 3
  },
     {
    src:  'images/home_photo/03.jpg',
    href: 'portfolio.html',
    from: 'top left 1x',
    to:   'bottom right 1x',
    time: 3
  },
        {
    src:  'images/home_photo/04.jpg',
    href: 'portfolio.html',
    from: 'bottom right 1x',
    to:   'top left 1x',
    time: 3
  }
]);

}); //End of parent funcion


