function setPageNum(page){
	document.getElementById('page_num').innerHTML = page; 
	}
	
function sortComments(commentOrder){
  document.getElementById('corder').innerHTML = commentOrder;
	}	
	
function showMostVideoLatestStories(obj) {
	var showMostVideoLatestStoriesSelected = document.getElementById('video_most_box_nav').getElementsByTagName('a');
	
	$('#video_most_commented').hide();
	$('#video_most_popular').hide();
	$('#video_most_latest').show();
	$('#video_most_by_section').hide();

	for( i=0; i < showMostVideoLatestStoriesSelected.length; i++ ) {
	  showMostVideoLatestStoriesSelected[i].className = '';
	}
	obj.className = 'current';                    
	U.createCookie('vt', 'vr');
 }

function showVideoMostPopular(obj) {
	var showVideoMostPopularSelected = document.getElementById('video_most_box_nav').getElementsByTagName('a');

	$('#video_most_commented').hide();
	$('#video_most_popular').show();
	$('#video_most_latest').hide();
	$('#video_most_by_section').hide();

	for( i = 0; i < showVideoMostPopularSelected.length; i++ ) {
	  showVideoMostPopularSelected[i].className = '';
	}
	obj.className = 'current';        
	U.createCookie('vt', 'vp');        
  }

  function showVideoMostCommented(obj) {
	var showVideoMostCommentedSelected = document.getElementById('video_most_box_nav').getElementsByTagName('a');

	$('#video_most_commented').show();
	$('#video_most_popular').hide();
	$('#video_most_latest').hide();
	$('#video_most_by_section').hide();

	for (i = 0; i < showVideoMostCommentedSelected.length; i++) {
	  showVideoMostCommentedSelected[i].className = '';
	}
	obj.className = 'current';  
	U.createCookie('vt', 'vc');                
  }
  
  function showVideoBySection(obj) {
	var showVideoBySectionSelected = document.getElementById('video_most_box_nav').getElementsByTagName('a');

	$('#video_most_commented').hide();
	$('#video_most_popular').hide();
	$('#video_most_latest').hide();
	$('#video_most_by_section').show();

	for (i = 0; i < showVideoBySectionSelected.length; i++) {
	  showVideoBySectionSelected[i].className = '';
	}
	obj.className = 'current';  
	U.createCookie('vt', 'vs');                
  }

	function showNewsSectionMost(obj) {
 var showVideoNewsSelected = document.getElementById('video_most_by_section_nav').getElementsByTagName('a');
 
 	$('#video_most_news').show();
	$('#video_most_sports').hide();
	$('#video_most_around_town').hide();
	$('#video_most_health').hide();
	$('#video_most_aso').hide();
	
	for (i = 0; i < showVideoNewsSelected.length; i++) {
      showVideoNewsSelected[i].className = '';
  		}
			obj.className = 'section_current';
 }
 
 function showAroundTownSectionMost(obj) {
 var showVideoAroundTownSelected = document.getElementById('video_most_by_section_nav').getElementsByTagName('a');
 
	$('#video_most_news').hide();
	$('#video_most_sports').hide();
	$('#video_most_around_town').show();
	$('#video_most_health').hide();
	$('#video_most_aso').hide();
	
	for (i = 0; i < showVideoAroundTownSelected.length; i++) {
      showVideoAroundTownSelected[i].className = '';
  		}
			obj.className = 'section_current';
 }
 
 function showSportsSectionMost(obj) {
 var showVideoSportsSelected = document.getElementById('video_most_by_section_nav').getElementsByTagName('a');
 
	$('#video_most_news').hide();
	$('#video_most_sports').show();
	$('#video_most_around_town').hide();
	$('#video_most_health').hide();
	$('#video_most_aso').hide();
	
	for (i = 0; i < showVideoSportsSelected.length; i++) {
      showVideoSportsSelected[i].className = '';
  		}
			obj.className = 'section_current';
 }
 
 function showHealthSectionMost(obj) {
 var showVideoHealthSelected = document.getElementById('video_most_by_section_nav').getElementsByTagName('a');
 
	$('#video_most_news').hide();
	$('#video_most_sports').hide();
	$('#video_most_around_town').hide();
	$('#video_most_health').show();
	$('#video_most_aso').hide();
	
	for (i = 0; i < showVideoHealthSelected.length; i++) {
      showVideoHealthSelected[i].className = '';
  		}
			obj.className = 'section_current';
 }
 		 
 function showAsoSectionMost(obj) {
 var showVideoAsoSelected = document.getElementById('video_most_by_section_nav').getElementsByTagName('a');
 
	$('#video_most_news').hide();
	$('#video_most_sports').hide();
	$('#video_most_around_town').hide();
	$('#video_most_health').hide();
	$('#video_most_aso').show();
	
	for (i = 0; i < showVideoAsoSelected.length; i++) {
      showVideoAsoSelected[i].className = '';
  		}
			obj.className = 'section_current';
 }
		
