var ml = document.getElementById('connect_news');
var fb = document.getElementById('connect_facebook');
var tw = document.getElementById('connect_twitter');
var csa = new Array(ml,fb,tw);
var ul = document.getElementById('connect_logo_container');
document.getElementById('connect_logo_container').style.display = 'block';
document.getElementById('connect_js_off').style.display = 'none';
document.getElementById('news_signup').style.display = 'block';
document.getElementById('news_signup_js_off').style.display = 'none';

//select which section is shown, the var sel is an index in the csa array
var activeSelectSection = function(sel) {
	for (x=0;x<3;x++){
		csa[x].style.display = 'none';
	}
	
	csa[sel].style.display = 'block';
	ul.style.backgroundPosition = (sel * 40 + 10) + 'px bottom';
}

	      
activeSelectSection(Math.floor(Math.random()*3));
//activeSelectSection(0);



