var InternetExplorer = navigator.appName.indexOf("Microsoft") != -1;
// Handle all the the FSCommand messages in a Flash movie
function flashmov_DoFSCommand(command, args) {
  var flashmovObj = InternetExplorer ? flashmov : document.flashmov;
  if(command == "close"){
		window.close()
	}
	if(command == "flashmov"){
		flashmov.style.pixelHeight=args;
	}
}
function closeWin() {
		alert("sss")
}
// Hook for Internet Explorer 
if (navigator.appName && navigator.appName.indexOf("Microsoft") != -1 && 
	navigator.userAgent.indexOf("Windows") != -1 && navigator.userAgent.indexOf("Windows 3.1") == -1) {
	document.write('<SCRIPT LANGUAGE=VBScript\> \n');
	document.write('on error resume next \n');
	document.write('Sub flashmov_FSCommand(ByVal command, ByVal args)\n');
	document.write('call flashmov_DoFSCommand(command, args)\n');
	document.write('end sub\n');
	document.write('</SCRIPT\> \n');
}
//--flashÎÄ¼þ-------------------------------------------------------------------
function flash(sFile,sWidth,sHeight,sName){
document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" id="'+sName+'" name="'+sName+'"   codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,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="allowFullScreen" value="true"> ');
document.write(' <param name="wmode" value="transparent"> ');
document.write(' <PARAM NAME=salign VALUE=T> ');
document.write(' <PARAM NAME=scale VALUE=noscale> ');
document.write(' <embed src="'+ sFile +'" wmode="transparent" allowFullScreen=true quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="'+ sWidth +'" height="'+ sHeight +'" name="'+sName+'"></embed> ');
document.write('</object> ');
}