    var x;
	
	function getDimensions()
	{
		if (self.innerHeight) // all except Explorer
		{
			x = self.innerWidth;
		} else if (document.documentElement && document.documentElement.clientHeight)
		{
			x = document.documentElement.clientWidth;
		} else if (document.body) // other Explorers
		{
			x = document.body.clientWidth;
		}
	}

 	addDOMLoadEvent(adjustBG);


 function adjustBG()
 {
	getDimensions();
	x = ( x - 1200 ) / 2;
	document.getElementById("main").style.backgroundPosition = x + "px 0px"; 
 }
 
function showExploreLong()
{
	document.getElementById("exploreLinksShort").style.display = 'none';
	document.getElementById("exploreLinksLong").style.display = 'block';
}

function showExploreShort()
{
	document.getElementById("exploreLinksShort").style.display = 'block';
	document.getElementById("exploreLinksLong").style.display = 'none';
}

function showFriendsLong()
{
	document.getElementById("friendsLinksShort").style.display = 'none';
	document.getElementById("friendsLinksLong").style.display = 'block';
}

function showFriendsShort()
{
	document.getElementById("friendsLinksShort").style.display = 'block';
	document.getElementById("friendsLinksLong").style.display = 'none';
}