	
	var selectors = [
		'.surf',
		'.ombrelloni',
		'.spiaggia',
		'.registerForm',
		'.logo',
		'.backtolove',
		'a.backtolove:hover',
		'.page-truelove',
		'.page-smsamore',
		'.page-votasms',
		'.page-inviasms',
		'.page-loveblog',
		'a.votasms',
		'a.scrivituosms',
		'a.vaialforum',
		'a.scaricaregolamento',
		'a.scaricaregolamento:hover',
		'.faccisapere',
		'.scrivilatuastoria',
		'.leggiiloveblog',
		'.info .box',
		'.privacy .box',
		'.regolamento .box',
		'.liberatoria .box',
		'.confermaregistrazione .box',
		'.boxlogin',
		'.logged',
		'.highlights',
		'.inviasmsbtn',
		'.page-caricafoto',
		'.scattamore',
		'.bgcaricafoto',
		'.scattagiallino',
		'.scattainvia',
		'.bgcaricafoto0',
		'.scattathumb',
		'.scattagiu',
		'.fotocam',
		'.fotocamoverlay',
		'a.linkforum',
		'a.linkforum:hover',
		'.link_next',
		'.link_next:link',
		'.link_next:hover',
		'.link_next:active',
		'.link_prev',
		'.link_prev:link',
		'.link_prev:hover',
		'.link_prev:active',
		'.guardathumb',
		'.guardathumb_clip',
		'.MultiBoxClose',
		'.MultiBoxPrevious',
		'.MultiBoxNext',
		'.MultiBoxNextDisabled',
		'.MultiBoxPreviousDisabled',
		'.scattaguarda2_selected',
		'.scattaguardatue2_selected',
		'.bgcaricafoto0_hp',
		'.page-musiccard',
		'a.crealatuamusiccard',
		'.stepone',
		'.steptwo',
		'.stepthree',
		'.stepfour',
		'.stepfive',
		'.avantiBtn',
		'.anteprimaBtn',
		'.dadamusiccard',
		'.bandacartolina',
		'.page-musiccard .sfondo',
		'a.dada_play',
		'scatta_winimg',
		'.neverendingsummer'
		
		
	];
	
	var EasyFixPng = function() {
		
		selectors.each(function(selector) {
			$$(selector).each(function(el) {
				if(!$defined(el.getStyle)) return;
				
				var imgStyle = el.getStyle('background-image');
				if(imgStyle != 'none') {
					
					var imgURL = imgStyle.substring(5, imgStyle.length  - 2);
					
					if(imgURL.indexOf('.png')>-1) {
						
						if(el.getChildren().length>0) {
							
							el.setStyles({
								background: ''
							});
							
							el.setStyle('position', el.getStyle('position') == 'absolute' ? 'absolute' : 'relative');							
							var sfondo = new Element('div');
							sfondo.set('id', 'sfondoEasyPngFix');
							sfondo.setStyles({
								filter: "progid:DXImageTransform.Microsoft.AlphaImageLoader(enabled='true', sizingMethod='crop', src='" + imgURL + "')", 
								width: el.getStyle('width'),
								height: el.getStyle('height'),
								position: 'absolute',
								top: 0,
								left: 0,
								zIndex: el.getStyle('z-index')-1
							});
							
							if(selector == '.info .box') {
							}
							
							try {
								el.getElement('sfondoEasyPngFix').destroy();
							} catch(e) {}
							
							sfondo.inject(el, 'top');
							
						} else {
							el.setStyles({
								background: '', 
								filter: "progid:DXImageTransform.Microsoft.AlphaImageLoader(enabled='true', sizingMethod='crop', src='" + imgURL + "')"
							});							
						}
					}			
				}
				
				/*var minHeight = el.getStyle('min-height');
				if(parseInt(minHeight)>0) {
					var targetHeight = parseInt(minHeight);				
					if(el.getSize().y < targetHeight)
						el.setStyle('height', minHeight);		
				}
				
				var minWidth = el.getStyle('min-width');
				if(parseInt(minWidth)>0) {
					var targetWidth = parseInt(minWidth);				
					if(el.getSize().x < targetWidth)
						el.setStyle('width', minWidth);		
				}*/
				
			});
		});
		
		var immagini = $$('img');
		if(immagini.length>0) {
			immagini.each(function(el) {
				var imgsrc = el.getProperty('src');
				var isPng = imgsrc.substring(imgsrc.length  - 3) == 'png';
				if(isPng) {
	
					var newImg = new Element('div');				
					newImg.setStyles({ 
						'filter': "progid:DXImageTransform.Microsoft.AlphaImageLoader(enabled='true', sizingMethod='crop', src='" + imgsrc + "')", 
						'position': 'relative', 
						'background': 'transparent',
						'height': el.getSize().y,
						'width': el.getSize().x
					});
					newImg.replaces(el);
				};
		 
			});
		}
		
			 
	}
	
	if(Browser.Engine.version <= 4 && Browser.Engine.trident) {
		 window.addEvent('domready', EasyFixPng); 
	}