
function DIVVisible(divID, visibility) {
  var divs = document.getElementsByTagName('div');
		for(i=0;i<divs.length;i++){
		  if(divs[i].id.match(divID)){//if they are 'see' divs
				if (document.getElementById) // DOM3 = IE5, NS6
				  divs[i].style.visibility=visibility;// show/hide
				else
				  if (document.layers) // Netscape 4
				    document.layers[divs[i]].display = visibility;
				  else // IE 4
				    document.all.hideshow.divs[i].visibility = visibility;
			}
		}



}


function divToggler(divList) {
    this.divlist    = divList;
    this.defaultID  = "";
    this.init       = function(defaultID){ 
                        this.toggle(this.defaultID);
          					  };
    this.comboJump  = function(comboBox) {
                        this.toggle(comboBox.options[comboBox.selectedIndex].value)
                    }
    this.toggle     = function(divID){                     
                        for (var i=0; i<this.divlist.length; i++)	{	
                      		if (this.divlist[i] != divID) 
                              DIVVisible(this.divlist[i], "hidden");                                                     
                          else 
                              DIVVisible(this.divlist[i], "visible");  
                          
                      	
                      	} 
                     
                     };              

  }

/*



function Cat(name){
    this.name     = name;

    this.species  = 'Cat';
    this.talk     = function(){ alert('Meow!'); }
    this.callOver = function(){ alert(this.name+' ignores you'); },
    this.pet      = function(){ alert('Purr!'); }
}

var felix = new Cat('Felix');
var sam   = new Cat('Sam');
var patty = new Cat('Patty');


function initToggle(divArray, defaultID) {
	for (var i=0; i<divArray.length; i++) {
		
		divObject = findDOM(divArray[i], 1);
		divObject.visible = "false";
	
	}
}
*/

