			function faneClick(id,total) {
				for (var ix=0;ix<total;ix++) {
					document.getElementById('Menu1_fane'+ix).style.backgroundImage = 'url(adresseinfo/images/fanegraa'+fanewidth+'pix.gif)';
					document.getElementById('Menu1_fane'+ix+'div').style.display='none';					
				}
				document.getElementById(id).style.backgroundImage = 'url(adresseinfo/images/fanehvid'+fanewidth+'pix.gif)';					
				document.getElementById(id+'div').style.display='inline';					
			}

			function bboxCalc1(b1,b2) {
				if (b1=='0,0,0,0') return b2;
				if (b2=='0,0,0,0') return b1;
				var b1A = b1.split(',');
				var b2A = b2.split(',');
				return Math.min(parseFloat(b1A[0]),parseFloat(b2A[0])) + ',' +  
					Math.min(parseFloat(b1A[1]),parseFloat(b2A[1])) + ',' + 
					Math.max(parseFloat(b1A[2]),parseFloat(b2A[2])) + ',' + 
					Math.max(parseFloat(b1A[3]),parseFloat(b2A[3]));
			}

			function calcKortParams(ths,sumRows) {
				sumRows = sumRows==null?true:false;
				var id = ths.getAttribute('id').split('_')[0];
				var ix = 1;
				var elem;
				var first = true;
				var pid = ths.getAttribute('pid');
				var hlid1 = '';
				var bbox = '';
				var info = ths.getAttribute('hltxt3')+';';
				if (!sumRows) {
					hlid1 = ths.getAttribute('hlid1');
					bbox = ths.getAttribute('bbox');
					info += ths.getAttribute('hltxt1');
					return 'pid='+pid+'&bbox='+bbox+'&info='+info+'&hlid1='+hlid1;
				}
				while (document.getElementById(id+'_'+ix)) {
					elem = document.getElementById(id+'_'+ix);
					if (!first) {
						hlid1 += ',';
						info += ',';
						bbox = bboxCalc1(bbox,elem.getAttribute('bbox'));
					} else {
						bbox = elem.getAttribute('bbox');
					}
					hlid1 += elem.getAttribute('hlid1');
					info += elem.getAttribute('hltxt1');
					first = false;
					ix++;
				}
				return 'pid='+pid+'&bbox='+bbox+'&info='+info+'&hlid1='+hlid1;
			} 
