$(document).ready(function(){
	$("#tabbedbox #tabs li").click(function(){var id = $(this).attr("class"); var id = id.split("-"); var id = "#"+id[0];$("#tabbedbox span").hide();$(id).show();}).hover(function(){$(this).css({color:'#666',cursor:'pointer'})},function(){$(this).css({color:'white'})})
	$("#tabbedbox #tabs li:eq(0)").click(function(){$("#tabbedbox #tabs").css({"background":"url(img/what_tab_1.gif)"});})
	$("#tabbedbox #tabs li:eq(1)").click(function(){$("#tabbedbox #tabs").css({"background":"url(img/what_tab_2.gif)"});})
	$("#tabbedbox #tabs li:eq(2)").click(function(){$("#tabbedbox #tabs").css({"background":"url(img/what_tab_3.gif)"});})
	$("#tabbedbox #tabs li:eq(3)").click(function(){$("#tabbedbox #tabs").css({"background":"url(img/what_tab_4.gif)"});})
	$("#tabbedbox #tabs li:eq(4)").click(function(){$("#tabbedbox #tabs").css({"background":"url(img/what_tab_5.gif)"});})
	$("#navi li a img").each(function(){
		i=$(this).attr("src");
		e=i.split(".")[0]+"_hover.gif";
		$(this).attr({"org_img":i, "hover_img":e});
	}).hover(
		function(){
		if($.browser.msie && $.browser.version=="6.0"){
			$("#navi li a img").css({"position":"relative"});
			$(this).attr("src", $(this).attr("hover_img")).css({"position":"relative","border-top":"5px solid #3f453d","margin-top":"-5px"});
		}else{
			$(this).attr("src", $(this).attr("hover_img")).css({"border-top":"5px solid #3f453d","margin-top":"-5px"});
		}
	},
		function(){
		$(this).attr("src", $(this).attr("org_img")).css({"border-top":"0px","margin-top":"auto"});
	})
	var page = $("body").attr("id").split("_")[1];
	if(page == "1"){$("#navi li a img:eq("+page+")").attr("src", "img/about_navi_bg_hover.gif").hover(function(){ $(this).attr("src", $(this).attr("hover_img")) },function(){$(this).attr("src", $(this).attr("hover_img")) });}
	if(page == "2"){$("#navi li a img:eq("+page+")").attr("src", "img/what_navi_bg_hover.gif").hover(function(){ $(this).attr("src", $(this).attr("hover_img")) },function(){$(this).attr("src", $(this).attr("hover_img")) });}
	if(page == "3"){$("#navi li a img:eq("+page+")").attr("src", "img/case_navi_bg_hover.gif").hover(function(){ $(this).attr("src", $(this).attr("hover_img")) },function(){$(this).attr("src", $(this).attr("hover_img")) });}
	if(page == "4"){$("#navi li a img:eq("+page+")").attr("src", "img/contact_navi_bg_hover.gif").hover(function(){ $(this).attr("src", $(this).attr("hover_img")) },function(){$(this).attr("src", $(this).attr("hover_img")) });}
})