/*=========================================

 filename:  init.page.regist.js
 create:    2009/
 copyright: 

　ページ初期化

=========================================*/
(function(){
$(function()
{
	/**
	 * 文字サイズの変更部分
	 * 
	 */
	window.cushion.textSizeBtnAction();
	/**
	 * Shadowbox初期化
	 */
	Shadowbox.init({
		language:   "ja",
		players:    ['html' , 'iframe']
	});
	
	
	/**
	 * 各ロールオーバー処理
	 * 
	 */
	//上
	window.cushion.addRollActionById("btnTipness");
	window.cushion.addRollActionById("btnMytipness");
	window.cushion.addRollActionById("btnVisit");
	window.cushion.addRollActionById("btnAdmission");
	window.cushion.addRollActionById("btnGlobalTop");
	window.cushion.addRollActionById("btnGlobalProgram");
	window.cushion.addRollActionById("btnGlobalShop");
	window.cushion.addRollActionById("btnGlobalPlan");
	window.cushion.addRollActionById("btnGlobalAccess");
	//中
	window.cushion.addRollActionById("btnRegistFlow");
	window.cushion.addRollActionById("btnRegistPrivilege");
	window.cushion.addRollActionById("btnRegistRegistflow");
	window.cushion.addRollActionById("btnRegistProcedure1");
	window.cushion.addRollActionById("btnRegistProperty");
	window.cushion.addRollActionById("btnRegistFaq");
	window.cushion.addRollActionById("btnRegistProcedure2");
	
	//
	window.cushion.addRollActionById("btnRegistRegistflow_2");
	window.cushion.addRollActionById("btnRegistProcedure1_2");
	window.cushion.addRollActionById("btnRegistProperty_2");
	window.cushion.addRollActionById("btnRegistFaq_2");
	
	//下
	window.cushion.addRollActionById("btnPagetop");
	window.cushion.addRollActionById("btnProcedure");
	window.cushion.addRollActionById("btnPlayer");
	window.cushion.addRollActionById("btnVisithope");
	window.cushion.addRollActionById("btnMailmagazine");
	window.cushion.addRollActionById("btnFirst");
	window.cushion.addRollActionById("btnFaq");
	
	/**
	 *　フロー
	 * 
	 * 
	 */
	var flowLink_1 = $( "#btnRegistRegistflowPopUp_1" );
	var flowLink_2 = $( "#btnRegistRegistflowPopUp_2" );
	var flowLinkUrl_1 = flowLink_1.attr( "href" );
	var flowLinkUrl_2 = flowLink_2.attr( "href" );
	flowLink_1.removeAttr( "href" );
	flowLink_2.removeAttr( "href" );
	flowLink_1.click(function(){
		window.open( flowLinkUrl_1, "",  'width=640, height=570, menubar=no, toolbar=no, scrollbars=yes');
	});
	flowLink_2.click(function(){
		window.open( flowLinkUrl_2, "",  'width=640, height=570, menubar=no, toolbar=no, scrollbars=yes');
	});
	
	flowLink_1.mouseover(function(){
		$(this).css( "cursor", "pointer" );
	});
	flowLink_2.mouseover(function(){
		$(this).css( "cursor", "pointer" );
	});
	/**/
	/**
	 *　もちもの
	 * 
	 * 
	 */
	var PropertyLink_1 = $( "#btnRegistPropertyPopUp_1" );
	var PropertyLink_2 = $( "#btnRegistPropertyPopUp_2" );
	var PropertyLinkUrl_1 = PropertyLink_1.attr( "href" );
	var PropertyLinkUrl_2 = PropertyLink_2.attr( "href" );
	PropertyLink_1.removeAttr( "href" );
	PropertyLink_2.removeAttr( "href" );
	PropertyLink_1.click(function(){
		window.open( PropertyLinkUrl_1, "",  'width=640, height=553, menubar=no, toolbar=no, scrollbars=yes');
	});
	PropertyLink_2.click(function(){
		window.open( PropertyLinkUrl_2, "",  'width=640, height=553, menubar=no, toolbar=no, scrollbars=yes');
	});
	
	PropertyLink_1.mouseover(function(){
		$(this).css( "cursor", "pointer" );
	});
	PropertyLink_2.mouseover(function(){
		$(this).css( "cursor", "pointer" );
	});
	/**/
	
});
})();




