/* メール送信
_____________________________________________________*/

//STORE ink HPよりお問い合わせ（STOREink info）
function info_uXX(){
	var s="]`TReZ`_|YcVW.p^RZ]e`+1!1-Z_W`1de`cV{Z_\\|[a/0dfS"+"[VTe.1\"1p",r="";
	for(i=0;i<s.length;i++)r+=String.fromCharCode((s.charCodeAt(i)-18)%93+33);
	t=new Array("STORE ink　FAVO編集部","STORE ink HPよりお問い合わせ");
	for(i=0;i<2;i++)eval("r=r.replace('@"+i+"@','"+t[i]+"')");eval(r);
}


//FAVO HPよりお問い合わせ（FAVO info）
function FAVOinfo_PAGDt(){
	var s="FI=;NCIHeBL?@tYG;CFNIqwgwsCH@Iw@;PIdH?NeDJuvMO<D?"+
	"=NtwhwY",r="";
	for(i=0;i<s.length;i++)r+=String.fromCharCode((s.charCodeAt(i)+5)%93+33);
	t=new Array("FAVO編集部","FAVO HPより問い合わせ");
	for(i=0;i<2;i++)eval("r=r.replace('@"+i+"@','"+t[i]+"')");eval(r);
}
function FAVOinfo(){
	document.write('<a href="javascript:FAVOinfo_PAGDt()">（info@favo-net.jp）</a>');
}




/* ページUP
_____________________________________________________*/

function getScroll(){
	var x, y ;
	if( document.all !== void 0 ){
		x = document.body.scrollLeft ;
		y = document.body.scrollTop ;
	}else if( document.layers !== void 0 ){
		x = window.pageXOffset ;
		y = window.pageYOffset ;
	}else{
		x = window.scrollX ;
		y = window.scrollY ;
	}
	return { x : x, y : y };
}
var SCROLL ;
var divCountScroller = 25 ;
function scroller( x, y, edging, count ){
	if( count === void 0 ){
		count = 0;
		SCROLL = getScroll();
	}
	if( count++ < divCountScroller ){
		var c = count/divCountScroller ;
		var nx = SCROLL.x+( x-SCROLL.x )*( c+edging/(100*Math.PI)*Math.sin( Math.PI*c ) );
		var ny = SCROLL.y+( y-SCROLL.y )*( c+edging/(100*Math.PI)*Math.sin( Math.PI*c ) );
		window.scrollTo( nx, ny );
		setTimeout( "scroller("+x+","+y+","+edging+","+count+");", 30); //数字が小さいほど早い。
	}
}


function pageScroll() {
	var scroll = 1;
	getScroll();
	if(scroll < 50 && pageY && pageY != null) {
		pageY = (pageY > 3) ? Math.ceil(pageY * 0.2) : 1;
		scroll++;
		scrollBy(0,-pageY);
		setTimeout("pageScroll()", 20);
	} else {
		scrollTo(0, 0);
		scroll = 1;
	}
}




/* ページUP
_____________________________________________________*/
function openNewWindow(URLtoOpen, windowName, windowFeatures) { 
	newWindow=window.open(URLtoOpen, windowName, windowFeatures);
	}
	

/*　別ウィンドウ　*/
function openwin(n){
		window.open(n+".html","page","width=680,height=700,scrollbars,toolbar")
}