//@change  2007-02-27  ESR  Condition on the occurance of 'frontpage'

var sidebar = $('sidebar');
if (sidebar)
{
	Boxify.init(
		['bottom-left', 'bottom-right', 'clearfix'], 
		sidebar
	);
	if(sidebar.getElementsByTagName('h1')) {
		Boxify.init(
			Boxify.combine(Boxify.BORDERS, 'top-left', 'top-right'), 
			sidebar.getElementsByTagName('h1').item(0)
		);
	}
}

if ($('getting-started'))
{
	Boxify.init(
		Boxify.combine(Boxify.BORDERS, Boxify.CORNERS, 'clearfix'), 
		$('getting-started').getElementsByTagName('ul')
	);
}

Boxify.init(
	Boxify.CORNERS, 
	'footer'
);

if ($('frontpage'))
{
	Boxify.init(
		Boxify.combine(Boxify.CORNERS, 'clearfix'), 
		document.getElementsByClassName('trigger'), 
		'frontpage'
	);
}
if (typeof HoverFix != 'undefined')
{
	var elements = $('navigation').getElementsByTagName('li');
	for (var i = 0; i < elements.length; i++)
	{
		HoverFix.fix(elements[i]);
	}
}

browser_check();
if ($('recommendations'))
{
	$('recommendations').addClassName(browserStatus);
}
