$(document).ready(function() {

/* *** kaiza.biz *** */
	/* *** side-navi-l *** */
	$(".side-navi-l").hover(function(){
		$(this).stop(true, true);
    	$(this).animate( { left: "6px",opacity: 0.8 }, 200);
	},
	function(){
		$(this).animate( { left: "0px",opacity: 1.0 }, 200);
	});
	
	/* *** side-navi-r *** */
	$(".side-navi-r").hover(function(){
		$(this).stop(true, true);
    	$(this).animate( { right: "6px",opacity: 0.8 }, 200);
	},
	function(){
		$(this).animate( { right: "0px",opacity: 1.0 }, 200);
	});
	
/* *** kaiza.biz ここまで*** */


/* *** kaiza.jp *** */
	/* *** side-slide-l *** */
	$(".side-slide-l").hover(function(){
		$(this).stop(true, true);
    	$(this).animate( { left: "6px",opacity: 0.8 }, 200);
	},
	function(){
		$(this).animate( { left: "0px",opacity: 1.0 }, 200);
	});
	
	/* *** .box02 .right .box *** */
	$(".box02 .right .box h2").hover(function(){
		$(this).stop(true, true);
    	$(this).animate( { opacity: 0.0 }, 300);
	},
	function(){
		$(this).animate( { opacity: 1.0 }, 200);
	});
	
	/* *** Logo Glow *** */
	$("#top h1 a").hover(function(){
		$(this).stop(true, true);
    	$(this).animate( { opacity: 0.0 }, 300);
	},
	function(){
		$(this).animate( { opacity: 1.0 }, 200);
	});
	
	
    /* *** home Tab *** */
	var homeTab = {    
		sensitivity: 40, // number = sensitivity threshold (must be 1 or higher)    
		interval: 100, // number = milliseconds for onMouseOver polling interval    
		over: homeOn, // function = onMouseOver callback (REQUIRED)    
		timeout: 100, // number = milliseconds delay before onMouseOut    
		out: homeOff // function = onMouseOut callback (REQUIRED)    
	};
	function homeOn(){
		$(this).children().stop(true, true);
		$(this).children().animate( { left: "0px" }, 200);
	}
	function homeOff(){
		$(this).children().animate( { left: "-260px" }, 200 );
	}
	if ($("body").hasClass("home")) {
		$("#navigation_menu li.home a").children().css({ 'left' : '0px' });
	} else {
		$("#navigation_menu li.home a").hoverIntent( homeTab );
	}
    
    /* *** services Tab *** */
    var servicesTab = {    
		sensitivity: 40,
		interval: 100,
		over: servicesOn,
		timeout: 100,
		out: servicesOff
	};
	function servicesOn(){
		$(this).children().stop(true, true);
		$(this).children().animate( { left: "0px" }, 200);
	}
	function servicesOff(){
		$(this).children().animate( { left: "-276px" }, 200 );
	}
    if (($("body").hasClass("services")) || ($("body").hasClass("html5")) || ($("body").hasClass("ec")) || ($("body").hasClass("revenue_ec")) || ($("body").hasClass("ec-cube")) || ($("body").hasClass("mobile")) || ($("body").hasClass("collabo_game")) || ($("body").hasClass("mbofficial")) || ($("body").hasClass("cms")) || ($("body").hasClass("drilldown")) || ($("body").hasClass("reverse_seo")) || ($("body").hasClass("faq"))) {
		$("#navigation_menu li.services a").children().css({ 'left' : '0px' });
	} else {
		$("#navigation_menu li.services a").hoverIntent( servicesTab );
	}
	
	/* *** about Tab *** */
	var aboutTab = {    
		sensitivity: 40,
		interval: 100,
		over: aboutOn,
		timeout: 100,
		out: aboutOff
	};
	function aboutOn(){
		$(this).children().stop(true, true);
		$(this).children().animate( { left: "0px" }, 200);
	}
	function aboutOff(){
		$(this).children().animate( { left: "-276px" }, 200 );
	}
    if (($("body").hasClass("about")) || ($("body").hasClass("greeting"))) {
		$("#navigation_menu li.about a").children().css({ 'left' : '0px' });
	} else {
		$("#navigation_menu li.about a").hoverIntent( aboutTab );
	}
    
    /* *** Contact Tab *** */
    var contactTab = {    
		sensitivity: 40,    
		interval: 100,    
		over: contactOn,   
		timeout: 100,    
		out: contactOff    
	};
	function contactOn(){
		$(this).children().stop(true, true);
		$(this).children().animate( { left: "0px" }, 200);
	}
	function contactOff(){
		$(this).children().animate( { left: "-276px" }, 200 );
	}
    if ($("body").hasClass("contact")) {
		$("#navigation_menu li.contact a").children().css({ 'left' : '0px' });
	} else {
		$("#navigation_menu li.contact a").hoverIntent( contactTab );
	}

/* *** kaiza.jp ここまで*** */

});