//----------------------------------------------------------
//ホイール時にSWFに渡されるファンクション
//----------------------------------------------------------
function xWheel(event){
	//SWFオブジェクトのID
	var swfId = "portfolio";
	//ホイール値の初期化
	var delta = 0;
	//ホイール値の取得
	if(!event){
		event = window.event;
	}
	if(event.wheelDelta){
		delta = event.wheelDelta/120; 
		if (window.opera){
			delta = -delta;
		}
	}else if (event.detail) {
		delta = -event.detail/3;
	}
	//ファンクションの呼び出し
	if (delta){
		swfName("FlashMovie").xFunc(delta);
		swfName("FlashMovie").xMove(delta);
	}
}

//----------------------------------------------------------
//SWFオブジェクトのID取得ファンクション
//----------------------------------------------------------
function swfName(str) {
	if (navigator.appName.indexOf("Microsoft") != -1) {
		return window[str];
	}else {
    	return document[str];
	}
}

//----------------------------------------------------------
//マウスホイールイベントの設定
//----------------------------------------------------------
if (window.addEventListener){
	window.addEventListener('DOMMouseScroll', xWheel, false);
}
window.onmousewheel = document.onmousewheel = xWheel;

//----------------------------------------------------------
//Mail News
//----------------------------------------------------------
//登録ファンクション
function mailReg(_mail){
	//送信先の指定
//	_url = "https://regssl.combzmail.jp/adddel.cgi";
	//ウィンドウのポップアップと書き込み
	_w = window.open("about:blank","regWin","width=547,height=367");
	_w.document.open();
//	_w.document.write("<form name=\"myForm\" method=\"post\" action=\""+_url+"\">");
	_w.document.write("<form name=\"myForm\" method=\"post\" action=\"https://regssl.combzmail.jp/adddel.cgi\">");
	_w.document.write("<input type=\"hidden\" name=\"mode\" value=\"add\">");
	_w.document.write("<input type=\"hidden\" name=\"confirm\" value=\"on\">");
	_w.document.write("<input type=\"hidden\" name=\"magid\" value=\"7c74\">");
	_w.document.write("<input type=\"hidden\" name=\"email\" value=\""+_mail+"\">");
	_w.document.write("</form>");
	_w.document.close();
	_w.document.myForm.submit();
}
//削除ファンクション
function mailQuit(_mail){
	//送信先の指定
//	_url = "https://regssl.combzmail.jp/adddel.cgi";
	//ウィンドウのポップアップと書き込み
	_w = window.open("about:blank","quitWin","width=547,height=367");
	_w.document.open();
//	_w.document.write("<form name=\"myForm\" method=\"post\" action=\""+_url+"\">");
	_w.document.write("<form name=\"myForm\" method=\"post\" action=\"https://regssl.combzmail.jp/adddel.cgi\">");
	_w.document.write("<input type=\"hidden\" name=\"mode\" value=\"del\">");
	_w.document.write("<input type=\"hidden\" name=\"confirm\" value=\"on\">");
	_w.document.write("<input type=\"hidden\" name=\"magid\" value=\"7c74\">");
	_w.document.write("<input type=\"hidden\" name=\"email\" value=\""+_mail+"\">");
	_w.document.write("</form>");
	_w.document.close();
	_w.document.myForm.submit();
}
//変更ファンクション
function mailChange(_mail1,_mail2){
	//送信先の指定
//	_url = "https://regssl.combzmail.jp/adddel_chg.php";
	//ウィンドウのポップアップと書き込み
	_w = window.open("about:blank","regWin","width=547,height=367");
	_w.document.open();
//	_w.document.write("<form name=\"myForm\" method=\"post\" action=\""+_url+"\">");
	_w.document.write("<form name=\"myForm\" method=\"post\" action=\"https://regssl.combzmail.jp/adddel_chg.php\">");
	_w.document.write("<input type=\"hidden\" name=\"magid\" value=\"7c74\">");
	_w.document.write("<input type=\"hidden\" name=\"email\" value=\""+_mail1+"\">");
	_w.document.write("<input type=\"hidden\" name=\"email_new\" value=\""+_mail2+"\">");
	_w.document.write("</form>");
	_w.document.close();
	_w.document.myForm.submit();
}
//バックナンバー
function openBackNo(){
	window.open("http://backnumber.combzmail.jp/mmz/backnumber/7c74_newest.txt","");
}

