//case
$(function(){
	tabService(0);
	$("#service dt:lt(1)").mouseover(function(){
		tabService($('#service dt').index($(this)));
	})
})
function tabService(i){
	$("#service dt").removeClass('active');
	$("#service dt").eq(i).addClass('active');
	$("#service dd").hide();
	$("#service dd").eq(i).show();
	if(i=="0"){
		$("#service dt").eq(0).css({"background":"url(images/tab.gif) 0 0 no-repeat"});
		$("#service dt").eq(1).css({"background":"url(images/tab.gif) 0 -44px no-repeat"});	
		$("#service dt").eq(2).css({"background":"url(images/tab.gif) 0 -81px no-repeat"});
	}
	else if(i=="1"){
		$("#service dt").eq(0).css({"background":"url(images/tab.gif) 0 -118px no-repeat"});
		$("#service dt").eq(1).css({"background":"url(images/tab.gif) 0 0 no-repeat"});
		$("#service dt").eq(2).css({"background":"url(images/tab.gif) 0 -44px no-repeat"});
	}
	else if(i=="2"){
		$("#service dt").eq(0).css({"background":"url(images/tab.gif) 0 -118px no-repeat"});
		$("#service dt").eq(1).css({"background":"url(images/tab.gif) 0 -155px no-repeat"});
		$("#service dt").eq(2).css({"background":"url(images/tab.gif) 0 0 no-repeat"});	
	}
}
//2
$(function(){
	tabFlag(0);
	$("#case dt:lt(2)").mouseover(function(){
		tabFlag($('#case dt').index($(this)));
	})
})
function tabFlag(i){
	$("#case dt").removeClass('active');
	$("#case dt").eq(i).addClass('active');
	$("#case dd").hide();
	$("#case dd").eq(i).show();
	if(i=="0"){
		$("#case dt").eq(0).css({"background":"url(images/tab.gif) 0 0 no-repeat"});
		$("#case dt").eq(1).css({"background":"url(images/tab.gif) 0 -44px no-repeat"});	
		$("#case dt").eq(2).css({"background":"url(images/tab.gif) 0 -81px no-repeat"});
	}
	else if(i=="1"){
		$("#case dt").eq(0).css({"background":"url(images/tab.gif) 0 -118px no-repeat"});
		$("#case dt").eq(1).css({"background":"url(images/tab.gif) 0 0 no-repeat"});
		$("#case dt").eq(2).css({"background":"url(images/tab.gif) 0 -44px no-repeat"});	
	}
	else if(i=="2"){
		$("#case dt").eq(0).css({"background":"url(images/tab.gif) 0 -118px no-repeat"});
		$("#case dt").eq(1).css({"background":"url(images/tab.gif) 0 -155px no-repeat"});
		$("#case dt").eq(2).css({"background":"url(images/tab.gif) 0 0 no-repeat"});	
	}
}



