
function JumpMenu(OBJ) {
	document.location.href = OBJ.value;
}

var CurrentTextBlock = null;
function ShowData(ID) {
	if(CurrentTextBlock!=null) {
		document.getElementById('data'+CurrentTextBlock).style.display = 'none';
		document.getElementById('link'+CurrentTextBlock).style.display = 'block';
	}
	CurrentTextBlock = ID;
	document.getElementById('link'+CurrentTextBlock).style.display = 'none';
	document.getElementById('data'+CurrentTextBlock).style.display = 'block';
}

function OpenWin(section, newWidth, newHeight) {
	mainX = (screen.availWidth / 2) - (newWidth / 2);
	mainY = (screen.availHeight / 2) - (newHeight / 2);
	newWin = window.open(section, 'vt_window', 'left='+mainX+', top='+mainY+', directories=0, status=0, menubar=0, scrollbars=0, resizable=0, width='+newWidth+', height='+newHeight);
	
	newWin.focus();
}

function handleCollapsible(ID) {
	if(document.getElementById('full_'+ID).style.display == 'none') {
		var tmp = document.getElementById('CTRL_'+ID).src;
		
		document.getElementById('CTRL_'+ID).src = tmp.replace('plus.jpg', 'minus.jpg');
		document.getElementById('brief_'+ID).style.display = 'none';
		document.getElementById('full_'+ID).style.display = 'block';
	}
	else {
		var tmp = document.getElementById('CTRL_'+ID).src;
		
		document.getElementById('CTRL_'+ID).src = tmp.replace('minus.jpg', 'plus.jpg');
		document.getElementById('brief_'+ID).style.display = 'block';
		document.getElementById('full_'+ID).style.display = 'none';
	}
}

//--------------------------------------------------------------------------------------------

var mapWindow = null;
function openLargeMap(URLStr) {
	var width	= (screen.availWidth<=1446) ? screen.availWidth : (1446);//800;
	var height	= (screen.availHeight<=620) ? screen.availHeight : (620);//489;
	
	var left	= (screen.availWidth-width)/2;
	var top		= (screen.availHeight-height)/2;
		
	//if(URLStr=='') {URLStr = '../_networkmap.php';}
	if(URLStr=='') {URLStr = '../img/other/networkmap_large.jpg';}
	
	if(mapWindow!=null && !mapWindow.closed) { mapWindow.close(); }
	mapWindow = open(URLStr, 'popUpWin', 'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,copyhistory=no,width='+width+',height='+height+',left='+left+',top='+top+',screenX='+left+',screenY='+top+'');
}

//--------------------------------------------------------------------------------------------
