function css() {

	/* go on for IE in generall */
	if($.browser.msie){
		
		/* take care IE 6 only */
		if($.browser.version <= 6) {
		
			
		
			$('#top #nav li:first-child, #footer .i>ul>li:first-child').addClass('first-child');
			$('#footer .i>ul, #footer .i>ul>li').addClass('first-item');
		
			var l = $('#logo img').attr('src');
			$('#logo img').hide();
			$('#logo').css({background:'none' , filter: 'progid:DXImageTransform.Microsoft.AlphaImageLoader(src="'+l+'",sizingMethod=image);'});
			
			$('input').each(function(){
				var t = $(this).attr('type');
				$(this).addClass(t);
			});
					
		
		}
	}

      Cufon.replace( ".cf1" );

			$("a.zoom1").fancybox({
				'overlayOpacity'	:	0.7,
				'overlayColor'		:	'#FFF' ,
				'frameWidth' : 600 ,
				'frameHeight' : 420			});
				
			$("a.zoom2").fancybox({
				'overlayOpacity'	:	0.7,
				'overlayColor'		:	'#FFF' ,
				'frameWidth' : 980 ,
				'frameHeight' : 612			});

      $('#insert-swf-PGPT').flash(
          { src: 'http://www.lukaszpiec.pl/blog/wp-content/uploads/2011/04/title2.swf',
            width: 585,
            height: 78 },
          { version: 8 }
      ); 
      
      $('#insert-swf-ARP').flash(
          { src: 'http://www.lukaszpiec.pl/blog/wp-content/uploads/2011/04/ad3.swf',
            width: 585,
            height: 78 },
          { version: 8 }
      ); 

	$('#wrapper').append('<span class="x"></span>');
  
  $('a.cloud, img.cloud').cloud();
  $('#side-bar-1 .mod ul').addClass('clear-list');	

}

$(document).ready(css);

jQuery.fn.extend({
	cloud: function() {
		$('body').prepend('<div id="cloud"></div>');
		$(this).mouseover(function(e){
		
			cloudClass = $(this).attr('rel');
			/*
			if($(this).is('.cloud')){
				cloudTitle = $(this).text() || $(this).children().attr('alt');
				cloudTitle = '<strong>'+cloudTitle+'</strong>';
			}
			if($(this).is('.overcloud')){
				cloudTitle = $(this).children('.cloud-desc').text();			
				cloudTitle = '<strong>'+cloudTitle+'</strong>';
			}
			if($(this).is('.clearcloud')){ cloudTitle = ''; }
			*/
			cloudText = $(this).attr('title');
			
			$('#cloud').addClass(cloudClass).html('<p>'+cloudText+'</p>');
			$(this).attr('title','');
			
		});
		$(this).mousemove(function(e){
			var x, y;
			try { x = e.pageX-20; y = e.pageY-30; } // FF
			catch(e) { x = event.clientX-20; y = event.clientY-40; } // IE
		
			y = y+40+'px';
			x = x+40+'px';
			$('#cloud').css({ display: 'block', top: y, left: x})
		});
		
		$(this).mouseout(function(e){ 
			$('#cloud').removeClass().css({ display: 'none'}); 
			cloudText = $('#cloud p').text();
			$(this).attr('title',cloudText);
		});	
	} // cloud()
});	