//----------------------------------------------------------
//SLAVE Mail News(PC)
//----------------------------------------------------------
//登録ファンクション
function SLPC_mailReg(_mail,_id){
	//送信先の指定
//	_url = "https://regssl.combzmail.jp/adddel.cgi";
	//ウィンドウのポップアップと書き込み
	_w = window.open("about:blank","regWin","width=547,height=367");
	_w.document.open();
//	_w.document.write("<form name=\"myForm\" method=\"post\" action=\""+_url+"\">");
	_w.document.write("<form name=\"myForm\" method=\"post\" action=\"https://regssl.combzmail.jp/adddel.cgi\">");
	_w.document.write("<input type=\"hidden\" name=\"mode\" value=\"add\">");
	_w.document.write("<input type=\"hidden\" name=\"confirm\" value=\"on\">");
	_w.document.write("<input type=\"hidden\" name=\"magid\" value=\""+_id+"\">");
	_w.document.write("<input type=\"hidden\" name=\"email\" value=\""+_mail+"\">");
	_w.document.write("</form>");
	_w.document.close();
	_w.document.myForm.submit();
}
//削除ファンクション
function SLPC_mailQuit(_mail,_id){
	//送信先の指定
//	_url = "https://regssl.combzmail.jp/adddel.cgi";
	//ウィンドウのポップアップと書き込み
	_w = window.open("about:blank","quitWin","width=547,height=367");
	_w.document.open();
//	_w.document.write("<form name=\"myForm\" method=\"post\" action=\""+_url+"\">");
	_w.document.write("<form name=\"myForm\" method=\"post\" action=\"https://regssl.combzmail.jp/adddel.cgi\">");
	_w.document.write("<input type=\"hidden\" name=\"mode\" value=\"del\">");
	_w.document.write("<input type=\"hidden\" name=\"confirm\" value=\"on\">");
	_w.document.write("<input type=\"hidden\" name=\"magid\" value=\""+_id+"\">");
	_w.document.write("<input type=\"hidden\" name=\"email\" value=\""+_mail+"\">");
	_w.document.write("</form>");
	_w.document.close();
	_w.document.myForm.submit();
}
//変更ファンクション
function SLPC_mailChange(_mail1,_mail2,_id){
	//送信先の指定
//	_url = "https://regssl.combzmail.jp/adddel_chg.php";
	//ウィンドウのポップアップと書き込み
	_w = window.open("about:blank","regWin","width=547,height=367");
	_w.document.open();
//	_w.document.write("<form name=\"myForm\" method=\"post\" action=\""+_url+"\">");
	_w.document.write("<form name=\"myForm\" method=\"post\" action=\"https://regssl.combzmail.jp/adddel_chg.php\">");
	_w.document.write("<input type=\"hidden\" name=\"magid\" value=\""+_id+"\">");
	_w.document.write("<input type=\"hidden\" name=\"email\" value=\""+_mail1+"\">");
	_w.document.write("<input type=\"hidden\" name=\"email_new\" value=\""+_mail2+"\">");
	_w.document.write("</form>");
	_w.document.close();
	_w.document.myForm.submit();
}
//バックナンバー
function SLPC_openBackNo(_id){
	window.open("http://backnumber.combzmail.jp/mmz/backnumber/"+_id+"_newest.txt","");
}

