executionTime = 16000;
adwidth = 0;
unitwidth = 21;
pt = '';
pbHandle = '';
var pbTable = '';
function gotoGame()
{
	document.getElementById('gamebox').align = 'left';
	document.getElementById("ShowAdv").style.display="none";
	document.getElementById("game-show").style.display="block";
}
function loadGame()
{
	swfObj = gameobject;
	document.getElementById("game-show").innerHTML = swfObj;
	//$('#game-show').find('object').append('<param name="wmode" value="transparent" />');
	//$('#game-show').find('embed').attr('wmode', 'transparent');
}
function progressBar(){
	if(adwidth==0){
		pt.style.visibility = 'visible';
	}
	pbTable += '<td style="width:21px;height:0px;font-size:8px;border-right:1px solid #ffffff;color:#1E266A;">&nbsp;</td>';
	pt.innerHTML = '<table cellpadding="0" cellspacing="0" border="0">'+pbTable+'</table>';
	adwidth+=unitwidth;
	if(executionTime==1000){
		pt.style.width = (adwidth-3)+"px";
	}else{
		pt.style.width = adwidth+"px";
	}
	executionTime -=1000;
	if(executionTime<=0){
		clearInterval(pbHandle);
		gotoGame();
	}
}

function addLoadEvent() 
{
	pt = document.getElementById("progressTable"); 
	pbHandle = setInterval("progressBar()", 1400);
	loadGame();
}

