function pre_top(Spre){
	document.cookie = "select_pre:" + Spre + ":area:100:type:all:area_page:1; path=/; expires=Tue, 1-Jan-2030 00:00:00 GMT";
	location.href = "./index3.html";
}
function Area_change(Area){
	document.cookie = "select_pre:$pre:area:" + Area + ":type:$type:area_page:$area_page; path=/; expires=Tue, 1-Jan-2030 00:00:00 GMT";
	location.href = "./index3.html";
}
function Area_page_change(Area_page){
	document.cookie = "select_pre:$pre:area:100:type:all:area_page:1; path=/; expires=Tue, 1-Jan-2030 00:00:00 GMT";
	location.href = "./index3.html";
}
function MousePointer(obj){
	obj.style.cursor = 'pointer';
}
function replace(type){
	parent.rand.document.location.replace("http://www.nukukoko.com/cgi-bin/rand.cgi?type=" + type);
}
function pic_reload(){
	parent.rand.document.location.reload();
}
function color(Obj){
	Obj.style.color = "#5555ff";
	Obj.style.cursor = 'pointer';
}
function return_color(Obj){
	Obj.style.color = "#505050";
}
function return_color_white(Obj){
	Obj.style.color = "#ffffff";
}
function shop_data_open(shop_id){
		tmp = document.cookie;
		pre = tmp.split(":");
		Subwin = window.open("http://www.nukukoko.com/cgi-bin/shop_data_open.cgi?shop_id=" + shop_id + "&pre=" + pre[1],"shop_data","width=500,height=500");
		Subwin.focus();
}
function shop_list_sort(key){
	if(!location.search){
		location.replace(document.URL + "?sort=" + key);
	}
	else{
		location.replace(document.URL + "&sort=" + key);
	}
}
function login(){
	window.open("http://www.nukukoko.com/login.html","login","width=400,height=300");
}
function rand_id(){
	random_id = Math.floor((99999999 - 10000000 + 1) * Math.random() + 10000000);
	document.getElementById("sid").value = random_id;	
}
function id_alert(){
	alert("IDが不正です");
}
function apl_form(){
	window.open("http://www.nukukoko.com/apl_form.html","apl_form","width=500,height=550");
}
function opinion(){
	window.open("http://www.nukukoko.com/opinion.html","opinion","width=500,height=400");
}
function enter(){
	location.href="index2.html";
}
function leave(){
	location.href="http://www.google.co.jp";
}
function ent_change_image(Obj){
	Obj.style.backgroundImage = "url(./img/e2.gif)";
	Obj.style.cursor = 'pointer';
}
function r_ent_change_image(Obj){
	Obj.style.backgroundImage = "url(./img/e1.gif)";
}
function lev_change_image(Obj){
	Obj.style.backgroundImage = "url(./img/l2.gif)";
	Obj.style.cursor = 'pointer';
}
function r_lev_change_image(Obj){
	Obj.style.backgroundImage = "url(./img/l1.gif)";
}
function re_map(){
	location.href="http://www.nukukoko.com/index2.html";
}
function re_btn_chg1(Obj){
	Obj.style.backgroundImage = "url(./img/re_map2.jpg)";
	Obj.style.cursor = 'pointer';
}
function re_btn_chg2(Obj){
	Obj.style.backgroundImage = "url(./img/re_map1.jpg)";
}
function area_page1(){
	document.getElementById("area_page1").style.zIndex = 4;
	document.getElementById("area_page2").style.zIndex = 0;
	document.getElementById("area_page3").style.zIndex = 0;
}
function area_page2(){
	document.getElementById("area_page1").style.zIndex = 0;
	document.getElementById("area_page2").style.zIndex = 4;
	document.getElementById("area_page3").style.zIndex = 0;
}
function area_page3(){
	document.getElementById("area_page1").style.zIndex = 0;
	document.getElementById("area_page2").style.zIndex = 0;
	document.getElementById("area_page3").style.zIndex = 4;
}
