// JavaScript Document
function normalswf(sFile,sWidth,sHeight,id){
	 document.write('<object name="'+id+'" id="'+id+'" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="'+ sWidth +'" height="'+ sHeight +'">  ');
	 document.write(' <param name="movie" value="'+ sFile +'">  ');
	 document.write(' <param name="quality" value="high">  ');
	 document.write(' <param name="wmode" value="transparent">  ');
	 document.write(' <embed name="'+id+'" id="'+id+'" src="'+ sFile +'" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="'+ sWidth +'" height="'+ sHeight +'"></embed>  ');
	 document.write('</object> ');
	}



//对象兼容性函数
function thisMovie(movieName) {
if (navigator.appName.indexOf ("Microsoft") !=-1) {
return window[movieName]
} else {
return document[movieName]
}
}

//确认影片已全部加载
function movieIsLoaded (theMovie) {
// First make sure the movie's defined.
if (typeof(theMovie) != "undefined") {
// If it is, check how much of it is loaded.
return theMovie.PercentLoaded() == 100;
} else {
// If the movie isn't defined, it's not loaded.
return false;
}
}



	
//首页控制新闻flash显示函数	
function showflash(id){
	if(movieIsLoaded(thisMovie("newsflash"))){
		thisMovie("newsflash").GotoFrame(1)
		}
	}

//首页控制新闻flash隐藏函数
function hiddenflash(id){
	//alert("hiddenflash");
	thisMovie("newsflash").GotoFrame(-1)

	}

