(function($){
$('img.imgover').imgHover({ suffix : '_o' });
$('div.pagetopAnchor a,a.smoothScroll').scrollFor();

$(window).load(function(){
	var backgroundSwf = document.getElementById('backgroundSwf');
	$('a[href]').each(function(item, index){
		$(this).hover(
			function(){ backgroundSwf.onOver(); },
			function(){ backgroundSwf.onOut(); }
		);
	});
});

$(function(){
	//question switch
	var acCl='active';
	var ansid='ans';
	$('.question > dl > dt > span').not('span.q').each(function(item, index){
		$(this).css({textDecoration:'underline'}).hover(
			function(){ $(this).css({textDecoration:'none'}); },
			function(){ $(this).css({textDecoration:'underline'}); }
		).click(function(){
			var t=$(this);
			if(t.hasClass(acCl)){t.removeClass(acCl);}
			else{t.addClass(acCl);}
			$('.question > dl > dd#'+ansid+item).toggle();
		});
	});
	$('.question > dl > dd').each(function(item, index){
		$(this).css({display:'none'});
	});
});




})(jQuery);