/*//////////////////////////////////////////////////////////
//
//  # Functions for jQuery
//
//  - Auth: ekkun.com [eiji@ekkun.com]
//  - 2011-10-13 (Thu)
//
//////////////////////////////////////////////////////////*/


jQuery(document).ready(function(){

	// 透過 PNG
	jQuery(document).pngFix();

	// スクロール
	jQuery("a[href='#top'], a[href='#intro'], a[href='#fullsite'], a[href='#feature'], a[href='#shopping'], a[href='#price'], a[href='#about'], a[href='#inquiry']").easingScroll({
		easing:		"easeInOutExpo",
		duration:	1200
	});


	// スクロールフロー
	jQuery('#secondary-column').scrollFollow({
		speed: 1000,
		offset: 35
//		killSwitch: 'exampleLink',
//		onText: 'Disable Follow',
//		offText: 'Enable Follow'
	});

	// Cycle
	jQuery('#fullsite-cycle').cycle({
//		fx:      'scrollDown',
//		fx:      'toss',
//		speedIn:  2000,
//		speedOut: 500,
//		easeIn:  'easeOutBounce',
//		easeOut: 'easeInBack',
//		delay:   -2000
		fx:      'fade'
	});

	jQuery('#fullsite-future').cycle({
//		fx:      'scrollDown',
//		fx:      'toss',
//		speedIn:  2000,
//		speedOut: 500,
//		easeIn:  'easeOutBounce',
//		easeOut: 'easeInBack',
//		delay:   -2000
		fx:      'fade'
	});

	jQuery('#fullsite-shopping').cycle({
//		fx:      'scrollDown',
//		fx:      'toss',
//		speedIn:  2000,
//		speedOut: 500,
//		easeIn:  'easeOutBounce',
//		easeOut: 'easeInBack',
//		delay:   -2000
		fx:      'fade'
	});

	jQuery('#yukiko dt').cycle({
		fx:      'scrollDown',
//		fx:      'toss',
		speedIn:  2000,
		speedOut: 500,
		easeIn:  'easeOutBounce',
		easeOut: 'easeInBack',
		delay:   -2000
	});

	jQuery('#ekkun dt').cycle({
		fx:      'scrollDown',
//		fx:      'toss',
		speedIn:  2000,
		speedOut: 500,
		easeIn:  'easeOutBounce',
		easeOut: 'easeInBack',
		delay:   -2000
	});

	// Lazyload
//	jQuery("#container img").lazyload({
//		placeholder : "/www/wp/wp-content/themes/design24c/images/blank.gif",
//		threshold   : 500,
//		effect      : "fadeIn"
//	});

});


jQuery(function() {

	// イントロダクション
	jQuery("#intro div.slidetable").scrollable({ 
		size: 3
	}).navigator().circular().autoscroll(2000);;

	// フルサイト
	jQuery("#fullsite div.slidetable").scrollable({ 
		size: 1
	}).navigator().circular();;

	// 特集・ランディングページ
	jQuery("#feature div.slidetable").scrollable({ 
		size: 1
	}).navigator().circular();;

	// ショッピングサイト
	jQuery("#shopping div.slidetable").scrollable({ 
		size: 1
	}).navigator().circular();;

});


// お問い合わせ
function verify() {
	if (document.contact.name.value == "") {
		alert("お名前を入力してください。");
		document.contact.name.focus();
		return false;
	}
	var y = document.contact.email.value;
	if (y.indexOf("@") == -1) {
		alert("有効なEメールを入力してください。");
		document.contact.email.focus();
		return false;
	}
	if (document.contact.description.value == "")
	{
		alert("お問い合わせ内容を入力してください。");
		document.contact.description.focus();
		return false;
	}
	else {
		return true;
	}
}





