var xmlHttp;
	var browserType;
	var showTab;
	
	if (document.layers) {browserType = "nn4"}
	if (document.all) {browserType = "ie"}
	if (window.navigator.userAgent.toLowerCase().match("gecko")) {
	   browserType= "gecko"
	}
	
	function tab1(){
		getGames('Top', '9');
		//show these
		show('tabs1');
		show('divXbox360');

		//hide these	
		hide('tabs2');
		hide('divWii');
		hide('tabs3');
		hide('divPS3');
		hide('tabs4');
		hide('divPC');
		hide('tabs5');
		hide('divDS');
		hide('tabs6');
		hide('divPSP');
		hide('tabs7');
		hide('divPS2');

	}
	
	function tab2(){
		getGames('Top', '16')
		
		//show these
		show('tabs2');
		show('divWii');

		//hide these	
		hide('tabs1');
		hide('divXbox360');
		hide('tabs3');
		hide('divPS3');
		hide('tabs4');
		hide('divPC');
		hide('tabs5');
		hide('divDS');
		hide('tabs6');
		hide('divPSP');
		hide('tabs7');
		hide('divPS2');
	}
	
	function tab3(){
		getGames('Top', '32')
		
		//show these
		show('tabs3');
		show('divPS3');

		//hide these	
		hide('tabs1');
		hide('divXbox360');
		hide('tabs2');
		hide('divWii');
		hide('tabs4');
		hide('divPC');
		hide('tabs5');
		hide('divDS');
		hide('tabs6');
		hide('divPSP');
		hide('tabs7');
		hide('divPS2');
	}
	
	function tab4(){
		getGames('Top', '23')
		
		//show these
		show('tabs4');
		show('divPC');

		//hide these	
		hide('tabs1');
		hide('divXbox360');
		hide('tabs2');
		hide('divWii');
		hide('tabs3');
		hide('divPS3');
		hide('tabs5');
		hide('divDS');
		hide('tabs6');
		hide('divPSP');
		hide('tabs7');
		hide('divPS2');
	}
	
	function tab5(){
		getGames('Top', '22')
		
		//show these
		show('tabs5');
		show('divDS');

		//hide these	
		hide('tabs1');
		hide('divXbox360');
		hide('tabs2');
		hide('divWii');
		hide('tabs3');
		hide('divPS3');
		hide('tabs4');
		hide('divPC');
		hide('tabs6');
		hide('divPSP');
		hide('tabs7');
		hide('divPS2');
	}
	
	function tab6(){
		getGames('Top', '33')
		
		//show these
		show('tabs6');
		show('divPSP');

		//hide these	
		hide('tabs1');
		hide('divXbox360');
		hide('tabs2');
		hide('divWii');
		hide('tabs3');
		hide('divPS3');
		hide('tabs4');
		hide('divPC');
		hide('tabs5');
		hide('divDS');
		hide('tabs7');
		hide('divPS2');
	}
	
	function tab7(){
		getGames('Top', '31')
		
		//show these
		show('tabs7');
		show('divPS2');

		//hide these	
		hide('tabs1');
		hide('divXbox360');
		hide('tabs2');
		hide('divWii');
		hide('tabs3');
		hide('divPS3');
		hide('tabs4');
		hide('divPC');
		hide('tabs5');
		hide('divDS');
		hide('tabs6');
		hide('divPSP');
	}
	
	function show(divName){
		if (browserType == "gecko" )
			document.poppedLayer = eval('document.getElementById(\'' + divName + '\')');
		else if (browserType == "ie")
			document.poppedLayer = eval('document.all[\'' + divName + '\']');
		else
			document.poppedLayer = eval('document.layers[\'`' + divName + '\']');
		document.poppedLayer.style.visibility = "visible";
		document.poppedLayer.style.display = "block";
	}
	
	function hide(divName){
		if (browserType == "gecko" )
			document.poppedLayer = eval('document.getElementById(\'' + divName + '\')');
		else if (browserType == "ie")
			document.poppedLayer = eval('document.all[\'' + divName + '\']');
		else
			document.poppedLayer = eval('document.layers[\'`' + divName + '\']');
		document.poppedLayer.style.visibility = "hidden";
		document.poppedLayer.style.display = "none";
	}