$(document).ready(function() {
	function switchPage(){
		if($(this).parent().hasClass('current')){
			return false;// do nothing
		}
		$('table.tertiary .current').removeClass('current');// reset/hide everything
		$(this).blur().parent().addClass('current');// make the item we selected look selected
		$('#content_' + this.id).addClass('current');// show the content for the item selected
		try{// this is a huge kludge for IE. don't know what the problem is at all so I put in a try catch
			var allMovies = document.getElementsByTagName('object');
			for(var i=0;i<allMovies.length;i++){
				allMovies[i].pauseVideo();
			}
		}catch(e){}
		return false;// prevent normal href from executing
	}
	
	$('ul.nav li a').click(switchPage);// attach functionality to a tags in tertiary nav
});