﻿/*
 * project_top.js
 *
 *
 */
google.load("feeds", "1"); // Google Ajax Feed API

(function($) {

	$(function() {
		$('body').addClass('jsEnabled');
			
		$.carenetbiz.randomLoad();
		$.carenetbiz.getFeed();
		
		$.yuga.selflink();
		$.yuga.rollover();
		$.yuga.externalLink();
		$.yuga.scroll();		
		
		//easySlider
		$("#slider").easySlider({
			auto: true,
			//auto: false,
			pause: 6000,
			speed: 600,
			//prevText: '<img src="common/img/btn_prev.png" alt="" width="42" height="81" />',
			//nextText: '<img src="common/img/btn_next.png" alt="" width="42" height="81" />',
			prevText: '<img src="common/img/btn_prev2.png" alt="" width="44" height="65" />',
			nextText: '<img src="common/img/btn_next2.png" alt="" width="44" height="65" />',
			continuous: true
		});
		
		//お客様の声読み込み
		$("div#loadBox").ajaxComplete(function(){
			$.carenetbiz.simpleAcco({simpleAccoClass: '.voice'});
		});
		
		//高さをそろえる
		function equalHeight(group)　{
			tallest = 0;
			group.each(function() {
				thisHeight = $(this).height();
				if(thisHeight > tallest) {
					tallest = thisHeight;
				}
			});
			group.height(tallest);
		}
		equalHeight($(".group1"));
	});

})(jQuery);


