// Custom By Garyu@CGFM (2008.03.28)
//--- Config ------
var Req_ID = "0868476544";	// 仮契約コード（数字10桁）  
var GIF = "https://www.handgive.com/user_data/packages/default/img/swf/stickersr_m.gif";	//GIFのパス
var SWF = "https://www.handgive.com/user_data/packages/default/img/swf/stickersr.swf";	//SWFのパス
var W = "56";	//  width	(GIF・SWF共通) ：サイズ[大]の数値
var H ="88";	// height	(GIF・SWF共通) ：サイズ[大]の数値
var TransparentFlag = 1;	// 0: false(背景色が有効に) 1:true (背景を透明に)  
var BgColor ="#ffffff";	// 背景色

//-----------------
var MM_contentVersion = 6;
var plugin = (navigator.mimeTypes && navigator.mimeTypes["application/x-shockwave-flash"]) ? navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin : 0;
if ( plugin ) {
	var words = navigator.plugins["Shockwave Flash"].description.split(" ");
	for (var i = 0; i < words.length; ++i)
	{
		if (isNaN(parseInt(words[i])))
		continue;
		var MM_PluginVersion = words[i];
	}
	var MM_FlashCanPlay = MM_PluginVersion >= MM_contentVersion;
}
else if (navigator.userAgent && navigator.userAgent.indexOf("MSIE")>=0
&& (navigator.appVersion.indexOf("Win") != -1)) {
	document.write('<scr' + 'ipt language="VBscript" type="text/vbscript"\>\n'); //FS hide this from IE4.5 Mac by splitting the tag
	document.write('on error resume next \n');
	document.write('MM_FlashCanPlay = ( IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash." & MM_contentVersion)))\n');
	document.write('</scr' + 'ipt>\n');
}
if ( MM_FlashCanPlay ) {
	document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"');
	document.write(' codebase="https://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" ');
	document.write('  id="PfWf" width="' + W + '" height="' + H + '" align="">');
	document.write('  <param name="movie" value="' + SWF + '" />');
	document.write('  <param name="FlashVars" value="Req_ID=' + Req_ID + '" />');
	document.write('  <param name="quality" value="high" />');
	document.write('  <param name="bgcolor" value="'+ BgColor +'" />');
	if(TransparentFlag) document.write('  <param name="wmode" value="transparent" />');
	document.write('  <embed src="' + SWF + '" flashvars="Req_ID=' + Req_ID + '"');
	document.write('     quality="high" bgcolor="'+ BgColor +'"');
	if(TransparentFlag) document.write('     wmode="transparent"');
	document.write('     swLiveConnect="FALSE" width="' + W + '" height="' + H + '" name="PfWe" align=""');
	document.write('     type="application/x-shockwave-flash" pluginspage="https://www.macromedia.com/go/getflashplayer">');
	document.write('  </embed>');
	document.write(' </object>'); } else{
	document.write('<form action="https://www.login.secomtrust.net/customer/customer/pfw/CertificationPage.do" name="CertificationPageForm" method="post" target="_blank" style="margin:0px;">');
	document.write('  <input type="image" src="' + GIF + '" width="' + W + '" height="' + H + '" name="Sticker" alt="クリックして証明書の内容をご確認ください" oncontextmenu="return false" />');
	document.write('  <input type="hidden" name="Req_ID" value="' + Req_ID + '" />');
	document.write('</form>');
}