var SMFua = navigator.userAgent;
if (SMFua.indexOf("Mac") && SMFua.match("(MSIE)([^0-9a-zA-Z]){1}(5)")) {
	document.write("[<a href='http://mf1.shinobi.jp/stat/75da7bdbfdd71125c72658dd5e04e395/strap.js' target='_blank'>NINJA_MAILFORM</a>]<br>");
} else {
	if (!SMFS_error){var SMFS_error = '';}
	if (!SMF_arr){var SMF_arr=new Object();}
	if (!SMFStyle_arr){var SMFStyle_arr=new Object();}
	if (!SMFSubmit_arr){var SMFSubmit_arr=new Object();}
	
	var SMFTemplate_name = encodeURI("strap");
	
	if ((SMFS_error = "")) {
		SMFError_message(SMFS_error);
	} else if (SMF_arr[SMFTemplate_name]) {
		SMFError_message('『strap』が重複しています。<br>');
	} else {
		SMF_arr[SMFTemplate_name] = "<div><div class='name_top' style='width:100%;margin:3px 3px 3px 0px;clear:both;'><div class='name_left' style='color:black;width:600px;padding:2px 5px;text-align:text-align:center;;width:590px;'>*<input type='hidden' name='nac' value='na'>[ＨＮ]</div><div class='name_right' style='width:600px;padding:0px 5px;text-align:text-align:center;;width:590px;'><input type='text' name='na' style='width:250px;font-size:12px;' value='' class='name_parts'></div><BR clear='all'></div><div class='mail_top' style='width:100%;margin:3px 3px 3px 0px;clear:both;'><div class='mail_left' style='color:black;width:600px;padding:2px 5px;text-align:text-align:center;;width:590px;'>*<input type='hidden' name='mac' value='ma'>[メールアドレス]</div><div class='mail_right' style='width:600px;padding:0px 5px;text-align:text-align:center;;width:590px;'><input type='text' name='ma' style='width:250px;font-size:12px;' value='' class='mail_parts'></div><BR clear='all'></div><div class='textarea_top' style='width:100%;margin:3px 3px 3px 0px;clear:both;'><div class='textarea_left' style='color:black;width:600px;padding:2px 5px;text-align:text-align:center;;width:590px;'>*<input type='hidden' name='tac' value='ta'>[予約希望記入欄]</div><div class='textarea_right' style='width:600px;padding:0px 5px;text-align:text-align:center;;width:590px;'><textarea cols='60' rows='15' style='font-size:12px;' name='ta' class='textarea_parts'></textarea></div><BR clear='all'></div><div class='submit' id='strap_submit' style='text-align:center;'><!--submit_button_top--><input class='submit_button' type='button' value='送信' name='submit' onclick=soushin('75da7bdbfdd71125c72658dd5e04e395','strap'); ><!--submit_button_end--></div></div>";
		SMFStyle_arr[SMFTemplate_name] = "font-size:12px;font-family:ＭＳ ゴシック,Osaka,sans-serif;text-align:center;width:100%;margin:3px 3px 3px 0px;clear:both;";
		SMFSubmit_arr[SMFTemplate_name] = "text-align:center;";
		SMFmailform_exist();
		if(!insertSMFCSS('http://mf1.shinobi.jp/mailform/skin_css/0_plain.css'))
			alert("F:CSS:0:plain");
	}
}

