// toggles the class of the current element with that of it's peers
// RELIES ON JQUERY FRAMEWORK!
function toggleTab(ele,target) {
	// swap tab styles
	if ($(ele).hasClass('.tab-active')) return;
	$('.tab-active').removeClass().attr({href: '#'}); // set as active tab
	$(ele).addClass('tab-active').removeAttr('href'); // set as backgrond tab
	Cufon.replace('#tabs a');
	Cufon.replace('#tabs a.tab-active');
	
	// load content
	var url = 'content/' + $(ele).attr('id') + '.php';
	$(target).load(url);
}