// JavaScript Document


//smooth scroll
$(document).ready(function() {
$('a[href*=#]').click(function() {
 if (location.pathname.replace(/^\//,'') == this.pathname.replace(/^\//,'')
 && location.hostname == this.hostname) {
   var $target = $(this.hash);
   $target = $target.length && $target
   || $('[name=' + this.hash.slice(1) +']');
   if ($target.length) {
  var targetOffset = $target.offset().top;
  $('html,body')
  .animate({scrollTop: targetOffset}, 500);
    return false;
   }
  }
  });
});


//coda slider
$().ready(function() {
       $('#coda-slider-2').codaSlider({
           /*autoSlide: true,
           autoSlideInterval: 5000,
           autoSlideStopWhenClicked: false*/
       });
   });

//Menu

    $(document).ready(function(){ 
        $("ul.sf-menu").superfish(); 
    }); 

//Right Menu
 $(document).ready(function(){
  $('.layout03 #right-menu ul li a:even').addClass('bg-right-menu');
});


//FeedMixer
		$(function() {
			$('#feed').jFeedMixer({
				feeds: [
						'http://pans.co.jp/weblog/atom.xml',//黒ヒョウ社長のブログ
						'http://pans.co.jp/news/rss2.xml',//お知らせ
						'http://pans.co.jp/news/rss-pressrelease.xml',//プレスリリース
						'http://pans.co.jp/news/rss-hg.xml',//HGお知らせ
						'http://pans.co.jp/news/rss-soshoku.xml',//素食お知らせ
						'http://pans.co.jp/news/rss-penguin.xml'//ペンギンサイト
				],
				countPerFeed: 4,
				countLimit: 6,
				feedFormat: 'http://pans.co.jp/common/js/feed.jfm.html',
				dateFormat: 'yyyy-mm-dd',
				categorySeparator: ' | ',
				nocache: false
			});
		});
//
		$(function() {
			$('#feed2').jFeedMixer({
				feeds: [
				        'http://twitter.com/statuses/user_timeline/pansinukai.rss',//Twitter 黒ヒョウ社長
				        'http://twitter.com/statuses/user_timeline/pansshop.rss',//Twitter 素食健康の郷
						'http://twitter.com/statuses/user_timeline/happy_gadget_jp.rss',//Twitter HappyGadget
						'http://twitter.com/statuses/user_timeline/pansstore.rss',//PANS STORE
						'http://www.facebook.com/feeds/page.php?format=atom10&id=147642121922333'//PANS PLUS
				],
				countPerFeed: 4,
				countLimit: 5,
				feedFormat: 'http://pans.co.jp/common/js/feed2.jfm.html',
				dateFormat: 'yyyy-mm-dd',
				categorySeparator: ' | ',
				nocache: false
			});
		});
		
	

