/* 
------------------------------------------
	Flipbox written by CrappoMan
	simonpatterson@dsl.pipex.com
------------------------------------------
*/
function flipBox(who) {
	var tmp; 
	if (document.images['b_' + who].src.indexOf('_on') == -1) { 
		tmp = document.images['b_' + who].src.replace('_off', '_on');
		document.getElementById('box_' + who).style.display = 'none';
		document.images['b_' + who].src = tmp;
	} else { 
		tmp = document.images['b_' + who].src.replace('_on', '_off');
		document.getElementById('box_' + who).style.display = 'block';
		document.images['b_' + who].src = tmp;
	} 
}

function toggle( targetId ){
  if (document.getElementById){
        target = document.getElementById( targetId );
           if (target.style.display == ""){
              target.style.display = "none";
           } else {
              target.style.display = "";
           }
		  /*if (activeBox != null) {
		  	box = document.getElementById( activeBox );
		  	box.style.display = "none";
		  }
		  activeBox = targetId;*/
     }
} 

function Activate( targetId ){
  if (document.getElementById){
        target = document.getElementById( targetId );
          
              target.style.display = "";

		  if (activeBox != null && activeBox != targetId) {
		  	box = document.getElementById( activeBox );
		  	box.style.display = "none";
		  }
		  activeBox = targetId;
     }
} 
