// jsが読み込まれたときに実行する
redirectMobile();

// DOMが構築されてから実行する
$(document).ready(function(){
	setEasingScroll();
	setPopupWindow();
	initForm();
});


// easingScroll の設定
function setEasingScroll() {
	$("a[href*='#']").easingScroll({
		easing: "easeOutExpo",
		duration: 1000
	});
}

// popupの設定
function setPopupWindow() {
	$(".popup_w").click(function(){
		window.open(this.href, "popupWindow", "width=500, height=400, resizable=yes, scrollbars=yes");
		return false;
	});
}

// スマホサイト振り分け
function redirectMobile() {
    var uai = new Uai();
    if (uai.isOs('smart_phone')) {
        window.location.href = "http://kinetoscope.jp/mobile/";
    }
}



