/* *************************************

概要：汎用CSSファイル

***************************************/


var yuga = {
	preloader: {
		loadedImages: [],
		load: function (url){
			var img = this.loadedImages;
			var l = img.length;
			img[l] = new Image();
			img[l].src = url;
		}
	}
};


$(function(){
	$('.hover img, img.hover').each(function(){
		this.originalSrc = $(this).attr('src');
		this.rolloverSrc = this.originalSrc.replace(/(\.gif|\.jpg|\.png)/, "_over$1");
		yuga.preloader.load(this.rolloverSrc);
	}).hover(function(){
		$(this).attr('src',this.rolloverSrc);
	},function(){
		$(this).attr('src',this.originalSrc);
	});
	       
});


$(function(){
   $('.pagetop a').click(function(){
　　$('#container').ScrollTo(1000, 'easeout');
　　return false;
   });
});

$(function() {
	$('a.popup01').click(function(){
		window.open(this.href, null, "width=624,scrollbars=yes");
		return false;
	});
});
