$(document).ready(function(){
		$("#spotlight_2011").tabs({fx:{opacity: "toggle"}}).tabs("rotate", 10000, true);
		
		$("#container_tabs_2011").tabs();
		
		$("a#inline").fancybox({
		'hideOnContentClick': true
	});

	$("a#inline").hoverIntent(function(){
	 $(this).trigger('click')},
	function(){
	 }
	);
	$("#image_map").hover(function(){
	},function(){
	 	$.fancybox.close()}
	);

	
	
sfHover = function() {
	var sfEls = document.getElementById("navigation_2011").getElementsByTagName("LI");
	for (var i=0; i<sfEls.length; i++) {
		sfEls[i].onmouseover=function() {
			this.className+=" sfhover";
		}
		sfEls[i].onmouseout=function() {
			this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
		}
	}
}
if (window.attachEvent) window.attachEvent("onload", sfHover);

	});

// replaces the browser title with the title of the detail content
function detailTitle(articleTitle) {
	document.title = "PHMSA - " + articleTitle;
}

function nav_hazmat(){
	$("#hazmat_nav").addClass("selected");	
}

function nav_pipeline(){
	$("#pipeline_nav").addClass("selected");
}
