context: function tabSwitch(newTab){	if(init_home == 1){		document.getElementById('home_images').style.display = 'none';		init_home=0;	}	//TODO 	//1) Make this so that there are only one set of tabs that are initially not displayed	//2) Make those tabs change inner text. Ie: opensource --> instructions	//3) Make the reference links of each point to the appropriate place. opensource links to opensource location	var buildTabs = ["opensource_tab", "forum_tab", "purchase_tab"];	var flightTabs = ["instructions_tab", "hud_tab", "diagnostics_tab"];	if(newTab == "fly_tab"){		document.getElementById(newTab).innerHTML = 'Flight!';		document.getElementById(newTab).className = 'active';		document.getElementById('build_tab').innerHTML = 'Build';		document.getElementById('build_tab').className = 'inactive';		flightTabs.forEach(function(entry){			document.getElementById(entry).style.display = 'inline-block';		});		buildTabs.forEach(function(entry){			document.getElementById(entry).style.display = 'none';		});	}	else if(newTab == "build_tab"){		document.getElementById(newTab).innerHTML = 'Building!';		document.getElementById(newTab).className = 'active';		document.getElementById('fly_tab').innerHTML = 'Fly';		document.getElementById('fly_tab').className = 'inactive';		buildTabs.forEach(function(entry){			document.getElementById(entry).style.display = 'inline-block';		});		flightTabs.forEach(function(entry){			document.getElementById(entry).style.display = 'none';		});		}		}
meta: 10965	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10965/7d0510801dadc75e82b1856b4bf667ba8da0e0bd/BeagleQuadHome.js/clean/code/ControlTower/javascript/BeagleQuadHome.js