// Taken from http://www.sohtanaka.com/web-design/examples/tabs/ Simpel Tabs
// http://www.sohtanaka.com/web-design/examples/tabs/index3.htm

jQuery(function() {

jQuery.fn.tabbedPanel = function(){
    //Default Action
    jQuery(this).find(".tabContent").hide(); //Hide all content
    jQuery(this).find("ul.tabs li:first").addClass("active").show(); //Activate first tab
    jQuery(this).find(".tabContent:first").show(); //Show first tab content

    //On Click Event
    jQuery("ul.tabs li").click(function() {
    	///Omniture - track full page view, add 'full' to class in <li> if you want to track a full page view
    	if (jQuery(this).hasClass('full')){
    		s_nd.t();
    		}
        jQuery(this).parent().parent().find("ul.tabs li").removeClass("active"); //Remove any "active" class
        jQuery(this).addClass("active"); //Add "active" class to selected tab
        jQuery(this).parent().parent().find(".tabContent").hide(); //Hide all tab content
        var activeTab = jQuery(this).find("a").attr("href"); //Find the rel attribute value to identify the active tab + content
        jQuery(activeTab).show(); //show the active content
        return false;
    });
};//end function

jQuery(".tabbedPanel").tabbedPanel(); //Run function on any div with class name of "tabbedPanel"


});


