traffic_graph.js 956 Bytes
Newer Older
Ad Schellevis's avatar
Ad Schellevis committed
1 2 3
function trafficshowDiv(incDiv,swapButtons){
	//appear element
	selectedDiv = incDiv + "graphdiv";
4 5
	jQuery('#' + selectedDiv).show();
	d = document;
Ad Schellevis's avatar
Ad Schellevis committed
6 7 8
	if (swapButtons){
		selectIntLink = selectedDiv + "-min";
		textlink = d.getElementById(selectIntLink);
9 10
		textlink.style.display = "inline";

Ad Schellevis's avatar
Ad Schellevis committed
11 12 13 14
		selectIntLink = selectedDiv + "-open";
		textlink = d.getElementById(selectIntLink);
		textlink.style.display = "none";
	}
15
	document.iform["shown[" + incDiv + "]"].value = "show";
Ad Schellevis's avatar
Ad Schellevis committed
16
}
17

Ad Schellevis's avatar
Ad Schellevis committed
18 19 20
function  trafficminimizeDiv(incDiv,swapButtons){
	//fade element
	selectedDiv = incDiv + "graphdiv";
21 22
	jQuery('#' + selectedDiv).hide();
	d = document;
Ad Schellevis's avatar
Ad Schellevis committed
23 24 25
	if (swapButtons){
		selectIntLink = selectedDiv + "-open";
		textlink = d.getElementById(selectIntLink);
26 27
		textlink.style.display = "inline";

Ad Schellevis's avatar
Ad Schellevis committed
28 29 30
		selectIntLink = selectedDiv + "-min";
		textlink = d.getElementById(selectIntLink);
		textlink.style.display = "none";
31
	}
32
	document.iform["shown[" + incDiv + "]"].value = "hide";
Ad Schellevis's avatar
Ad Schellevis committed
33
}