// 瓔酈 橢晦 --------------------
function getCookie( name )
{
		var nameOfCookie = name + "=";
		var x = 0;
		while ( x <= document.cookie.length )
		{
				var y = (x+nameOfCookie.length);
				if ( document.cookie.substring( x, y ) == nameOfCookie ) {
						if ( (endOfCookie=document.cookie.indexOf( ";", y )) == -1 )
								endOfCookie = document.cookie.length;
						return unescape( document.cookie.substring( y, endOfCookie ) );
				}
				x = document.cookie.indexOf( " ", x ) + 1;
				if ( x == 0 )
						break;
		}
		return "";
}

// で機璽 ------------------------
function PopupWindow() {
	var width=400;
	var height=448;
	var posx=0;
	var posy=0;

	posx = (screen.width-width)/2-1;
	posy = (screen.height-height)/2-1;

	position = "width="+width+",height="+height+",scrollbars=no,top=0,left=0,status=yes";

	if ( getCookie( "20090101" ) != "nopop" )
	{
	   var popup01=window.open('/popup/popup_20090310.html','20090101',position);
	}
}

// で機璽 ------------------------
function popupNotice() {
	var width=360;
	var height=280;
	var posx=0;
	var posy=0;

	posx = (screen.width-width)/2-1;
	posy = (screen.height-height)/2-1;

	position = "width="+width+",height="+height+",scrollbars=no,top=0,left=410,status=yes";

	if ( getCookie( "20090324" ) != "nopop" )
	{
	   var popup01=window.open('/popup/NoticePopup.html','20090324',position);
	}
}

// で機璽 ------------------------
function NewYearNotice() {
	var width=400;
	var height=453;
	var posx=0;
	var posy=0;

	posx = (screen.width-width)/2-1;
	posy = (screen.height-height)/2-1;

	position = "width="+width+",height="+height+",scrollbars=no,top=0,left=0,status=yes";

	if ( getCookie( "20110101" ) != "nopop" )
	{
	   var popup01=window.open('/popup/NewYear2011.html','20110101',position);
	}
}

// で機璽 ------------------------
function QrNotice() {
	var width=400;
	var height=453;
	var posx=0;
	var posy=0;

	posx = (screen.width-width)/2-1;
	posy = (screen.height-height)/2-1;

	position = "width="+width+",height="+height+",scrollbars=no,top=0,left=820,status=yes";

	if ( getCookie( "20110201" ) != "nopop" )
	{
	   var popup01=window.open('/popup/QrNotice.html','20110201',position);
	}
}

// で機璽 ------------------------
function SmartPhone() {
	var width=400;
	var height=453;
	var posx=0;
	var posy=0;

	posx = (screen.width-width)/2-1;
	posy = (screen.height-height)/2-1;

	position = "width="+width+",height="+height+",scrollbars=no,top=0,left=410,status=yes";

	if ( getCookie( "20110101" ) != "nopop" )
	{
	   var popup01=window.open('/popup/SmartPhone.html','20110101',position);
	}
}

// で機璽 ------------------------
function Neat() {
	var width=400;
	var height=453;
	var posx=0;
	var posy=0;

	posx = (screen.width-width)/2-1;
	posy = (screen.height-height)/2-1;

	position = "width="+width+",height="+height+",scrollbars=no,top=0,left=0,status=yes";

	if ( getCookie( "20110301" ) != "nopop" )
	{
	   var popup01=window.open('/popup/Neat.html','20110301',position);
	}
}

// で機璽 ------------------------
function KidsEvent() {
	var width=408;
	var height=488;
	var posx=0;
	var posy=0;

	posx = (screen.width-width)/2-1;
	posy = (screen.height-height)/2-1;

	position = "width="+width+",height="+height+",scrollbars=no,top=0,left=410,status=yes";

	if ( getCookie( "20110101" ) != "nopop" )
	{
	   var popup01=window.open('/popup/KidsEvent.html','20110101',position);
	}
}

