$(function(){
	$('body').add_layer("url('img/bk_back.png') repeat-x center 0px");
	$('body#Home').add_layer("url('img/bk_back_home.png') repeat-x center 0px");
	$('body').add_layer("url('img/bk_footer.png') repeat-x bottom");
});


$(function(){
	$('a[href^="#"]').click(function() {
		$('html:not(:animated), body:not(:animated)').animate({ scrollTop: $($(this).attr('href')).offset().top}, 0, 'swing' );
		return false;
	});
});


$(function(){
	$('ol.klo_list_col2 li:even').css({"float":"left", "width":"190px"});
	$('ol.klo_list_col3 li').css({"float":"left", "margin-right":"30px"});
});

jQuery(function($) {
	var postfix = '_on';
	$('.klo_lawyer_list ul li img').not('[src*="'+ postfix +'."]').each(function() {
		var img = $(this);
		var src = img.attr('src');
		var src_on = src.substr(0, src.lastIndexOf('.'))
		           + postfix
		           + src.substring(src.lastIndexOf('.'));
		$('<img>').attr('src', src_on);
		img.hover(function() {
			img.attr('src', src_on);
		}, function() {
			img.attr('src', src);
		}).click(function(){
			img.attr('src', src);
		});
	});
});


$(function(){
	$('a').focus(function(){
		$(this).blur();
	});
});


