function css() {

	/* go on for IE in generall */
	if($.browser.msie){
		
		/* take care IE 6 only */
		if($.browser.version <= 6) {
		
			$('#breadcrumbs li:first-child ,#prod-mod #prod-img .gal-mod li:first-child ,#footer ul li:first-child').addClass('first-child');
			$('#top #nav li,#side-bar-0 .menu li').hover(function(){
				$(this).addClass('hover');
			}, function(){
				$(this).removeClass('hover');
			});
			$('img').css('behavior','url(pliki/javascript/iepngfix.htc)');
		
		}
	}
	
	$('.menu a').wrap('<span></span>');


	$('.prod-list3 ul ul').each(function(){
		x = $(this).children('li').size();
		y = 0;
		z = 958;
		$(this).children('li').each(function(i){
			y = y+20+$(this).width();
			
		});	
		if(z>y)
			y = (z-y)/2;
		else
			y = 0;
		$(this).children('li:first-child').css('marginLeft',y);
		
	});	
	
      $("#set-size").find("a.size1").click(function(){ 
      
        // $("#content-box").removeClass("size2");
        $("#content-box").removeClass("size3");
        
        $("#content-box").addClass("size1"); 
        
      });

      $("#set-size").find("a.size3").click(function(){ 
      
        // $("#content-box").removeClass("size2");
        $("#content-box").removeClass("size1");
        
        $("#content-box").addClass("size3"); 
        
      }); 
      	
	$('#kat-list .item .i').append('<span></span>');

	$('.rekordBox a.img img').each(function(){
		var s = $(this).attr('src');
		$(this).image(s,function(){
			
			var w = $(this).attr('width')+12;
			$(this).parent().siblings('.rekordBox-short').children('.nav').children('span').css('left', w+'px');
		});
	});
	
}

$(document).ready(css);

$.fn.image = function(src,f){ 
	return this.each(function(){ 
	
		var i = new Image(); 
		i.src = src; 
		i.onload = f; 
		
		$(this).after(i,
			$(i).hide()
		);
	}); 
} 
