(function(A){A.extend(A.browser,{client:function(){return{width:document.documentElement.clientWidth,height:document.documentElement.clientHeight,bodyWidth:document.body.clientWidth,bodyHeight:document.body.clientHeight}},scroll:function(){return{width:document.documentElement.scrollWidth,height:document.documentElement.scrollHeight,bodyWidth:document.body.scrollWidth,bodyHeight:document.body.scrollHeight,left:document.documentElement.scrollLeft,top:document.documentElement.scrollTop+document.body.scrollTop}},screen:function(){return{width:window.screen.width,height:window.screen.height}},isIE6:A.browser.msie&&A.browser.version==6,isMinW:function(B){return Math.min(A.browser.client().bodyWidth,A.browser.client().width)<=B},isMinH:function(B){return A.browser.client().height<=B}})})(jQuery);(function(A){A.widthForIE6=function(B){var C=A.extend({max:null,min:null,padding:0},B||{});var D=function(){var E=A(document.body);if(A.browser.client().width>=C.max+C.padding){E.width(C.max+"px")}else{if(A.browser.client().width<=C.min+C.padding){E.width(C.min+"px")}else{E.width("auto")}}};D();A(window).resize(D)}})(jQuery);(function(A){A.fn.hoverForIE6=function(B){var C=A.extend({current:"hover",delay:10},B||{});A.each(this,function(){var D=null,E=null,F=false;A(this).bind("mouseover",function(){if(F){clearTimeout(E)}else{var G=A(this);D=setTimeout(function(){G.addClass(C.current);F=true},C.delay)}}).bind("mouseout",function(){if(F){var G=A(this);E=setTimeout(function(){G.removeClass(C.current);F=false},C.delay)}else{clearTimeout(D)}})})}})(jQuery);(function($){$.extend({_jsonp:{scripts:{},counter:1,head:document.getElementsByTagName("head")[0],name:function(callback){var name="_jsonp_"+(new Date).getTime()+"_"+this.counter;this.counter++;var cb=function(json){eval("delete "+name);callback(json);$._jsonp.head.removeChild($._jsonp.scripts[name]);delete $._jsonp.scripts[name]};eval(name+" = cb");return name},load:function(url,name){var script=document.createElement("script");script.type="text/javascript";script.charset=this.charset;script.src=url;this.head.appendChild(script);this.scripts[name]=script}},getJSONP:function(url,callback){var name=$._jsonp.name(callback);var url=url.replace(/{callback};/,name);$._jsonp.load(url,name);return this}})})(jQuery);(function(A){A.fn.jdTab=function(I,C){if(typeof I=="function"){C=I;I={}}var B=A.extend({type:"static",auto:false,source:"data",event:"mouseover",currClass:"curr",tab:".tab",content:".tabcon",itemTag:"li",stay:5000,delay:100,mainTimer:null,subTimer:null,index:0},I||{});var D=A(this).find(B.tab).eq(0).find(B.itemTag),H=A(this).find(B.content);if(D.length!=H.length){return false}var E=B.source.toLowerCase().match(/http:\/\/|\d|\.aspx|\.ascx|\.asp|\.php|\.html\.htm|.shtml|.js|\W/g);var F=function(M,L){B.subTimer=setTimeout(function(){G();if(L){B.index++;if(B.index==D.length){B.index=0}}else{B.index=M}B.type=(D.eq(B.index).attr(B.source)!=null)?"dynamic":"static";K()},B.delay)};var J=function(){B.mainTimer=setInterval(function(){F(B.index,true)},B.stay)};var K=function(){D.eq(B.index).addClass(B.currClass);switch(B.type){default:case"static":var L="";break;case"dynamic":var L=(E==null)?D.eq(B.index).attr(B.source):B.source;D.eq(B.index).removeAttr(B.source);break}if(C){C(L,H.eq(B.index),B.index)}H.eq(B.index).show()};var G=function(){D.eq(B.index).removeClass(B.currClass);H.eq(B.index).hide()};D.each(function(L){A(this).bind(B.event,function(){clearTimeout(B.subTimer);clearInterval(B.mainTimer);F(L,false);return false}).bind("mouseleave",function(){if(B.auto){J()}else{return}})});if(B.type=="dynamic"){F(B.index,false)}if(B.auto){J()}}})(jQuery);(function(A){A.fn.jdSlide=function(K){var B=A.extend({width:null,height:null,pics:[],index:0,type:"num",current:"curr",delay1:200,delay2:8000},K||{});var C=this;var F,H,E,L=true;var J=B.pics.length;var G=function(){var N="<ul style='position:absolute;top:0;left:0;'><li><a href='"+B.pics[0].href+"' target='_blank'><img src='"+B.pics[0].src+"' width='"+B.width+"' height='"+B.height+"' /></a></li></ul>";C.css({"position":"relative"}).html(N);A(function(){D()})};G();var M=function(){var N="<div>";var P;var Q;for(var O=0;O<J;O++){P=(O==B.index)?B.current:"";switch(B.type){case"num":Q=O+1;break;case"string":Q=B.pics[O].alt;break;case"image":Q="<img src='"+B.pics[O].breviary+"' />";default:break}N+="<span class='"+P+"'><a href='"+B.pics[O].href+"' target='_blank'>"+Q+"</a></span>"}N+="</div>";C.append(N);C.find("span").bind("mouseover",function(R){clearInterval(F);clearInterval(E);var S=C.find("span").index(this);if(S==B.index){return}else{E=setInterval(function(){if(L){I(parseInt(S))}},B.delay1)}}).bind("mouseleave",function(R){clearInterval(E);F=setInterval(function(){I(B.index+1,true)},B.delay2)})};var I=function(O,N){if(O==J){O=0}C.find("span").eq(B.index).removeClass(B.current);C.find("span").eq(O).addClass(B.current);H=setInterval(function(){var P=parseInt(C.find("ul").get(0).style.top);var Q=Math.abs(P+B.index*B.height);var S=Math.abs(O-B.index)*B.height;var R=Math.ceil((S-Q)/4);if(Q==S){clearInterval(H);if(N){B.index++;if(B.index==J){B.index=0}}else{B.index=O}L=true}else{if(B.index<O){C.find("ul").css({top:P-R+"px"})}else{C.find("ul").css({top:P+R+"px"})}L=false}},10)};var D=function(){var O="";for(var N=1;N<J;N++){O+="<li><a href='"+B.pics[N].href+"' target='_blank'><img src='"+B.pics[N].src+"' width='"+B.width+"' height='"+B.height+"' /></a></li>"}C.find("ul").append(O);F=setInterval(function(){I(B.index+1,true)},B.delay2);if(B.type){M()}}}})(jQuery);function ResumeError(){return true}window.onerror=ResumeError;if($.browser.isIE6){try{document.execCommand("BackgroundImageCache",false,true)}catch(err){}}var calluri="http://fairyservice.360buy.com/WebService.asmx/MarkEx?callback=?";var loguri="http://csc.360buy.com/log.ashx?type1=$type1$&type2=$type2$&data=$data$&callback=?";callback1=function(A){};log=function(G,H,I,E,C,A,M,J,N,L,F,B){var D="";for(i=2;i<arguments.length;i++){D=D+arguments[i]+"|||"}var K=loguri.replace(/\$type1\$/,escape(G));K=K.replace(/\$type2\$/,escape(H));K=K.replace(/\$data\$/,escape(D));$.getJSON(K,callback1)};mark=function(B,A){$.getJSON(calluri,{sku:B,type:A},callback1);log(1,A,B)};function search(B){var A=document.getElementById(B).value;window.location="http://search.360buy.com/Search?keyword="+A}function login(){location.href="https://passport.360buy.com/new/login.aspx?ReturnUrl="+escape(location.href);return false}function regist(){location.href="https://passport.360buy.com/new/registpersonal.aspx?ReturnUrl="+escape(location.href);return false}function setWebBILinkCount(B){try{if(B.length>0){var C=document.createElement("script");C.type="text/javascript";C.src="http://counter.360buy.com/aclk.aspx?key="+B;document.getElementsByTagName("head")[0].appendChild(C)}}catch(A){}}function gi_ga(A,C){if(typeof(A)=="undefined"){return""}A="^"+A+"^";var D=A.indexOf("^"+C+"=");if(-1==D){return""}else{D+=C.length+2}var B=A.indexOf("^",D);return A.substring(D,B)}function gi_get_monitor_code(B,A){return'<object classid="clsid:D27CDB6E-AE6D-11CF-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0" border="0" width="0" height="0"><param name="movie" value="http://js.miaozhen.com/a.swf"><param name="allowScriptAccess" value="always"><param name="FlashVars" value="caId='+B+"&SPID="+A+"&loc="+document.location.href+"&ref="+document.referrer+'"><embed src="http://js.miaozhen.com/a.swf" pluginspage="http://www.macromedia.com/go/getflashplayer" allowScriptAccess="always" type="application/x-shockwave-flash" width="0" height="0" FlashVars="caId='+B+"&SPID="+A+"&loc="+document.location.href+"&ref="+document.referrer+'"></embed></object>'}var gi_normal__=new Object();gi_normal__.deliver=function(C){if(C.gi_automatchscreen&&screen.width>=1280){C.gi_width=C.gi_width_w}var D="";if(C.gi_isautomonitorclick){D='<div style="position: absolute; width: '+C.gi_width+"px; height: "+C.gi_height+'px; cursor: pointer; background-color: rgb(255, 255, 255); opacity: 0; filter:alpha(opacity=0);" onclick="window.open(\''+C.gi_ldp+"','_blank')\"></div>"}if(C.gi_type=="img"){D+='<a target="_blank" href="'+C.gi_ldp+'"><img height="'+C.gi_height+'" width="'+C.gi_width+'" border="0" src="'+((C.gi_width==C.gi_width_w)?(C.gi_src_w):(C.gi_src))+'"/></a>'}else{if(C.gi_type=="flash"){D+='<embed src="'+((C.gi_width==C.gi_width_w)?(C.gi_src_w):(C.gi_src))+'" width="'+C.gi_width+'" height="'+C.gi_height+'" type="application/x-shockwave-flash" play="true" loop="true" menu="true" wmode="transparent"></embed>'}}var A=gi_ga(C.gi_ldp,"k");var B=gi_ga(C.gi_ldp,"p");document.getElementById("miaozhen"+C.gi_pid).innerHTML+=D+gi_get_monitor_code(A,B)};gi_focus__=new Object();gi_focus__.next=function(){var C=gi_focus__.arg;if(C.gi_automatchscreen&&screen.width>=1280){C.gi_width=C.gi_width_w}var E=C.gi_ad_arr;gi_focus__.now%=E.length;var A='<div onmouseover="clearInterval(gi_focus__.timer);" onmouseout="gi_focus__.timer=setInterval(gi_focus__.next,gi_focus__.arg.gi_interval);" style="width: '+C.gi_width+"px; height: "+C.gi_height+'px; cursor: pointer; background-color: rgb(255, 255, 255); position: relative; " onclick="javascript:window.open(\''+E[gi_focus__.now].gi_ldp+"','_blank')\">";var B;var D="";if(E[gi_focus__.now].gi_type=="img"){var D='<img style="display: block" src="'+((C.gi_width==C.gi_width_w)?(E[gi_focus__.now].gi_src_w):(E[gi_focus__.now].gi_src))+'" width="'+C.gi_width+'px" height="'+C.gi_height+'px" />'}else{if(E[gi_focus__.now].gi_type=="flash"){var D='<embed src="'+((C.gi_width==C.gi_width_w)?(E[gi_focus__.now].gi_src_w):(E[gi_focus__.now].gi_src))+'" width="'+C.gi_width+'" height="'+C.gi_height+'" type="application/x-shockwave-flash" play="true" loop="true" menu="true" wmode="transparent"></embed>'}}A=A+D;for(B=0;B<E.length;B++){if(B==gi_focus__.now){A+='<div onmouseover="gi_focus__.now='+B+';gi_focus__.next();" style="border: 1px solid #3b81cd; right:'+(18*(E.length-B)-18)+'px; bottom: 0px; position: absolute; z-index: 10; width:15px;height:16px; cursor: pointer; background-color: #3b81cd; opacity: 1; filter:alpha(opacity=100); color:white; font-family:Arial; font-size:11px; text-align: center; vertical-align:middle; ">'+(B+1)+"</div>"}else{A+='<div onmouseover="gi_focus__.now='+B+';gi_focus__.next();" style="border: 1px solid #3b81cd; right:'+(18*(E.length-B)-18)+'px; bottom: 0px; position: absolute; z-index: 10; width:15px;height:16px; cursor: pointer; background-color: rgb(255, 255, 255); opacity: 1; filter:alpha(opacity=100); font-family:Arial; font-size:11px; text-align: center; vertical-align:middle; " >'+(B+1)+"</div>"}}A+="</div>";document.getElementById("miaozhen"+C.gi_pid).innerHTML=A;gi_focus__.now++};gi_focus__.deliver=function(B){gi_focus__.arg=B;var C=B.gi_ad_arr;var A=document.createElement("div");A.innerHTML=gi_get_monitor_code(gi_ga(C[0].gi_ldp,"k"),gi_ga(C[0].gi_ldp,"p"));document.getElementById("miaozhen"+B.gi_pid).parentNode.appendChild(A);gi_focus__.now=0;gi_focus__.timer=setInterval(gi_focus__.next,B.gi_interval);gi_focus__.next()};var gi_rotate__=new Object();gi_rotate__.deliver=function(C){var G=C.gi_ad_arr;var A=G[0][Math.floor(Math.random()*G[0].l)];if(C.gi_automatchscreen&&screen.width>=1280){C.gi_width=C.gi_width_w}var D='<div style="position: absolute; width: '+C.gi_width+"px; height: "+C.gi_height+"px; cursor: ";D+='pointer; background-color: rgb(255, 255, 255); opacity: 0; filter:alpha(opacity=0);" ';D+="onclick=\"javascript:window.open('"+G[A].gi_ldp+"','_blank')\"></div>";if(G[A].gi_type=="img"){var F='<img src="'+((C.gi_width==C.gi_width_w)?(G[A].gi_src_w):(G[A].gi_src))+'" width="'+C.gi_width+'" height="'+C.gi_height+'" />'}else{if(G[A].gi_type=="flash"){var F='<embed src="'+((C.gi_width==C.gi_width_w)?(G[A].gi_src_w):(G[A].gi_src))+'" width="'+C.gi_width+'" height="'+C.gi_height+'" type="application/x-shockwave-flash" play="true" loop="true" menu="true" wmode="transparent"></embed>'}}F=D+F;var E=gi_ga(G[A].gi_ldp,"k");var B=gi_ga(G[A].gi_ldp,"p");document.getElementById("miaozhen"+C.gi_pid).innerHTML+=F+gi_get_monitor_code(E,B)};
