	

	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 == 'HOME'){
			
			var images = document.getElementsByTagName("IMG");
			for(var i = 0; i < images.length; i++)
			{
				if(images[i].src.indexOf("plusG.gif") != -1)
				{
					images[i].style.display = "none";
				}
			}
			var cells = document.getElementsByTagName("TD");
			for(var i = 0; i < cells.length; i++)
			{
				if(cells[i].style.backgroundImage.indexOf("divider") != -1)
				{
					cells[i].style.backgroundImage = "url(/skin/images/dividerStrip.gif)";
					cells[i].style.backgroundRepeat = "no-repeat";
					cells[i].style.backgroundPosition = "4px 20px";
					cells[i].style.verticalAlign = "top";
					cells[i].height = 36;
				}
			}
			
	};
	
	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 mOne = document.getElementById("gameBoxMiddle");
		mOne = mOne.firstChild.firstChild.nextSibling;
		var B = true;
	};
	
	if (strWhichPage == 'CATEGORY'){
		var B = true;
		var cat2 = document.getElementById("GAMECENTER");
		cat2 = cat2.firstChild.nextSibling.firstChild.nextSibling.nextSibling.nextSibling.firstChild.nextSibling.nextSibling.firstChild.firstChild.firstChild.firstChild.firstChild.nextSibling.firstChild;
	};
	
	if (strWhichPage == 'MULTI'){
		var images = document.getElementsByTagName("IMG");
		for(var i = 0; i < images.length; i++)
		{
			if(images[i].src.indexOf("-corner.gif") != -1)
			{
				images[i].src = "/skin/images/cornerMP.gif";
			}
		}
		var links = document.getElementsByTagName("A");
		var one = true;
		for(var i = 0; i < links.length; i++)
		{
			if(links[i].innerHTML.indexOf("playnow") != -1)
			{
				links[i].removeChild(links[i].getElementsByTagName("IMG")[0]);
				links[i].innerHTML = "Play Now";
				links[i].className = "oberonNavM";
				if(!one)
				{
					links[i].parentNode.className = "MPPN";
				}
				else
				{
					one = false;
				}
			}
		}
	}
	
	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 B = true;
		var T = document.getElementById("GAMECENTER");
		var T = T.firstChild.nextSibling.firstChild.nextSibling.nextSibling.nextSibling.nextSibling.firstChild.nextSibling.nextSibling.firstChild.firstChild.firstChild.firstChild.firstChild.firstChild.firstChild.nextSibling.nextSibling.firstChild.nextSibling.firstChild.firstChild.nextSibling.nextSibling.nextSibling.firstChild.firstChild.firstChild.firstChild;

		while (B){
			
				//---------------------------------------------------------------------------------
				
				
					var x = T.firstChild.firstChild.firstChild.firstChild.nextSibling.nextSibling.nextSibling.firstChild.nextSibling.firstChild.nextSibling;
					
					if(x){
						x.innerHTML = "Free Download";
						x.className = 'DOMC';
						x = x.previousSibling;
						if(x){
							var newImage = x.src;
							if(newImage){
								newImage = newImage.replace(/\/graphics\/arrowDownB.gif/gi,'/skin/images/spacer.gif');
								x.src = newImage;
							};
						};
					};
					
				//---------------------------------------------------------------------------------

			if(T.nextSibling){
				T = T.nextSibling;
			} else {
				B = false;
			};
		};	
	};	
};