$(document).ready(function() {
	
	// Make Thumbs Fade In for Sidebar
	$('.video_thumbs a img').hover(function() {
		$(this).stop().animate({ opacity: .6 }, 'fast');
	}, function() {
		$(this).stop().animate({opacity: 1}, 'fast');
	});
	
	// Sub_Nav Stuff
	$('.nav ul li a').attr('title', '');
	$('.nav ul li').has('ul').addClass('sub');
	$('li.sub ul li:last-child a').css({'border':'none'});
	
	$('li.sub').hover(
   	function() { $('ul:eq(0)', this).stop(true, true).slideDown(200); /*$('a:eq(0)', this).css({'color': '#929B40'});*/ },
   	function() { $('ul:eq(0)', this).stop(true, true).slideUp('fast'); /*$('a:eq(0)',this).css({'color': '#3f4c33'});*/
 	});
 	
	$(".post_content p").each(function(){
			var $this = $(this);
			if ($this.text() == " " || $this.text() == "&nbsp;") {
				$this.remove();
			}
	});
	
	// External Links
	$('a[rel="external"]').click( function() {
    window.open( $(this).attr('href') );
    return false;
  });
 	
 	//ToolTips
 	$("#tooltip img[title]").tooltip({ position: "bottom center"});
});
$(window).load(function() {
	// Make Sidebar = to Content Area of Sidebar is Shorter by nature
	var left_height = $('.left').height();
	var right_height = $('.right').height();
	
	if(right_height < left_height) {
		$('.right').height(left_height);
	}
});
