var InternetExplorer = navigator.appName.indexOf("Microsoft") != -1;
function myFlash_DoFSCommand(command, args)                {
    //alert("js " + command + "; args " + args);
    //var myFlashObj = document.myFlash;
    if(command=="back")
	{window.history.go(-1);
          }  
}

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(' MsgBox("hi")\n');
  document.write('on error resume next \n');
  document.write('Sub myFlash_FSCommand(ByVal command, ByVal args)\n');
  //document.write(' MsgBox(command)\n');
  document.write(' call myFlash_DoFSCommand(command, args)\n');
  document.write('end sub\n');
  document.write('</SCRIPT\> \n');
} 

function _NGInsertFlash(SWFName, PlayerVersion, Width, Height) {
	var sFlash = '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=' + PlayerVersion + '" width="' + Width + '" height="' + Height + 
'" id = "myFlash" >' +
	'<param name="movie" value="' + SWFName + '?P=N&NGT=' + _NGT + '&NGI=' + _NGI + '&F=' + _First +  '&NGK=' + _NGK + '&_V=' + _V + '&_N=' + _N +'">' +
	'<param name="quality" value="high">' +
	'<param name="menu" value="false">' +
	'<param name="swLiveConnect" value="true">' +
	'<embed menu=false swLiveConnect="true" src="' + SWFName + '?P=N&NGT=' + _NGT + '&NGI=' + _NGI + '&F=' + _First + '&NGK=' + _NGK + '&_V=' + _V + '&_N=' + _N +'" quality="high" NAME="myFlash"  pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="' + Width + '" height="' + Height + '"></embed>' +
	'</object>';

	document.write(sFlash);
}

function _NGInsertTransparentFlash(SWFName, PlayerVersion, Width, Height) {
	var sFlash = '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=' + PlayerVersion + '" width="' + Width + '" height="' + Height + '">' +
	'<param name="movie" value="' + SWFName + '?P=N&NGT=' + _NGT + '&NGI=' + _NGI + '&NGK=' + _NGK + '">' +
	'<param name="quality" value="high">' +
	'<param name="menu" value="false">' +
	'<param name=wmode value=transparent>' +
	'<embed menu=false swLiveConnect="true" wmode="transparent" src="' + SWFName + '?P=N&NGT=' + _NGT + '&NGI=' + _NGI + '&NGK=' + _NGK +'&_V=' + _NGK + '" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="' + Width + '" height="' + Height + '"></embed>' +
	'</object>';

	document.write(sFlash);
}