                
sIFR.replace(antiqua, {
    selector: '.box_banner .polecamy',
    css: [
            '.sIFR-root {font-size: 18px; color: #FFFFFF; margin-left: 3px; height: 30px;}',
    ],
    transparent: true,
    filters: {
        DropShadow: {
				color: '#335A96',
				angle: 45,
				blurY: 1,
				blurX: 1,
				distance: 2
			}
    }
});


sIFR.replace(antiqua, {
    selector: '.mapaPolski .blackText',
    css: [
            '.sIFR-root {font-size: 11px; color: #000000; margin-left: 3px; height: 30px;}',
    ],
    transparent: true,
    filters: {


    }
});

sIFR.replace(antiqua, {
    selector: '.mapaPolski .bigText',
    css: [
            '.sIFR-root {font-size: 18px; color: #0A61AF; margin-left: 3px; height: 30px; }',
    ],
    transparent: true,
    filters: {

    }
});

sIFR.replace(antiqua, {
    selector: '.mapaPolski .mediumText',
    css: [
            '.sIFR-root {font-size: 15px; color: #0A61AF; margin-left: 3px; height: 30px}',
    ],
    transparent: true,
    filters: {

    }
});



sIFR.replace(antiqua, {
	selector: '.box_banner .tytulPolecamy',
	css: [
		'.sIFR-root {font-size: 20px; color: #FFFFFF; margin-left: 3px; height: 50px}',
	],
	transparent: true,
	filters: {
		Glow: {
			color: '#ff0000',
			strength: 10,
			quality: 1,
			blurY: 6,
			blurX: 6
		},
		DropShadow: {
			color: '#000000',
			angle: 45,
			blurY: 5,
			blurX: 5,
			distance: 0,
			alpha: .50
		}
	}
});


sIFR.replace(antiqua, {
	selector: '.box_banner .cenaPolecamy',
	css: [
		'.sIFR-root {font-size: 26px; color: #FFFFFF; margin-left: 3px}',
	],
	transparent: true,
	filters: {
		Glow: {
			color: '#ff0000',
			strength: 10,
			quality: 1,
			blurY: 6,
			blurX: 6
		},
		DropShadow: {
			color: '#000000',
			angle: 45,
			blurY: 5,
			blurX: 5,
			distance: 0,
			alpha: .50
		}
	}
});


sIFR.replace(antiqua, {
	selector: '.partnerzyTytul',
	css: [
                '.sIFR-root {font-size: 12px; leading: 0; text-align: left; color: #67B4CF;}',
        ],
        transparent: true,
        filters: {

        }
});

sIFR.replace(antiqua, {
	selector: '.box_banner .tytul',
	css: [
		'.sIFR-root {font-size: 20px; color: #FFFFFF; margin-left: 3px; height: 50px}',
	],
	transparent: true,
	filters: {
		Glow: {
			color: '#004B92',
			strength: 10,
			quality: 1,
			blurY: 6,
			blurX: 6
		},
		DropShadow: {
			color: '#000000',
			angle: 45,
			blurY: 5,
			blurX: 5,
			distance: 0,
			alpha: .50
		}
	}
});

sIFR.replace(antiqua, {
	selector: '.box_banner .cena',
	css: [
		'.sIFR-root {font-size: 26px; color: #FFFFFF; margin-left: 3px}',
	],
	transparent: true,
	filters: {
		Glow: {
			color: '#004B92',
			strength: 10,
			quality: 1,
			blurY: 6,
			blurX: 6
		},
		DropShadow: {
			color: '#000000',
			angle: 45,
			blurY: 5,
			blurX: 5,
			distance: 0,
			alpha: .50
		}
	}
	
});

sIFR.replace(antiqua, {
	selector: 'div.napis span',
	transparent: true,
	css: {
		'.sIFR-root': {'font-size' : '30px', 'margin-left' : '3px', 'color': '#FFFFFF', 'text-align' : 'center', 'width' : '300px'}
	},
	filters: {
		Glow: {
			color: '#CCDAE8',
			strength: 10,
			quality: 2,
			blurY: 8,
			blurX: 8
		},
		DropShadow: {
			color: '#638DB8',
			angle: 45,
			blurY: 1,
			blurX: 1,
			distance: 2
		}
	}
});

window.addEvent('domready', function() {	
	wypelnianieInputow('input.loginik');
	wypelnianieInputow('input.haselko');
	wypelnianieInputow('input.email');
	
	FormValidator.add('emailUnique', {
	   errorMsg: 'Taki e-mail jest już w bazie!',
	   test: function(element, props) {
	      if (element.value.length > 0) {
	         var req = new Request({
	            url: 'scripts/walidacja-ajax.php',
	            async: false
	         }).send("mail=" + element.value);
	         return (req.response.text != '1');
	      }
	      return true;
	   }
	});
	
	FormValidator.add('loginPasswordExists', {
	   errorMsg: 'Niepoprawny login lub hasło!!',
	   test: function(element, props) {
	      if (element.value.length > 0) {
	         var req = new Request({
	            url: 'scripts/walidacja-ajax.php',
	            async: false
	         }).send("haslo=" + element.value + "&login=" + $$('.loginik').get('value'));
	         return (req.response.text != '1');
	      }
	      return true;
	   }
	});
	
	
	myFormValidator = new Form.Validator.Inline($('form_newsletter'), {
	      stopOnFailure: true,
	      useTitles: true,
	      errorPrefix: "",
	            
	      onFormValidate: function(passed, form, event) {
	         if (passed) {
	            form.submit();
	         }
	      },

	      onElementValidate: function(passed, element, validator, is_warn) {
	         if (element.get('name') == 'email' && !passed) {
	            //element.getParent().setStyle('background', '#FFF0F0');
	            //getElement('.validation-advice').setStyle('background', '#FFF0F0');
	         }
	      }
	});
	
	myFormValidator = new Form.Validator.Inline($('form_logowanie'), {
	      stopOnFailure: true,
	      useTitles: true,
	      errorPrefix: "",
	            
	      onFormValidate: function(passed, form, event) {
	         if (passed) {
	            form.submit();
	         }
	      }
	});
	
	
});

