// JavaScript Document
/*---------------------------------------------------------------------------------------------------------------------------
title: toggle_visibility()
descr: toggles the visibilty of the incoming dom object(usually a div tag) specified by id, option_icon toggles the 
	   icon associated the object 
-----------------------------------------------------------------------------------------------------------------------------*/
function toggle_visibility_faq(id,option_icon) {
       var e = document.getElementById(id); 
	   var option_switch = document.getElementById(option_icon);
       
	   if(e.style.display == 'block'){
          e.style.display = 'none';
		  option_switch.style.listStyleType='none';
		  }
	   else{
          e.style.display = 'block';
		  option_switch.style.listStyleType = 'disc';
	   }
}

function toggle_visibility_pressroom(id,option_icon) {
       var e = document.getElementById(id); 
	   var option_switch = document.getElementById(option_icon);
       
	   if(e.style.display == 'block'){
          e.style.display = 'none';
		  option_switch.innerHTML='[open]';
		  }
	   else{
          e.style.display = 'block';
		  option_switch.innerHTML = '[close]';
	   }
}

