$(function() {
	$('head').append('<script type="text/javascript" src="http://www.google-analytics.com/ga.js"></script>');

	$('.Top a').click(function() { $.scrollTo(0, 1000); return false; });
	$('a.Knowledge').click(function() { $.scrollTo($(this.hash), 1000); return false; });
	$('a.Wrapping').click(function() { $.scrollTo($(this.hash), 1000); return false; });

	$(".Accordion h3").hover(function(){
		$(this).css("cursor","pointer"); 
	}, function(){
		$(this).css("cursor","default");
	});
	$(".Accordion dl").css("display","none");
	$(".Accordion h3").click(function() {
		$(this).next().slideToggle("fast");
	});

	$(window).load(function() {
		try {
			var pageTracker = _gat._getTracker("UA-699095-3");
			pageTracker._setDomainName(".smartbaby.jp");
			pageTracker._trackPageview();
		} catch(err) {}
	});
});

function popupWindow(strUrl, strWindowName, intWindowWidth, intWindowHeight, blnShowMenuBar) {

	switch (strWindowName) {
		case "DesignWindow":
			intWindowWidth = 450;
			intWindowHeight = 350;
			blnShowMenuBar = 0;
			break;
		case "ZoomWindow":
			intWindowWidth = 350;
			intWindowHeight = 350;
			blnShowMenuBar = 0;
			break;
		case "PageWindow":
			intWindowWidth = 500;
			intWindowHeight = 660;
			blnShowMenuBar = 0;
			break;
	}
	var intLeftPos = (screen.width) ? (screen.width - intWindowWidth) / 2 : 0;
	var intTopPos = (screen.height) ? ((screen.height - intWindowHeight) / 2) - 30 : 0;
	var strProperty = "width=" + intWindowWidth + ",height=" + intWindowHeight + ",left=" + intLeftPos + ",top=" + intTopPos + ",menubar=" + blnShowMenuBar + ",toolbar=0,location=0,directories=0,status=1,scrollbars=1,resizable=1";
	strWindowName = window.open(strUrl, strWindowName, strProperty);
	self.onBlur = strWindowName.focus();
}