var isInternetExplorer = navigator.appName.indexOf("Microsoft") != -1;
// Handle all the FSCommand messages in a Flash movie.
function bottlesOpen_DoFSCommand(command, args) {
	var bottlesOpenObj = isInternetExplorer ? document.all.bottlesOpen : document.bottlesOpen;
	//
	if(command == "remove") 
	{
		//alert('document.getElementById('+args+').style.display = "none";');
		window.setTimeout('document.getElementById("'+args+'").style.display = "none";',500);
	}
	//
}
// 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 bottlesOpen_FSCommand(ByVal command, ByVal args)\n');
	document.write('	Call bottlesOpen_DoFSCommand(command, args)\n');
	document.write('End Sub\n');
	document.write('</script\>\n');
}

function bottlesClose_DoFSCommand(command, args) {
	var bottlesCloseObj = isInternetExplorer ? document.all.bottlesClose : document.bottlesClose;
	//
	if(command == "remove") 
	{
		//alert('document.getElementById('+args+').style.display = "none";');
		window.setTimeout('document.getElementById("'+args+'").style.display = "none";',500);
	}
	//
}
// 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 bottlesClose_FSCommand(ByVal command, ByVal args)\n');
	document.write('	Call bottlesClose_DoFSCommand(command, args)\n');
	document.write('End Sub\n');
	document.write('</script\>\n');
}