var countimg=document.createElement("img"),Dom={get:function(a){return typeof a=="object"?a:document.getElementById(a)},eles:function(a,b){if(typeof a=="string")a=Dom.get(a);return a.getElementsByTagName(b)},show:function(a,b){Dom.get(a).style.display=b==0?"":"block"},hide:function(a){Dom.get(a).style.display="none"},toggle:function(a){a=Dom.get(a);a.style.display=="none"?(a.style.display="block"):(a.style.display="none")}},Ylmf={screenWidth:window.screen.width,Browser:{ie:/msie/.test(window.navigator.userAgent.toLowerCase()),
ie6:/msie 6.0/.test(window.navigator.userAgent.toLowerCase()),moz:/gecko/.test(window.navigator.userAgent.toLowerCase()),opera:/opera/.test(window.navigator.userAgent.toLowerCase()),safari:/safari/.test(window.navigator.userAgent.toLowerCase())},Cookie:{set:function(a,b,c,d,e){if(typeof c=="undefined")c=new Date((new Date).getTime()+2592E6);document.cookie=a+"="+escape(b)+(c?"; expires="+c.toGMTString():"")+(d?"; path="+d:"; path=/")+(e?";domain="+e:"")},get:function(a){a=document.cookie.match(new RegExp("(^| )"+
a+"=([^;]*)(;|$)"));if(a!=null)return unescape(a[2]);return null},clear:function(a,b,c){if(this.get(a))document.cookie=a+"="+(b?"; path="+b:"; path=/")+(c?"; domain="+c:"")+";expires=Fri, 02-Jan-1970 00:00:00 GMT"}},getStyle:function(a,b){if(document.defaultView)return document.defaultView.getComputedStyle(a,null).getPropertyValue(b);else{b=b.replace(/\-([a-z])([a-z]?)/ig,function(c,d,e){return d.toUpperCase()+e.toLowerCase()});return a.currentStyle[b]}},getPosXY:function(a,b){b=b?b.slice(0):[0,a.offsetHeight-
1];do{b[0]+=a.offsetLeft;b[1]+=a.offsetTop;a=a.offsetParent}while(a);return b},Ajax:function(a,b){function c(){d.readyState<4||d.status===200&&d.readyState===4&&b(d)}var d;if(typeof XMLHttpRequest!=="undefined")d=new XMLHttpRequest;else for(var e=["Microsoft.XmlHttp","MSXML2.XmlHttp","MSXML2.XmlHttp.3.0","MSXML2.XmlHttp.4.0","MSXML2.XmlHttp.5.0"],g=0,l=e.length;g<l;g++)try{d=new ActiveXObject(e[g]);break}catch(j){}d.onreadystatechange=c;d.open("GET",a,true);d.send("")},JsLoader:function(a,b,c,d){var e=
document.createElement("script");d?e.setAttribute("charset",d):e.setAttribute("charset","utf-8");e.setAttribute("type","text/javascript");e.setAttribute("src",a);e.id=b;document.getElementsByTagName("head")[0].appendChild(e);if(c)if(Ylmf.Browser.ie)e.onreadystatechange=function(){if(this.readyState=="loaded"||this.readyState=="complete")c()};else if(Ylmf.Browser.moz)e.onload=function(){c()};else c()},addFav:function(a){if(document.all)window.external.AddFavorite(location.href,a);else if(window.sidebar)window.sidebar.addPanel(a,
location.href,"");else if(window.opera&&window.print)return true},setHomepage:function(a,b){var c=location.pathname.replace("/","");c=c.split(".")[0];if(b)c="";if(Ylmf.Browser.moz)alert("\u8bbe\u5b9a\u5931\u8d25\uff01\u8be5\u64cd\u4f5c\u4e0d\u652f\u6301FireFox\u6d4f\u89c8\u5668\uff01");else{a.style.behavior="url(#default#homepage)";if(c=="index"||c==""||c.indexOf("/")!==-1)a.setHomePage("http://www.114la.com/");else{b="http://www.114la.com/?"+c;a.setHomePage(b)}}}};
function getT(){var a=getEvent();return a.target||a.srcElement}function getEvent(){if(document.all)return window.event;for(func=getEvent.caller;func!=null;){var a=func.arguments[0];if(a)if(a.constructor==Event||a.constructor==MouseEvent||typeof a=="object"&&a.preventDefault&&a.stopPropagation)return a;func=func.caller}return null}
var History={save:function(a){try{if(a.tagName=="A"&&a.href.indexOf("http://")==0&&a.href.indexOf("http://"+location.host)!=0||a.parentNode.tagName=="A"){var b=a.href,c=a.innerHTML;if(a.parentNode.tagName=="A")b=a.parentNode.href;if(a.rel=="nr"||a.parentNode.rel=="nr")return;if(c&&b){countimg.src="http://stat.114la.com/index?u="+encodeURIComponent(b)+"&n="+encodeURIComponent(c)+"&q=0&i="+Math.random();a=c+"+"+b+"_114la_";a+=unescape(Ylmf.Cookie.get("history"));a=escape(a);Ylmf.Cookie.set("history",
a);History.show()}}}catch(d){}return true},show:function(){try{var a=Ylmf.Cookie.get("history");a=unescape(a);var b="";if(a!=="null"){history_arg=a.split("_114la_");linknum=i=0;len=history_arg.length;for(i=0;i<len;i++){var c=history_arg[i].split("+");if(history_arg[i]!="null"&&b.indexOf(c[0])==-1&&linknum<44){b+='<li><a target="_blank" href="'+c[1]+'" title="'+c[0]+'">'+c[0]+"</a></li>";linknum+=1}}Dom.get("history").innerHTML=b}else Dom.get("history").innerHTML='<li class="none">\u5bf9\u4e0d\u8d77\uff0c\u60a8\u6ca1\u6709\u4efb\u4f55\u6d4f\u89c8\u8bb0\u5f55</li>'}catch(d){}},
clear:function(){if(clean=confirm("\u786e\u5b9a\u8981\u6e05\u9664\u6240\u6709\u7684\u6d4f\u89c8\u8bb0\u5f55\uff1f")){Ylmf.Cookie.clear("history");Dom.get("history").innerHTML='<li class="none">\u5bf9\u4e0d\u8d77\uff0c\u60a8\u6ca1\u6709\u4efb\u4f55\u6d4f\u89c8\u8bb0\u5f55</li>'}}};
function selectTab(a,b,c,d){function e(f){if(!(f.href&&f.id!=="smore"))for(var m=0,r=evts.length;m<r;m++)(function(){function q(){if(f.id&&f.id=="smore"||f.href)return d(f);for(var h=0,n=g.length;h<n;h++)if(g[h].className||g[h].parentNode.className)a=="search-menu"?(g[h].parentNode.className=""):(g[h].className="");a=="search-menu"?(f.parentNode.className="current"):(f.className="current");h=document.getElementById(f.getAttribute("rel"));var o=0;for(n=b.length;o<n;o++)document.getElementById(b[o]).style.display=
"none";h.style.display="block";return d(h)}var k=evts[m];if(k=="click")f["on"+k]=q;else if(k=="mouseover"){f["on"+k]=function(){j=window.setTimeout(q,l)};f.onmouseout=function(){j!=undefined&&window.clearTimeout(j)}}})()}var g=document.getElementById(a).getElementsByTagName("a"),l=400,j;evts=c?c:["click"];var p=0;for(c=g.length;p<c;p++)(function(){e(g[p])})()}
function setStyle(a){var b=["default","g2","orange","purple","blue"];a=Number(a);var c=Dom.get("skin"),d="static/home/skins/";if(b[a]!=="default"){d+=b[a]+"/style.css";Ylmf.Ajax(d,function(){c.href=d});setFont("none");Ylmf.Cookie.set("style",a)}else{c.href="";setFont("none");Ylmf.Cookie.get("style")&&Ylmf.Cookie.clear("style")}}
function setFont(a){var b=Dom.get("font"),c="static/home/css/font/";if(a&&a!=="none"){c+=a;c+=".css";b.href=c;Ylmf.Cookie.set("font",a)}else{b.href=c+"none.css";Ylmf.Cookie.get("font")&&Ylmf.Cookie.clear("font")}}
function setBg(a){var b=document.getElementsByTagName("style")[0],c="",d=a.split(".")[0];if(a!=="default"){c+="body { background:url(static/home/images/bg/"+a+");}";c+=".wrap,.m .wrap { background:none;}";c+="#bg-setting a.img"+d+"{border:1px solid red;border-bottom-width:2px;}"}else c+="#bg-setting a.default{border:1px solid red;border-bottom-width:2px;}";if(b.styleSheet)b.styleSheet.cssText=c;else b.innerHTML=c;Ylmf.Cookie.set("bg",a)}
function getBgimg(a,b){a.style.border=b==Ylmf.Cookie.get("bg")?"1px solid red":"1px solid #cccccc";a.style.borderBottomWidth="2px"}function iscurBg(a){for(var b=document.getElementById("bg-setting").getElementsByTagName("a"),c=0,d=b.length;c<d;++c){b[c].style.border="1px solid #cccccc";b[c].style.borderBottomWidth="2px"}a.style.border="1px solid red";a.style.borderBottomWidth="2px"}
function setLayout(a){a=Number(a);var b=Ylmf.Cookie.get("layout"),c=Dom.get("home"),d=Dom.eles("b2","iframe")[0];if(a==0){c.className="";d.src="http://www.114la.com/hot/hot3/index.htm";d.width=406;b&&Ylmf.Cookie.clear("layout")}else if(a==1){d.src="http://www.114la.com/hot/hot3/index.htm";d.width=406;Dom.get("b4")&&Dom.get("b4").parentNode.removeChild(Dom.get("b4"))}else{d.src="http://www.114la.com/hot/hot2/index.htm";d.width=470;b=document.createElement("li");b.id="b4";b.innerHTML='<a href="http://taobao.114la.com/"><img src="http://www.114la.com/static/home/images/banner/dangdang_n.gif" /></a>';
Dom.get("banner").appendChild(b)}c.className=["s","m","ws"][a];Ylmf.Cookie.set("layout",a)}function logad(){}
var lunarInfo=new Array(19416,19168,42352,21717,53856,55632,91476,22176,39632,21970,19168,42422,42192,53840,119381,46400,54944,44450,38320,84343,18800,42160,46261,27216,27968,109396,11104,38256,21234,18800,25958,54432,59984,28309,23248,11104,100067,37600,116951,51536,54432,120998,46416,22176,107956,9680,37584,53938,43344,46423,27808,46416,86869,19872,42448,83315,21200,43432,59728,27296,44710,43856,19296,43748,42352,21088,62051,55632,23383,22176,38608,19925,19152,42192,54484,53840,54616,46400,46496,
103846,38320,18864,43380,42160,45690,27216,27968,44870,43872,38256,19189,18800,25776,29859,59984,27480,21952,43872,38613,37600,51552,55636,54432,55888,30034,22176,43959,9680,37584,51893),Gan=new Array("\u7532","\u4e59","\u4e19","\u4e01","\u620a","\u5df1","\u5e9a","\u8f9b","\u58ec","\u7678"),Zhi=new Array("\u5b50","\u4e11","\u5bc5","\u536f","\u8fb0","\u5df3","\u5348","\u672a","\u7533","\u9149","\u620c","\u4ea5"),now=new Date,SY=now.getFullYear(),SM=now.getMonth(),SD=now.getDate();
function cyclical(a){return Gan[a%10]+Zhi[a%12]}function lYearDays(a){var b,c=348;for(b=32768;b>8;b>>=1)c+=lunarInfo[a-1900]&b?1:0;return c+leapDays(a)}function leapDays(a){return leapMonth(a)?lunarInfo[a-1900]&65536?30:29:0}function leapMonth(a){return lunarInfo[a-1900]&15}function monthDays(a,b){return lunarInfo[a-1900]&65536>>b?30:29}
function Lunar(a){var b=0,c=0,d=(a-new Date(1900,0,31))/864E5;this.dayCyl=d+40;this.monCyl=14;for(a=1900;a<2050&&d>0;a++){c=lYearDays(a);d-=c;this.monCyl+=12}if(d<0){d+=c;a--;this.monCyl-=12}this.year=a;this.yearCyl=a-1864;b=leapMonth(a);this.isLeap=false;for(a=1;a<13&&d>0;a++){if(b>0&&a==b+1&&this.isLeap==false){--a;this.isLeap=true;c=leapDays(this.year)}else c=monthDays(this.year,a);if(this.isLeap==true&&a==b+1)this.isLeap=false;d-=c;this.isLeap==false&&this.monCyl++}if(d==0&&b>0&&a==b+1)if(this.isLeap)this.isLeap=
false;else{this.isLeap=true;--a;--this.monCyl}if(d<0){d+=c;--a;--this.monCyl}this.month=a;this.day=d+1}function YYMMDD(){return"<strong>"+SY+"\u5e74"+(SM+1)+"\u6708"+SD+"\u65e5   "}function weekday(){return"&nbsp;"+(new Array("\u661f\u671f\u65e5","\u661f\u671f\u4e00","\u661f\u671f\u4e8c","\u661f\u671f\u4e09","\u661f\u671f\u56db","\u661f\u671f\u4e94","\u661f\u671f\u516d"))[now.getDay()]+"</strong>"}
function cDay(a,b){var c=new Array("\u65e5","\u4e00","\u4e8c","\u4e09","\u56db","\u4e94","\u516d","\u4e03","\u516b","\u4e5d","\u5341"),d=new Array("\u521d","\u5341","\u5eff","\u5345","\u3000");a=a>10?"\u5341"+c[a-10]:c[a];a+="\u6708";switch(b){case 10:a+="\u521d\u5341";break;case 20:a+="\u4e8c\u5341";break;case 30:a+="\u4e09\u5341";break;default:a+=d[Math.floor(b/10)];a+=c[b%10]}return a}
function solarDay2(){var a=new Lunar(new Date(SY,SM,SD));return"<strong>&nbsp;"+cDay(a.month,a.day)+"</strong>"}function clock(){return YYMMDD()+weekday()+solarDay2()}function searchlog(a){};

