﻿$(
function()
{
    //初始化绑定tab
    $("[g='tab']").each(function()
    {
        var obj = $(this);
        $(this).find("li").each(
            function(i)
            {
               $(this).bind("mouseover",function(){
                    obj.find("li").each(
                    function()
                    {
                         $(this).attr("class","");
                    }
                    );
                    $(this).attr("class","this");
                    obj.next().find("[g='content']").each(function(j){
                        $(this).hide();
                        if(i==j)
                        {
                           $(this).show();
                        }
                    }
                );
           })
           }
        );
    }); 
}
)
