/*
ProductCategory.js
Rich Reuter
rich.reuter@us.sogeti.com
09/29/2008

This file contains JavaScript used by the domestic product category page.
*/

// This section sets up the dynamic billboard text
jQuery(document).ready(function() {

    // Wire up the div IDs of the content
    var opts = { content_src: 'billboard_txt' };
    
    jQuery('#rightSideBar').billboard(opts);
    
    // Set additional properties via JavaScript as needed
    //jQuery('#rightSideBar').height(91);
    
});

function showTab(indexID)
{
    var tabID = 'p7tpb1_' + indexID;
    var paneID = 'p7tpc1_' + indexID;
    
    var currentTab;
    var currentPane;

    for(var i = 1; i < 4; i++)
    {
        currentTab = 'p7tpb1_' + i;
        currentPane = 'p7tpc1_' + i;
        
        if (currentTab == tabID)
        {
            if (i == 3)
            {
                document.getElementById(currentTab).className = 'how_to_buy_on';
            }
            else
            {
                document.getElementById(currentTab).className = 'down';
            }
            document.getElementById(currentPane).style.display = 'block';
        }
        else
        {
            if (i == 3)
            {
                document.getElementById(currentTab).className = 'how_to_buy_off';
            }
            else
            {
                document.getElementById(currentTab).className = 'tab';
            }
            document.getElementById(currentPane).style.display = 'none';
        }
    }
}