// added dheighton - march 2011


$(document).ready(function() {

	//When page loads...
	$(".tab_content").hide(); //Hide all content
	$("ul.tabs li:first").addClass("active").show(); //Activate first tab
	$(".tab_content:first").slideDown('slow'); //Show first tab content

	//On Click Event
	$("ul.tabs li").click(function() {

		$("ul.tabs li").removeClass("active"); //Remove any "active" class
		$(this).addClass("active"); //Add "active" class to selected tab
		$(".tab_content").hide(); //Hide all tab content

		var activeTab = $(this).find("a").attr("href"); //Find the href attribute value to identify the active tab + content
		$(activeTab).slideDown('slow'); //Fade in the active ID content
		return false;
	});

});

$(document).ready(function() {

        //When page loads...
        $(".subtab_content").hide(); //Hide all content
        $("ol.subtabs li:first").addClass("subactive").show(); //Activate first tab
        $(".subtab_content:first").show(); //Show first tab content


        //On Click Event
        $("ol.subtabs li").click(function() {

                $("ol.subtabs li").removeClass("subactive"); //Remove any "active" class
                $(this).addClass("subactive"); //Add "active" class to selected tab
                $(".subtab_content").hide(); //Hide all tab content

                var subactiveTab = $(this).find("a").attr("href"); //Find the href attribute value to identify the active tab + content
                $(subactiveTab).fadeIn('slow'); //Fade in the active ID content
                return false;
        });

});

$(document).ready(function() {

        //When page loads...
        $(".subtab_content1").hide(); //Hide all content
        $("ol.subtabs1 li:first").addClass("subactive1").show(); //Activate first tab
        $(".subtab_content1:first").show(); //Show first tab content


        //On Click Event
        $("ol.subtabs1 li").click(function() {

                $("ol.subtabs1 li").removeClass("subactive1"); //Remove any "active" class
                $(this).addClass("subactive1"); //Add "active" class to selected tab
                $(".subtab_content1").hide(); //Hide all tab content

                var subactiveTab1 = $(this).find("a").attr("href"); //Find the href attribute value to identify the active tab + content
                $(subactiveTab1).fadeIn('slow'); //Fade in the active ID content
                return false;
        });

});

$(document).ready(function() {

        //When page loads...
        $(".subtab_content2").hide(); //Hide all content
        $("ol.subtabs2 li:first").addClass("subactive2").show(); //Activate first tab
        $(".subtab_content2:first").show(); //Show first tab content


        //On Click Event
        $("ol.subtabs2 li").click(function() {

                $("ol.subtabs2 li").removeClass("subactive2"); //Remove any "active" class
                $(this).addClass("subactive2"); //Add "active" class to selected tab
                $(".subtab_content2").hide(); //Hide all tab content

                var subactiveTab2 = $(this).find("a").attr("href"); //Find the href attribute value to identify the active tab + content
                $(subactiveTab2).fadeIn('slow'); //Fade in the active ID content
                return false;
        });

});

$(document).ready(function() {

        //When page loads...
        $(".subtab_content3").hide(); //Hide all content
        $("ol.subtabs3 li:first").addClass("subactive3").show(); //Activate first tab
        $(".subtab_content3:first").show(); //Show first tab content


        //On Click Event
        $("ol.subtabs3 li").click(function() {

                $("ol.subtabs3 li").removeClass("subactive3"); //Remove any "active" class
                $(this).addClass("subactive3"); //Add "active" class to selected tab
                $(".subtab_content3").hide(); //Hide all tab content

                var subactiveTab3 = $(this).find("a").attr("href"); //Find the href attribute value to identify the active tab + content
                $(subactiveTab3).fadeIn('slow'); //Fade in the active ID content
                return false;
        });

});

$(document).ready(function() {

        //When page loads...
        $(".subtab_content4").hide(); //Hide all content
        $("ol.subtabs4 li:first").addClass("subactive4").show(); //Activate first tab
        $(".subtab_content4:first").show(); //Show first tab content


        //On Click Event
        $("ol.subtabs4 li").click(function() {

                $("ol.subtabs4 li").removeClass("subactive4"); //Remove any "active" class
                $(this).addClass("subactive4"); //Add "active" class to selected tab
                $(".subtab_content4").hide(); //Hide all tab content

                var subactiveTab4 = $(this).find("a").attr("href"); //Find the href attribute value to identify the active tab + content
                $(subactiveTab4).fadeIn('slow'); //Fade in the active ID content
                return false;
        });

});