// で機璽 ------------------------
function PhoneCancel() {
	var width=408;
	var height=488;
	var posx=0;
	var posy=0;

	posx = (screen.width-width)/2-1;
	posy = (screen.height-height)/2-1;

	position = "width="+width+",height="+height+",scrollbars=no,top=0,left=827,status=yes";

	if ( getCookie( "20110909" ) != "nopop" )
	{
	   var popup01=window.open('/popup/PhoneCancel.html','20110909',position);
	}
}

// で機璽 ------------------------
function MoveEvent() {
	var width=408;
	var height=488;
	var posx=0;
	var posy=0;

	posx = (screen.width-width)/2-1;
	posy = (screen.height-height)/2-1;

	position = "width="+width+",height="+height+",scrollbars=no,top=0,left=410,status=yes";

	if ( getCookie( "20111004" ) != "nopop" )
	{
	   var popup01=window.open('/popup/MoveEvent.html','20111004',position);
	}
}

// で機璽 ------------------------
function Notice() {
	var width=350;
	var height=480;
	var posx=0;
	var posy=0;

	posx = (screen.width-width)/2-1;
	posy = (screen.height-height)/2-1;

	position = "width="+width+",height="+height+",scrollbars=no,top=0,left=827,status=yes";

	if ( getCookie( "20111010" ) != "nopop" )
	{
	   var popup01=window.open('/popup/Notice.html','20111010',position);
	}
}

// で機璽(827) ------------------------
function JumpUp() {
	var width=350;
	var height=480;
	var posx=0;
	var posy=0;

	posx = (screen.width-width)/2-1;
	posy = (screen.height-height)/2-1;

	position = "width="+width+",height="+height+",scrollbars=no,top=0,left=700,status=yes";

	if ( getCookie( "20111024" ) != "nopop" )
	{
	   var popup05=window.open('/popup/JumpUp.html','20111024',position);
	}
}

// で機璽 ------------------------
function edupop_11event() {
	var width=350;
	var height=480;
	var posx=0;
	var posy=0;

	posx = (screen.width-width)/2-1;
	posy = (screen.height-height)/2-1;

	position = "width="+width+",height="+height+",scrollbars=no,top=0,left=770,status=yes";

	if ( getCookie( "20111004" ) != "nopop" )
	{
	   var popup01=window.open('/popup/edupop_11event.html','20111004',position);
	}
}
// で機璽 ------------------------
function v_english_event12() {
	var width=350;
	var height=430;
	var posx=0;
	var posy=0;

	posx = (screen.width-width)/2-1;
	posy = (screen.height-height)/2-1;

	position = "width="+width+",height="+height+",scrollbars=no,top=0,left=350,status=yes";

	if ( getCookie( "20111004" ) != "nopop" )
	{
	   var popup01=window.open('/popup/v_english_event12.html','20111004',position);
	}
}
// で機璽 ------------------------
function NEAT_event() {
	var width=400;
	var height=580;
	var posx=0;
	var posy=0;

	posx = (screen.width-width)/2-1;
	posy = (screen.height-height)/2-1;

	position = "width="+width+",height="+height+",scrollbars=no,top=0,left=0,status=yes";

	if ( getCookie( "20111004" ) != "nopop" )
	{
	   var popup01=window.open('/popup/NEAT_event.html','20111005',position);
	}
}
// で機璽 ------------------------
function NEAT_notice() {
	var width=355;
	var height=531;
	var posx=0;
	var posy=0;

	posx = (screen.width-width)/2-1;
	posy = (screen.height-height)/2-1;

	position = "width="+width+",height="+height+",scrollbars=no,top=0,left=0,status=yes";

	if ( getCookie( "20111004" ) != "nopop" )
	{
	   var popup01=window.open('/popup/NEAT_notice.html','20111005',position);
	}
}

NEAT_notice();
//NEAT_event();
//edupop_11event();
//KidsEvent();
//MoveEvent();
//Notice();
//PopupWindow();
//Neat();
//JumpUp();
//v_english_event12();
//new_year_event201112();
