// JavaScript Document
///add one of the classes below to the <a> tag that is a link to another subtab on the same page
//e.g. <a href="#" class="subtabs-1-internal">
//if you want to link to content in subtab-2, the class is subtabs-2-internal, if you want to link to content in subtab-5, 
//the class should be subtabs-5-internal.

$(document).ready(function(){	
	$('.subtabs-1-internal').click(function() { 
		switchTab(0)
	});
	$('.subtabs-2-internal').click(function() { 
		switchTab(1)
	});
		$('.subtabs-3-internal').click(function() { 
		switchTab(2)
	});
		$('.subtabs-4-internal').click(function() { 
		switchTab(3)
	});
	$('.subtabs-5-internal').click(function() { 
		switchTab(4) 
	});
	$('.subtabs-6-internal').click(function() { 
		switchTab(5)
	});
});
function switchTab(i){
	var $tabs = $('#subtabs').subtabs(); // first tab selected
	$tabs.subtabs('select', i); 
    return false;
	}
