var toggleZones=function(){this.myData=new Array();this.allowMultiple=false};toggleZones.prototype.toggleArea=function(){if(!this.allowMultiple){for(i=0;i<this.myData.length;i++){if(checkZoneStatus(this.myData[i])){hideZone(this.myData[i])}}try{this.allClosed()}catch(a){}showZone(arguments[0])}else{for(i=0;i<arguments.length;i++){if(checkZoneStatus(arguments[i])){hideZone(arguments[i])}else{showZone(arguments[i])}}}};toggleZones.prototype.closeAll=function(){for(i=0;i<this.myData.length;i++){hideZone(this.myData[i])}};toggleZones.prototype.addArea=function(){for(i=0;i<arguments.length;i++){this.myData[this.myData.length]=arguments[i]}};function checkZoneStatus(a){if(document.getElementById(a).style.display=="none"){return false}else{return true}}function showZone(a){document.getElementById(a).style.display="block"}function hideZone(a){document.getElementById(a).style.display="none"}function toggleZone(a){if(checkZoneStatus(a)){alert("show");showZone(a)}else{alert("hide");hideZone(a)}};