$(function () {
	//$(".header").load("/atorrege/inc/header.html");
	//$(".header_area").load("/atorrege/inc/headerarea_new.html");
	//$(".header_area_top").load("/atorrege/inc/headerarea_new_top.html");
	
	$(".header_area2").load("/inc/headerarea2.html");
	
	$('.header_area').load('/inc/headerarea_new.html', function() {
		$(".login_status").load("/php/is_login.php");
	});
	$('.header_area_top').load('/inc/headerarea_new_top.html', function() {
		$(".login_status").load("/php/is_login.php");
	});
	$("#inc_left").load("/inc/left.html");
	$("#inc_right").load("/inc/right.html");	
	$("#inc_bottom").load("/inc/bottom.html");
	
	$(".top_side").load("/inc/top_side_new.html");	
	$(".top_side_new").load("/inc/top_side_new.html");	
});

$(function () {
	$(".shop_image a").click(function() {
		return false;
	});
	
	//お気に入り登録用
	$(".favorite").click(function() {
		$.ajax({
			  url: "/php/bookmark.php?title="+document.title+"&url="+document.URL,
			  cache: false,
			  success: function(html){
				if (html=='OK') {
					alert('「'+document.title+'」をお気に入りに登録しました。');
				} else {
					location.href='/login/?title='+document.title+"&url="+document.URL;
				}
			}
			});
	});
	
});

function pop1(){
	window.open('../pop/acne.html', '_blank', 'width=425,height=500,scrollbars = yes,resizable = no,location = no,menubar = no,toolbar = no,titlebar = no,status = no,directories = no');
	}
	
function pop2(){
	window.open('../pop/bb.html', '_blank', 'width=425,height=500,scrollbars = yes,resizable = no,location = no,menubar = no,toolbar = no,titlebar = no,status = no,directories = no');
	}
	
function pop3(){
	window.open('../pop/bm.html', '_blank', 'width=425,height=500,scrollbars = yes,resizable = no,location = no,menubar = no,toolbar = no,titlebar = no,status = no,directories = no');
	}
	
function pop4(){
	window.open('../pop/cool.html', '_blank', 'width=425,height=500,scrollbars = yes,resizable = no,location = no,menubar = no,toolbar = no,titlebar = no,status = no,directories = no');
	}
	
function pop5(){
	window.open('../pop/eca.html', '_blank', 'width=425,height=500,scrollbars = yes,resizable = no,location = no,menubar = no,toolbar = no,titlebar = no,status = no,directories = no');
	}
	
function pop6(){
	window.open('../pop/fc.html', '_blank', 'width=425,height=500,scrollbars = yes,resizable = no,location = no,menubar = no,toolbar = no,titlebar = no,status = no,directories = no');
	}
	
function pop7(){
	window.open('../pop/fm.html', '_blank', 'width=425,height=500,scrollbars = yes,resizable = no,location = no,menubar = no,toolbar = no,titlebar = no,status = no,directories = no');
	}
	
function pop8(){
	window.open('../pop/fwf.html', '_blank', 'width=425,height=500,scrollbars = yes,resizable = no,location = no,menubar = no,toolbar = no,titlebar = no,status = no,directories = no');
	}
	
function pop9(){
	window.open('../pop/fwl.html', '_blank', 'width=425,height=500,scrollbars = yes,resizable = no,location = no,menubar = no,toolbar = no,titlebar = no,status = no,directories = no');
	}
	
function pop10(){
	window.open('../pop/hand.html', '_blank', 'width=425,height=500,scrollbars = yes,resizable = no,location = no,menubar = no,toolbar = no,titlebar = no,status = no,directories = no');
	}
	
function pop11(){
	window.open('../pop/lip.html', '_blank', 'width=425,height=500,scrollbars = yes,resizable = no,location = no,menubar = no,toolbar = no,titlebar = no,status = no,directories = no');
	}
	
function pop12(){
	window.open('../pop/mask.html', '_blank', 'width=425,height=500,scrollbars = yes,resizable = no,location = no,menubar = no,toolbar = no,titlebar = no,status = no,directories = no');
	}
	
function pop13(){
	window.open('../pop/mbs.html', '_blank', 'width=425,height=500,scrollbars = yes,resizable = no,location = no,menubar = no,toolbar = no,titlebar = no,status = no,directories = no');
	}
	
function pop14(){
	window.open('../pop/creansing.html', '_blank', 'width=425,height=500,scrollbars = yes,resizable = no,location = no,menubar = no,toolbar = no,titlebar = no,status = no,directories = no');
	}
	
function pop15(){
	window.open('../pop/mhr.html', '_blank', 'width=425,height=500,scrollbars = yes,resizable = no,location = no,menubar = no,toolbar = no,titlebar = no,status = no,directories = no');
	}
	
function pop16(){
	window.open('../pop/mhs.html', '_blank', 'width=425,height=500,scrollbars = yes,resizable = no,location = no,menubar = no,toolbar = no,titlebar = no,status = no,directories = no');
	}
	
function pop17(){
	window.open('../pop/foundation.html', '_blank', 'width=425,height=500,scrollbars = yes,resizable = no,location = no,menubar = no,toolbar = no,titlebar = no,status = no,directories = no');
	}
	
function pop18(){
	window.open('../pop/rec.html', '_blank', 'width=425,height=500,scrollbars = yes,resizable = no,location = no,menubar = no,toolbar = no,titlebar = no,status = no,directories = no');
	}
	
function pop19(){
	window.open('../pop/sct.html', '_blank', 'width=425,height=500,scrollbars = yes,resizable = no,location = no,menubar = no,toolbar = no,titlebar = no,status = no,directories = no');
	}
	
function pop20(){
	window.open('../pop/whe.html', '_blank', 'width=425,height=500,scrollbars = yes,resizable = no,location = no,menubar = no,toolbar = no,titlebar = no,status = no,directories = no');
	}
function pop21(){
	window.open('../pop/powder.html', '_blank', 'width=425,height=500,scrollbars = yes,resizable = no,location = no,menubar = no,toolbar = no,titlebar = no,status = no,directories = no');
	}
function pop22(){
	window.open('../pop/mc.html', '_blank', 'width=425,height=500,scrollbars = yes,resizable = no,location = no,menubar = no,toolbar = no,titlebar = no,status = no,directories = no');
	}
function pop23(){
	window.open('../pop/uvmilk.html', '_blank', 'width=425,height=500,scrollbars = yes,resizable = no,location = no,menubar = no,toolbar = no,titlebar = no,status = no,directories = no');
	}

