﻿document.onclick = function(event)
{
	
	
	evt = event || window.event;
	
	var srcelement = evt.srcElement ? evt.srcElement:evt.target;
	
	if (srcelement.id != 'FSelectTypeIDs' && srcelement.id != 'Products')
	{
		//alert(srcelement.id); //srcelement.parentNode.parentNode.id
		//alert(srcelement.parentNode.parentNode.id);
		document.getElementById('showProduct').style.display = 'none';
		document.getElementById('showgame').style.display = 'none';
	}
}

// JavaScript Document
function showDiv(DivID,strInfo)
{
//	if (strInfo == '')
//	{
//		if (DivID == 'NewProMsg')
//		{
//			document.getElementById(DivID).innerHTML = '<table width="258" height="58" border="0" cellpadding="0" cellspacing="0"><tr><td height="7"><img src="/images/top-ac.gif" width="258" height="7" /></td></tr><tr><td height="45" background="/images/bg-ac.gif"><table width="95%" height="45" border="0" align="center" cellpadding="0" cellspacing="0"><tr><td class="TopMsgDIV">The latest games are here. Check out:</td></tr><tr><td class="TopMsgDIVfont">Shop all New Releases &gt; </td></tr></table></td></tr><tr><td height="3"><img src="/images/bottom-ac.gif" width="258" height="3" /></td></tr></table>';
//		}else if (DivID == 'WholesaleMsg')
//		{
//			document.getElementById(DivID).innerHTML = '<table width="258" height="58" border="0" cellpadding="0" cellspacing="0"><tr><td height="7"><img src="/images/top-ac.gif" width="258" height="7" /></td></tr><tr><td height="45" background="/images/bg-ac.gif"><table width="95%" height="44" border="0" align="center" cellpadding="0" cellspacing="0"><tr><td class="TopMsgDIV">The favourable price are here. Create value:</td></tr><tr><td class="TopMsgDIVfont">Shop all Wholesale &gt; </td></tr></table></td></tr><tr><td height="3"><img src="/images/bottom-ac.gif" width="258" height="3" /></td></tr></table>';
//		}else if (DivID == 'PreOrderMsg')
//		{
//			document.getElementById(DivID).innerHTML = '<table width="258" height="58" border="0" cellpadding="0" cellspacing="0"><tr><td height="7"><img src="/images/top-ac.gif" width="258" height="7" /></td></tr><tr><td height="45" background="/images/bg-ac.gif"><table width="95%" height="44" border="0" align="center" cellpadding="0" cellspacing="0"><tr><td class="TopMsgDIV">Coming soon, and ready to be ordered today.</td></tr><tr><td class="TopMsgDIVfont">Shop all Pre-Orders &gt; </td></tr></table></td></tr><tr><td height="3"><img src="/images/bottom-ac.gif" width="258" height="3" /></td></tr></table>';
//		}
//	}
//	document.getElementById(DivID).style.display = strInfo;
}
function showapro()
{
//	var dtxt = document.getElementById('showAllPro').style.display;
//	if (dtxt == 'none')
//		document.getElementById('showAllPro').style.display='';
//	else
//		document.getElementById('showAllPro').style.display='none';
}

function selectpro(id,stxt)
{
//	document.getElementById('FSelectTypeID').value = id;
//	document.getElementById('showAllPro').style.display='none';
//	document.getElementById('ProductT').value = stxt;
}

