var preloadImagesComplete = false;

// 'images' tem que ser uma array contendo o id da imagem

// ou uma referencia ao elemento criada com $() do mootools.

function change_PNGs_into_GIFs(images){

	// só muda pra gif se for IE anterior ao IE7

	if ( Browser.Engine.trident && !Browser.Engine.trident5 ){

	

		if ( typeof images == 'string' )

			images = [images];

	

		images.each(function(img, index){

										   if ( typeof img == 'string' )

											   img = $(img);

											   

										   if ( img != null ){

											   var img_extension = /\.png$/;

											   img.setProperty('src', img.getProperty('src').replace(img_extension, '.gif'));

										   }

									   });

	}

}



function GIForPNG(img){

	

	var extension = ( Browser.Engine.trident && !Browser.Engine.trident5 ) ? '.gif' : '.png';

	

	return img + extension;

	

}



function preLoadImgs(imgs_to_preload){

	var imagens = new Asset.images(imgs_to_preload, {onComplete:function(){preloadImagesComplete = true;}});

}



window.addEvent('domready', function(){

									 change_PNGs_into_GIFs(['desde1970']);

								});