// JavaScript Document


//自分を閉じて親を遷移

function basemake(URL) {

	if (!window.opener) {

		self.open(URL);

	} else if (window.opener.closed) {

		window.open(URL);

	} else {

		window.opener.location.href = URL;

	}

}



function open_2011platinumwelcome() {

	window.open('info/2011platinumwelcome/index.html', '_blank', 'width=654,height=870,resizable=no,status=no,scrollbars=1');

}


//ポイントアップキャンペーン2011ページのPOP

//2011wintercmapaignのPOP

function open_2011winter() {

	window.open('info/2011winter/index.html', '_blank', 'width=685,height=810,resizable=no,status=no,scrollbars=1');

}

//2011autumncmapaignのPOP

function open_2011autumn() {

	window.open('info/2011autumn/index.html', '_blank', 'width=654,height=800,resizable=no,status=no,scrollbars=1');

}

//pointup201108のPOP

function open_pointup_201108() {

	window.open('info/pointup201108/index.html', '_blank', 'width=654,height=800,resizable=no,status=no,scrollbars=1');

}

function open_stepup201107() {

	window.open('info/stepup201107/index.html', '_blank', 'width=654,height=800,resizable=no,status=no,scrollbars=1');

}

function open_stepup201112() {

	window.open('info/stepup201112/index.html', '_blank', 'width=654,height=800,resizable=no,status=no,scrollbars=1');

}


function open_2011summer() {

	window.open('info/2011summer/index.html', '_blank', 'width=643,height=800,resizable=no,status=no,scrollbars=1');

}

//cheerupcampaign2011のPOP

function open_cheerup2011() {

	window.open('info/cheerup201105/index.html', '_blank', 'width=643,height=800,resizable=no,status=no,scrollbars=1');

}

//2011springcampaignのPOP

function open_2011spring() {

	window.open('info/2011spring/index.html', '_blank', 'width=654,height=800,resizable=no,status=no,scrollbars=1');

}


//stepuppointcampaign2010のPOP

function open_stepuppoint2010() {

	window.open('info/2010stepuppoint/index.html', '_blank', 'width=654,height=870,resizable=no,status=no,scrollbars=1');

}


//2010platinumwelcomecampaign2010のPOP

function open_2010platinumwelcome() {

	window.open('info/2010platinumwelcome/index.html', '_blank', 'width=654,height=870,resizable=no,status=no,scrollbars=1');

}


//pcexhibitionのPOP

function open_pcexhibition() {

	window.open('info/pcexhibition/index.html', '_blank', 'width=654,height=800,resizable=no,status=no,scrollbars=1');

}

//wintercampaign2010のPOP

function open_wintercampaign2010() {

	window.open('info/wintercampaign2010/index.html', '_blank', 'width=654,height=870,resizable=no,status=no,scrollbars=1');

}

//pointup20101015のPOP

function open_pointup_20101015() {

	window.open('info/pointup20101015/index.html', '_blank', 'width=654,height=800,resizable=no,status=no,scrollbars=1');

}


//2010autumncampaignのPOP

function open_2010autumn() {

	window.open('info/2010autumn/index.html', '_blank', 'width=654,height=800,resizable=no,status=no,scrollbars=1');

}

//pointup201007のPOP

function open_pointup201007() {

	window.open('info/pointup201007/index.html', '_blank', 'width=654,height=800,resizable=no,status=no,scrollbars=1');

}

//2010summercmapaignのPOP

function open_2010summer() {

	window.open('info/2010summercampaign/index.html', '_blank', 'width=654,height=800,resizable=no,status=no,scrollbars=1');

}

//pointup201002のPOP

function open_pointup201004() {

	window.open('info/pointup201004/index.html', '_blank', 'width=654,height=800,resizable=no,status=no,scrollbars=1');

}

//pointup201002のPOP

function open_springcampaign2010() {

	window.open('info/springcampaign2010/index.html', '_blank', 'width=654,height=800,resizable=no,status=no,scrollbars=1');

}

//pointup201002のPOP

function open_pointup201002() {

	window.open('info/pointup201002/index.html', '_blank', 'width=654,height=800,resizable=no,status=no,scrollbars=1');

}

