var Dom={get:function(a){return(typeof a=="object")?a:document.getElementById(a)},eles:function(b,a){if(typeof(b)=="string"){b=Dom.get(b)}return b.getElementsByTagName(a)},show:function(a,b){Dom.get(a).style.display=(b==0?"":"block")},hide:function(a){Dom.get(a).style.display="none"},toggle:function(a){var b=Dom.get(a);b.style.display=="none"?b.style.display="block":b.style.display="none"}};var 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(b,d,a,e,c){if(typeof a=="undefined"){a=new Date(new Date().getTime()+1000*3600*24*30)}document.cookie=b+"="+escape(d)+((a)?"; expires="+a.toGMTString():"")+((e)?"; path="+e:"; path=/")+((c)?";domain="+c:"")},get:function(b){var a=document.cookie.match(new RegExp("(^| )"+b+"=([^;]*)(;|$)"));if(a!=null){return unescape(a[2])}return null},clear:function(a,c,b){if(this.get(a)){document.cookie=a+"="+((c)?"; path="+c:"; path=/")+((b)?"; domain="+b:"")+";expires=Fri, 02-Jan-1970 00:00:00 GMT"}}},getStyle:function(b,a){if(document.defaultView){return document.defaultView.getComputedStyle(b,null).getPropertyValue(a)}else{a=a.replace(/\-([a-z])([a-z]?)/ig,function(e,d,c){return d.toUpperCase()+c.toLowerCase()});return b.currentStyle[a]}},getPosXY:function(c,d){var b=d?d.slice(0):[0,c.offsetHeight-1],a;do{b[0]+=c.offsetLeft;b[1]+=c.offsetTop;c=c.offsetParent}while(c);return b},Ajax:function(c,j){var h;if(typeof XMLHttpRequest!=="undefined"){h=new XMLHttpRequest()}else{var b=["Microsoft.XmlHttp","MSXML2.XmlHttp","MSXML2.XmlHttp.3.0","MSXML2.XmlHttp.4.0","MSXML2.XmlHttp.5.0"];for(var d=0,a=b.length;d<a;d++){try{h=new ActiveXObject(b[d]);break}catch(f){}}}h.onreadystatechange=g;function g(){if(h.readyState<4){return}if(h.status!==200){return}if(h.readyState===4){j(h)}}h.open("GET",c,true);h.send("")},JsLoader:function(d,a,e,c){var b=document.createElement("script");if(c){b.setAttribute("charset",c)}else{b.setAttribute("charset","utf-8")}b.setAttribute("type","text/javascript");b.setAttribute("src",d);b.id=a;document.getElementsByTagName("head")[0].appendChild(b);if(e){if(Ylmf.Browser.ie){b.onreadystatechange=function(){if(this.readyState=="loaded"||this.readyState=="complete"){e()}}}else{if(Ylmf.Browser.moz){b.onload=function(){e()}}else{e()}}}},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(c,a){var b=location.pathname.replace("/","");b=b.split(".")[0];if(a){b=""}if(Ylmf.Browser.moz){alert("\u8bbe\u5b9a\u5931\u8d25\uff01\u8be5\u64cd\u4f5c\u4e0d\u652f\u6301FireFox\u6d4f\u89c8\u5668\uff01")}else{c.style.behavior="url(#default#homepage)";if(b=="index"||b==""||b.indexOf("/")!==-1){c.setHomePage("http://www.114la.com/")}else{c.setHomePage("http://www.114la.com/?"+b)}}}};function getT(){var a=getEvent();return a.target||a.srcElement}function getEvent(){if(document.all){return window.event}func=getEvent.caller;while(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 countimg=document.createElement("img");var History={save:function(f){try{if(f.tagName=="A"&&f.href.indexOf("http://")==0&&f.href.indexOf("http://"+location.host)!=0||f.parentNode.tagName=="A"){var c=f.href;var a=f.innerHTML;if(f.parentNode.tagName=="A"){c=f.parentNode.href}if(f.rel=="nr"||f.parentNode.rel=="nr"){return}if(a&&c){countimg.src="http://stat.114la.com/index?u="+encodeURIComponent(c)+"&n="+encodeURIComponent(a)+"&q=0&i="+Math.random();var b=a+"+"+c+"_114la_";b+=unescape(Ylmf.Cookie.get("history"));b=escape(b);Ylmf.Cookie.set("history",b);History.show()}}}catch(d){}return true},show:function(){try{var d=Ylmf.Cookie.get("history");d=unescape(d);var b="";if(d!=="null"){history_arg=d.split("_114la_");i=0;linknum=0;len=history_arg.length;for(i=0;i<len;i++){var a=history_arg[i].split("+");if(history_arg[i]!="null"&&b.indexOf(a[0])==-1&&linknum<44){b+='<li><a target="_blank" href="'+a[1]+'" title="'+a[0]+'">'+a[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(c){}},clear:function(){clean=confirm("\u786e\u5b9a\u8981\u6e05\u9664\u6240\u6709\u7684\u6d4f\u89c8\u8bb0\u5f55\uff1f");if(clean){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,j,h,k){var f=document.getElementById(a).getElementsByTagName("a");var b=400;var c;if(h){evts=h}else{evts=["click"]}var l;for(var d=0,g=f.length;d<g;d++){(function(){var e=f[d];m(e)})()}function m(o){for(var n=0,e=evts.length;n<e;n++){(function(){var p=evts[n];if(p=="click"){o["on"+p]=q}else{if(p=="mouseover"){o["on"+p]=function(){c=window.setTimeout(q,b)};o.onmouseout=function(){if(c!=undefined){window.clearTimeout(c)}}}}function q(){if(o.id&&o.id=="smore"||o.href){return k(o)}for(var t=0,r=f.length;t<r;t++){if(f[t].className||f[t].parentNode.className){a=="search-menu"?f[t].parentNode.className="":f[t].className=""}}a=="search-menu"?o.parentNode.className="current":o.className="current";var u=document.getElementById(o.getAttribute("rel"));for(var s=0,r=j.length;s<r;s++){document.getElementById(j[s]).style.display="none"}u.style.display="block";return k(u)}})()}}}function setStyle(d){var a=["default","g2","orange","purple","blue"];var d=Number(d);var b=Dom.get("skin");var c="static/home/skins/";if(a[d]!=="default"){c+=a[d]+"/style.css";Ylmf.Ajax(c,function(){b.href=c});setFont("none");Ylmf.Cookie.set("style",d)}else{b.href="static/home/common.css";setFont("none");if(Ylmf.Cookie.get("style")){Ylmf.Cookie.clear("style")}}}function setFont(b){var a=Dom.get("font");var c="static/home/css/font/";if(b&&b!=="none"){c+=b;c+=".css";a.href=c;Ylmf.Cookie.set("font",b)}else{a.href=c+"none.css";if(Ylmf.Cookie.get("font")){Ylmf.Cookie.clear("font")}}}function setBg(a){var d=document.getElementsByTagName("style")[0];var c="";var b=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"+b+"{border:1px solid red;border-bottom-width:2px;}"}else{c+="#bg-setting a.default{border:1px solid red;border-bottom-width:2px;}"}if(d.styleSheet){d.styleSheet.cssText=c}else{d.innerHTML=c}Ylmf.Cookie.set("bg",a)}function getBgimg(b,a){if(a==Ylmf.Cookie.get("bg")){b.style.border="1px solid red";b.style.borderBottomWidth="2px"}else{b.style.border="1px solid #cccccc";b.style.borderBottomWidth="2px"}}function iscurBg(d){var c=document.getElementById("bg-setting").getElementsByTagName("a");for(var b=0,a=c.length;b<a;++b){c[b].style.border="1px solid #cccccc";c[b].style.borderBottomWidth="2px"}d.style.border="1px solid red";d.style.borderBottomWidth="2px"}function setLayout(h){h=Number(h);var d=Ylmf.Cookie.get("layout");var g=Dom.get("home");var e=["s","m","l"];var b=Dom.eles("b2","iframe")[0];var c="http://www.114la.com/hot/hot2/index.htm";var f="http://www.114la.com/hot/hot3/index.htm";if(h==0){g.className=""}if(h==2){b.width=470;if(b.src!==c){b.src=c}var a=document.createElement("li");a.id="b4";a.innerHTML='<a href="http://spcode.baidu.com/spcode/spClick?tn=ylmf_sp&ctn=0&styleid=1&tourl=http://union.dangdang.com/transfer/transfer.aspx?from=P-267723-ylmf_sp&backurl=http://www.dangdang.com"><img src="static/home/images/banner/dangdang_n.gif" alt="\u5f53\u5f53\u56fe\u4e66" /></a>';Dom.get("banner").appendChild(a)}if(b.src==c&&h!==2){b.src=f;b.width=406;Dom.get("banner").appendChild(Dom.get("b4"))}g.className=e[h];Ylmf.Cookie.set("layout",h)}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);var Gan=new Array("\u7532","\u4e59","\u4e19","\u4e01","\u620a","\u5df1","\u5e9a","\u8f9b","\u58ec","\u7678");var Zhi=new Array("\u5b50","\u4e11","\u5bc5","\u536f","\u8fb0","\u5df3","\u5348","\u672a","\u7533","\u9149","\u620c","\u4ea5");var now=new Date();var SY=now.getFullYear();var SM=now.getMonth();var SD=now.getDate();function cyclical(a){return(Gan[a%10]+Zhi[a%12])}function lYearDays(c){var a,b=348;for(a=32768;a>8;a>>=1){b+=(lunarInfo[c-1900]&a)?1:0}return(b+leapDays(c))}function leapDays(a){if(leapMonth(a)){return((lunarInfo[a-1900]&65536)?30:29)}else{return(0)}}function leapMonth(a){return(lunarInfo[a-1900]&15)}function monthDays(b,a){return(lunarInfo[b-1900]&(65536>>a))?30:29}function Lunar(e){var c,b=0,a=0;var d=new Date(1900,0,31);var f=(e-d)/86400000;this.dayCyl=f+40;this.monCyl=14;for(c=1900;c<2050&&f>0;c++){a=lYearDays(c);f-=a;this.monCyl+=12}if(f<0){f+=a;c--;this.monCyl-=12}this.year=c;this.yearCyl=c-1864;b=leapMonth(c);this.isLeap=false;for(c=1;c<13&&f>0;c++){if(b>0&&c==(b+1)&&this.isLeap==false){--c;this.isLeap=true;a=leapDays(this.year)}else{a=monthDays(this.year,c)}if(this.isLeap==true&&c==(b+1)){this.isLeap=false}f-=a;if(this.isLeap==false){this.monCyl++}}if(f==0&&b>0&&c==b+1){if(this.isLeap){this.isLeap=false}else{this.isLeap=true;--c;--this.monCyl}}if(f<0){f+=a;--c;--this.monCyl}this.month=c;this.day=f+1}function YYMMDD(){return("<strong>"+SY+"\u5e74"+(SM+1)+"\u6708"+SD+"\u65e5   ")}function weekday(){var a=new Array("\u661f\u671f\u65e5","\u661f\u671f\u4e00","\u661f\u671f\u4e8c","\u661f\u671f\u4e09","\u661f\u671f\u56db","\u661f\u671f\u4e94","\u661f\u671f\u516d");return("&nbsp;"+a[now.getDay()]+"</strong>")}function cDay(a,f){var c=new Array("\u65e5","\u4e00","\u4e8c","\u4e09","\u56db","\u4e94","\u516d","\u4e03","\u516b","\u4e5d","\u5341");var b=new Array("\u521d","\u5341","\u5eff","\u5345","\u3000");var e;if(a>10){e="\u5341"+c[a-10]}else{e=c[a]}e+="\u6708";switch(f){case 10:e+="\u521d\u5341";break;case 20:e+="\u4e8c\u5341";break;case 30:e+="\u4e09\u5341";break;default:e+=b[Math.floor(f/10)];e+=c[f%10]}return(e)}function solarDay2(){var b=new Date(SY,SM,SD);var c=new Lunar(b);var a="<strong>&nbsp;"+cDay(c.month,c.day)+"</strong>";return(a)}function clock(){return YYMMDD()+weekday()+solarDay2()}function searchlog(b){};
