var IE6AndLower = false /*@cc_on || @_jscript_version < 5.7 @*/

function EqualizeWells () {
	
	//alert ('running EqualizeWells ()...');
	
	document.getElementById('ContentContainer').style.height = 'auto';
	
	document.getElementById('SidebarRightContainer').style.height = 'auto';
	
	var ContentHeight = document.getElementById('ContentContainer').offsetHeight;
	
	var SidebarHeight = document.getElementById('SidebarRightContainer').offsetHeight;
	
	if (ContentHeight < SidebarHeight)
	{
		
		document.getElementById('ContentContainer').style.height = SidebarHeight + 'px';
		
	}
	else if (SidebarHeight < ContentHeight)
	{
		
		document.getElementById('SidebarRightContainer').style.height = ContentHeight + 'px';
		
	}
	
}

function Init () {
	
	//alert ('running Init ()...');
	
	EqualizeWells ();
	
}

function ButtonSwap (ThisId, ThisImage) {
	
	//alert ('running ButtonSwap (' + ThisId + ',' + ThisImage + ')...');
	
	document.getElementById (ThisId).src = '/images/' + ThisImage;
		
}

function GetWidth()
{
	var x = 0;
	
	if (self.innerHeight)
	{
		
			x = self.innerWidth;
			
	}
	else if (document.documentElement && document.documentElement.clientHeight)
	{
		
			x = document.documentElement.clientWidth;
			
	}
	else if (document.body)
	{
		
			x = document.body.clientWidth;
			
	}
	
	return x;
}

function GetHeight()
{
	var y = 0;
	
	if (self.innerHeight)
	{
		
			y = self.innerHeight;
			
	}
	else if (document.documentElement && document.documentElement.clientHeight)
	{
		
			y = document.documentElement.clientHeight;
			
	}
	else if (document.body)
	{
		
			y = document.body.clientHeight;
			
	}
	
	return y;
	
}

function ToggleBackgroundFader ()
{
	
	//alert ('running ToggleBackgroundFader ()...');
	
	if (document.getElementById ('BackgroundFader').style.display == 'none' || document.getElementById ('BackgroundFader').style.display == '')
	{
		
		document.getElementById ('BackgroundFader').style.display = 'block';
		
	}
	else
	{
		
		document.getElementById ('BackgroundFader').style.display = 'none';
		
	}
	
}

window.onload = Init;