//pointup201005のPOP

function open_pointup201005() {

	window.open('info/pointup201105/index.html', '_blank', 'width=654,height=800,resizable=no,status=no,scrollbars=1');

}


//LIP&NPexihibitionのPOP

function open_exhibition() {

	window.open('info/exhibition/index.html', '_blank', 'width=654,height=800,resizable=no,status=no,scrollbars=1');

}

//ポイントアップ2010ページのPOP

function open_point3() {

	window.open('info/member2010/index.html', '_blank', 'width=654,height=647,resizable=no,status=no,scrollbars=no');

}

//ポイントアップキャンペーン2011ページのPOP

function open_pointup2011() {

	window.open('info/pointup201102/index.html', '_blank', 'width=654,height=800,resizable=no,status=no,scrollbars=1');

}


//ポイントアップ2011ページのPOP

function open_2011member() {

	window.open('info/member2011/index.html', '_blank', 'width=641,height=640,resizable=no,status=no,scrollbars=no');

}

//ポイントアップ2012ページのPOP

function open_2012member() {

	window.open('info/member2012/index.html', '_blank', 'width=540,height=780,resizable=no,status=no,scrollbars=yes');

}


//platinumwelcomeのPOP

function open_platinumwelcome09() {

	window.open('info/platinumwelcome09/index.html', '_blank', 'width=654,height=647,resizable=no,status=no,scrollbars=1');

}

//ポイントアップ2009_10のPOP

function open_200910pointup() {

	window.open('info/200910pointupcampaign/index.html', '_blank', 'width=654,height=647,resizable=no,status=no,scrollbars=1');

}

//2009welcomeのPOP

function open_200910welcome() {

	window.open('info/welcomecampaign0910/index.html', '_blank', 'width=660,height=775,resizable=no,status=no,scrollbars=0');

}

//2009autumnのPOP

function open_2009autumn() {

	window.open('info/2009autumn/index.html', '_blank', 'width=654,height=900,resizable=no,status=no,scrollbars=0');

}

//ポイントアップ2009_07のPOP

function open_200908pointup() {

	window.open('info/200908pointupcampaign/index.html', '_blank', 'width=654,height=647,resizable=no,status=no,scrollbars=1');

}

//ポイントページのPOP

function open_point2() {

	window.open('info/member2009/index.html', '_blank', 'width=654,height=647,resizable=no,status=no,scrollbars=no');

}

//2009ウェルカムキャンペーンのPOP

function open_welcome0907() {

	window.open('info/welcomecampaign0907/index.html', '_blank', 'width=660,height=775,resizable=yes,status=no,scrollbars=1');

}

//2009サマーキャンペーンのPOP

function open_2009summer() {

	window.open('info/2009summer/index.html', '_blank', 'width=654,height=647,resizable=no,status=no,scrollbars=yes');

}

//ポイントアップ2009のPOP

function open_point09() {

	window.open('info/2009pointupcampaign/index.html', '_blank', 'width=654,height=647,resizable=no,status=no,scrollbars=1');

}

//ウィンドウを開く系の汎用ファンクション

function popWin(myUrl,myW,myH) {

	if(myW){

		window.open(myUrl, '', 'width='+myW+',height='+myH+',toolbar=no,location=no,status=no,menubar=no,scrollbars=yes,resizable=yes');

	}else{

		window.open(myUrl, '', 'toolbar=no,location=no,status=no,menubar=no,scrollbars=yes,resizable=yes');

	}

}

//Whats HTML

function openwhatsHtml() {

	mapWin = window.open("at_mary/ms01.html", "_blank", "width=560,height=610,resizable=yes,status=no,scrollbars=1");

}

//GreetingCard

function openCard() {

	mapWin = window.open("gcard/greeting/", "_blank", "width=560,height=610,resizable=yes,status=no,scrollbars=1");

}

//会員登録

function openWhatsNew() {

	mapWin = window.open("https://www.maryquant.co.jp/official/official_join.php3", "_blank", "width=560,height=610,resizable=yes,status=no,scrollbars=1");

	//mapWin = window.open("mailing_service/rg01.htm","_blank","width=560,height=610,resizable=yes,status=no,scrollbars=1");

}

