function positionSubNav() {
	var navlinks = $$('#subNav');
	var navlinks2 = $$('#subNav_level2');
	
	if(navlinks.length != 0){
		for (var i=0; i<navlinks.length; i++) {
			// set height according to the design
			var height = 90;
			
			// set correction according to the design when necessary
			var correction = 1;
			
			var elementheight = navlinks[i].getHeight();
			
			var newpadding = (height - elementheight) / 2;
			var newheight = height - newpadding;
			
			navlinks[i].setStyle({
					paddingTop: newpadding + correction + 'px',
					height: newheight - correction + 'px'
			});
			
		}
	}
	
	if(navlinks2.length != 0){
		for (var i=0; i<navlinks2.length; i++) {
			// set height according to the design
			var height = 58;
			
			// set correction according to the design when necessary
			var correction = 0;
			
			var elementheight = navlinks2[i].getHeight();
			
			var newpadding = (height - elementheight) / 2;
			var newheight = height - newpadding;
			
			navlinks2[i].setStyle({
					paddingTop: newpadding + correction + 'px',
					height: newheight - correction + 'px'
			});
		}
	}
}

Event.observe(window, 'load', positionSubNav);


