var blnActive=false;
var lngLastIdx=0;

function ActiveHandle() {
	blnActive=true;
}

function SwitchTo(plngCurrent) {
	if(blnActive) {
		if(lngLastIdx>0) document.getElementById('Segment' + lngLastIdx).style.display='none';
		document.getElementById('Segment' + plngCurrent).style.display='block';
		lngLastIdx=plngCurrent;
	}
}