﻿

function HideDIV(d){ document.getElementById(d).style.display = "none"; }
function DisplayDIV(d) { document.getElementById(d).style.display = "block"; }

function SetActive(ElementID, ItemsInList)
{
    for (x=1; x<=ItemsInList; x++)
    {
        /*document.getElementById("tab_" + x.toString()).setAttribute("class", "inactive");*/
        document.getElementById("tab_" + x.toString()).className = "inactive"; 
        document.getElementById("content_" + x.toString()).style.display = "none";
    }
    
    /*document.getElementById("tab_" + ElementID.toString()).setAttribute("class", "active");*/
    document.getElementById("tab_" + ElementID.toString()).className = "active"; 
    document.getElementById("content_" + ElementID.toString()).style.display = "block";
}










function GallerySwap(url)
{
    document.getElementById('galimg').src = url;
    //document.getElementById('galimglink').href = "javascript:GalleryPop('" + url + ");";
}


function GalleryPop(url)
{
    window.open(url, 'largeview', 'width=800, height=540, toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=no, copyhistory=no, resizable=no')
}



function ZoomSwap(url)
{
    document.getElementById('zoomimg').src = url;
}

function ZoomPop(url)
{
    window.open(url, 'zoomview', 'width=660, height=680, toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=no, copyhistory=no, resizable=no')
}








