function bookmarkit(){try{if((typeof window.sidebar=="object")&&(typeof window.sidebar.addPanel=="function")){window.sidebar.addPanel("零点拓展","http://www.ld1860.com","零点团队")}else{window.external.AddFavorite("http://ld1860.com","零点团队")}}catch(A){}return false}var stabid=0;

function setActiveStyleSheet(D){var C,B,A;for(C=0;(B=document.getElementsByTagName("link")[C]);C++){if(B.getAttribute("rel").indexOf("style")!=-1&&B.getAttribute("title")){B.disabled=true;if(B.getAttribute("title")==D){B.disabled=false}}}}function getActiveStyleSheet(){var B,A;for(B=0;(A=document.getElementsByTagName("link")[B]);B++){if(A.getAttribute("rel").indexOf("style")!=-1&&A.getAttribute("title")&&!A.disabled){return A.getAttribute("title")}}return null}function getPreferredStyleSheet(){var B,A;for(B=0;(A=document.getElementsByTagName("link")[B]);B++){if(A.getAttribute("rel").indexOf("style")!=-1&&A.getAttribute("rel").indexOf("alt")==-1&&A.getAttribute("title")){return A.getAttribute("title")}}return null}function createCookie(C,D,E){if(E){var B=new Date();B.setTime(B.getTime()+(E*24*60*60*1000));var A="; expires="+B.toGMTString()}else{A=""}document.cookie=C+"="+D+A+";path=/"}function readCookie(B){var D=B+"=";var A=document.cookie.split(";");for(var C=0;C<A.length;C++){var E=A[C];while(E.charAt(0)==" "){E=E.substring(1,E.length)}if(E.indexOf(D)==0){return E.substring(D.length,E.length)}}return null}window.onload=function(B){var A=readCookie("style");var C=A?A:getPreferredStyleSheet();setActiveStyleSheet(C)};window.onunload=function(A){var B=getActiveStyleSheet();createCookie("style",B,365)};var cookie=readCookie("style");var title=cookie?cookie:getPreferredStyleSheet();setActiveStyleSheet(title);function correctPNG(){var F=navigator.appVersion.split("MSIE");var G=parseFloat(F[1]);if((G>=5.5)&&(document.body.filters)){for(var C=0;C<document.images.length;C++){var D=document.images[C];var I=D.src.toUpperCase();if(I.substring(I.length-3,I.length)=="PNG"){var E=(D.id)?"id='"+D.id+"' ":"";var J=(D.className)?"class='"+D.className+"' ":"";var B=(D.title)?"title='"+D.title+"' ":"title='"+D.alt+"' ";var H="display:inline-block;"+D.style.cssText;if(D.align=="left"){H="float:left;"+H}if(D.align=="right"){H="float:right;"+H}if(D.parentElement.href){H="cursor:hand;"+H}var A="<span "+E+J+B+" style=\"width:"+D.width+"px; height:"+D.height+"px;"+H+";filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+D.src+"', sizingMethod='scale');\"></span>";D.outerHTML=A;C=C-1}}}}function leogetEid(A){return document.getElementById(A)}function Xmove(G,C,E){var B=1;var D=parseInt(G.offsetLeft);var F=parseInt(G.offsetTop);var A=setInterval(function(){if(B==10){clearInterval(A)}G.style.left=D+B*(C-D)/10+"px";G.style.top=F+B*(E-F)/10+"px";B++},20)};function setsrch(A){for(i=0;i<5;i++){document.getElementById("stab"+i).className=""}A.className="cur";if(A.id=="stab0"){document.srchfrm.action="http://cnweb.search.live.com/results.aspx";stabid=0}if(A.id=="stab1"){document.srchfrm.action="http://cnweb.search.live.com/images/results.aspx";stabid=1}if(A.id=="stab2"){document.srchfrm.action="http://cnweb.search.live.com/news/results.aspx";stabid=2}if(A.id=="stab3"){document.srchfrm.action="http://ditu.live.com/default.aspx";stabid=3}if(A.id=="stab4"){document.srchfrm.action="http://cnweb.search.live.com/video/results.aspx";stabid=4}}var stabidb=0;function setsrchb(A){for(i=0;i<5;i++){document.getElementById("stabb"+i).className=""}A.className="cur";if(A.id=="stabb0"){document.srchfrmb.action="http://cnweb.search.live.com/results.aspx";stabid=0}if(A.id=="stabb1"){document.srchfrmb.action="http://cnweb.search.live.com/images/results.aspx";stabid=1}if(A.id=="stabb2"){document.srchfrmb.action="http://cnweb.search.live.com/news/results.aspx";stabid=2}if(A.id=="stabb3"){document.srchfrmb.action="http://ditu.live.com/default.aspx";stabid=3}if(A.id=="stabb4"){document.srchfrmb.action="http://cnweb.search.live.com/video/results.aspx";stabid=4}}function searchsubmit(){if(stabid==3|stabidb==3){if(document.srchfrm.q|document.srchfrm.q){var A="http://ditu.live.com/?where1="+encodeURI(document.srchfrm.q.value);window.open(A);return false}}return true}function searchsubmitb(){if(stabid==3|stabidb==3){if(document.srchfrmb.q){var A="http://ditu.live.com/?where1="+encodeURI(document.srchfrm.q.value);window.open(A);return false}}return true}function encodeq(){if(stabid==2){document.srchfrm.q.value=encodeURIComponent(document.srchfrm.q.value)}}function tabit(B){var D=new String(B.id);var C=D.indexOf("_");var F=D.lastIndexOf("_")+1;var E=D.substr(0,C);var G=parseInt(D.substr(F,1));var A=B.parentNode.childNodes.length;for(i=0;i<A;i++){document.getElementById(E+"_div_"+i).style.display="none";document.getElementById(E+"_btn_"+i).className=""}document.getElementById(E+"_div_"+G).style.display="block";B.className="curr"}var fodTime;function delaytabit(A){clearTimeout(fodTime);fodTime=setTimeout(function(){tabit(A)},100)}function delaytabitNew(A){clearTimeout(fodTime);fodTime=setTimeout(function(){tabitNew(A)},100)}function tabitNew(B){var D=new String(B.id);var C=D.indexOf("_");var F=D.lastIndexOf("_")+1;var E=D.substr(0,C);var G=parseInt(D.substr(F,1));var A=B.parentNode.childNodes.length;for(i=0;i<A;i++){document.getElementById(E+"_div_"+i).style.display="none";document.getElementById(E+"_btn_"+i).className=""}document.getElementById(E+"_leftdiv_0").style.display="none";document.getElementById(E+"_leftdiv_1").style.display="none";document.getElementById(E+"_div_"+G).style.display="block";document.getElementById(E+"_div_"+G).style.display="inline";document.getElementById(E+"_btn_"+G).className="curr";if(G==1){document.getElementById(E+"_leftdiv_1").style.display="block";document.getElementById(E+"_leftdiv_1").style.display="inline"}else{document.getElementById(E+"_leftdiv_0").style.display="block";document.getElementById(E+"_leftdiv_0").style.display="inline"}}function MNGetE(A){return document.getElementById(A)}function checkMapSearchFrm(){var C=MNGetE("txtInput").value;var A=MNGetE("city").value;if(C.replace(/(^\s*)|(\s*$)/g,"")==""||C=="\u7487\u75af\u7ded\u934f\u30e5\u53e7\u95bf\ue1bc\u74e7"){C=""}var B="http://ditu.live.com/?q="+encodeURI(A)+"&ss="+encodeURI(C)+"&FORM=MSNMINI";window.open(B)}function NavigateToLiveMap(){var A=MNGetE("imgMap").attributes["cityname"].nodeValue;window.open(B)}function shareMap(){var B=navigator.appName;if(B=="Microsoft Internet Explorer"){try{objMessengerActiveP4=new ActiveXObject("MSNMessenger.P4QuickLaunch");objMessengerActiveP4.LaunchApp("99995691","")}catch(A){window.open("http://im.live.cn")}}}var Msn=function(){};Msn.HP=function(){};Msn.HP.RPS=function(D,J){var F="iframe_wlid";var G=D||null;var C=J||null;var B=null;var I=5000;var K="";Msn.HP.RPS.State={Error:0,Login:1,Logout:2};function E(){A();B=setTimeout(L,I)}function A(){if(B){clearTimeout(B);B=null}}function L(){H(Msn.HP.RPS.State.Error)}function H(M){A();if(C){C(M)}}this.Load=function(M){if(G){document.domain="msn.com";var N=document.createElement("iframe");N.id=F;N.width=N.height=0;N.src=M;N.setAttribute("style","display:none");G.appendChild(N);E()}};this.Process=function(){window.location.href=K;return false};Msn.HP.RPS.UpdateState=function(M,N){K=M;H(N)}};Msn.HP.Hotmail=function(Q,A,S){var R="http://w10.hotmail.msn.com/cgi-bin/mymsn/mymsn.js";var F="http://mymsn.hotmail.msn.com/cgi-bin/mymsn/mymsn.html";var K="MyMsn";var E="iframe_wlhm";var G=S||null;var M=A||null;var P=Q||null;var N=null;var L=10000;Msn.HP.Hotmail.Error={NoError:0,NotAuth:1,NoUser:2,Inactive:3,Blocked:4,Down:5,FeatureIsOff:6,Unknown:7};function T(){H();N=setTimeout(I,L)}function H(){if(N){clearTimeout(N);N=null}}function I(){H();J()}this.Load=function(){if(P){iframe=document.createElement("iframe");iframe.id=iframe.name=E;iframe.width=iframe.height=0;iframe.setAttribute("style","display:none");if(iframe.addEventListener){iframe.addEventListener("load",J,false)}else{if(iframe.attachEvent){iframe.attachEvent("onload",J)}}iframe.src=F+"?"+(new Date).getTime();P.appendChild(iframe);T()}};function O(U){if(G){G(U)}}function J(){var X=new RegExp("\\b"+K+"\\s*=\\s*([^;]*)","i");var W=X.exec(document.cookie);var V=W&&W.length>1?W[1]:"";if(V){switch(V){case"1":O(Msn.HP.Hotmail.Error.NotAuth);break;case"2":O(Msn.HP.Hotmail.Error.NoUser);break;case"3":O(Msn.HP.Hotmail.Error.Inactive);break;case"4":O(Msn.HP.Hotmail.Error.Blocked);break;case"5":O(Msn.HP.Hotmail.Error.Down);break;case"6":O(Msn.HP.Hotmail.Error.FeatureIsOff);break;case"7":O(Msn.HP.Hotmail.Error.Unknown);break;default:var U=R+"?mmc="+V+"&nocache="+Math.random();B(U);break}}else{O(Msn.HP.Hotmail.Error.FeatureIsOff)}}function B(V){var W=document.getElementsByTagName("head")[0];var U=document.createElement("script");U.type="text/javascript";U.language="javascript";U.onload=D;U.onerror=function(){O(Msn.HP.Hotmail.Error.FeatureIsOff)};U.onreadystatechange=function(){if(U.readyState=="loaded"){U.onreadystatechange=null;W.appendChild(U);D()}};U.src=V;if(typeof U.readyState=="undefined"){W.appendChild(U);if(typeof AmIDone!="undefined"){D()}}}function D(){H();if(M){M()}}function C(U){if(typeof strBaseURL=="undefined"){return""}if(U=="calendar"){return"http://calendar.msn.com/calendar/isapi.dll"}return strBaseURL+strA+"&rru="+U}this.GetInboxURL=function(){return C("hotmail")};this.GetComposeURL=function(){return C("compose")};this.GetAddressesURL=function(){return C("addresses")};this.GetCalendarURL=function(){return C("calendar")};this.GetTotalNumber=function(){return typeof iInboxTotal!="undefined"?iInboxTotal:0};this.GetNewNumber=function(){return typeof iNewInbox!="undefined"?iNewInbox:0};this.GetViewNumber=function(){return typeof iMsgsNum!="undefined"?iMsgsNum:0};this.GetMail=function(V){if(typeof aInboxView=="undefined"||typeof V!="number"||V>=iMsgsNum||V<0){return null}var U={};U.subject=aInboxView[V].strSubject;U.link=aInboxView[V].strMsgLink;U.date=aInboxView[V].dDate;U.unread=aInboxView[V].oIcon.bRead;return U}};window.onload=function(){document.getElementById("f1").focus()};function classNormal(B,D,G){var F=leogetEid(B).getElementsByTagName("li");var C=leogetEid(D).getElementsByTagName("li");var E=leogetEid(G).getElementsByTagName("li");for(var A=0;A<C.length;A++){F[A].className="normal";C[A].className="normal";E[A].className="normal"}}function classCurrent(A,C,G,F){var E=leogetEid(A).getElementsByTagName("li");var B=leogetEid(C).getElementsByTagName("li");var D=leogetEid(G).getElementsByTagName("li");E[F].className="current";B[F].className="current";D[F].className="current"}function iFocusChange(){if(!leogetEid("hot_b_a")){return false}var A=leogetEid("ifocus_btn").getElementsByTagName("li");A[0].onmouseover=function(){classNormal("ifocus_piclist","ifocus_btn","ifocus_tx");classCurrent("ifocus_piclist","ifocus_btn","ifocus_tx",0)};A[1].onmouseover=function(){classNormal("ifocus_piclist","ifocus_btn","ifocus_tx");classCurrent("ifocus_piclist","ifocus_btn","ifocus_tx",1)};A[2].onmouseover=function(){classNormal("ifocus_piclist","ifocus_btn","ifocus_tx");classCurrent("ifocus_piclist","ifocus_btn","ifocus_tx",2)};A[3].onmouseover=function(){classNormal("ifocus_piclist","ifocus_btn","ifocus_tx");classCurrent("ifocus_piclist","ifocus_btn","ifocus_tx",3)}}