$(document).ready(function() {

        //When page loads...
        $(".subtab_content5").hide(); //Hide all content
        $("ol.subtabs5 li:first").addClass("subactive5").show(); //Activate first tab
        $(".subtab_content5:first").show(); //Show first tab content


        //On Click Event
        $("ol.subtabs5 li").click(function() {

                $("ol.subtabs5 li").removeClass("subactive5"); //Remove any "active" class
                $(this).addClass("subactive5"); //Add "active" class to selected tab
                $(".subtab_content5").hide(); //Hide all tab content

                var subactiveTab5 = $(this).find("a").attr("href"); //Find the href attribute value to identify the active tab + content
                $(subactiveTab5).fadeIn('slow'); //Fade in the active ID content
                return false;
        });

});

$(document).ready(function() {

        //When page loads...
        $(".subtab_content6").hide(); //Hide all content
        $("ol.subtabs6 li:first").addClass("subactive6").show(); //Activate first tab
        $(".subtab_content6:first").show(); //Show first tab content


        //On Click Event
        $("ol.subtabs6 li").click(function() {

                $("ol.subtabs6 li").removeClass("subactive6"); //Remove any "active" class
                $(this).addClass("subactive6"); //Add "active" class to selected tab
                $(".subtab_content6").hide(); //Hide all tab content

                var subactiveTab6 = $(this).find("a").attr("href"); //Find the href attribute value to identify the active tab + content
                $(subactiveTab6).fadeIn('slow'); //Fade in the active ID content
                return false;
        });

});

$(document).ready(function() {

        //When page loads...
        $(".subtab_content7").hide(); //Hide all content
        $("ol.subtabs7 li:first").addClass("subactive7").show(); //Activate first tab
        $(".subtab_content7:first").show(); //Show first tab content


        //On Click Event
        $("ol.subtabs7 li").click(function() {

                $("ol.subtabs7 li").removeClass("subactive7"); //Remove any "active" class
                $(this).addClass("subactive7"); //Add "active" class to selected tab
                $(".subtab_content7").hide(); //Hide all tab content

                var subactiveTab7 = $(this).find("a").attr("href"); //Find the href attribute value to identify the active tab + content
                $(subactiveTab7).fadeIn('slow'); //Fade in the active ID content
                return false;
        });

});

$(document).ready(function() {

        //When page loads...
        $(".subtab_content8").hide(); //Hide all content
        $("ol.subtabs8 li:first").addClass("subactive8").show(); //Activate first tab
        $(".subtab_content8:first").show(); //Show first tab content


        //On Click Event
        $("ol.subtabs8 li").click(function() {

                $("ol.subtabs8 li").removeClass("subactive8"); //Remove any "active" class
                $(this).addClass("subactive8"); //Add "active" class to selected tab
                $(".subtab_content8").hide(); //Hide all tab content

                var subactiveTab8 = $(this).find("a").attr("href"); //Find the href attribute value to identify the active tab + content
                $(subactiveTab8).fadeIn('slow'); //Fade in the active ID content
                return false;
        });

});

$(document).ready(function() {

        //When page loads...
        $(".subtab_content9").hide(); //Hide all content
        $("ol.subtabs9 li:first").addClass("subactive9").show(); //Activate first tab
        $(".subtab_content9:first").show(); //Show first tab content


        //On Click Event
        $("ol.subtabs9 li").click(function() {

                $("ol.subtabs9 li").removeClass("subactive9"); //Remove any "active" class
                $(this).addClass("subactive9"); //Add "active" class to selected tab
                $(".subtab_content9").hide(); //Hide all tab content

                var subactiveTab9 = $(this).find("a").attr("href"); //Find the href attribute value to identify the active tab + content
                $(subactiveTab9).fadeIn('slow'); //Fade in the active ID content
                return false;
        });

});


