/* Initiate */
addLoadEvent(function() {
	var exHideRollover = new hideRollover('roll',60);
	exHideRollover.Init();
});

// Constructor
var hideRollover = function(controlBaseName, controlIndexMax)
{
	this.ControlBaseName = controlBaseName;
	this.ControlIndexMax = controlIndexMax;
}

// Public instance methods
hideRollover.prototype.Init = function()
{
    for(i=1;i<=this.ControlIndexMax;i++) {
		if((document.getElementById(this.ControlBaseName + i)) != null) {
	        var control = document.getElementById(this.ControlBaseName + i);
	            control.style.display = "none";
		}
    }    
}

function ToggleRollover(controlBaseName, controlIndex, controlIndexMax)
{   
    for(i=1;i<=controlIndexMax;i++) {
		if((document.getElementById(controlBaseName + i)) != null) {
	        var control = document.getElementById(controlBaseName + i);
		
	        if(i==controlIndex)
	        {
	            control.style.display = "block";
	        }
	        else
	        {
	            control.style.display = "none";
	        }
		}
    }    
}