/*===================================================
	
	DEPOC JavaScript Function Version:5.00
	
		depoc function.js
		include jquery
		
		Copyright (c) 2011 DEPOC Inc.
		http://depoc.jp
		
		Update:11/09/03
	
===================================================*/


$(function(){
	$("a img[class!='current'],#pagetop").hover(
		function(){
			$(this).fadeTo(120, 0.6);
		},
		function(){
			$(this).fadeTo(200, 1);
		}
	);
});

$(function() {
	//$("#index #pagetop").css("display","none");
	$("#global-navi li:last-child").css("background","none");
});
$(function() {
/*
	$("#flash").fadeTo(0, 0);
	$("#flash").fadeTo(2000, 1);*/
});

/*---------------------------------------------------
	RollOver
---------------------------------------------------*/
function init()
{
$(function() {
	$("#global-navi li img").removeClass("current");
	$(".CONCEPT #global-navi li:eq(0) img").addClass("current");
	$(".SERVICE #global-navi li:eq(1) img").addClass("current");
	$(".ABOUT #global-navi li:eq(2) img").addClass("current");
	$(".CONTACT #global-navi li:eq(3) img").addClass("current");
	$(".RECRUIT #global-navi li:eq(4) img").addClass("current");
});

$(function(){
	$(".current").each(function(){
		var newSrc = $(this).attr('src').replace("_off.", "_on.");
		$(this).attr("src", newSrc);
	});
});
$(document).ready(function(){
	$("img,input").mouseover(function(){
		if ($(this).attr("src")){
			$(this).attr("src",$(this).attr("src").replace("_off.", "_on."));
		}
	});
	$("img[class!='current'],input").mouseout(function(){
		if ($(this).attr("src")){
			$(this).attr("src",$(this).attr("src").replace("_on.", "_off."));
		}
	});
});
}
init();
/*---------------------------------------------------
	SmoothLink
---------------------------------------------------*/
$(function () {
	if (! $.browser.safari) {
		$('#pagetop').click(function () {
			$(this).blur();
			$('html,body').animate({ scrollTop: 0 }, 500,'swing');
			return false;
		});
	}
});
/*
$(function () {
	$("#url").hover(
		function(){
		alert("h2h2h2h2h");
		}
	);
});
*/
/*
function side-navi-set(){
$("#side-navi li").live("click", function(){
	alert("123456789");
});
}
*/

/*
$(function() {
	$("#side-navi li").live('click',function() {
		alert();
	});
});
*/


/*
$(function () {
	$("#side-navi li").click(function(){
		alert();
});
*/

/*
function side-navi-set(){
$(function(){
	$("#side-navi li#s-navi-access").click(function(){
			alert();
			var target = $('html, body');
			target.animate({ scrollTop: $('#access-section').offset().top }, 2000,'swing');
	
	});
});

}
*/
/*
		$(function() {
			$("#tNavi01").removeClass();
			$("#tNavi02").addClass("selected");
			$("#newsSection ul").idTabs();
			var target = $('html, body');
			target.animate({ scrollTop: $('#newsSection').offset().top }, 2000,'swing');

		});

*/



/*---------------------------------------------------
	Fixed
	include jquery.exFixed.js
---------------------------------------------------*/
$(function(){
	$('#index #footer').exFixed();
	$('#pagetop').exFixed();
	$('#side-navi').exFixed();
});


