$(document).ready(function() {
	//przewijanie produktów
	$(".productSlider").jCarouselLite({
		btnNext: ".slideNext",
		btnPrev: ".slidePrev",
		auto: 5000,
		speed: 900
	});
	$(".newsScroller").jCarouselLite({
		btnNext: ".newsSlideNext",
		btnPrev: ".newsSlidePrev",
		auto: 5000,
		speed: 900,
		vertical: true
	});
	
	//nazwa sekcji
	if ($('#testSectionName').text() == 'searchResult') {
		//$('h2#sectionName').html('Search results');
	} else {
//		if ($('h2#sectionName').text() == '') {
//			var activemenu = $('#mainmenu > ul > li.active > a').text();
//			if (activemenu != '') {
//				$('h2#sectionName').text(activemenu);
//			} else {
//				$('h2#sectionName').text('Innova');
//			}
//		}			
	}
	
	$('input:text, textarea').focus(function() {
		$(this).addClass('focus');
	}).blur(function() {
		$(this).removeClass('focus');
	});
	
	$('a.fancy').fancybox({'overlayShow':	true});
	
});

var anivers = {
	src: '/templates/innova/sifr/anivers398.swf'
};

sIFR.useStyleCheck = true;
sIFR.activate();

sIFR.replace(anivers, {
	selector: '#content h2#sectionName'
    ,css: [
      '.sIFR-root { text-transform: uppercase; color: #0D4090; font-size: 28px; letter-spacing: 1.5; }'
    ]
	,wmode: 'transparent'
});

sIFR.replace(anivers, {
	selector: '#content h1'
    ,css: [
      '.sIFR-root { color: #666A6D; font-size: 20px; }'
      ,'a { text-decoration: none; }'
      ,'a:link { color: #313639; }'
      ,'a:hover { color: #000000; }'
    ]
	,wmode: 'transparent'
});


sIFR.replace(anivers, {
	selector: '.blog h2'
    ,css: [
      '.sIFR-root { color: #313639; font-size: 16px; }'
      ,'a { text-decoration: none; }'
      ,'a:link { color: #313639; }'
      ,'a:hover { color: #000000; }'
    ]
	,wmode: 'transparent'
});

sIFR.replace(anivers, {
	selector: '#col3 h3'
    ,css: [
      '.sIFR-root { color: #0E51AA; font-size: 16px; }'
      ,'a { text-decoration: none; }'
      ,'a:link { color: #0E51AA; }'
      ,'a:hover { color: #000000; }'
    ]
	,wmode: 'transparent'
});

sIFR.replace(anivers, {
	selector: '.leading p'
    ,css: [
      '.sIFR-root { color: #ffffff; }'
    ]
	,wmode: 'transparent'
});