 (function ($) {
        $.fn.cross = function (options) {
            return this.each(function (i) { 
                var $$ = $(this);
                var target = $$.css('backgroundImage').replace(/^url|[\(\)'"]/g, '');
                $$.wrap('<span style="position: relative;"></span>')
                    .parent()
                    .prepend('<img>')
                    .find(':first-child')
                    .attr('src', target);
                if ($.browser.mozilla) {
                    $$.css({'position' : 'absolute', 'left' : 0,'background' : '', 'top' : this.offsetTop });
                } else if ($.browser.opera && $.browser.version < 9.5) {                   
                    $$.css({'position' : 'absolute', 'left' : 0, 'background' : '','top' : "0"});
                } else { 
                    $$.css({'position' : 'absolute', 'left' : 0,'background' : ''});
                }
                $('img.fade1').hover(
					function () { 
						$('img.fade1').stop().animate({opacity: 1}, 250);$('img.fade3').stop().animate({opacity: 0}, 250);}, 
					function () { 
						$('img.fade1').stop().animate({opacity: 0}, 250);$('img.fade3').stop().animate({opacity: 1}, 250);}
				);
				$('img.fade2').hover(
					function () { 
						$('img.fade2').stop().animate({opacity: 1}, 250);$('img.fade3').stop().animate({opacity: 0}, 250);}, 
					function () { 
						$('img.fade2').stop().animate({opacity: 0}, 250);$('img.fade3').stop().animate({opacity: 1}, 250);}
				);
				$('img.fade4').hover(
					function () { 
						$('img.fade4').stop().animate({opacity: 1}, 250);$('img.fade3').stop().animate({opacity: 0}, 250);}, 
					function () { 
						$('img.fade4').stop().animate({opacity: 0}, 250);$('img.fade3').stop().animate({opacity: 1}, 250);}
				);
				$('img.fade5').hover(
					function () { 
						$('img.fade5').stop().animate({opacity: 1}, 250);$('img.fade3').stop().animate({opacity: 0}, 250);}, 
					function () { 
						$('img.fade5').stop().animate({opacity: 0}, 250);$('img.fade3').stop().animate({opacity: 1}, 250);}
				);
				$('img.fade6').hover(
					function () { 
						$('img.fade6').stop().animate({opacity: 1}, 250);$('img.fade3').stop().animate({opacity: 0}, 250);}, 
					function () { 
						$('img.fade6').stop().animate({opacity: 0}, 250);$('img.fade3').stop().animate({opacity: 1}, 250);}
				);
            });
        };     
    })(jQuery);
    $(window).bind('load', function () {
        $('img.fade1').cross();
		$('img.fade2').cross();
		$('img.fade3').cross();
		$('img.fade4').cross();
		$('img.fade5').cross();
		$('img.fade6').cross();
		$('img.fade1').stop().animate({opacity: 0}, 250);
		$('img.fade2').stop().animate({opacity: 0}, 250);
		$('img.fade4').stop().animate({opacity: 0}, 250);
		$('img.fade5').stop().animate({opacity: 0}, 250);
		$('img.fade6').stop().animate({opacity: 0}, 250);
    });
