﻿/******************************************************************
* have a sub selection of images that represent other views of the same image
******************************************************************/
var otherView = {  // start of object otherViews

IdPrefix : "",
useViews : false,
imageCollection : null,

constructor : function(aUseViews ,aPrefix)
{
    if (aUseViews) useViews=true;
    this.IdPrefix=aPrefix;
},

showGroup : function(aCurrentImageName)
{
    if (this.useViews)
    {
        this.imageCollection = document.getElementById(this.IdPrefix+aCurrentImageName); 
        if (this.imageCollection == null || typeof(this.imageCollection) != 'object') return;
        this.imageCollection.style.visibility = "visible";
    }
},

hideGroup : function(aCurrentImageName)
{
    if (this.useViews)
    {
        if (this.imageCollection == null) return;
        if (typeof(this.imageCollection) == 'object')
            this.imageCollection.style.visibility = "hidden";
    }
}

} // end of object otherViews
