var title='';var _w = 680;var _h = 540;var nFlashId = 10054;	

function ReSize(strSize){
	var intNextWidth;
	var intNextHeight;

	if (_w==0){
		_w = 680
	}

	if (_h==0){
		_h = 563
	}

	switch (strSize){
	case "1024":
		intNextWidth = 730;
		intNextHeight = 610;
		
		break;
	case "800":
		intNextWidth = 540;
		intNextHeight =450;
		break;
	case "min":
		intNextWidth = 450;
		intNextHeight = 281;
		break;
	default :
		intNextWidth = _w;
		intNextHeight = _h;
		break;
	}

	movie.width = intNextWidth;
	movie.height = intNextHeight;
	GoToBestPosition();
}
function getTop(e){
	var offset=e.offsetTop;
	if(e.offsetParent!=null) offset+=getTop(e.offsetParent);
	return offset;
}

function GoToBestPosition(){
	var objBestPosition = document.getElementById("22");
	var intBestPosition = getTop(objBestPosition);
	window.scrollTo(0,intBestPosition);
}


var screenWidth = location.search.split('?')[1]

function getOs(){
	var agt=window.navigator.userAgent.toLowerCase();
	if(agt.indexOf("msie")>=0)return 0;
	if(agt.indexOf("firefox")>=0)return 1;
	if(agt.indexOf("opera")>=0)return 3;
	if(agt.indexOf("camino")>=0)return 4;
	if(agt.indexOf("gecko/")>=0)return 5;
	return 0;
}

function refreshProgress(){
	try{
		var nPercentLoaded = Math.abs(movie.PercentLoaded());

		bar.style.width=Math.ceil((downProgressWidth-80-100-2)*nPercentLoaded/100)+"px";

		if(nPercentLoaded==100){
			clearTimeout(nTimeoutId);
			bar.style.width=(downProgressWidth-80-100-2)+"px";
			downStatus.innerHTML="ÏÂÔØÍê±Ï";
		}
		else{
			nTimeoutId = setTimeout('refreshProgress()',300)
		}
	}
	catch(e){
		if(getOs()!=0){
			nTimeoutId = setTimeout('refreshProgress()',1000);
		}
	}
}

function Replay(){
	var strMovieUrl;

	if(movie.PercentLoaded()==100){
		if(getOs()==0){
			strMovieUrl = movie.movie;
			movie.movie = " ";
			movie.movie = strMovieUrl;
		}
		else{
			strMovieUrl = movie.src;
			movie.src = " ";
			movie.src = strMovieUrl;
		}
	}
}
