function checkRequiredFields(formObj)
{
	ok = true;
    $(formObj).find(".requiredField").each(function(){
			if (this.value=='')
	        {
          		ok=false;
          		$(this).css("background", "#ff9");
        	}
        	else
        	{
          		$(this).css("background", "#fff");
        	};                    
      	});
	if (ok)
		return true;
	alert('Nie wypełniono wszystkich wymaganych pól!');
    return false;
}

$(document).ready(function(){
	$(".requiredField[@type!='hidden']").after('<span class="redStar">*</span>');
	$(".gal").mouseover(function(){$(this).addClass("gal-over")}).mouseout(function(){$(this).removeClass("gal-over")});
	$("#flash").each(function(){var FO = { movie:"img/intro2_"+$(this).attr("class")+".swf", width:"760", height:"323", majorversion:"8", build:"0", xi:"true" };UFO.create(FO, "flash");});
	$('.calendar-input').calendar();
	$(".new-window").attr("target", "_blank");
	$(".gal a").lightBox({txtImage: txtImage, txtOf: txtOf, txtClose: txtClose, imageBtnClose: ''});
	$(".lightbox-s").lightBox({txtImage: txtImage, txtOf: txtOf, txtClose: txtClose, overlayBgColor: '#300', containerBorderColor: '#ed1b24', imageBtnClose: ''});
});


var myriad = {
    src: 'sifr/myriad.swf'
  };
sIFR.delayCSS  = true;
sIFR.activate(myriad);
sIFR.replace(myriad, {
			selector: 'h2.sifrItalic0, h2.sifrItalic2'
			,css: {
      			'.sIFR-root': { 
						'color': '#67686b',
						'font-style': 'italic'
						}
    			}
			,wmode: 'transparent'
			});
			
sIFR.replace(myriad, {
			selector: 'h2.sifrItalic, h2.sifrItalic1'
			,css: {
      			'.sIFR-root': { 
						'color': '#acaaa7',
						'font-style': 'italic'
						}
    			}
			,wmode: 'transparent'
			});
			
sIFR.replace(myriad, {
			selector: '.sifrmen'
			,css: {
      			'.sIFR-root': {'text-align': 'center'},
				'a': {'color': '#67686b', 'text-decoration': 'none', 'font-style': 'normal'},
				'a:hover': {'color': '#ee0000'}
    			}
			,wmode: 'transparent',
			offsetTop: 3,
			selectable: false
			});
			
sIFR.replace(myriad, {
			selector: '.sifrmenAct'
			,css: {
      			'.sIFR-root': {'text-align': 'center'},
				'a': {'color': '#ee0000', 'text-decoration': 'none', 'font-style': 'normal'},
				'a:hover': {'color': '#ee0000'}
    			}
			,wmode: 'transparent',
			offsetTop: 3,
			selectable: false
			});
			

