// JavaScript Document

document.write('<script type="text/javascript" src="http://www.j-connection.jp/DD/jcBg.js"></script>');
document.write('<script type="text/javascript" src="http://www.j-connection.jp/DD/IE9.js"></script>');

/* Update News */
document.write('<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.4/jquery.min.js"></script>');
document.write('<script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/jquery-ui.min.js" type="text/javascript"></script>');
document.write('<script src="http://www.j-connection.jp/DD/jquery.easing.1.3.js" type="text/javascript"></script>');
document.write('<script src="http://www.j-connection.jp/DD/jquery.mousewheel.min.js" type="text/javascript"></script>');
document.write('<script src="http://www.j-connection.jp/DD/jquery.mCustomScrollbar.js" type="text/javascript"></script>');
document.write('<script src="http://www.j-connection.jp/DD/loading.js" type="text/javascript"></script>');
/* end. Update News */

/* Google Analytics */

	var _gaq = _gaq || [];
	  _gaq.push(['_setAccount', 'UA-10955952-1']);
	  _gaq.push(['_trackPageview']);
	
	  (function() {
		var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
		ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
		var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
	  })();
	  
/* end. Google Analytics */

/* press */

/*	document.write('<script src="http://www.j-connection.jp/DD/Scripts/jquery-1.3.1.min.js" type="text/javascript" charset="utf-8"></script>');
*/	document.write('<script src="http://www.j-connection.jp/DD/Scripts/slider.js" type="text/javascript" charset="utf-8"></script>');
	
	$(document).ready(function() {
		$("a.zoom2").fancybox({
			'zoomSpeedIn'		:	0,
			'zoomSpeedOut'		:	0,
			'overlayOpacity'	:	0.6,
			'overlayColor'		:	'#000'
		});
	});
	
	$(document).ready(function() {
		$('#Button1').click(function() {
			location.reload();
		});
	});

/**/

$(window).load(function() {
	/* 
	malihu custom scrollbar function parameters: 
	1) scroll type (values: "vertical" or "horizontal")
	2) scroll easing amount (0 for no easing) 
	3) scroll easing type 
	4) extra bottom scrolling space (vertical scroll type only)
	5) scrollbar height/width adjustment (values: "auto" or "fixed")
	6) mouse-wheel support (values: "yes" or "no")
	*/
	$("#mcs_container").mCustomScrollbar("vertical",400,"easeOutCirc",1.05,"auto","yes"); 
	$("#mcs2_container").mCustomScrollbar("vertical",0,"easeOutCirc",1.05,"auto","yes"); 
	$("#mcs3_container").mCustomScrollbar("vertical",900,"easeOutCirc",1.05,"auto","no"); 
	$("#mcs4_container").mCustomScrollbar("vertical",200,"easeOutCirc",1.25,"fixed","yes"); 
	$("#mcs5_container").mCustomScrollbar("horizontal",500,"easeOutCirc",0,"fixed","yes"); 
});

/* end. press */

/* html5 tag */

