$(document).ready(function() {
	// Fix background images on all TD elements
	//$("table td").pngfix();
	// Fix background images on all A elements
	//$("a").pngfix();
	$("#main").pngfix();
	$(".png").pngfix();
	
	
	// Fix all inline PNG images and the element #container with the custom sizingMethod of "scale"
	//$("img[@src$=png], #container").pngfix({
	//	sizingMethod: "scale"
	//});
	//$("img[@src$=png]").pngfix();
	
	//$.miseAlphaImageLoader("sdsd");
	
	//$("#n-home").pngfix();
	//$("#n-concept").pngfix();
	
	
	//ポップアップウインド設定
	$(function() {
		$(".popup").click(function(){
			window.open(this.href, "popwindow","width=680,height=620,resizable=yes,scrollbars=yes,location=yes,menubar=yes");
			return false;
		});
	});
	
	//_blankウインドクラス設定
	$(".blank").click(function(){
　　　　window.open(this.href,'_blank');
　　　　　　return false;
　　});

	//スムーススクロール
	$(function() {
		$('a[href*=#]').click(function() {
			if (location.pathname.replace(/^\//,'') == this.pathname.replace(/^\//,'') && location.hostname == this.hostname) {
				var target = $(this.hash);
				target = target.length && target;
				if (target.length) {
					var sclpos = 30;
					var scldurat = 1200;
					var targetOffset = target.offset().top - sclpos;
				$('html,body')
						.animate({scrollTop: targetOffset}, {duration: scldurat, easing: "easeOutExpo"});
					return false;
				}
			}
		});
	});

});


