function toggle( whichLayer )
{

var myDivNames=new Array();
myDivNames[0]="myhome";
myDivNames [1]="myfarm";
myDivNames [2]="mybusiness";
myDivNames [3]="mycommunity";
myDivNames [4]="insidepioneer";
myDivNames [5]="oursystem";
myDivNames [6]="linkcenter";
myDivNames [7]="mhmrates";
myDivNames [8]="mhmproducts";
myDivNames [9]="mhmhelp";
myDivNames [10]="mfmrates";
myDivNames [11]="mfmsubrates";
myDivNames [12]="mfmproducts";
myDivNames [13]="mfmhelp";
myDivNames [14]="mfmoptimize";
myDivNames [15]="mbmrates";
myDivNames [16]="mbmsubrates";
myDivNames [17]="mbmproducts";
myDivNames [18]="mbmhelp";
myDivNames [19]="mbmoptimize";
myDivNames [20]="show";
myDivNames [21]="linkcenter_gmtinfo";
myDivNames [22]="linkcenter_departmentenergy";
myDivNames [23]="linkcenter_energyefficiency";
myDivNames [24]="linkcenter_industryresearch";
myDivNames [25]="linkcenter_homeimprovement";



// Sets all visibilities initially to Hidden

var length = myDivNames.length;

for ( var i=0; i < length; i++ )
{
	var otherDiv = document.getElementById(myDivNames[i]);
	otherDiv.style.display = 'none';
}




  var elem, vis;
  if( document.getElementById ) // this is the way the standards work
    elem = document.getElementById( whichLayer );
  else if( document.all ) // this is the way old msie versions work
      elem = document.all[whichLayer];
  else if( document.layers ) // this is the way nn4 works
    elem = document.layers[whichLayer];
  vis = elem.style;
  // if the style.display value is blank we try to figure it out here
  if(vis.display==''&&elem.offsetWidth!=undefined&&elem.offsetHeight!=undefined)
    vis.display = (elem.offsetWidth!=0&&elem.offsetHeight!=0)?'block':'none';
  vis.display = (vis.display==''||vis.display=='block')?'none':'block';
  

}



function addition( whichLayer )
{
   var elem, vis;
  if( document.getElementById ) // this is the way the standards work
    elem = document.getElementById( whichLayer );
  else if( document.all ) // this is the way old msie versions work
      elem = document.all[whichLayer];
  else if( document.layers ) // this is the way nn4 works
    elem = document.layers[whichLayer];
  vis = elem.style;
  // if the style.display value is blank we try to figure it out here
  if(vis.display==''&&elem.offsetWidth!=undefined&&elem.offsetHeight!=undefined)
    vis.display = (elem.offsetWidth!=0&&elem.offsetHeight!=0)?'block':'none';
  vis.display = (vis.display==''||vis.display=='block')?'none':'block';
}
