function swapMenuImage( objectImage, flagActive )
{
	var imageDefault = objectImage.src;
	var imageSwap;
	if( eval( flagActive ) )
	{
		imageSwap = imageDefault.replace( 'Default', 'Active' );
	}
	else
	{
		imageSwap = imageDefault.replace( 'Active', 'Default' );
	}
	objectImage.src = imageSwap;
}

function setOpacity( objectTarget, valueOpacity )
{
	if( valueOpacity > 1 )
	{
		valueOpacity *= 100;
	}
	if( valueOpacity < 0 )
	{
		valueOpacity = 0;
	}
	objectTarget.style.opacity = valueOpacity;
	objectTarget.style.modOpacity = valueOpacity;
	objectTarget.style.filter = 'alpha(opacity=' + eval( 100 * valueOpacity ) + ')';
}

function scrollToTop()
{
	window.scrollTo( 0, 0 );
}
