TGP.Category = { 
	Descriptions:null,
	init: function(){ 
		this.Descriptions = TGP.Init.initData.CatDescriptions; 
		E.addListener(Dom.getElementsByClassName('bigbutton'),'mouseenter',this.Listeners.ShowDescription); 
		E.addListener(Dom.getElementsByClassName('bigbutton'),'mouseleave',this.Listeners.HideDescription); 
	},
	Listeners:{
		ShowDescription:function(){ 
			Dom.setStyle(this,'backgroundColor','#EFF5FF'); 
			var id = this.id.split("_")[1]; 
			$('popupcopy').innerHTML = TGP.Category.Descriptions[id];
			var aXY = Dom.getXY(this); 
			var width = parseInt(Dom.getStyle(this,'width')); 
			var height = parseInt(Dom.getStyle(this,'height')); 
				var targetlocationX = aXY[0]+width-17;
				var targetlocationY = aXY[1]+10;
			if(targetlocationX+parseInt(Dom.getStyle($('GameDescriptionPopUp'),'width')) > Dom.getViewportWidth()){ 
				Dom.replaceClass($('popupleft'),'leftarrow','left'); 
				Dom.replaceClass($('popupright'),'right','rightarrow'); 
				var targetlocationX = aXY[0]-parseInt(Dom.getStyle($('GameDescriptionPopUp'),'width'))+17;
				var targetlocationY = aXY[1]+10;
			} else { 
				Dom.replaceClass($('popupleft'),'left','leftarrow'); 
				Dom.replaceClass($('popupright'),'rightarrow','right'); 
			}
			Dom.setStyle($('GameDescriptionPopUp'),'display',''); 
			Dom.setXY($('GameDescriptionPopUp'),[targetlocationX,targetlocationY]); 
		},
		HideDescription:function(){ 
			Dom.setStyle(this,'backgroundColor','#FFFFFF'); 
			Dom.setStyle($('GameDescriptionPopUp'),'display','none'); 
		} 
	}
}
TGP.Init.initThese.push("Category"); 