﻿$(document).ready(function () {
    $('#bulk_under').hide();
    $('#liquid_under').hide();
    $('#auto_under').hide();
    $('#natgas_under').hide();
    $('#other_under').hide();
    $('#bulk_top').click(function () {
        $('#bulk_under').slideDown("slow");
        $('#bulk_under').addClass("side_sub table");
        $('#auto_under').slideUp("slow");
        $('#liquid_under').slideUp("slow");
        $('#natgas_under').slideUp("slow");
        $('#other_under').slideUp("slow");
        $('#bulk_tbl').css("background", "White");
        $('#bulk_top').css("color", "#d32a4b");
        $('#liquid_tbl').css("background", "#f4f4f4");
        $('#liquid_top').css("color", "#666666");
        $('#auto_tbl').css("background", "#f4f4f4");
        $('#auto_top').css("color", "#666666");
        $('#natgas_tbl').css("background", "#f4f4f4");
        $('#natgas_top').css("color", "#666666");
        $('#other_tbl').css("background", "#f4f4f4");
        $('#other_top').css("color", "#666666");
        $('#liquid_under').removeClass("side_sub table");
        $('#auto_under').removeClass("side_sub table");
        $('#natgas_under').removeClass("side_sub table");
        $('#other_under').removeClass("side_sub table");
    });
    $('#liquid_top').click(function () {
        $('#liquid_under').slideDown("slow");
        $('#liquid_under').addClass("side_sub table");
        $('#bulk_under').slideUp("slow");
        $('#auto_under').slideUp("slow");
        $('#natgas_under').slideUp("slow");
        $('#other_under').slideUp("slow");
        $('#liquid_tbl').css("background", "White");
        $('#liquid_top').css("color", "#d32a4b");
        $('#bulk_tbl').css("background", "#f4f4f4");
        $('#bulk_top').css("color", "#666666");
        $('#auto_tbl').css("background", "#f4f4f4");
        $('#auto_top').css("color", "#666666");
        $('#natgas_tbl').css("background", "#f4f4f4");
        $('#natgas_top').css("color", "#666666");
        $('#other_tbl').css("background", "#f4f4f4");
        $('#other_top').css("color", "#666666");
        $('#bulk_under').removeClass("side_sub table");
        $('#auto_under').removeClass("side_sub table");
        $('#natgas_under').removeClass("side_sub table");
        $('#other_under').removeClass("side_sub table");
    });
    $('#auto_top').click(function () {
        $('#auto_under').slideDown("slow");
        $('#auto_under').addClass("side_sub table");
        $('#bulk_under').slideUp("slow");
        $('#liquid_under').slideUp("slow");
        $('#natgas_under').slideUp("slow");
        $('#other_under').slideUp("slow");
        $('#auto_tbl').css("background", "White");
        $('#auto_top').css("color", "#d32a4b");
        $('#bulk_tbl').css("background", "#f4f4f4");
        $('#bulk_top').css("color", "#666666");
        $('#liquid_tbl').css("background", "#f4f4f4");
        $('#liquid_top').css("color", "#666666");
        $('#natgas_tbl').css("background", "#f4f4f4");
        $('#natgas_top').css("color", "#666666");
        $('#other_tbl').css("background", "#f4f4f4");
        $('#other_top').css("color", "#666666");
        $('#bulk_under').removeClass("side_sub table");
        $('#liquid_under').removeClass("side_sub table");
        $('#natgas_under').removeClass("side_sub table");
        $('#other_under').removeClass("side_sub table");
    });
    $('#natgas_top').click(function () {
        $('#natgas_under').slideDown("slow");
        $('#natgas_under').addClass("side_sub table");
        $('#bulk_under').slideUp("slow");
        $('#liquid_under').slideUp("slow");
        $('#auto_under').slideUp("slow");
        $('#other_under').slideUp("slow");
        $('#natgas_tbl').css("background", "White");
        $('#natgas_top').css("color", "#d32a4b");
        $('#bulk_tbl').css("background", "#f4f4f4");
        $('#bulk_top').css("color", "#666666");
        $('#liquid_tbl').css("background", "#f4f4f4");
        $('#liquid_top').css("color", "#666666");
        $('#auto_tbl').css("background", "#f4f4f4");
        $('#auto_top').css("color", "#666666");
        $('#other_tbl').css("background", "#f4f4f4");
        $('#other_top').css("color", "#666666");
        $('#bulk_under').removeClass("side_sub table");
        $('#liquid_under').removeClass("side_sub table");
        $('#auto_under').removeClass("side_sub table");
        $('#other_under').removeClass("side_sub table");
    });
    $('#other_top').click(function () {
        $('#other_under').slideDown("slow");
        $('#other_under').addClass("side_sub table");
        $('#bulk_under').slideUp("slow");
        $('#liquid_under').slideUp("slow");
        $('#auto_under').slideUp("slow");
        $('#natgas_under').slideUp("slow");
        $('#other_tbl').css("background", "White");
        $('#other_top').css("color", "#d32a4b");
        $('#bulk_tbl').css("background", "#f4f4f4");
        $('#bulk_top').css("color", "#666666");
        $('#auto_tbl').css("background", "#f4f4f4");
        $('#auto_top').css("color", "#666666");
        $('#liquid_tbl').css("background", "#f4f4f4");
        $('#liquid_top').css("color", "#666666");
        $('#natgas_tbl').css("background", "#f4f4f4");
        $('#natgas_top').css("color", "#666666");
        $('#bulk_under').removeClass("side_sub table");
        $('#liquid_under').removeClass("side_sub table");
        $('#auto_under').removeClass("side_sub table");
        $('#natgas_under').removeClass("side_sub table");
    });
});

