function showSeekTags()
{
	removeEvent($('seek-button'), 'click', showSeekTags);

	$('tags-offer').style.display = 'none';
	$('offer-button').getElementsByTagName('span')[0].className = '';
	
	try {
		$('tags-seek').style.display = 'table';
	} catch (oException) {
		$('tags-seek').style.display = 'block';
	}
	$('seek-button').getElementsByTagName('span')[0].className = 'selected';
	
	addEvent($('offer-button'), 'click', showOfferTags);
}

function showOfferTags()
{
	removeEvent($('offer-button'), 'click', showOfferTags);

	$('tags-seek').style.display = 'none';
	$('seek-button').getElementsByTagName('span')[0].className = '';
	
	try {
		$('tags-offer').style.display = 'table';
	} catch (oException) {
		$('tags-offer').style.display = 'block';
	}
	$('offer-button').getElementsByTagName('span')[0].className = 'selected';
	
	addEvent($('seek-button'), 'click', showSeekTags);
}

function initTags()
{
	if ($('tags-buttons')) {
		addEvent($('seek-button'), 'click', showSeekTags);
	}
}

function initMainPage()
{
	initTags();
}

addEvent(window, 'load', initMainPage);
