/*
====================================================
	
	DEPOC JavaScript Function Version:3.00
	
		depoc function.js
		include jquery
		
		Copyright (c) 2010 DEPOC Inc.
		http://depoc.jp
		
		Update:10/02/16
	
====================================================
*/

$(function(){
	$(".ul03 li img,.ul04 li img,.pdfTable img").hover(
		function(){
			$(this).fadeTo(120, 0.7);
		},
		function(){
			$(this).fadeTo(200, 1);
		}
	);
});
/*---------------------------------------------------
	RollOver
---------------------------------------------------*/
$(function() {
	$("#index #globalNavi li:eq(0) img").addClass("current");
	$("#business #globalNavi li:eq(1) img").addClass("current");
	$("#product #globalNavi li:eq(2) img").addClass("current");
	$("#company #globalNavi li:eq(3) img").addClass("current");
	$("#recruit #globalNavi li:eq(4) img").addClass("current");
	$("#contact #globalNavi li:eq(5) 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."));
		}
	});
});

/*---------------------------------------------------
	Popup
---------------------------------------------------*/
$(function(){
	$(document).ready(function(){
		//Examples of how to assign the ColorBox event to elements
		$("a[rel='example1']").colorbox();
		$(".example7").colorbox({width:"340px", height:"330px", iframe:true});
		//Example of preserving a JavaScript event for inline calls.
		$("#click").click(function(){ 
			$('#click').css({"background-color":"#fff", "color":"#fff", "cursor":"inherit"}).text("Open this window again and this message will still be here.");
			return false;
		});
	});
});


