webroot='/';
$(document).ready(function(){
	
	$('a[@rel*=lightbox]').lightbox();
	$('.flowplayer').each(function(event){
	file=$(this).attr('href');
		params={
			src:'FlowPlayerDark.swf'
		}
		var config=new Array();
		config['config']={ 
				videoFile: file, 
				initialScale: 'scale',
				loop: false,
				autoPlay: false	
		};
		if($(this).hasClass('mp3')) config.config.showFullScreenButton =false;
		$(this).flashembed(params, config, params);
	});
	$('.search input').val("Wpisz szukane słowo");
	$('.search input').css("color",'#909090');
	$('.search input').focus(
		function() {
				$(this).val("");
				$(this).css('text-align','left')
				$(this).css('color','black')
			}
	);
	//podmniana obrazków w rankingach
	$('.rankingi li').hover(
			function() {
				klasa = ($(this).attr('class'));
				$(this).parent().parent().find('.image_box img').css('display','none');
				($('.rankingi .image_box .'+klasa).css('display','inline-block'));
			},
			function() {
				
			});
	//ie6 bug ukrywa elementy i pzrypisuje im szerokość
	
	//ie bug zamienia standardowe hover
	$('#menu_glowne > ul > li').hover(
	
			function() {
				$('ul', this).css('display','none'); 
				$('ul', this).fadeIn(150);
			},
			function() {
				$('ul', this).css('display','block'); 
				$('ul', this).fadeOut(150); 
			});
	$('#menu_glowne li li').hover(
			function() { 
				 $(this).css('background-color',  '#f0f0f0');
				 $('a', this).css('color',  '#969696');
				 
			},
			function() {
				$(this).css('background-color',  'black');
				$('a', this).css('color',  '#f0f0f0');
			});
	});
