document.writeln("<script type=\"text\/javascript\"> ");
document.writeln("\/\/ 设置为主页 ");
document.writeln("function SetHome(obj,vrl){ ");
document.writeln("try{ ");
document.writeln("obj.style.behavior=\'url(#default#homepage)\';obj.setHomePage(vrl); ");
document.writeln("} ");
document.writeln("catch(e){ ");
document.writeln("if(window.netscape) { ");
document.writeln("try { ");
document.writeln("netscape.security.PrivilegeManager.enablePrivilege(\"UniversalXPConnect\"); ");
document.writeln("} ");
document.writeln("catch (e) { ");
document.writeln("alert(\"抱歉,您使用的浏览器无法完成此操作。\\n您需要手动将 http:\/\/www.qqtenglong.com 设置为首页。\"); ");
document.writeln("} ");
document.writeln("var prefs = Components.classes[\'@mozilla.org\/preferences-service;1\'].getService(Components.interfaces.nsIPrefBranch); ");
document.writeln("prefs.setCharPref(\'browser.startup.homepage\',vrl); ");
document.writeln("}else{ ");
document.writeln("alert(\"抱歉,您使用的浏览器无法完成此操作。\\n您需要手动将 http:\/\/www.qqtenglong.com 设置为首页。\"); ");
document.writeln("} ");
document.writeln("} ");
document.writeln("} ");
document.writeln("\/\/ 加入收藏");
document.writeln("function shoucang(sTitle,sURL) ");
document.writeln("{ ");
document.writeln("try ");
document.writeln("{ ");
document.writeln("window.external.addFavorite(sURL, sTitle); ");
document.writeln("} ");
document.writeln("catch (e) ");
document.writeln("{ ");
document.writeln("try ");
document.writeln("{ ");
document.writeln("window.sidebar.addPanel(sTitle, sURL, \"\"); ");
document.writeln("} ");
document.writeln("catch (e) ");
document.writeln("{ ");
document.writeln("alert(\"请先点击下“确定” 再按下 Ctrl + D 键将本站加入收藏!\"); ");
document.writeln("} ");
document.writeln("} ");
document.writeln("} ");
document.writeln("<\/script>")