$(document).ready(function() {
	
	$('#moretext').bind('click',
	
		function(){
			$(this).hide();
			$('#ngtext').show();
			$('#onoff').show();		
		}
	);



	$('#ngtext').bind('click',
	
		function(){
			$(this).hide();
			$('#moretext').show();	
			$('#onoff').hide();		
	
		}
	);
	
	
	$('#credittitle').bind('click',
	
		function(){
			$('#credits').toggle();
		}
		
	);
	
	
		
});


function centerdiv(){

	var x,y;
	if (self.innerHeight) // all except Explorer
	{
		x = self.innerWidth;
		y = self.innerHeight;
	}
	else if (document.documentElement && document.documentElement.clientHeight)
		// Explorer 6 Strict Mode
	{
		x = document.documentElement.clientWidth;
		y = document.documentElement.clientHeight;
	}
	else if (document.body) // other Explorers
	{
		x = document.body.clientWidth;
		y = document.body.clientHeight;
	}



	document.getElementById('center').style.top = ((y/2)-(document.getElementById('center').offsetHeight)/2 - 25) + "px";
	document.getElementById('center').style.left = (x/2)-(document.getElementById('center').offsetWidth)/2+ "px";
	
}


window.onload = function(){
							centerdiv();
							window.onresize = function(){centerdiv();}
						};