Event.observe(window, 'load', function(event) {
	window.name = "main";
	if(loggedin) {
		window.setInterval('checkVariousCounts("/blank.php?do=user_checkCounts")', 1000 * 60 * 2);
	}
	hashListener.init();
	init_wysiwyg();
});

document.observe('dom:loaded', function(event) {
	if($('comment') && $('comment').tagName.toLowerCase() == 'input') {
		$('comment').observe('focus', blankField.bindAsEventListener($('comment'))).observe('blur', refillField.bindAsEventListener($('comment')));
	}
});

if(location.hash.match(/^#d=.+u=.+/i))
{
	location.hash = '';
}
