function switchNav(tab,story) {
	var tabs = document.getElementById('featured-tabs');
	var stories = document.getElementById('article-featured');
	var childtabs = tabs.childNodes;
	var childstories = stories.childNodes;
	var nodetab = 1;
	var nodestory = 1;
	for(var i = 0; i < childtabs.length; i++) {
		if (childtabs[i].nodeType == 1) {
			var str = String(childtabs[i].className);
			if ((str.indexOf('active') != -1) && (nodetab != tab)) {
				childtabs[i].className = 'leaf';
			} else if (nodetab == tab) {
				childtabs[i].className = 'active';
			}
			if (str.indexOf('last') != -1) {
				childtabs[i].className = childtabs[i].className + ' last';
			}
			nodetab++;
		}
	}
	for(var i = 0; i < childstories.length; i++) {
		var str = String(childstories[i].id);

		if (str.indexOf('featured-item') != -1) {
			if (childstories[i].style.display != 'none') {
				childstories[i].style.display = 'none';
			}
		}
	}
	divid = document.getElementById('featured-item-'+story);
	divid.style.display='block';

}


$(document).ready( function() { 
  $('a.exhibit-link').facebox();
  $('a.facebox').facebox();
});