// use jQuery 

//初期設定
var flashplayer_ver = 0;

//IE以外の場合
if(navigator.plugins && navigator.mimeTypes['application/x-shockwave-flash']){
	var plugin = navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin;
	//Flash Playerがインストールされている場合
	if(plugin){
		flashplayer_ver = parseInt(plugin.description.match(/\d+\.\d+/));
	}
}

//IEの場合、もしくはFlash Playerがインストールされていない場合
else{
//IEでFlash Playerがインストールされている場合
	try{
		var flashOCX = new ActiveXObject("ShockwaveFlash.ShockwaveFlash").GetVariable("$version").match(/([0-9]+)/);
		if(flashOCX){
			flashplayer_ver = parseInt(flashOCX[0]);
		}
	}catch(e){
	}
}

//Flash Playerがインストールされていない、もしくはバージョンが9以下の場合
if(flashplayer_ver < 9){
	flashplayer_ver = 0;
}

$(function(){
//temporary
flashplayer_ver=1;
	if(flashplayer_ver>0){
		//Flash Player有効時
		$("#topvisual_Area").html(
			"<iframe name='topvisual' width='1000' height='370' frameborder='0' scrolling='no' src='visual/swf_var.html'></iframe>"
		);
	} else {
		//Flash Player無効時
		$("#topvisual_Area").html(
			"<iframe name='topvisual' width='1000' height='370' frameborder='0' scrolling='no' src='visual/js_var.html'></iframe>"
		);
	};
})
