$(document).ready(function(){
	
$('a, input[type=image]').focus(function() { this.blur(); });
$('.flist a').hover(
        function () {  $(this).animate({ color:'#dddc00'}, {queue:false,duration:700});}, 
		function () {  $(this).animate({ color:'#ffffff'}, {queue:false,duration:700});}
					);


 $('.csc-textpic-imagewrap').s3Slider({timeOut: 6000});

//$('.item img').css('top', function() {	return (80-($(this).height()))/2;		});
$('.grid td, .portfolioSingleKlientGrid .item').fadeTo("slow", 0.6)
.mouseenter(function() {
	$(this).fadeTo("slow", 1);

	})
.mouseleave(function() {
	$(this).fadeTo("slow", 0.6);
	});


$(".portfolioSingleKlientGrid .item:nth-child(4), .portfolioSingleKlientGrid .item:nth-child(7)").css("padding-right", '0');
$('.listImage a, .clientSingleImage a, .singleImage a, .gridImage a').click(function() {

  	img = new Image();
	img.src = $(this).attr('href');
	img.title = $(this).attr('title');
	$('#col3_content').addClass('loader');

	$(img).load(function () {	
	 $('#col3_content').removeClass('loader');
  		$(this).hide();
  		$('#col3_content').empty().append(this);    
  		$(this).fadeIn();
   		})
    .error(function () {})  
  
		return false;

	
	});


	});	
	