//会員登録2

function openWhatsNew2() {

	mapWin = window.open("https://www.maryquant.co.jp/official/official_join.php3", "_blank", "width=560,height=610,resizable=yes,status=no,scrollbars=1");

	//mapWin = window.open("../mailing_service/rg01.htm","_blank","width=560,height=610,resizable=yes,status=no,scrollbars=1");

}

//

function openPratform() {

	platWin = window.open("faq/platform.html","_blank","width=560,height=610,resizable=yes,status=no,scrollbars=0");

}

//

function openPratform2() {

	platWin = window.open("../faq/platform.html", "_blank", "width=560,height=610,resizable=yes,status=no,scrollbars=0");

}

//変更

function openinfoChange() {

	mapWin = window.open("https://www.maryquant.co.jp/official/official_info_change.php3", "_blank", "width=560,height=610,resizable=yes,status=no,scrollbars=1");

}

//退会

function openresign() {

	mapWin = window.open("https://www.maryquant.co.jp/official/official_resign.php3", "_blank", "width=560,height=610,resizable=yes,status=no,scrollbars=1");

}

//パスワード忘れ

function openlostpwd() {

	mapWin = window.open("https://www.maryquant.co.jp/official/lost_pwd.php3", "_blank", "width=560,height=610,resizable=yes,status=no,scrollbars=1");

}

//壁紙DLページ

function open_w_dl(URL) {

	mapWin = window.open(URL, "_blank", "width=420,height=330,resizable=no,status=no,scrollbars=0");

}

function open_w_dl_spring() {

	mapWin = window.open("at_mary/dl/mob_spring.html", "_blank", "width=420,height=330,resizable=no,status=no,scrollbars=0");

}

function open_w_dl_cosme() {

	mapWin = window.open("at_mary/dl/mob_cosme.html", "_blank", "width=420,height=330,resizable=no,status=no,scrollbars=0");

}

function open_w_dl_colorful() {

	mapWin = window.open("at_mary/dl/mob_colorful.html", "_blank", "width=420,height=330,resizable=no,status=no,scrollbars=0");

}

function open_w_dl_xmas() {

	mapWin = window.open("at_mary/dl/mob_xmas.html", "_blank", "width=420,height=330,resizable=no,status=no,scrollbars=0");

}

function open_w_dl_ripple() {

	mapWin = window.open("at_mary/dl/mob_ripple.html", "_blank", "width=420,height=330,resizable=no,status=no,scrollbars=0");

}

function open_w_dl_monochrome() {

	mapWin = window.open("at_mary/dl/mob_monochrome.html", "_blank", "width=420,height=330,resizable=no,status=no,scrollbars=0");

}

function open_w_dl_01() {

	mapWin = window.open("at_mary/dl/mob_01.html", "_blank", "width=420,height=330,resizable=no,status=no,scrollbars=0");

}

function open_w_dl_02() {

	mapWin = window.open("at_mary/dl/mob_02.html", "_blank", "width=420,height=330,resizable=no,status=no,scrollbars=0");

}

function open_w_dl_03() {

	mapWin = window.open("at_mary/dl/mob_03.html", "_blank", "width=420,height=330,resizable=no,status=no,scrollbars=0");

}

function open_w_dl_04() {

	mapWin = window.open("at_mary/dl/mob_04.html", "_blank", "width=420,height=330,resizable=no,status=no,scrollbars=0");

}

function open_w_dl_05() {

	mapWin = window.open("at_mary/dl/mob_05.html", "_blank", "width=420,height=330,resizable=no,status=no,scrollbars=0");

}

//スクリーンセーバーDLページ

function open_screen_pinky() {

	mapWin = window.open("at_mary/dl/screen/pinky.zip", "_blank", "width=420,height=330,resizable=yes,status=no,scrollbars=0");

}

//HowToページ

function open_w_howto() {

	mapWin = window.open("howto2/howto_flame.html", "_blank", "width=570,height=390,resizable=yes,status=no,scrollbars=0");

}

