jQuery(document).ready(function(){

	//podlinkowanie boksów
	jQuery('.boxWspolpraca, .boxCennik').css('cursor', 'pointer').click(function() {
		document.location.href = jQuery(this).find('h3 a').attr('href');
	});
	
	//przewijanie produktów
	jQuery(".productSlider").jCarouselLite({
		btnNext: ".slideNext",
		btnPrev: ".slidePrev",
		auto: 3000,
		speed: 500
	});
	
	//dodanie <strong> do linków menu (pomocne przy SIFR-rze) 
	jQuery('#col1 ul.mainmenu > li a').parent().each(function (i) {
		jQuery(this).html('<strong>'+jQuery(this).html()+'</strong>');							   
	});
	
	jQuery('div.introTextText').each(function() {
		jQuery(this).parent().prev().find('h2.cno').insertBefore($(this).find('p:first'));
	});
	jQuery('div.introTextImg img').css('cursor', 'pointer').click(function() {
		document.location.href = jQuery(this).parent().next().find('h2.cno a').attr('href');
	});
	
});

if (ie == 1) {
	var SIFRmenuSelector = '#col1 ul li';
} else {
	var SIFRmenuSelector = '#col1 ul.mainmenu li strong';	
}

//SIFR
sIFR.debugMode = true;
sIFR.activate();
sIFR.replace({
	selector: '#col2 > .cno > h1, #col2 .introText h1, h1.sifr, .rightBox h3',
	src: '/inc/sifr/myriadprolight-cyr-278-v2.swf',
	css: {'.sIFR-root': {'color': '#304A42'}},
	wmode: 'transparent'
});

sIFR.replace({
	selector: SIFRmenuSelector,
	src: '/inc/sifr/myriadpro-cyr.swf',
	css: [
      '.sIFR-root { }',
      'a { text-decoration: none;}',
      'a:link { color: #304A42; }',
      'a:hover { color: #000000; text-decoration: none; }'
    ],
	wmode: 'transparent'
});
