

jQuery(document).ready(function(){

    // Box Equal Height
    jQuery('.col1 .post.fl').each(function(){
            
            h_left = jQuery(this).children('.post-inner').height();
            h_right = jQuery(this).next('.fr').children('.post-inner').height();
            
            if(h_left >= h_right)
            {
                jQuery(this).next('.fr').children('.post-inner').height(h_left - 8);
            }
            if (h_left < h_right)
            {
                jQuery(this).children('.post-inner').height(h_right - 8);
            }
        })
        
        jQuery('.video-more ul.video_tabs li').css('position','relative');
        jQuery('.video-more ul.video_tabs img.thumbnail').hover(function(){
                var title =  jQuery(this).attr('alt');
                jQuery(this).prev('span').fadeIn(200);
            },function(){
                jQuery(this).prev('span').fadeOut(200).hide();
            })
        
        jQuery('.video-more ul.video_tabs img.thumbnail').click(function(){
        
            var clicked_video = jQuery(this).parent('li').attr('class');
            jQuery('.video-more ul.video_tabs img.thumbnail').removeClass('video-active');
            jQuery(this).addClass('video-active');
            jQuery('.video-shown').hide();
            jQuery('.' + clicked_video).fadeIn(400, "linear");
            
        })
    
})

// Sub-featured thumbnail hover effect
jQuery(document).ready(function () {
	jQuery('.entry img').mouseover(function() {
		jQuery(this).stop().fadeTo(300, 0.5);
	});
	jQuery('.entry img').mouseout(function() {
		jQuery(this).stop().fadeTo(400, 1.0);
	});
});

// Sub-featured thumbnail hover effect
jQuery(document).ready(function () {
	jQuery('.post .thumbnail').mouseover(function() {
		jQuery(this).stop().fadeTo(300, 0.75);
	});
	jQuery('.post .thumbnail').mouseout(function() {
		jQuery(this).stop().fadeTo(400, 1.0);
	});
});

jQuery(document).ready(function () {
	jQuery('.slide img').mouseover(function() {
		jQuery(this).stop().fadeTo(300, 0.75);
	});
	jQuery('.slide img').mouseout(function() {
		jQuery(this).stop().fadeTo(400, 1.0);
	});
});