function SMFmailform_exist() {
	document.write("<div id=strap_top style='width:600px;'><!--skin_title_top--><div class='title' style='color:black;font-size:12px;font-family:ＭＳ ゴシック,Osaka,sans-serif;font-weight:700;text-align:left;'>ストラップ予約フォーム</div><!--skin_title_end--><!--skin_explain_top--><div class='explain' style='color:black;font-size:12px;font-family:ＭＳ ゴシック,Osaka,sans-serif;text-align:left;'>３月２０日に行われるリリカルマジカル６で配布予定の<br>バリアジャケット・ストラップの予約フォームです。<br><br>会場配布価格は一つ３００円ですが、予約してくださった方には５０円引き、<br>一つ２５０円で提供させて頂きます。<br><br>集計をしやすくするために、以下のテンプレートに沿って入力をお願いします。<br>ＨＮ、予約希望ストラップの種類と個数、メールアドレスを記入して送信してください。<br>ご協力をお願いします。<br><br>締め切りは２００９年３月１８日２３：５９までとさせていただきます。<br>作成個数を超えてしまった場合、メールアドレスに連絡させて頂きます。<br><br>この予約は会場でのお渡しのみ有効です。<br>お渡しは『は02　気まぐれ工房　蒼（きまぐれこうぼう　そう）』にて、<br>予約された際のＨＮと予約内容を確認させて頂いた後、精算となります。<br>なお、諸事情ありまして当サークルは閉会の１５分前に撤収を始めさせて頂きます。<br>引き取りはその前までにお願いします。<br><br>サンプル<br><br>・執務官（フェイトさん）<br><IMG src=\"http://kimagurekoubousou.fc2web.com/paint/top/strap_fate.jpg\" alt=\"\"></IMG><br>・教導官（なのはさん）<br><IMG src=\"http://kimagurekoubousou.fc2web.com/paint/top/strap_nanoha.jpg\" alt=\"\"></IMG><br>・部隊長（はやてさん）<br><IMG src=\"http://kimagurekoubousou.fc2web.com/paint/top/strap_hayate.jpg\" alt=\"\"></IMG><br><br><br>↓以下テンプレート。↓<br>---------------------------<br><br>HN（読み）：<br>E-Mail：<br>執務官：　　個<br>教導官：　　個<br>部隊長：　　個<br>合計：　　　個 <br><br>何かございましたら一言：（無記入可）<br><br>---------------------------<br>↑以上↑<br><br>ご予約をお待ちしております。<br><br>高宮蒼涼（気まぐれ工房　蒼）<br>2009.03.10</div><!--skin_explain_end--><div class='main' style='border:solid 1px black;font-size:12px;font-family:ＭＳ ゴシック,Osaka,sans-serif;text-align:center;width:600;'><!--old_browser--><form id='strap'><!--old_browser--><!--skin_html_tmp_top--><div><div class='name_top' style='width:100%;margin:3px 3px 3px 0px;clear:both;'><div class='name_left' style='color:black;width:600px;padding:2px 5px;text-align:text-align:center;;width:590px;'>*<input type='hidden' name='nac' value='na'>[ＨＮ]</div><div class='name_right' style='width:600px;padding:0px 5px;text-align:text-align:center;;width:590px;'><input type='text' name='na' style='width:250px;font-size:12px;' value='' class='name_parts'></div><BR clear='all'></div><div class='mail_top' style='width:100%;margin:3px 3px 3px 0px;clear:both;'><div class='mail_left' style='color:black;width:600px;padding:2px 5px;text-align:text-align:center;;width:590px;'>*<input type='hidden' name='mac' value='ma'>[メールアドレス]</div><div class='mail_right' style='width:600px;padding:0px 5px;text-align:text-align:center;;width:590px;'><input type='text' name='ma' style='width:250px;font-size:12px;' value='' class='mail_parts'></div><BR clear='all'></div><div class='textarea_top' style='width:100%;margin:3px 3px 3px 0px;clear:both;'><div class='textarea_left' style='color:black;width:600px;padding:2px 5px;text-align:text-align:center;;width:590px;'>*<input type='hidden' name='tac' value='ta'>[予約希望記入欄]</div><div class='textarea_right' style='width:600px;padding:0px 5px;text-align:text-align:center;;width:590px;'><textarea cols='60' rows='15' style='font-size:12px;' name='ta' class='textarea_parts'></textarea></div><BR clear='all'></div><div class='submit' id='strap_submit' style='text-align:center;'><!--submit_button_top--><input class='submit_button' type='button' value='送信' name='submit' onclick=soushin('75da7bdbfdd71125c72658dd5e04e395','strap'); ><!--submit_button_end--></div></div><!--skin_html_tmp_end--></form></div><div id='shinobi_jp_text' style='font-size:10px;height:15px;text-align:left;width:150px;'>Powered by <a href='http://www.ninja.co.jp/' target='_blank'>NINJA TOOLS</a></div></div>");
	document.write("<scr" + "ipt defer id='strap_dynld' type='text/javascript' src='http://mf1.shinobi.jp/mf_post.js' charset='utf-8'></scr" + "ipt>");
	SMFhooter();
}

function SMFError_message(SMFError_mes) {
	document.write("<p style='font-size:12px;'>" + SMFError_mes + "</p>");
	SMFS_error = '';
}

function SMFhooter() {
	var SMFtext = document.getElementById('SMFkkk');
	if (SMFtext) {
		var SMFfooter = document.getElementById('shinobi_jp_text');
		SMFtext.id = 'shinobi_jp_text';
		SMFtext.style.textAlign = SMFfooter.style.textAlign;
		SMFtext.style.fontSize = SMFfooter.style.fontSize;
		SMFtext.style.width = SMFfooter.style.width;
		SMFtext.style.height = SMFfooter.style.height;
//		SMFtext.style.paddingRight = SMFfooter.style.paddingRight;
		SMFfooter.parentNode.replaceChild(SMFtext,SMFfooter);
	}
}

function insertSMFCSS(url) {
	var na = navigator.userAgent;
	if (!url) {
		return false;
	} else if (document.all && !window.opera) {
		document.createStyleSheet(url);
	} else if (document.styleSheets || window.opera) {
		var SMFLink = document.createElement('LINK');
		SMFLink.rel = "StyleSheet";
		SMFLink.type = "text/css";
		SMFLink.href = url;
		
		var SMFHead = document.getElementsByTagName('HEAD').item(0);
		SMFHead.appendChild(SMFLink);
	} else {
		return false;
	}
	return true;
}