document.write('<img src="../img_c/spacer.gif" width="1" height="1" border="0" alt="" id="NGapTrkImg_105">');

var isInternetExplorer = navigator.appName.indexOf("Microsoft") != -1;

// Flash コマンドですべての FSCommand メッセージを処理する
function product_DoFSCommand(command, args) {
	var fscommandObj = isInternetExplorer ? document.all.fscommand : document.fscommand;
	var imgObj = isInternetExplorer ? document.all['NGapTrkImg_105'] : document.NGapTrkImg_105;
	if(command=="map"){
		if(args=="pv"){
			imgObj.src = 'http://c.jp.msn.com/c.gif?na=1154&amp;nc=1167&amp;ps=96534&amp;di=12831&amp;pi=9961&'+Math.random();
		}else if (args=="spotdetail"){
			imgObj.src = 'http://c.jp.msn.com/c.gif?na=1154&amp;nc=1167&amp;ps=96535&amp;di=12831&amp;pi=9961&'+Math.random();
		}else if (args=="video"){
			imgObj.src = 'http://c.jp.msn.com/c.gif?na=1154&amp;nc=1167&amp;ps=96536&amp;di=12831&amp;pi=9961&'+Math.random();
		}
	}else if(command=="howto"){
		if(args=="pv"){
			imgObj.src = 'http://c.jp.msn.com/c.gif?na=1154&amp;nc=1167&amp;ps=96537&amp;di=12831&amp;pi=9961&'+Math.random();
		}
	}else if (command=="sw"){
		if(args=="pv7"){
			imgObj.src = 'http://c.jp.msn.com/c.gif?na=1154&amp;nc=1167&amp;ps=96538&amp;di=12831&amp;pi=9961&'+Math.random();
		}else if(args=="pvshow"){
			imgObj.src = 'http://c.jp.msn.com/c.gif?na=1154&amp;nc=1167&amp;ps=96539&amp;di=12831&amp;pi=9961&'+Math.random();
		}
	}
}

// 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 product_FSCommand(ByVal command, ByVal args)\n');
	document.write('	Call product_DoFSCommand(command, args)\n');
	document.write('End Sub\n');
	document.write('</script\>\n');
}
