/*utils.addEvent(window, 'load', function(e){
	
	var
	thePanel=document.getElementById('seasonal-rates'),
	theParent=thePanel.parentNode,
	opener=document.createElement('a'),
	closer=document.createElement('a'),
	text=document.createTextNode('View Seasonal Rates');
	
	theParent.className='panel-container';
	thePanel.className='closed panel';
	closer.href = opener.href = '#seasonal-rates';
	closer.className='closer';
	thePanel.appendChild(closer);
	opener.appendChild(text);
	theParent.appendChild(opener);
	
	utils.addEvent(opener, 'click', utils.preventDefault, false);
	
	utils.addEvent(closer, 'click', function(e){
		
		panel.closeActive('info', e);
		utils.preventDefault(e);
		
	}, false);
	
	panel.setup('info', thePanel, document.documentElement, opener);
	
}, false);*/

(function(){
	
	var
	top=9,
	inset=23,
	container=document.getElementById('container'),
	
	center=function(e){
		
		var
		containerHeight=container.offsetHeight + inset,
		windowHeight=utils.getWindowInfo().height,
		auto=Math.round((windowHeight - containerHeight) / 2),
		isCentered = containerHeight < windowHeight - top * 2;
		
		container.style.marginTop = (isCentered? auto : top) + 'px';
		
	};
	
	utils.addEvent(window, 'load', center, false);
	utils.addEvent(window, 'resize', center, false);
	
}());
