


function ShowHideLayer(boxID) {
	/* Obtain reference for the selected boxID layer and its button */
	var box = document.getElementById("box"+boxID);
	var boxbtn = document.getElementById("btn"+boxID);
	
	/* If the selected box is currently invisible, show it */
	if(box.style.display == "none" || box.style.display=="") {
		box.style.display = "inline";
		if(boxbtn!=null){
 		boxbtn.src = "images/contract.png";
		boxbtn.title="hide";
		boxbtn.alt="hide";}
		box.scrollIntoView( false );
	}
	/* otherwise hide it */
	else {
		box.style.display = "none";
		if(boxbtn!=null){
		boxbtn.src = "images/expand.png";
		boxbtn.title="show";
		boxbtn.alt="show";}
	}
}

function showcv(boxID) {
	/* Obtain reference for the selected boxID layer and its button */
	var box = document.getElementById("cv"+boxID);
	
	
	/* If the selected box is currently invisible, show it */
	if(box.style.display == "none" || box.style.display=="") {
	  var allcvs=getElementsByName_iefix("div","cv");
		for(i=0;i<allcvs.length;i++){
		  var elem=allcvs[i];
		  elem.style.display="none";
		}
		box.style.display = "inline";
		
		//box.scrollIntoView(false);
		//box.focus();
	}
	/* otherwise hide it */
	else {
		box.style.display = "none";


	}
}

function getElementsByName_iefix(tag, name) {
     
     var elem = document.getElementsByTagName(tag);
     var arr = new Array();
     for(i = 0,iarr = 0; i < elem.length; i++) {
          att = elem[i].getAttribute("name");
          if(att == name) {
               arr[iarr] = elem[i];
               iarr++;
          }
     }
     return arr;
} 


function ShowHideLayer(boxID,scroll) {
	/* Obtain reference for the selected boxID layer and its button */
	var box = document.getElementById("box"+boxID);
	var boxbtn = document.getElementById("btn"+boxID);
	
	/* If the selected box is currently invisible, show it */
	if(box.style.display == "none" || box.style.display=="") {
		box.style.display = "inline";
		if(boxbtn!=null){
 		boxbtn.src = "images/contract.png";
		boxbtn.title="hide";
		boxbtn.alt="hide";}
		box.scrollIntoView( scroll );
	}
	/* otherwise hide it */
	else {
		box.style.display = "none";
		if(boxbtn!=null){
		boxbtn.src = "images/expand.png";
		boxbtn.title="show";
		boxbtn.alt="show";}
	}
}


