
	$(document).ready(function(){
				
		$("#portleft img:gt(0)").hide();
				
		$("#tooltip").hide();
		
		$("#portmore").hide();
		
		$("#bottomlogo img").hover(function() {
		
			$("#tooltip").fadeIn(200);
			
		}, function() {
			
			$("#tooltip").fadeOut(200);
			
		});
		
		
		$("#learnmore").toggle(
		
			function() {
				
				$("#portmore").slideDown();
				
			},
			function() {
				
				$("#portmore").slideUp();
				
			}
		);
		
		$(".thumb").click(function() {
		
			$(".thumb").find("img").css({ 'border' : '2px solid #d0d0d0'});
			
			$(this).find("img").css({ 'border' : '2px solid #f8a636'});
		
		});
		
		$('#latest').hide(0);
		
		$('#popular').hide(0);
		
		$("#topics_btn").click(function() {
			
			$('#popular').hide(0);
			$('#latest').hide(0);
			$('#topics').show(300);
		
		});
		
		$("#latest_btn").click(function() {
			
			$('#popular').hide(0);
			$('#topics').hide(0);
			$('#latest').show(300);
		
		});
		
		$("#popular_btn").click(function() {
			
			$('#topics').hide(0);
			$('#latest').hide(0);
			$('#popular').show(300);
		
		});
		
		$("#navboxnav a").click(function() {
			
				
			$("#navboxnav a").removeClass('tabactive');
			
			$("#navboxnav a").removeClass('navbox_btn');
			
			$("#navboxnav a").addClass('navbox_btn');
			
			$(this).removeClass('navbox_btn');
			
			$(this).addClass('tabactive');
			
		
		});
		
		
	});
	
	function swap(src,id) {
	
		document.getElementById(id).src = src;	
		
	}

