function internalTabs(){
	// controls tabs for internal pages 
	$('#right-column .tabs-wrap div div.parent').hide();
	$('#right-column .tabs-wrap div div.active').show();
	// set the tab ids (for multiple tab sections)
	$('*[id^=tabs-]').each(function(){
		// for everything containing "tabs-" grab the id and get the ending number
		var tabid = $(this).attr('id');
		var endingNumber = tabid.substr(4);
		var childrenDivs = '#' + tabid + ' div div';
		$(childrenDivs).each(function(){
			// for all the children divs, grab the id and add the ending number from above
			var childrenID = $(this).attr('id');
			var newChildID = childrenID + endingNumber;
			$(this).attr('id', newChildID)
		});
		var childrenNav = '#' + tabid + ' ul li';
		$(childrenNav).each(function(){
			// for all the children li's, grab the id and add the ending number from above
			var childrenID = $(this).attr('id');
			var newChildID = childrenID + endingNumber;
			$(this).attr('id', newChildID)
		});
	});
	$("li[id^='tab']").click(function(){
		// this is what happens when a tab is clicked
		// change the tab
		var clickedTab = $(this).attr('id');
		var endingNumber = clickedTab.substr(4);
		var passiveTabs = '#tabs' + endingNumber + ' #tabs-nav li';
		$(passiveTabs).css('background' , 'url(/tmpl/images/passive-tab-bg.gif) repeat-x top left');
		$(passiveTabs).css('color', '#777');
		$(this).css('background' , 'url(/tmpl/images/active-tab-bg.gif) repeat-x top left');
		$(this).css('color', '#f2f2f2');
		// display the content
		clickedTab = clickedTab.substr(0, 4);
		var showTab = '#' + clickedTab + '-content' + endingNumber;
		var hideTabs = '#tabs' + endingNumber + ' div div.parent';
		$(hideTabs).hide();
		$(showTab).show();
	});
	
	// hide the link if you're already on that page
	var currentURL = window.location.pathname;
	$('#tab-content div ul li').each(function(){
		var link = $('a', this).attr('href');
		if(link == currentURL){
			$(this).hide();
		}
	});
	
};
