	

	var e,s,t,d,inf;
	
	function testIt(){
		var g=document.firstChild.nextSibling.firstChild.nextSibling.firstChild.firstChild.nextSibling.nextSibling.nextSibling.firstChild.firstChild.firstChild.nextSibling.firstChild.nextSibling.nextSibling.firstChild.nextSibling.firstChild.nextSibling.nextSibling.nextSibling.firstChild.firstChild.firstChild.nextSibling.nextSibling.firstChild.firstChild.firstChild.nextSibling.firstChild;
		alert(g.nodeName);
		g.style.visibility='hidden';
	}
	
	function DOMShowNodename(){
		if(inf){
			if(e.style){
				//inf.innerHTML = e.nodeName;
				inf.innerHTML = e.style.marginTop;
			}
			var txt = 'GAMECENTER<br>';
			d = '-';
			for(var i = 0; i < (aN.length); i++){
				if(aC[i] == '.firstChild'){
					d=d+'-';
				};
				txt = txt + d + aN[i] + '<br>';
			};
			t.innerHTML = txt;
			if(e.style){
				e.style.border = '3px outset red';
				e.style.backgroundColor = '#00ff00';
			};
		}else{
			inf.innerHTML = '';	
		};
	}
	
	function DOMReset(){
		s.style.backgroundColor = 'white';
		if(e.style){e.style.border = 'none'};
		if(e.style){e.style.backgroundColor = 'transparent'};
	}
	
	var aC = new Array();
	var aN = new Array();
	
	function DOMNEXTSIBLING(){
		DOMReset();
		if(e.nextSibling){
			e = e.nextSibling;
			aC.push('.nextSibling');
			aN.push(e.nodeName);
			DOMShowNodename();
		} else {
			s.style.backgroundColor = 'red';	
		};
	}
	
	function DOMFIRSTCHILD(){
		DOMReset();
		d = d+'.';
		if(e.firstChild){
			e = e.firstChild;
			aC.push('.firstChild');
			aN.push(e.nodeName);
			DOMShowNodename();
		} else {
			s.style.backgroundColor = 'red';	
		};
	}
	
	function DOMPARENT(){
		DOMReset();
		if(e.parentNode){
			e = e.parentNode;
			aC.pop();
			aN.pop();
			DOMShowNodename();
		} else {
			s.style.backgroundColor = 'red';	
		};
	}
	
	function DOMPREVSIBLING(){
		DOMReset();
		if(e.previousSibling){
			e = e.previousSibling;
			aC.pop();
			aN.pop();
			DOMShowNodename();
		} else {
			s.style.backgroundColor = 'red';	
		};
	}
	
	function DOMWRITECOM(){
		var cT = '';
		for(var i = 0; i < (aC.length); i++){
			cT = cT + aC[i];
		};
		w.innerHTML = cT;
		wT.style.visibility = 'visible';
		//t.style.visibility = 'hidden';
		// The arrow //e=START.firstChild.firstChild.firstChild.firstChild.firstChild.firstChild.nextSibling.nextSibling.nextSibling.firstChild.nextSibling.firstChild
		// The text //e=START.firstChild.firstChild.firstChild.firstChild.firstChild.firstChild.nextSibling.nextSibling.nextSibling.firstChild.nextSibling.firstChild.nextSibling
	}

	function DOMSurferSetup(){
		document.write('<div id="tracker" style="position:absolute; top:200px; left:900px; width:180px; height:400px; border:1px solid black; background-color:white; color:black; font-family:Arial; font-size:12px; z-index:99;"></div>');
		document.write('<div id="sensor" style="position:absolute; top:400px; display:block; width:100px; height:10px; border:1px solid black; background-color:white;"></div>');
		document.write('<div id="info" style="position:absolute; top:421px; display:block; width:100px; height:20px; border:1px solid black; background-color:white;"><span id="infotext" style="font-family:arial; font-size:10px; color:black;">hello</span></div>');
		document.write('<div id="tools" style="position:absolute; top:460px;"><a href="javascript:DOMNEXTSIBLING();" style="font-family:Arial; font-size:10px; color:white;">nextSibling</a><br>');
		document.write('<a href="javascript:DOMPREVSIBLING();" style="font-family:Arial; font-size:10px; color:white;">prevSibling</a><br>');
		document.write('<a href="javascript:DOMFIRSTCHILD();" style="font-family:Arial; font-size:10px; color:white;">firstChild</a><br>');
		document.write('<a href="javascript:DOMPARENT();" style="font-family:Arial; font-size:10px; color:white;">parentNode</a><br>');
		document.write('<a href="javascript:DOMWRITECOM();" style="font-family:Arial; font-size:10px; color:white;">writeIt</a><br>');
		document.write('<a href="javascript:testIt();" style="font-family:Arial; font-size:10px; color:white;">testIt</a></div>');
		document.write('<table id="writerTable" style="position:absolute; top:0px; left:0px; width:600px; height:100px; border:3px solid black; background-color:white; font-family:Arial; font-size:12px; visibility:hidden;"><tr><td valign="top" id="writer"></td></tr></table>');		

		//e = document.firstChild.nextSibling;
		e = document.getElementById("GAMECENTER");
		s = document.getElementById('sensor');
		inf = document.getElementById('infotext');
		t = document.getElementById('tracker');
		w = document.getElementById('writer');
		wT = document.getElementById('writerTable');
	}

	

	function DOMHunter(strWhichPage){

		if (strWhichPage == 'MULTIPLAYER'){
			var el;
			var str;
		
			if (document.getElementById){
				el = document.getElementById("GAMECENTER");
				cells = el.getElementsByTagName("td");
				for (var i = 0; i < cells.length; i++) {
					if(cells[i].innerHTML.indexOf('Try it online') != -1){
						str = cells[i].innerHTML;
						var rExp = new RegExp; 
						rExp = /Try it online/gi;
						cells[i].innerHTML = str.replace(rExp,'<span style="color:red; font-weight:bold; text-decoration:underline;">Try It Online</span>');
					};
					if(cells[i].innerHTML.indexOf('arrowRight') != -1){
						str = cells[i].innerHTML;
						var rExp2 = new RegExp; 
						rExp2 = /arrowRight\.gif/;
						cells[i].innerHTML = str.replace(rExp2,'arrowRight.gif" style="display:none;');
						cells[i].style.backgroundColor = "white";
					};
					if(cells[i].innerHTML.indexOf('Info') != -1){
						cells[i].style.backgroundColor = "white";
					};
				};		
			};	
		};
	
	if (strWhichPage == 'MOREGAMES'){
		
		// REMOVE THE GAPS AT THE TOP OF THE GAME CENTER
		var gap = document.getElementById("GAMECENTER");
		gap = gap.firstChild;
		gap.style.display = 'none';
		gap = document.getElementById("GAMECENTER");
		gap = gap.firstChild.nextSibling.firstChild.nextSibling.nextSibling.nextSibling;
		if(gap.style){
			gap.style.marginTop = '0';
		};
		

		var el;
		var str;
	
		if (document.getElementById){
			el = document.getElementById("GAMECENTER");
			cells = el.getElementsByTagName("td");
			for (var i = 0; i < cells.length; i++) {
				if(cells[i].innerHTML.indexOf('download') != -1){
					str = cells[i].innerHTML;
					var rExp = new RegExp; 
					rExp = />Download</gi;
					cells[i].innerHTML = str.replace(rExp,'><span style="color:red; font-weight:bold; text-decoration:underline;">Try Now</span><');
				} else {
					if(cells[i].innerHTML.indexOf('Download') != -1){
						str = cells[i].innerHTML;
						var rExp2 = new RegExp; 
						rExp2 = />Download</gi;
						str = str.replace(rExp2,'><span style="color:red; font-weight:bold; text-decoration:underline;">Try Now</span><');
						var rExp4 = new RegExp;
						rExp4 = /arrowDown\.gif/;
						cells[i].innerHTML = str.replace(rExp4,'arrowDown.gif" style="display:none;');
					};
				};
			};		
		};




	};
	
	if (strWhichPage == 'CATEGORY'){


	};
	
	
	if (strWhichPage == 'GAME'){

		var oDIV = document.getElementById("omGP");
		if (oDIV != undefined && oDIV != null) {

			var EL = oDIV.firstChild.firstChild.firstChild.firstChild;
			//alert(EL.nodeName);
			EL.style.display = 'none'; // Remove the hard-coded 8-pixel gap at the top of the game page
		};

		var el;
		var str;
	
		if (document.getElementById){
			el = document.getElementById("GAMECENTER");
			cells = el.getElementsByTagName("td");
			for (var i = 0; i < cells.length; i++) {
				if(cells[i].innerHTML.indexOf('Try Now') != -1){
					str = cells[i].innerHTML;
					var rExp = new RegExp; 
					rExp = /Try Now/gi;
					cells[i].innerHTML = str.replace(rExp,'<span style="color:red; font-weight:bold; text-decoration:underline;">Try Now</span>');
				};
				if(cells[i].innerHTML.indexOf('arrowDownB') != -1){
					str = cells[i].innerHTML;
					var rExp6 = new RegExp; 
					rExp6 = /arrowDownB\.gif/;
					cells[i].innerHTML = str.replace(rExp6,'arrowDownB.gif" style="display:none;');
				};	
			};		
		};
	};	
};
