﻿			downProgressWidth=478;
			function refreshProgress(){
				var nPercentLoaded = Math.abs(movie.PercentLoaded());
		
				bar.style.width=Math.ceil((downProgressWidth-2)*nPercentLoaded/100)+"px";

				if(nPercentLoaded==100){
					clearTimeout(nTimeoutId);
					bar.style.width=(downProgressWidth-2)+"px";
					downStatus.innerHTML="下载完毕";
										}
				else{
					nTimeoutId = setTimeout('refreshProgress()',300)
					}
				}
				movie = document.getElementById("flashgame");

		

			var bar = document.getElementById("bar");
			var nTimeoutId = setTimeout('refreshProgress()',0);