var isInternetExplorer = navigator.appName.indexOf("Microsoft") != -1;
// Flash コマンドですべての FSCommand メッセージを処理する

function top_DoFSCommand(command, args) {
	var topObj = isInternetExplorer ? document.all.top : document.top;

	if (command == "openWindow") { 
		var windowArgs = args.split("|");
		var domain = windowArgs[0];
		var name = windowArgs[1];
		var params = windowArgs[2];
		//window.open(domain, params);
		//alert(domain);
		
		document.b2chotelform.action=domain;
		document.b2chotelform.submit();
	}
}

// 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 top_FSCommand(ByVal command, ByVal args)\n');
	document.write('	Call top_DoFSCommand(command, args)\n');
	document.write('End Sub\n');
	document.write('</script\>\n');
}


function runflash(width,code,area){

	if (AC_FL_RunContent == 0) {
		alert("このページでは \"AC_RunActiveContent.js\" が必要です。");
	} else {
		AC_FL_RunContent(
			'codebase', 'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0',
			'width', '738',
			'height', '370',
			'src', '/test/flash/resorre',
			'quality', 'high',
			'pluginspage', 'http://www.macromedia.com/go/getflashplayer',
			'align', 'middle',
			'play', 'true',
			'loop', 'true',
			'scale', 'showall',
			'wmode', 'window',
			'devicefont', 'false',
			'id', '/test/flash/resorre',
			'bgcolor', '#ffffff',
			'name', '/test/flash/resorre',
			'menu', 'true',
			'allowFullScreen', 'false',
			'allowScriptAccess','sameDomain',
			'movie', '/test/flash/resorre',
			'salign', ''
			); //end AC code
	}

}