window.addEvent('domready', function() {
	var agreebtn = document.getElementById('agree');
	
	var agreed = Cookie.get('bar_agree');
	
	if(agreed) {
		window.location.href = agreebtn.getAttribute("href");
	}
	
	agreebtn.onclick = function() {
		Cookie.set('bar_agree', true);
	}
});