function resizeView() {
	document.getElementById('bboxbt').style.paddingTop = 0;
	document.getElementById('sboxbt').style.paddingTop = 0;
	lh = document.getElementById('sbox').offsetHeight;
	rh = document.getElementById('bbox').offsetHeight;
	if(lh > rh) {
		document.getElementById('bboxbt').style.paddingTop = ~~(lh - rh) + 'px';
	} else {
		document.getElementById('sboxbt').style.paddingTop = ~~(rh - lh) + 'px';
	}
}
function changeLinks() {
	var ast = document.getElementsByTagName('a'); 
	for (i = 0; i < ast.length; i++){ 
		if(ast[i].className == 'pdf' || ast[i].className == 'nw' || ast[i].className == 'get nw'){ 
			ast[i].target = '_blank'; ast[i].onfocus = function() { this.blur(); }; 
		}
	}	
}
function city_light_on(id)
{
	city_light_off();
	var list = document.getElementsByTagName('tr');
	for (i in list) {
		if ( list[i].className == 'city_'+id ){
			list[i].style.background = '#E0E0E0';;
		}
	}	
	Element.scrollTo($('city_'+id));
}
function city_light_off()
{
	var list = document.getElementsByTagName('tr');
	for (i in list) {
		if(list[i].className != undefined){
			if ( list[i].className.substr(0,5) == 'city_' ){
				list[i].style.background = 'none';
			}
		}
	}			
}