var $j = jQuery.noConflict();

$j(document).ready(function(){
	$j('.tabs a').click(function(){
		
		$j('.reset').hide();	
		
		$j('.tabs a').removeClass('active');
		$j(this).addClass('active');
				
		
		if($j(this).hasClass('bt_comments')){			
			$j('#allcomments').show();
			
		} else if($j(this).hasClass('bt_recent')){
			$j('#recentVideos').show();
		} else if($j(this).hasClass('bt_related')){
			$j('#relatedVideos').show();
		}
		 
		
		return false;
	});
	

	
	$j('#recentVideos').load('/ #videoThumbs',function(){});
	
	
});


function playHover(){
		$j('.thumb').each(function(){
		
		$j(this).hover(function() {

			if ($j('em', this).length <= 0) {
				$j(this).prepend('<em>' + '' + '</em>')
			}
			
			$j('em', this).css( {
				'opacity' : '0.0'
			}).animate( {
				'opacity' : '0.8'
			});

		}, function() {

			$j('em', this).animate( {
				'opacity' : '0.0'
			}, 300, function() {
				$j(this).remove();
				
			});

		})
		
	});
}


