jQuery.noConflict();

(function($){//BEGIN jQuery

var JS_DIR = "/_common/js/";
//$.getScript(JS_DIR + "chili.js",function(){});

$(function(){//BEGIN jQuery.ready()
	
	
	/*** ロールオーバー ＆ 対象画像切替 ***
	■設定
	.chimg({
		exclude: "active",
		prefix: "",
		postfix: "_o",
		targetAttr: "target",
		prefixAttr: "prefix",
		postfixAttr: "postfix",
		rolloverAttr: "rollover",
		autoActive: false,
		acceptNotLink: false
	});
	*/
	//$(".imgover").chimg();
	$(".gNav")
		.pageInit({
			".company": "li:eq(0)",
			".service": "li:eq(1)",
			".experience": "li:eq(2)",
			".release": "li:eq(3)",
			".recruit": "li:eq(4)"
		}, function(){
			$(this)
				.addClass("active");
		})
		.chimg({autoActive: "_a"});
	$(".sNav ul")
		.pageInit({
			".release-news": "li:eq(0)",
			".release-press": "li:eq(1)"
		}, function(){
			$(this)
				.addClass("active");
		})
		.chimg({autoActive: true});
	
	
	/*** テーブル(やリスト等)交互色 ***
	■引数
	.alternate({
		evenClass: "even",
		oddClass: "odd",
		onlyTbody: true,
		childOnly: false,
		rowTag: false
	});
	*/
	//$(".coloredRow").alternate();
	
	
	/*IEでのhr置換*/
	if($.browser.msie)
		$("hr")
			.replaceWith('<div class="hr"><\/div>');
	
	
	/*toPageTop*/
	$(".toPageTop a")
		.click(function(){
			$("html,body").animate({
				scrollTop: 0
			}, 500);
			return false;
		});
	
	
	/*pngfix*/
	$("img[@src$=png]").pngfix();
	
	
});//END jQuery.ready()
	
	
	/* myLightBox */
	$.fn.myLightBox = function(config){
		
		config = $.extend({
			imageLoading: JS_DIR + "lightbox/images/lightbox-ico-loading.gif",
			imageBtnClose : JS_DIR + "lightbox/images/lightbox-btn-close.gif",
			imageBtnPrev : JS_DIR + "lightbox/images/lightbox-btn-prev.gif",
			imageBtnNext : JS_DIR + "lightbox/images/lightbox-btn-next.gif",
			imageBlank : JS_DIR + "lightbox/images/lightbox-blank.gif"
		}, config);
		
		var $tObj = this;
		
		return $tObj
			.each(function(){
				var $this = $(this);
				$img = $this.is("img") ? $this : $this.find("img");
				$this.attr("title", $img.attr("alt"));
			})
			.lightBox(config);
	};
	
	
})(jQuery);//END jQuery




