//ウインドウオープン
function pageup(){
	window.scroll(0,0);
}
// マウスイベント
function funcMouse(d,f){
	if (f == 0){
		d.src = d.src.replace(/.gif/i,"_b.gif").replace(/.jpg/i,"_b.jpg");
	}else{
		d.src = d.src.replace(/_b.gif/i,".gif").replace(/_b.jpg/i,".jpg");
	}
}
//ウインドウオープン
function funcWinOpen(file,w,h,tool,menu,lo,bar,s,resize,l,r){
	
	str = 'left="+l+",top="+r+",toolbar='+tool+',menubar='+menu+',location='+lo+',status='+bar+',scrollbars='+s+',resizable='+resize+',width='+w+',height='+h;
	sub = window.open(file,"sub",str);
	sub.window.focus();
}

//ウインドウオープン
function writeShopHea(){
	var path=window.location.href;
		alert(path);
	var file=path.substring(path.lastIndexOf('/',path.length)+1,path.length); 
		alert(file);
	var type=file.indexOf('id=1');
		alert(type);
	
	if(!type){
		alert("sea");
	}else{
		alert("crib");
	}
	
}