$(document).ready(function() {
	$('#process_under').hide();
	$('#indust_under').hide();
	$('#food_under').hide();
	$('#energy_under').hide();
	$('#process_top').click(function() {
		$('#process_under').slideDown("slow");
		$('#process_under').addClass("side_sub table");
		$('#indust_under').slideUp("slow");
		$('#food_under').slideUp("slow");
		$('#energy_under').slideUp("slow");
		$('#process_tbl').css("background", "White");
		$('#process_top').css("color", "#d32a4b");
		$('#indust_tbl').css("background", "#f4f4f4");
		$('#indust_top').css("color", "#666666");
		$('#food_tbl').css("background", "#f4f4f4");
		$('#food_top').css("color", "#666666");
		$('#energy_tbl').css("background", "#f4f4f4")
		$('#energy_top').css("color", "#666666");
		$('#indust_under').removeClass("side_sub table");
		$('#food_under').removeClass("side_sub table");
		$('#energy_under').removeClass("side_sub table");
	});
	$('#indust_top').click(function() {
		$('#indust_under').slideDown("slow");
		$('#indust_under').addClass("side_sub table");
		$('#process_under').slideUp("slow");
		$('#food_under').slideUp("slow");
		$('#energy_under').slideUp("slow");
		$('#indust_tbl').css("background", "White");
		$('#indust_top').css("color", "#d32a4b");
		$('#process_tbl').css("background", "#f4f4f4");
		$('#process_top').css("color", "#666666");
		$('#food_tbl').css("background", "#f4f4f4");
		$('#food_top').css("color", "#666666");
		$('#energy_tbl').css("background", "#f4f4f4");
		$('#energy_top').css("color", "#666666");
		$('#process_under').removeClass("side_sub table");
		$('#food_under').removeClass("side_sub table");
		$('#energy_under').removeClass("side_sub table");
	});
	$('#food_top').click(function() {
		$('#food_under').slideDown("slow");
		$('#food_under').addClass("side_sub table");
		$('#process_under').slideUp("slow");
		$('#indust_under').slideUp("slow");
		$('#energy_under').slideUp("slow");
		$('#food_tbl').css("background", "White");
		$('#food_top').css("color", "#d32a4b");
		$('#process_tbl').css("background", "#f4f4f4");
		$('#process_top').css("color", "#666666");
		$('#indust_tbl').css("background", "#f4f4f4");
		$('#indust_top').css("color", "#666666");
		$('#energy_tbl').css("background", "#f4f4f4");
		$('#energy_top').css("color", "#666666");
		$('#process_under').removeClass("side_sub table");
		$('#indust_under').removeClass("side_sub table");
		$('#energy_under').removeClass("side_sub table");
	});
	$('#energy_top').click(function() {
		$('#energy_under').slideDown("slow");
		$('#energy_under').addClass("side_sub table");
		$('#process_under').slideUp("slow");
		$('#indust_under').slideUp("slow");
		$('#food_under').slideUp("slow");
		$('#energy_tbl').css("background", "White");
		$('#energy_top').css("color", "#d32a4b");
		$('#process_tbl').css("background", "#f4f4f4");
		$('#process_top').css("color", "#666666");
		$('#indust_tbl').css("background", "#f4f4f4");
		$('#indust_top').css("color", "#666666");
		$('#food_tbl').css("background", "#f4f4f4");
		$('#food_top').css("color", "#666666");
		$('#process_under').removeClass("side_sub table");
		$('#indust_under').removeClass("side_sub table");
		$('#food_under').removeClass("side_sub table");
	});
});
