addEV(G("su"), "mousedown", function(){ns_c({'fm':'alwb','tab':'btn_1'});});if(G("su2")){addEV(G("su2"), "mousedown", function(){ns_c({'fm':'alwb','tab':'btn_2'});});}var isVisited = 0;if(G("page")){var a = G("page").getElementsByTagName("a");for(var i = 0; i < a.length; i++){addEV(a[i], "mousedown", function(){isVisited = 1;});}}if(G("side")){var a = G("side").getElementsByTagName("a");for(var i = 0; i < a.length; i++){addEV(a[i], "mousedown", function(){isVisited = 1;});}}(function(){function getPos(obj){while(obj.tagName.toLowerCase()!="li"){obj=obj.parentNode;}return obj.getAttribute("id");}var weibo = G("weibo"), num_rootnick = document.getElementsByName("weibo_rootnick").length, num_nick = document.getElementsByName("weibo_nick").length, num_link = document.getElementsByName("weibo_link").length, num_img = document.getElementsByName("weibo_img").length, num_ping = document.getElementsByName("weibo_ping").length,num_face = document.getElementsByName("weibo_face;").length;if(weibo){var a = weibo.getElementsByTagName("a");for(var i = 0; i < a.length; i++){addEV(a[i], "mousedown", function(e){var e = e || window.event;var target = e.target || e.srcElement;ns_c({'fm':'alwb','tab':target.name,'url':target.href||target.src,'p1':getPos(target)});isVisited = 1;});}}var ping = document.getElementsByName("weibo_ping");var type = [];for(var i = 0; i < ping.length; i++){var url = ping[i].href;if(/t\.qq/.test(url)){type.push(1);}else if(/t\.sohu/.test(url)){type.push(2);}else if(/t\.163/.test(url)){type.push(3);}else if(/weibo\.com/.test(url)){type.push(4);}}ns_c({'fm':'alwb','tab':'num','weibo_face':num_face,'rootnick':num_rootnick,'nick':num_nick,'link':num_link,'img':num_img,'ping':num_ping,'type':type.join("_")});})();var stay_start = new Date().getTime();addEV(window, "beforeunload", function(){ns_c({'fm':'alwb','tab':'time','stay':(new Date().getTime()) - stay_start});if(G("weibo")){ns_c({'fm':'alwb','visited':isVisited});}});