function showElement(id){
	element=document.getElementById(id);
	element.style.display = "block";
}

function hideElement (id) {
	element=document.getElementById(id);
	element.style.display = "none";
}

/*
This function will center the webpage if the window width is less
than the website width.

*/
function centerScrollbar()
{
	// Change this width to suite your site.
	var websiteWidth = 1024;
	
	// Pulled these if statements from http://www.quirksmode.org/js/winprop.html
	// Mozilla
	if (self.innerWidth)
	{
		frameWidth = self.innerWidth;
	}
	// IE with DOCTYPE
	else if (document.documentElement && document.documentElement.clientWidth)
	{
		frameWidth = document.documentElement.clientWidth;
	}
	// IE without DOCTYPE
	else if (document.body)
	{
		frameWidth = document.body.clientWidth;
	}
	else return;
	
	/*
	IE always resets the scrollbar when loading a web page.  Mozilla will remember the
	scrollbar position if the user does a refresh.  If window.scrollX != 0 then the
	browser is Mozilla AND it has been scrolled.  window.scrollX is undefined in IE.
	*/
	if (window.scrollX) {
		var scrolldistance = (websiteWidth - frameWidth)/2 - window.scrollX;
	} else {
		var scrolldistance = (websiteWidth - frameWidth)/2;
	}
	
	//alert(frameWidth);
	//alert(scrolldistance);
	window.scrollBy(scrolldistance,0);
	return 0;
}