

//names of dropdowns stored here
droplayer=new Array();
droplayer[0]="drop1"
droplayer[1]="drop2"
droplayer[2]="drop3"
droplayer[3]="drop4"
droplayer[4]="drop5"
droplayer[5]="drop6"
droplayer[6]="drop7"
droplayer[7]="drop8"
droplayer[8]="drop9"

//code for drops

function showdrop(thelayer){
	keep=thelayer; 
        hideall(); 
        showitnow=1;
	showit(thelayer);
}

function showit(thelayer){
   var divId = droplayer[thelayer];
   var theLayer =  document.getElementById(divId);
   theLayer.style.visibility = "visible";
}



function hidedrop(){
	keep=-1; 
  setTimeout('hideall()',500)
}


function hideall(){
	for(i=0;i<droplayer.length;i++){  
        	if(keep != i){ 
	                    var divId = droplayer[i];
                            var theLayer =  document.getElementById(divId);
                            theLayer.style.visibility = "hidden";
 		}
	}
}
