

function css3(){
	$(".table1 tbody tr").mouseover(function() {$(this).addClass("over");}).mouseout(function() {$(this).removeClass("over");});//增加鼠标经过样式伪类
	$(".table1 tbody").find("tr:odd").addClass("odd").find("tr:even").addClass("even");//斑马纹
	$("input[@type='text'], input[@type='password'],textarea").addClass('input_text').hover(function(){ $(this).addClass("hover");},function(){ $(this).removeClass("hover");}).focus( function() { $(this).addClass("focus"); } ).blur( function() { $(this).removeClass("focus"); } );
	$("input[@type='submit'],input[@type='button'],input[@type='reset'],input[@type='file']").addClass('input_submit');
	$("#naver").find("li:first").css("border-left-width","0").end().find("li:last").css("border-right-width","0");
//	$(".photo").css({width:this.width>100&&this.width>this.height?100:'auto', height:this.height>100 ? 100:'auto'})

}


$(function(){
	css3();
})

function AddFavorite(sURL, sTitle)
{
    try
    {
        window.external.addFavorite(sURL, sTitle);
    }
    catch (e)
    {
        try
        {
            window.sidebar.addPanel(sTitle, sURL, "");
        }
        catch (e)
        {
            alert("加入收藏失败，请使用Ctrl+D进行添加");
        }
    }
}
function SetHome(obj,vrl){
        try{
                obj.style.behavior='url(#default#homepage)';obj.setHomePage(vrl);
        }
        catch(e){
                if(window.netscape) {
                        try {
                                netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect");
                        }
                        catch (e) {
                                alert("此操作被浏览器拒绝！\n请在浏览器地址栏输入“about:config”并回车\n然后将 [signed.applets.codebase_principal_support]的值设置为'true',双击即可。");
                        }
                        var prefs = Components.classes['@mozilla.org/preferences-service;1'].getService(Components.interfaces.nsIPrefBranch);
                        prefs.setCharPref('browser.startup.homepage',vrl);
                 }
        }
}