//----------------------------------------------------------
//SLAVE Mail News(MB)
//----------------------------------------------------------
//登録ファンクション
function SLMB_mailReg(_mail,_id){
	//送信先の指定
//	_url = "https://regssl.combzmail.jp/adddel.cgi";
	//ウィンドウのポップアップと書き込み
	_w = window.open("about:blank","regWin","width=547,height=400");
	_w.document.open();
//	_w.document.write("<form name=\"myForm\" method=\"post\" action=\""+_url+"\">");
	_w.document.write("<form name=\"myForm\" method=\"post\" action=\"https://regssl.combzmail.jp/adddel.cgi\">");
	_w.document.write("<input type=\"hidden\" name=\"mode\" value=\"add\">");
	_w.document.write("<input type=\"hidden\" name=\"confirm\" value=\"on\">");
	_w.document.write("<input type=\"hidden\" name=\"magid\" value=\""+_id+"\">");
	_w.document.write("<input type=\"hidden\" name=\"email\" value=\""+_mail+"\">");
	_w.document.write("</form>");
	_w.document.close();
	_w.document.myForm.submit();
}
//削除ファンクション
function SLMB_mailQuit(_mail,_id){
	//送信先の指定
//	_url = "https://regssl.combzmail.jp/adddel.cgi";
	//ウィンドウのポップアップと書き込み
	_w = window.open("about:blank","quitWin","width=547,height=400");
	_w.document.open();
//	_w.document.write("<form name=\"myForm\" method=\"post\" action=\""+_url+"\">");
	_w.document.write("<form name=\"myForm\" method=\"post\" action=\"https://regssl.combzmail.jp/adddel.cgi\">");
	_w.document.write("<input type=\"hidden\" name=\"mode\" value=\"del\">");
	_w.document.write("<input type=\"hidden\" name=\"confirm\" value=\"on\">");
	_w.document.write("<input type=\"hidden\" name=\"magid\" value=\""+_id+"\">");
	_w.document.write("<input type=\"hidden\" name=\"email\" value=\""+_mail+"\">");
	_w.document.write("</form>");
	_w.document.close();
	_w.document.myForm.submit();
}
//変更ファンクション
function SLMB_mailChange(_mail1,_mail2,_id){
	//送信先の指定
//	_url = "https://regssl.combzmail.jp/adddel_chg.php";
	//ウィンドウのポップアップと書き込み
	_w = window.open("about:blank","regWin","width=547,height=400");
	_w.document.open();
//	_w.document.write("<form name=\"myForm\" method=\"post\" action=\""+_url+"\">");
	_w.document.write("<form name=\"myForm\" method=\"post\" action=\"https://regssl.combzmail.jp/adddel_chg.php\">");
	_w.document.write("<input type=\"hidden\" name=\"magid\" value=\""+_id+"\">");
	_w.document.write("<input type=\"hidden\" name=\"email\" value=\""+_mail1+"\">");
	_w.document.write("<input type=\"hidden\" name=\"email_new\" value=\""+_mail2+"\">");
	_w.document.write("</form>");
	_w.document.close();
	_w.document.myForm.submit();
}
//バックナンバー
function SLMB_openBackNo(_id){
	window.open("http://backnumber.combzmail.jp/mmz/backnumber/"+_id+"_newest.txt","");
}

//----------------------------------------------------------
//その他
//----------------------------------------------------------
//プライバシーポリシー
function openPolicy(){
	window.open("./sitepolicy/sitepolicy.html","sitepolicy","width=567,height=400,scrollbars=yes,resizable=no");
}
//リンク
function openLink(){
	window.open("./link/link.html","sitepolicy","width=567,height=400,scrollbars=yes,resizable=no");
}
//GOD BLESS YOU
function openGBY(){
	var theWidth = screen.availWidth;
	var theHeight = screen.availHeight;
	window.open("http://www.lunaseagodblessyou.net/index.html","GBYWin","toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=no,resizable=no,left=0,top=0,width="+theWidth+",height="+theHeight);
}
//hide memorial summit
function openExInfo(){
	var thePage = "information/hms.html";
	window.open(thePage,"HMSWin","toolbar=0,location=0,scrollbars=no,resizable=no,left=0,top=0");
}

//メンバーズ用スクリプトの読み込みファンクション
function loadMembersFunc(){
	alert("loadMembersFunc");
	var js_url = "https://g639.secure.ne.jp/~g639003/members_func.js";
//	document.write("<script type='text/javascript' src='"+js_url+"'></scr"+"ipt>");
}

//全画面表示用ファンクション
function Full_Win(thePage){
	var theWidth = screen.availWidth;
	var theHeight = screen.availHeight;
	window.open(thePage,"","toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=no,resizable=no,left=0,top=0,width="+theWidth+",height="+theHeight);
}