//HowToページ

function open_w_howto2() {

	mapWin = window.open("../howto2/howto_flame.html", "_blank", "width=570,height=390,resizable=yes,status=no,scrollbars=0");

}

//マナーページ

function open_w_manner() {

	mapWin = window.open("manner.html", "_blank", "width=490,height=520,resizable=yes,status=no,scrollbars=0");

}

//マナーページ

function open_w_manner2() {

	mapWin = window.open("../manner.html", "_blank", "width=490,height=520,resizable=yes,status=no,scrollbars=0");

}

//コスメSpecial

function open_w_special(html_url, w, h, window_name) {

	newWin = window.open(html_url, window_name, "width="+w+",height="+h+",scrollbars=0,status=0,resizable=no");

}

//copy right

function open_w_cr() {

	mapWin = window.open("copyright/index.html", "_blank", "width=420,height=395,resizable=yes,status=no,scrollbars=0");

}

//copy right(HTML)

function open_w_cr2() {

	mapWin = window.open("../copyright/index.html", "_blank", "width=420,height=395,resizable=yes,status=no,scrollbars=0");

}

//copy right(HTML2)

function open_w_cr3() {

	mapWin = window.open("../../copyright/index.html", "_blank", "width=420,height=395,resizable=yes,status=no,scrollbars=0");

}

//成分表示

function open_w_seibun(theURL, winName, features) {

	//v2.0

	window.open(theURL, winName, features);

}

//成分表示2

function open_w_seibun2(theURL, winName) {

	if(theURL.indexOf("maryquant.co.jp/")>-1){

		theURL = "./"+theURL.substr(theURL.indexOf("maryquant.co.jp/")+16);

	}

	seibunWin = window.open(theURL, winName, "width=480,height=340,scrollbars=yes,resizable=no");

}

//成分表示3

function open_w_seibun3(theURL, winName) {

	if(theURL.indexOf("maryquant.co.jp/")>-1){

		theURL = "./"+theURL.substr(theURL.indexOf("maryquant.co.jp/")+16);

	}

	seibunWin = window.open(theURL, winName, "width=330,height=360,scrollbars=yes,resizable=no");

}

//リクルートプリントページ

function open_recruit(html_url, window_name) {

	recruitWin = window.open(html_url, window_name, "width=670,height=610,scrollbars=1,menubar=yes,status=no,resizable=yes");

}

//ダウンロード・設定方法　壁紙

function open_w_wallpaper() {

	mapWin = window.open("at_mary/dl01.html", "_blank", "width=490,height=520,resizable=yes,status=no,scrollbars=1");

}

//ダウンロード・設定方法　スクリーンセーバー

function open_w_screensaver() {

	mapWin = window.open("at_mary/dl02.html", "_blank", "width=550,height=520,resizable=yes,status=no,scrollbars=1");

}

//ダウンロード・設定方法　デスクトップアイコン

function open_w_icon() {

	mapWin = window.open("at_mary/dl03.html", "_blank", "width=550,height=520,resizable=yes,status=no,scrollbars=1");

}

//ダウンロード スクリーンセーバーWindows

function open_winscreen(theURL, winName, wHeight) {

	if(! wHeight){

		wHeight = 245;

	}

	seibunWin = window.open(theURL, winName, "width=345,height="+wHeight+",scrollbars=no,resizable=no");

}

//ダウンロード スクリーンセーバーMacintosh

function open_macscreen(theURL, winName, wHeight) {

	if(! wHeight){

		wHeight = 332;

	}

//	seibunWin = window.open(theURL, winName, "width=378,height=292,scrollbars=no,resizable=no");

	seibunWin = window.open(theURL, winName, "width=378,height="+wHeight+",scrollbars=no,resizable=no");

}

/*

//オータムキャンペーンの実験のPOP--sample2用

function open_point(){

window.open('/sample2/autumn/autumn.html','_blank','width=700,height=600,resizable=no,status=no,scrollbars=1');

}*/

/*

//オータムキャンペーンの実験のPOP--0915用

function open_point(){

window.open('/0915/info/autumn/autumn.html','_blank','width=700,height=670,resizable=no,status=no,scrollbars=1');

}

*/

