//	Preload CSS Images
//$.preloadCssImages({imgDir: '../images/'});



function backToTop(buttonPath)
{
	height = documentHeight();
	
	if (height > 1300)
		document.write ("<br /><a class='topbutton' href='#top'><img class='topbutton' src='" + buttonPath + "' alt='Return to Top of Page' /></a>");		
}



function documentHeight()
{	
	var D = document;
    var ret = Math.max(
        Math.max(D.body.scrollHeight, D.documentElement.scrollHeight),
        Math.max(D.body.offsetHeight, D.documentElement.offsetHeight),
        Math.max(D.body.clientHeight, D.documentElement.clientHeight)
    );
	
	return parseInt(ret);
}



function expandItem(divId)
{
	var div = document.getElementById(divId);
	if	(div.style.visibility == 'hidden')
	{
		div.style.visibility = 'visible';
		div.style.display = 'block';
	}
	else
	{
		div.style.visibility = 'hidden';
		div.style.display = 'none';
	}
}



function setTitle(title)
{
	document.title = title;
}

