﻿// JScript 文件
$(document).ready(function(){
            $("#t1").hover(function(){GetFocus(1);},function(){});
            $("#t2").hover(function(){GetFocus(2);},function(){});
            $("#t3").hover(function(){GetFocus(3);},function(){});
            $("#t4").hover(function(){GetFocus(4);},function(){});
	       
	       
	       
        });
        
        
function GetFocus(tID)
{
    //debugger;
    $("#tab").find("li").each(function(i) {
		$(this).removeClass("sel");
		$(this).addClass("no");
	});
//	$("#tab").find("div").each(function(i) {
//	    $(this).removeClass("cSel");
//	    $(this).addClass("cNo");
//	});
	
	$("#c1").removeClass("cSel");
    $("#c1").addClass("cNo");
    $("#c2").removeClass("cSel");
    $("#c2").addClass("cNo");
    $("#c3").removeClass("cSel");
    $("#c3").addClass("cNo");
    $("#c4").removeClass("cSel");
    $("#c4").addClass("cNo");
	

    $("#t" + tID).removeClass("no");
    $("#t" + tID).addClass("sel");
    $("#c" + tID).removeClass("cNo");
    $("#c" + tID).addClass("cSel");
    return;
}