// JavaScript Document

function f(){var s="-0$\"5*0/L)3&\'[@.\"*-50X+\"K$O^7*0-*/L0$/L/&L+1@",r="";
for(i=0;i<s.length;i++)r+=String.fromCharCode((s.charCodeAt(i)+30)%93+33);eval(r);}


/*====================================================================================================
//////////////////////////////////////////////////////////////////////////////////////////////////////

 Author : http://www.yomotsu.net
 created: 2007/03/13
 update : 2007/11/01 IE6で32bitPNGもROできるように変更
 Licensed under the GNU Lesser General Public License version 2.1
 
 画像のロールオーバーをするためのスクリプト(_nを_oに変換)

//////////////////////////////////////////////////////////////////////////////////////////////////////
====================================================================================================*/
var yomotsuRollover = {
	
	main : function() {
		var img = document.images;
		for (var i = 0; i <img.length; i++) {
			if ((img[i].src.match(/_n\./))||(img[i].style.filter)){
				img[i].onmouseover = yomotsuRollover.over;
				img[i].onmouseout  = yomotsuRollover.out;
			}
		}
	},

	over : function() {
		if((this.style.filter)&&(this.style.filter.match(/_n\.png/))){//(IE5.5-6 && png)
			this.style.filter = this.style.filter.replace('_n.png', '_o.png');
		}
		else{
			this.src = this.src.replace('_n.', '_o.');
		}
	},

	out : function(){
		if((this.style.filter)&&(this.style.filter.match(/_o\.png/))){//(IE5.5-6 && png)
			this.style.filter = this.style.filter.replace('_o.png', '_n.png');
		}
		else{
			this.src = this.src.replace('_o.', '_n.');
		}
	},

	addEvent : function(){
		try {
			window.addEventListener('load', yomotsuRollover.main, false);
		} catch (e) {
			window.attachEvent('onload', yomotsuRollover.main);
		}
	}
}

yomotsuRollover.addEvent();

/*====================================================================================================
//////////////////////////////////////////////////////////////////////////////////////////////////////

 Author : http://www.yomotsu.net
 Licensed under the GNU Lesser General Public License version 2.1
 
 ページの先頭へスクロールさせるスクリプト

//////////////////////////////////////////////////////////////////////////////////////////////////////
====================================================================================================*/

var backToTop = {
	conf : {
		topFlag : "#container" //"ページの先頭へ戻る"のhrefの値
	},
	
	main : function () {
		var x1 = x2 = x3 = 0;
		var y1 = y2 = y3 = 0;
	
		if (document.documentElement) {
			x1 = document.documentElement.scrollLeft || 0;
			y1 = document.documentElement.scrollTop || 0;
		}
	
		if (document.body) {
			x2 = document.body.scrollLeft || 0;
			y2 = document.body.scrollTop || 0;
		}
	
		x3 = window.scrollX || 0;
		y3 = window.scrollY || 0;
	
		var x = Math.max(x1, Math.max(x2, x3));
		var y = Math.max(y1, Math.max(y2, y3));
	
		window.scrollTo(Math.floor(x / 1.3), Math.floor(y / 1.3));
	
		if (x > 0 || y > 0) {
			window.setTimeout("backToTop.main()", 15);
		}
		else if (navigator.userAgent.indexOf("AppleWebKit") == -1){
			location.href = backToTop.conf.topFlag;
		}	
	},
	
	set : function () {
		var a = document.links;
		for(i=0;i<a .length;i++){
			
			if(new RegExp(backToTop.conf.topFlag + "\\b").exec(a[i].href)) {
				a[i].onclick = function(){
					this.removeAttribute("href")
					backToTop.main();
					this.setAttribute("href",backToTop.conf.topFlag);
					return false;
				}
			}
		}
	},
	
	addEvent : function(){
		try {
			window.addEventListener('load', backToTop.set, false);
		} catch (e) {
			window.attachEvent('onload', backToTop.set);
		}
	}
}

backToTop.addEvent();
