﻿
function initFonts()
{
	Cufon.replace('h1.title', { fontFamily: 'Proforma', fontWeight: 'normal', fontSize: '26px' });
	Cufon.replace('h2.title', { fontFamily: 'Proforma', fontWeight: 'normal', fontSize: '20px' });
	Cufon.replace('h3.title', { fontFamily: 'Proforma', fontWeight: 'normal', fontSize: '16px' });
	Cufon.replace('span.menuitem u', { fontFamily: 'Proforma' });
	Cufon.now();
}


function findObject(objectId)
{
	if (window.document.getElementById && window.document.getElementById(objectId))
		return window.document.getElementById(objectId);
	else if (window.document.all && window.document.all(objectId))
		return window.document.all(objectId);
	else if (window.document.layers && window.document.layers[objectId])
		return window.document.layers[objectId];
	else
		return null;
}

function setRightColumnSpacer()
{
	try
	{
		var _leftContent = findObject('leftcontent');
		var _rightContent = findObject('rightcontent');
		var _spacer = findObject('rightcolumnspacer');

		if (_leftContent != null && _rightContent != null && _spacer != null)
		{
			if (_leftContent.clientHeight > _rightContent.clientHeight)
			{
				_spacer.style.height = (_leftContent.clientHeight - _rightContent.clientHeight) + 'px';
			}
		}
	}
	catch (e)
	{
	}
}
