function DOMHunter(){

	var q = getArgs();
	var loc = window.document.location.toString();

	if(loc.indexOf("category.htm") != -1){

		switch(q["code"]){
			case "1000" :
				theMenu = document.getElementById("menu1");
				theMenu.style.backgroundColor = "#97B7CC";
				break;
			case "1002" :
				theMenu = document.getElementById("menu2");
				theMenu.style.backgroundColor = "#97B7CC";
				break;
			case "1007" :
				theMenu = document.getElementById("menu3");
				theMenu.style.backgroundColor = "#97B7CC";
				break;
			case "1003" :
				theMenu = document.getElementById("menu4");
				theMenu.style.backgroundColor = "#97B7CC";
				break;
			case "110012530" :
				theMenu = document.getElementById("menu5");
				theMenu.style.backgroundColor = "#97B7CC";			
				break;
			case "1006" :
				theMenu = document.getElementById("menu6");
				theMenu.style.backgroundColor = "#97B7CC";
				break;
			case "1004" :
				theMenu = document.getElementById("menu7");
				theMenu.style.backgroundColor = "#97B7CC";
				break;
			case "1008" :
				theMenu = document.getElementById("menu8");
				theMenu.style.backgroundColor = "#97B7CC";
				break;
			case "110011217" :
				theMenu = document.getElementById("menu9");
				theMenu.style.backgroundColor = "#97B7CC";
				break;
			case "1005" :
				theMenu = document.getElementById("menu10");
				theMenu.style.backgroundColor = "#97B7CC";
				break;
			case "110015873" :
				theMenu = document.getElementById("menu11");
				theMenu.style.backgroundColor = "#97B7CC";
				break;
			
			default :
				// nothing
				break;
			}
	}

	if (document.getElementById("moregames-body"))
	{
		var moreGames = document.getElementById("headerStrip");
		moreGames.firstChild.innerHTML = "&nbsp;All Games";
	}

	if (document.getElementById("homepage_ver2-body")){
		/*SET GLOBAL OBJECTS*/
		var allelements;
		var tables;
		var cells;
		var images;
		var anchors;
		var divs;
		allelements = document.getElementById("homepage_ver2-body");
		tables = allelements.getElementsByTagName("table");
		cells = allelements.getElementsByTagName("td");
		images = allelements.getElementsByTagName("img");
		anchors = allelements.getElementsByTagName("a");
		divs = allelements.getElementsByTagName("div");
		
		/* change divider background graphic */
		for (var i = 0; i < cells.length; i++) {
			if(cells[i].style.backgroundImage.indexOf("dividerStrip") != -1){
				cells[i].style.backgroundImage = "url(/skin/images/dividerStrip.gif)";
				cells[i].style.height = "30px";
				cells[i].style.vAlign = "top";
				cells[i].style.border = "0px solid red";
			}
			
		};
		
		/* fix position of free download graphic */
		for (var i = 0; i < images.length; i++) {
			if((images[i].src).indexOf('freeDownloadS_out') != -1){
				images[i].style.position = "relative";
				images[i].style.top = "1px";
			};
		};
		/*=============================================================================================================================*/
	}
	
	if(document.getElementById("homepage_ver2-body"))
	{
		// SHIFT THE TOP SIX TABLE UP
		var gc = document.getElementById("GAMECENTER");
		var tables = gc.getElementsByTagName("TABLE");
		var topTable = tables[1];
	
		if(topTable.nodeName == "TABLE")
		{
			topTable.style.position = "relative";
			topTable.style.marginTop = "-10px";
		}
	}
}

function getArgs() {	
	var args = new Object();	
	var query = unescape(location.search.substring(1));  // Get query string.	
	var pairs = query.split("&");              // Break at comma.	
	for(var i = 0; i < pairs.length; i++) {	
			var pos = pairs[i].indexOf('=');       // Look for "name=value".	
			if (pos == -1) continue;               // If not found, skip.	
			var argname = pairs[i].substring(0,pos);  // Extract the name.		
			argname = argname.toLowerCase();	
			var value = pairs[i].substring(pos+1); // Extract the value.	
			args[argname] = unescape(value);          // Store as a property.	
	}

	return args;                               // Return the object.

}