var images1 = $$('#logoSlider img') // the images
	var imgTotal1 = images1.length - 1;
	var pos1 = 0;
	var imgSrcs1 = new Array();

	images1.each( function(el, l) {
		imgSrcs1[l] = images1[l].src;
	});

	var myImages1 = new Asset.images(imgSrcs1, {
		onProgress : function() {

		},
		onComplete : function() {
			if (images1.length > 1) {
				fadeImages1.periodical(7000);
			}
		}
	});

	function fadeImages1() {
		if (pos1 == imgTotal1) {
			fadeImgOut1 = imgTotal1;
			fadeImgIn1 = 0;
			pos1 = 0;
		} else {
			fadeImgOut1 = pos1;
			fadeImgIn1 = pos1 + 1;
			pos1++;
		}

		var fadeOut1 = new Fx.Tween(images1[fadeImgOut1], {
			duration : 1000
		});
		var fadeIn1 = new Fx.Tween(images1[fadeImgIn1], {
			duration : 3000
		});
		fadeIn1.start('opacity', [ 0, 1 ]).chain(function() {
			fadeOut1.start('opacity', [ 1, 0 ]);			
		});
		
	}
