function hideDiv(pass,passin) {
var divs = document.getElementsByTagName('div');

for(i=0;i<divs.length;i++){
if(divs[i].id.match(pass)){//if they are 'see' divs

if (document.getElementById) // DOM3 = IE5, NS6
divs[i].style.visibility="hidden";// show/hide
else
if (document.layers) // Netscape 4
document.layers[divs[i]].display = 'hidden';
else // IE 4
document.all.hideshow.divs[i].visibility = 'hidden';
}

//passin --show the layer
if(divs[i].id.match(passin)){//if they are 'see' divs

if (document.getElementById) // DOM3 = IE5, NS6
divs[i].style.visibility="visible";// show/hide
else
if (document.layers) // Netscape 4
document.layers[divs[i]].display = 'visible';
else // IE 4
document.all.hideshow.divs[i].visibility = 'visible';
}


}

}

function showDiv(pass,passout) {
var divs = document.getElementsByTagName('div');

menuClick.style.visibility="hidden";
for(i=0;i<divs.length;i++){

if(divs[i].id.match(pass)){
if (document.getElementById)
divs[i].style.visibility="visible";
else
if (document.layers) // Netscape 4
document.layers[divs[i]].display = 'visible';
else // IE 4
document.all.hideshow.divs[i].visibility = 'visible';
}

if(divs[i].id.match(passout)){
if (document.getElementById)
divs[i].style.visibility="hidden";
else
if (document.layers) // Netscape 4
document.layers[divs[i]].display = 'hidden';
else // IE 4
document.all.hideshow.divs[i].visibility = 'hidden';
}

}

}


//Beginning of JavaScript supplied by http://www.hypergurl.com -
  
var bName = navigator.appName;
var bVer = parseInt(navigator.appVersion);
var NS4 = (bName == "Netscape" && bVer >= 4);
var IE4 = (bName == "Microsoft Internet Explorer" && bVer >= 4);
	
function ColorOn (id,mycolor){
  
  if (!mycolor) { mycolor = '#E3E3E3' };
   
	if (NS4) {
     eval ('window.document.' + id + '.bgColor =\'' + mycolor + '\'');
	} else if (IE4) { 
     eval (id + '.style.background = \'' + mycolor + '\'');
	} 
  
   } 
     
function ColorOff (id){
   
	if (NS4) {
        eval ('window.document.'+ id + '.bgColor =null');
	} else if (IE4) { 
        eval (id + '.style.background = \'\'');
	} 
  
   }  



var action = new Array();
action[1] = "  <table border=1 width=680 height=350><tr><td bgcolor=#D5D5D5 valign=top align=left><font size =3 color = #1691BE><br><b>Grain Segregation and Blending Model</font><IFRAME SRC=/blending.html WIDTH=590 HEIGHT=360></IFRAME></td></tr></table> ";
action[0] = "  <table border=0 width=680 height=350><tr><td bgcolor=#E3E3E3 valign=top align=left><font size =3 color =#1691BE > <br><CENTER> <b>Suction aeration with Closed Loop Fumigation in Concrete Elevators</font><IFRAME SRC=ppt/SareSuctionAeration.html WIDTH=590 HEIGHT=360></IFRAME></CENTER></td></tr></table>";
var contentLayer;
function changelayer_content(layerno){

if(document.layers){
 //thisbrowser="NN4";
contentLayer = document.layers["content"];
contentLayer.document.open();
contentLayer.document.write(action[layerno]);
contentLayer.document.close();
                     }
 if(document.all){
//thisbrowser="ie"
contentLayer = document.all["content"];
contentLayer.innerHTML=action[layerno];
                      }
if(document.getElementById){
//thisbrowser="NN6 or nn7";
contentLayer = document.getElementById("content");
contentLayer.innerHTML =action[layerno];
 }
                   
    }
