// -----------------------------------------------------------------------------
// Globals
// Major version of Flash required
var requiredMajorVersion = 7;
// Minor version of Flash required
var requiredMinorVersion = 0;
// Minor version of Flash required
var requiredRevision = 0;
// the version of javascript supported
var jsVersion = 1.0;
// -----------------------------------------------------------------------------
if (window.navigator && navigator.userAgent && navigator.userAgent.indexOf("Gecko/") != -1) window.isGecko = true;

// ƒ^ƒu
$(function(){

	var tabnews = 1;
	var tabowner = 0;
	var tabveterinarian = 0;

	$('#tabnews').click(function(){
		tabnews = 1;
		tabowner = 0;
		tabveterinarian = 0;
		$('div.news').show();
		$('div.newsowner').hide();
		$('div.newsveterinarian').hide();
		$('#tabnews img').attr('src', '/image/top/tab01_o.gif');
		$('#tabowner img').attr('src', '/image/top/tab02.gif');
		$('#tabveterinarian img').attr('src', '/image/top/tab03.gif');
		return false;
	});
	$('#tabowner').click(function(){
		tabnews = 0;
		tabowner = 1;
		tabveterinarian = 0;
		$('div.news').hide();
		$('div.newsowner').show();
		$('div.newsveterinarian').hide();
		$('#tabnews img').attr('src', '/image/top/tab01.gif');
		$('#tabowner img').attr('src', '/image/top/tab02_o.gif');
		$('#tabveterinarian img').attr('src', '/image/top/tab03.gif');;
		return false;
	});
	$('#tabveterinarian').click(function(){
		tabnews = 0;
		tabowner = 0;
		tabveterinarian = 1;
		$('div.news').hide();
		$('div.newsowner').hide();
		$('div.newsveterinarian').show();
		$('#tabnews img').attr('src', '/image/top/tab01.gif');
		$('#tabowner img').attr('src', '/image/top/tab02.gif');
		$('#tabveterinarian img').attr('src', '/image/top/tab03_o.gif');
		return false;
	});
	$("#tabnews").hover(
		function(){
			$('#tabnews img').attr('src', '/image/top/tab01_o.gif');
		}, function(){
			if(tabnews != 1){
				$('#tabnews img').attr('src', '/image/top/tab01.gif');
			}
		}
	);
	$("#tabowner").hover(
		function(){
			$('#tabowner img').attr('src', '/image/top/tab02_o.gif');
		}, function(){
			if(tabowner != 1){
				$('#tabowner img').attr('src', '/image/top/tab02.gif');
			}
		}
	);
	$("#tabveterinarian").hover(
		function(){
			$('#tabveterinarian img').attr('src', '/image/top/tab03_o.gif');
		}, function(){
			if(tabveterinarian != 1){
				$('#tabveterinarian img').attr('src', '/image/top/tab03.gif');
			}
		}
	);

});
