function showTimeline(){
	$("#aboutsec").hide();
	$("#timeline").show("slow");
	$("#tababout").removeClass("tabon");
	$("#tabtimeline").addClass("tabon");
}
function showAbout(){
	$("#aboutsec").show("slow");
	$("#timeline").hide();
	$("#tababout").addClass("tabon");
	$("#tabtimeline").removeClass("tabon");
}
/*function showUnits(){
	$("#units").show("slow");
	$("#wall").hide();
	$("#tabUnits").addClass("tabon");
	$("#tabWall").removeClass("tabon");
}
function showWall(){
	$("#units").hide();
	$("#wall").show("slow");
	$("#tabUnits").removeClass("tabon");
	$("#tabWall").addClass("tabon");
}*/
function showSection(section){
 $(".cate").hide();
 $("#"+section).show("slow");
 $(".catelink").removeClass("cateon");
 $("#tab"+section).addClass("cateon");
 
}

/*function showIMG(){
	$("#bigpdf").hide();
	$("#bigcad").hide();
	$("#bigimg").show("slow");
	$("#tabpdf").removeClass("tabon");
	$("#tabcad").removeClass("tabon");
	$("#tabimg").addClass("tabon");
}
function showCAD(){
	$("#bigpdf").hide();
	$("#bigimg").hide();
	$("#bigcad").show("slow");
	$("#tabpdf").removeClass("tabon");
	$("#tabimg").removeClass("tabon");
	$("#tabcad").addClass("tabon");
}
function showPDF(){
	$("#bigcad").hide();
	$("#bigimg").hide();
	$("#bigpdf").show("slow");
	$("#tabimg").removeClass("tabon");
	$("#tabcad").removeClass("tabon");
	$("#tabpdf").addClass("tabon");
}*/
function showHead() {

	$("#tabstate").removeClass("tabon");
	$("#tabhead").addClass("tabon");
	$("#state").hide();
	$("#head").show("slow");
	$("#googlemap").show();
}
function showState() {
	$("#tabhead").removeClass("tabon");
	$("#tabstate").addClass("tabon");
	$("#head").hide();
	$("#googlemap").hide();	
	$("#state").show("slow");
}

function show(sec){
	$("div.std").hide();
	$("#c"+sec).show();	
	$(".lion").removeClass("lion");
	$("#lic"+sec).addClass("lion");
}
function out(){
	var idname = $(".lion").attr("id");
	idname = idname.substr(3,1)
	show(idname);
}

$(document).ready(function() {
   if($("#details_nav").length > 0){
        //disable all the tabs except the first
	$("#pdf_tab, #img_tab, #cad_tab").hide();
	$("#img_tab").show();
	
	$("#details_nav li a").click(function(){
		//toggle the divs display
		var sel = '#'+$(this).attr('class').replace('mn_', '')+'_tab';

		$("#pdf_tab, #img_tab, #cad_tab").hide();
		$(sel).fadeIn(340);   
		return false;
	});


   	$('#details_nav').hoverTabs();

   }
});