$(document).ready(function(){
	$("#related-contact #directions").hide();
	$("#related-contact #contact-info").show();
	
	$("#get-contact-info").click(function(){
		$("#related-contact #contact-info").show();
		$("#related-contact #directions").hide();
		return false;
	});
	
	$("#get-directions").click(function(){
		$("#related-contact #contact-info").hide();
		$("#related-contact #directions").show();
		return false;
	});
	
});

$(document).ready(function(){
	$(".product-overview:last").css({border: 'none'});
	$(".product-text ul li:last-child, .industry-text ul li:last-child, .lifestyle-text ul li:last-child").css({margin: '0', padding: '0', background: 'none'});
	$(".product-text ul li").append('<span>,&nbsp;</span>');
	$(".product-text ul li:last-child span").replaceWith('');
});

$(document).ready(function(){
	//$('img[@src$=.png]').ifixpng();
	$("span#callout-bg-overlay-left, span#callout-bg-overlay-right, span#callout-bg-overlay-right-contact").ifixpng();
	$("span#callout-bg-text-overlay").ifixpng();
	$("span#callout-bg-overlay").ifixpng();
	$("#racing_logo").ifixpng();
});

// Tabs

$(document).ready(function(){
	$("#swapper-content-industry").show();
	$("#swapper-content-lifestyle").hide();
	
	$("#tab-industry a").click(function(){
		$("#tab-industry a").addClass("selected");
		$("#tab-lifestyle a").removeClass("selected");
		$("#swapper-content-industry").show();
		$("#swapper-content-lifestyle").hide();
		return false;
	});
	
	$("#tab-lifestyle a").click(function(){
		$("#tab-lifestyle a").addClass("selected");
		$("#tab-industry a").removeClass("selected");
		$("#swapper-content-lifestyle").show();
		$("#swapper-content-industry").hide();
		return false;
	});
});

$(document).ready(function(){
	$(".news-article").hide();
	$(".news-title").click(function(){ 
		$(this).next(".news-article").toggle();
		$(this).toggleClass("open");
		return false;
	});
});
