jQuery(document).ready(function($){

/*--- [start] equal height columns with jquery---*/
function equalHeight(group) {
	var tallest = 0;
	group.each(function() {
		var thisHeight = $(this).height();
		if(thisHeight > tallest) {
			tallest = thisHeight;
		}
	});
	group.height(tallest);
}

$(document).ready(function() {
	equalHeight($('div.ft_wrap div.ft'));
	equalHeight($('div.related div.ft'));
	equalHeight($('div.widget_links ul li'));
});
/*--- [end] equal height columns with jquery---*/


$('div.paging ul li').hover(function(){
	$(this).addClass('hover');
	$(this).children('ul').fadeIn('fast');}, function(){
		$(this).removeClass('hover');
	    $(this).children('ul').fadeOut('fast');
	});

$('div.cats ul li').hover(function(){
	$(this).addClass('hover');
	$(this).children('ul').fadeIn('fast');}, function(){
		$(this).removeClass('hover');
	    $(this).children('ul').fadeOut('fast');
	});

if ($('body').hasClass('single')) {
/*smart position*/
	function smartPosition(obj) {
		if ( jQuery.browser.msie && parseInt(jQuery.browser.version, 10) < 7 ) {
			return;
		}
		jQuery(window).scroll(function() {
		// Detect if content is being scroll offscreen.
		if ( (document.documentElement.scrollTop || document.body.scrollTop) >= jQuery(obj).offset().top) {
			jQuery('#shares').addClass('smartposition');
		} else {
			jQuery('#shares').removeClass('smartposition').addClass('fix_top_abs');
		}
		});
	}; 
		smartPosition('#shares_position');
		
		
		
		
		function smartPosition1(obj) {
		if ( jQuery.browser.msie && parseInt(jQuery.browser.version, 10) < 7 ) {
			return;
		}
		jQuery(window).scroll(function() {
		// Detect if content is being scroll offscreen.
		if ( (document.documentElement.scrollTop || document.body.scrollTop) >= jQuery(obj).offset().top) {
			jQuery('#shares').addClass('smartpositiona').css('top',hh-40).removeClass('smartposition');
		} else {
			jQuery('#shares').removeClass('smartpositiona').css('top','291px');
		}
		});
	}; 
		smartPosition1('div.stop_fixed');
		
		
}


$('div.right_ps div.widget-container').first().addClass('nonpad');

$('<br class="clear" />').insertAfter('ul.xoxo');

$("div.think3r_article").addClass(function(i){ 
  i++;
  return 'class-' + i;
 });



$('span.post_left_wrap img').removeAttr('title');
$('.ft_img_wrap img').removeAttr('title');
$('.fit_img img').removeAttr('title');
$('.olp_left img').removeAttr('title');

$('div.ft a').hover(function(){
	$(this).find('span.ft_img_more').animate({top:'8px', left:'-8px', width:'85px'},{queue:false,duration:200}); },
	function(){
		$(this).find('span.ft_img_more').animate({top:'24px', left:'-8px', width:'0px'},{queue:false,duration:300});
	});
 

$('div.post_left_rel a').hover(function(){
	$(this).find('span.post_img_more').animate({top:'8px', left:'-8px', width:'85px'},{queue:false,duration:200}); },
	function(){
		$(this).find('span.post_img_more').animate({top:'24px', left:'-8px', width:'0px'},{queue:false,duration:300});
	});


$(".class").hover(function() {
  $(this).next('.description').fadeIn(); //or .fadeIn(2000) for 2 seconds
}, function() {
  $(this).next('.description').fadeOut();
});


$('div.foot_logo h5 a').hover(function(){
	$(this).animate({backgroundPosition:'243px 0px'},{queue:false,duration:200}); },
	function(){
		$(this).animate({backgroundPosition:'0px 0px'},{queue:false,duration:300});
	});


$('div.foot_logo h5 a').mouseover(function()
        {
           $(this).animate({backgroundPosition: '-243px 0px'}, {duration:500});
        }).mouseout(function()
        {
            $(this).animate({backgroundPosition: '0px 0px'}, {duration:300});
        });


$('div.aut_c3 a, div.aut_c5 a, div.aut_c6 a').mouseover(function()
        {
           $(this).animate({backgroundPosition: '0 -43px'}, {duration:500});
        }).mouseout(function()
        {
            $(this).animate({backgroundPosition: '0px 0px'}, {duration:300});
        });

$('div.aut_c1 a, div.aut_c2 a, div.aut_c4 a, div.aut_c7 a').mouseover(function()
        {
           $(this).animate({backgroundPosition: '0 -42px'}, {duration:500});
        }).mouseout(function()
        {
            $(this).animate({backgroundPosition: '0px 0px'}, {duration:300});
        });		
		
		
$('.box_feed .subs_box ul li a, #subscribe ul li a').mouseover(function()
        {
           $(this).animate({backgroundPosition: '0 -42px'}, {duration:500});
        }).mouseout(function()
        {
            $(this).animate({backgroundPosition: '0px 0px'}, {duration:300});
        });


$('div.logo h1 a').mouseover(function()
        {
           $(this).animate({backgroundPosition: '0 -76px'}, {duration:500});
        }).mouseout(function()
        {
            $(this).animate({backgroundPosition: '0px 0px'}, {duration:300});
        });

$()


var hh = $('body.single div.hentry').height();
$('div.stop_fixed').css('top',hh-320);
$('div.smartpositiona').css('top',hh-40);





$("div.read_again a").click(function () { 
      elementClick = $(this).attr("href");
      destination = $(elementClick).offset().top;
      $("html, body").animate({ scrollTop: destination}, 800 );
      return false;
    });



$('div.fit a').hover(function(){
	$(this).find('span.fit_bot').animate({height:'100px',},{queue:false,duration:300});
	$(this).find('span.fit_exc').animate({top:'43px',},{queue:false,duration:300});
	$(this).find('span.fit_date').animate({top:'0px'},{queue:false,duration:300}); },
	function(){
		$(this).find('span.fit_bot').animate({height:'31px',},{queue:false,duration:300});
		$(this).find('span.fit_exc').animate({top:'31px'},{queue:false,duration:300});
	    $(this).find('span.fit_date').animate({top:'-18px'},{queue:false,duration:300});
	});


$("div.post_first .entry-title a").each(function(){
$(this).hover(function(){
 $(this).animate( {backgroundColor:'#e4f5f9'}, 'slow');
},function(){
   $(this).animate({ backgroundColor:'#f9f9f9'}, 'fast');
});
});


$("div.hentry .entry-title a").each(function(){
$(this).hover(function(){
 $(this).animate( {backgroundColor:'#e4f5f9'}, 'slow');
},function(){
   $(this).animate({ backgroundColor:'#fff'}, 'fast');
});
});


$("a.lc_linkus .lc_rbot").each(function(){
$(this).hover(function(){
 $(this).animate( {backgroundColor:'#93ca00'}, 'slow');
},function(){
   $(this).animate({ backgroundColor:'#fff'}, 'fast');
});
});










});
