function swapTabDisplay(_activeTab)
{
    var tabImageCollection = _activeTab.parentNode.parentNode.getElementsByTagName("img");
    for (var i=0; i<tabImageCollection.length; i++)
    {        
        tabImageCollection[i].src = tabImageCollection[i].src.replace(/_on./,"_off.");
    }    
    _activeTab.src=_activeTab.src.replace(/_off./,"_on.");
    
    
    var contentContainerCollection = document.getElementById('tabbed_content_container').getElementsByTagName("div");
    for (var i=0; i<contentContainerCollection.length; i++)
    {
        if (contentContainerCollection[i].id.indexOf('div_copy_') == 0) contentContainerCollection[i].style.display = 'none';
    }
    
    document.getElementById('div_copy_' + _activeTab.id.replace(/img_/,'')).style.display = '';    
}


function viewLargerImage(_imagePath)
{
    var mywindow = window.open (_imagePath,"IMAGE","location=0,status=0,scrollbars=1,width=520,height=1025");
    mywindow.moveTo(0,0);
}