//オータムキャンペーンの実験のPOP--0915&0916用

function open_autumn() {

	window.open('http://www.maryquant.co.jp/info/autumn/autumn.html', '_blank', 'width=700,height=670,resizable=no,status=no,scrollbars=1');

}

//ポイントページのPOP

function open_point() {

	window.open('http://www.maryquant.co.jp/info/member2005/point_main.html', '_blank', 'width=700,height=600,resizable=no,status=no,scrollbars=1');

}

//SHOP年末年始のPOP

function open_shop_nenshi() {

	window.open('shop/05-06sche/index.html', '_blank', 'width=689,height=645,toolbar=no,location=no,status=no,menubar=no,scrollbars=no,resizable=no');

}

//2006年03月キャンペーンページのPOP

function open_camp0603() {

	window.open('info/2006spring/spring_cam.html', '_blank', 'resizable=no,status=no,scrollbars=no');

}

//2006年04月キャンペーンページのPOP

function open_camp0604() {

	window.open('info/2006pluspoint/', '_blank', 'resizable=no,status=no,scrollbars=no');

}

//キャンペーンページのPOP

function open_camp(myUrl) {

	window.open(myUrl, '_blank', 'resizable=no,status=no,scrollbars=yes');

}

//自分を閉じて親を遷移

function popthrough(URL) {

	if (!window.opener) {

		self.open(URL);

	} else if (window.opener.closed) {

		window.open(URL);

		window.close();

	} else {

		window.opener.location.href = URL;

		window.close();

	}

}

//SHOP:営業時間変更ページを開くファンクション

function open2011holiday(){

	U = "shop/infomation/2011_london_henkou.html";

	W = 620;

	H = 490;

	window.open(U,"","width="+W+",height="+H+",toolbar=no,location=no,status=no,menubar=no,scrollbars=no,resizable=no");

}


//SHOP:2011-2012年末年始ページを開くファンクション

function openNN11to12(){

	U = "shop/11-12sche/index.html";

	W = 920;

	H = 690;

	window.open(U,"","width="+W+",height="+H+",toolbar=no,location=no,status=no,menubar=no,scrollbars=1,resizable=no");

}




//SHOP:2010-2011年末年始ページを開くファンクション

function openNN10to11(){

	U = "shop/10-11sche/index.html";

	W = 920;

	H = 690;

	window.open(U,"","width="+W+",height="+H+",toolbar=no,location=no,status=no,menubar=no,scrollbars=1,resizable=no");

}




//SHOP:2009-2010年末年始ページを開くファンクション

function openNN09to10(){

	U = "shop/09-10sche/index.html";

	W = 687;

	H = 655;

	window.open(U,"","width="+W+",height="+H+",toolbar=no,location=no,status=no,menubar=no,scrollbars=no,resizable=no");

}



//SHOP:2008-2009年末年始ページを開くファンクション

function openNN08to09(){

	U = "shop/08-09sche/index.html";

	W = 687;

	H = 655;

	window.open(U,"","width="+W+",height="+H+",toolbar=no,location=no,status=no,menubar=no,scrollbars=no,resizable=no");

}






//FASHIONを開くファンクション

function openFashion(){

	//

	if(location.pathname.indexOf("/mary_test/www/")>-1){

		rootPath = "/mary_test/www/";

	}else{

		rootPath = "/";

	}

	//

	fashionWin = window.open(rootPath+"fashion/index.html","FashionWindow","width="+screen.availWidth+",height="+screen.availHeight+",scrollbars=1,status=yes,resizable=yes");

	fashionWin.moveTo(0,0);

}



//FASHIONを開くファンクション

function openFashion2(){

	//

	if(location.pathname.indexOf("/mary_test/www/")>-1){

		rootPath = "/mary_test/www/";

	}else{

		rootPath = "/";

	}

	//

	fashionWin = window.open(rootPath+"fashion2/index.html","FashionWindow","width="+screen.availWidth+",height="+screen.availHeight+",scrollbars=1,status=yes,resizable=yes");

	fashionWin.moveTo(0,0);

}




