text: var sa=sa||{};var _ssa=_ssa||{};(function(f){var b=f.document;var a=f.sa||{};var d=(function(g){try{var l=b.scripts,k="";for(var j=0;j<l.length;j++){k=l[j]?l[j].src:"";if(k.indexOf(g)>-1){return k}}return""}catch(h){}})("da_opt.js");var c=(function(){var q=[],g=false,l=false;function k(){if(!g){g=true;for(var s=0;s<q.length;s++){q[s].fn.call(f,q[s].ctx)}q=[]}}function j(){if(b.readyState==="complete"){k()}}function h(t,s){if(typeof t!=="function"){throw new TypeError("callback for sa.ready(fn) must be a function")}if(g){setTimeout(function(){t(s)},1);return}else{q.push({fn:t,ctx:s})}if(b.readyState==="complete"||(!b.attachEvent&&b.readyState==="interactive")){setTimeout(k,1)}else{if(!l){if(b.addEventListener){b.addEventListener("DOMContentLoaded",k,false);f.addEventListener("load",k,false)}else{b.attachEvent("onreadystatechange",j);f.attachEvent("onload",k)}l=true}}}return h})();a.curJsUrl=d;a.ready=c;if(!f.sa){f.sa=a}})(window);function HashMap(){this.keys=new Array();this.data=new Object();this.put=function(a,b){if(this.data[a]==null){this.keys.push(a)}this.data[a]=b};this.get=function(a){return this.data[a]};this.remove=function(a){if(this.get(a)!=null){delete this.data[a]}}}function Set(){this.isNullAdded=false;var a={};this.contains=function(b){if(b===null){return this.isNullAdded}else{if(b===undefined){return false}else{return a[b]?true:false}}};this.add=function(b){if(b===null){this.isNullAdded=true}else{if(b!==undefined){a[b]=true}}return this};this.addAll=function(c){if(c!==null&&c!==undefined&&c instanceof Array){for(var b=0;b<c.length;b++){this.add(c[b])}}return this};this.remove=function(b){if(b===null){this.isNullAdded=false}else{if(b!==undefined){delete a[b]}}return this};this.removeAll=function(c){if(c!==null&&c!==undefined&&c instanceof Array){for(var b=0;b<c.length;b++){this.remove(c[b])}}return this};this.clear=function(){this.isNullAdded=false;a={};return this};this.size=function(){return this.list().length};this.isEmpty=function(){return this.list().length>0?false:true};this.list=function(){var b=[];if(this.isNullAdded){b.push(null)}for(o in a){if(a.hasOwnProperty(o)){b.push(o)}}return b}}function Base64(){_keyStr="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";this.encode=function(c){var a="";var l,j,g,k,h,f,d;var b=0;c=_utf8_encode(c);while(b<c.length){l=c.charCodeAt(b++);j=c.charCodeAt(b++);g=c.charCodeAt(b++);k=l>>2;h=((l&3)<<4)|(j>>4);f=((j&15)<<2)|(g>>6);d=g&63;if(isNaN(j)){f=d=64}else{if(isNaN(g)){d=64}}a=a+_keyStr.charAt(k)+_keyStr.charAt(h)+_keyStr.charAt(f)+_keyStr.charAt(d)}return a};this.decode=function(c){var a="";var l,j,g;var k,h,f,d;var b=0;c=c.replace(/[^A-Za-z0-9\+\/\=]/g,"");while(b<c.length){k=_keyStr.indexOf(c.charAt(b++));h=_keyStr.indexOf(c.charAt(b++));f=_keyStr.indexOf(c.charAt(b++));d=_keyStr.indexOf(c.charAt(b++));l=(k<<2)|(h>>4);j=((h&15)<<4)|(f>>2);g=((f&3)<<6)|d;a=a+String.fromCharCode(l);if(f!=64){a=a+String.fromCharCode(j)}if(d!=64){a=a+String.fromCharCode(g)}}a=_utf8_decode(a);return a};_utf8_encode=function(b){b=b.replace(/\r\n/g,"\n");var a="";for(var f=0;f<b.length;f++){var d=b.charCodeAt(f);if(d<128){a+=String.fromCharCode(d)}else{if((d>127)&&(d<2048)){a+=String.fromCharCode((d>>6)|192);a+=String.fromCharCode((d&63)|128)}else{a+=String.fromCharCode((d>>12)|224);a+=String.fromCharCode(((d>>6)&63)|128);a+=String.fromCharCode((d&63)|128)}}}return a};_utf8_decode=function(a){var b="";var d=0;var f=c1=c2=0;while(d<a.length){f=a.charCodeAt(d);if(f<128){b+=String.fromCharCode(f);d++}else{if((f>191)&&(f<224)){c2=a.charCodeAt(d+1);b+=String.fromCharCode(((f&31)<<6)|(c2&63));d+=2}else{c2=a.charCodeAt(d+1);c3=a.charCodeAt(d+2);b+=String.fromCharCode(((f&15)<<12)|((c2&63)<<6)|(c3&63));d+=3}}}return b}}function getUrlParamsMap(c){var h=c.substring(c.indexOf("?")+1,c.length);var f=h.split("&");var g=new HashMap();for(var d=0;d<f.length;d++){var a=f[d].split("=");for(var b=0;b<a.length;b++){g.put(a[b],a[++b])}}return g}function isArray(a){return Object.prototype.toString.call(a).toLowerCase()=="[object array]"}function inArray(c,a){for(var b=0;b<a.length;b++){if(c==a[b]){return true}}return false}function getkeyWord(g){var d=g.lastIndexOf("/");var c=g.length;if(g.indexOf("?")!=-1){c=g.indexOf("?")}var f=g.substring(d,c);return f}function getJsFilePath(a){var b="/project/ssa/script/"+a;if(_isSaPrd){b="//res.suning.cn"+b}else{b="//sitsslres.suning.com"+b}return b}function _loadJs(g){var b=g;var f=document.getElementsByTagName("script");for(var c=0;c<f.length;c++){if(f[c].src==b){return}}var a=document.createElement("script");a.type="text/javascript";a.async=true;a.src=b;var d=f[0];d.parentNode.insertBefore(a,d)}var ego_prd_reg=/\.suning\.com/;var ego_pre_v7_reg=/pre\.cnsuning\.com/;var ego_sit_v7_reg=/sit[1-5]\.cnsuning\.com/;var ego_sit1_v7_reg=/sit\.cnsuning\.com/;var _hostName=document.location.hostname;var _thisUrl=document.location.href;var _base64=new Base64();var sa_userId=document.getElementById("wcsa_userId")||document.getElementById("userId"),sa_userId=sa_userId?sa_userId.value:"",sa_userType=document.getElementById("wcsa_userType")||document.getElementById("userType"),sa_userType=sa_userType?sa_userType.value:"",sa_orderId=document.getElementById("orderId")||document.getElementById("wcsa_orderId"),sa_orderId=sa_orderId?sa_orderId.value:"",sa_isNew=document.getElementById("gaga"),sa_isNew=sa_isNew?sa_isNew.value:"",sa_quickRegister=document.getElementById("gagaId"),sa_quickRegister=sa_quickRegister?document.getElementById("gagaId").value:"",sa_resourceType=document.getElementById("resourceType"),_resourceType=sa_resourceType?sa_resourceType.value:"web",sa_errorCode=document.getElementById("errorCode"),_saErrorCode=sa_errorCode?sa_errorCode.value:"",urlPattern=document.getElementById("URLPattern")||document.getElementById("CUrlPattern"),urlPattern=urlPattern?urlPattern.value:"",sa_orderInfo=document.getElementById("orderInfo"),sa_orderInfo=sa_orderInfo?sa_orderInfo.value:"";var __ssaIsGaPage=true;if(_hostName.indexOf("cart.suning.com")!=-1||_hostName.indexOf("shopping.suning.com")!=-1||_hostName.indexOf("reg.suning.com")!=-1||_hostName.indexOf("passport.suning.com")!=-1||_hostName.indexOf("member.suning.com")!=-1||_hostName.indexOf("my.suning.com")!=-1||_hostName.indexOf("favorite.suning.com")!=-1||_hostName.indexOf("review.suning.com")!=-1||_hostName.indexOf("vip.suning.com")!=-1||_hostName.indexOf("assss.suning.com")!=-1||_hostName.indexOf("payment.suning.com")!=-1||_hostName.indexOf("wpay.suning.com")!=-1||_hostName.indexOf("stpay.suning.com")!=-1||_hostName.indexOf("cartsit.cnsuning.com")!=-1||_hostName.indexOf("shoppingsit.cnsuning.com")!=-1||_hostName.indexOf("regsit.cnsuning.com")!=-1||_hostName.indexOf("passportsit.cnsuning.com")!=-1||_hostName.indexOf("membersit.cnsuning.com")!=-1||_hostName.indexOf("mysit.cnsuning.com")!=-1||_hostName.indexOf("favoritesit.cnsuning.com")!=-1||_hostName.indexOf("reviewsit.cnsuning.com")!=-1||_hostName.indexOf("vipsit.cnsuning.com")!=-1||_hostName.indexOf("asssssit.cnsuning.com")!=-1||_hostName.indexOf("paymentsit.cnsuning.com")!=-1||_hostName.indexOf("wpaysit.cnsuning.com")!=-1||_hostName.indexOf("stpaysit.cnsuning.com")!=-1||_hostName.indexOf("cartpre.cnsuning.com")!=-1||_hostName.indexOf("shoppingpre.cnsuning.com")!=-1||_hostName.indexOf("regpre.cnsuning.com")!=-1||_hostName.indexOf("passportpre.cnsuning.com")!=-1||_hostName.indexOf("memberpre.cnsuning.com")!=-1||_hostName.indexOf("mypre.cnsuning.com")!=-1||_hostName.indexOf("favoritepre.cnsuning.com")!=-1||_hostName.indexOf("reviewpre.cnsuning.com")!=-1||_hostName.indexOf("vippre.cnsuning.com")!=-1||_hostName.indexOf("asssspre.cnsuning.com")!=-1||_hostName.indexOf("paymentpre.cnsuning.com")!=-1||_hostName.indexOf("wpaypre.cnsuning.com")!=-1||_hostName.indexOf("stpaypre.cnsuning.com")!=-1||_hostName.indexOf("order.suning.com")!=-1||_hostName.indexOf("orderpre.cnsuning.com")!=-1||_hostName.indexOf("ordersit.cnsuning.com")!=-1){__ssaIsGaPage=false}var _dasaMap=_dasaMap||new HashMap();var _dagaMap=_dagaMap||new HashMap();function _dapush(){_dasaMap.put("_sapush","");_dagaMap.put("_gapush","")}function _dapushbook(){_dasaMap.put("_sapushbook","");_dagaMap.put("_gapushbook","")}(function(d,f,k,j,h,c,b){if(!__ssaIsGaPage){return false}d.GoogleAnalyticsObject=h;d[h]=d[h]||function(){(d[h].q=d[h].q||[]).push(arguments)},d[h].l=1*new Date();c=f.createElement(k),b=f.getElementsByTagName(k)[0];c.async=1;c.src=j;b.parentNode.insertBefore(c,b)})(window,document,"script","//www.google-analytics.com/analytics.js","ga");if(__ssaIsGaPage){try{ga("create","UA-1730956-18","auto");ga("require","displayfeatures");if(_hostName.indexOf("product.suning.com")>-1){ga("set","dimension1",document.getElementById("ga_itemDataBean_itemID")?document.getElementById("ga_itemDataBean_itemID").value:"");ga("set","dimension2","product");ga("set","dimension3",(sn&&sn.categoryName1?sn.categoryName1:"")+"|"+(sn&&sn.categoryName2?sn.categoryName2:"")+"|"+(sn&&sn.categoryName3?sn.categoryName3:""));ga("set","dimension4",sn&&sn.brandName?sn.brandName:"");ga("set","dimension5",sn&&sn.promotionPrice?sn.promotionPrice:"")}ga("send","pageview")}catch(e){}}_addAllYesiDiggerCode();function _addAllYesiDiggerCode(){var c=new Array();c.push("//www\\.suning\\.com/emall/cprd");c.push("//product\\.suning\\.com");c.push("//list\\.suning\\.com");c.push("//search\\.suning\\.com");c.push("/epp-paycore/payGateWay/show\\.htm");c.push("/payment\\.suning\\.com/epps-ppps");c.push("/payment\\.suning\\.com/epps-pppm");c.push("/payment\\.suning\\.com/epps-ppms");c.push("/paytestpre\\.suning\\.com/epps-ppps");c.push("/paytestpre\\.suning\\.com/epps-pppm");c.push("/paytestpre\\.suning\\.com/epps-ppms");c.push("/paymentsit\\.cnsuning\\.com/epps-ppps");c.push("/paymentsit\\.cnsuning\\.com/epps-pppm");c.push("/paymentsit\\.cnsuning\\.com/epps-ppms");c.push("/SNOrderPaySuccessView");c.push("/OrderItemDisplay");c.push("/SNCart2ManageCmd");c.push("/SNPayBeforeComfirmView");c.push("/SNUserRegisterComfirmView");c.push("/reg\\.suning\\.com/b2cregsucc");c.push("/reg\\.suning\\.com/compregsucc");c.push("/reg\\.suning\\.com/b2bcardregsucc");c.push("cuxiao\\.suning\\.com");c.push("/cuxiao_");var b=false;for(var a=0;a<c.length;a++){if((new RegExp(c[a]).test(_thisUrl))){b=true;break}}if(!b){_addIdiggerScript()}}function _addIdiggerScript(){var a=document.createElement("script");a.text='var _wmmq = _wmmq || [];var _wmmq_param1 = ["db", "ifc"];var _wmmq_param2 = ["sitecode", "T-000130-01"];var _wmmq_param_end = ["_trackPoint"];var _custno = "";var _cookiesArray = document.cookie.split("; ");for (var i = 0; i < _cookiesArray.length; i++) {var _cookieInfo = _cookiesArray[i].split("=");if (_cookieInfo[0] == "custno") {_custno = decodeURIComponent(_cookieInfo[1] ? _cookieInfo[1] : "");break;}}var _wmmq_param3 = ["userid", _custno, "userflag", ""];if (isArray(_wmmq)) {if (_wmmq.length == 0) {_wmmq.push(_wmmq_param1, _wmmq_param2);_wmmq.push(_wmmq_param3);_wmmq.push(_wmmq_param_end);} else {var _wmmq_param_list = new Set();var _wmmq_param;for (x in _wmmq) { _wmmq_param = _wmmq[x]; _wmmq_param_list.add(_wmmq_param.toString());} if (!_wmmq_param_list.contains(_wmmq_param1.toString())) {_wmmq.push(_wmmq_param1);} if (!_wmmq_param_list.contains(_wmmq_param2.toString())) {_wmmq.push(_wmmq_param2);} if (!_wmmq_param_list.contains(_wmmq_param3.toString())) {_wmmq.push(_wmmq_param3);} if (!_wmmq_param_list.contains(_wmmq_param_end.toString())) {_wmmq.push(_wmmq_param_end);}}}';a.setAttribute("type","text/javascript");if(document.body){document.body.appendChild(a)}}(function(){var f=("https:"==document.location.protocol?"//2":"//1")+".allyes.com.cn/aywmq.js";var c=("https:"==document.location.protocol?"//2":"//1")+".qtmojo.cn/aywmq_qt.js";if(!d(f)&&!d(c)){var a=document.createElement("script");a.type="text/javascript";a.async=true;a.src=c;var b=document.getElementsByTagName("script")[0];b.parentNode.insertBefore(a,b)}function d(k){if(k==undefined||k==null||k==""){return false}var g=document.getElementsByTagName("script");if(g==undefined||g==null){return false}var j;for(var h=0;h<g.length;h++){j=g[h];if(j.src==null||j.src==""){continue}if(j.src.indexOf(k)!=-1){return true}}return false}})();var _samap=_samap||new HashMap();var sa=sa||{};if(ego_prd_reg.test(_hostName)||sa.env=="prd"){_samap.put("_isPrd","true")}_saAsynLoad();var _initData=[];_samap.put("_saPvDatas",_initData);var fUrl=document.referrer;if(_thisUrl.indexOf("/SNCart2ManageCmd?")!=-1||_thisUrl.indexOf("/SNPayBeforeComfirmView?")!=-1||_thisUrl.indexOf("/payGateWay/show.htm?")!=-1||_thisUrl.indexOf("/payment.suning.com/epps-ppps")!=-1||_thisUrl.indexOf("/payment.suning.com/epps-pppm")!=-1||_thisUrl.indexOf("/payment.suning.com/epps-ppms")!=-1||_thisUrl.indexOf("/paytestpre.suning.com/epps-ppps")!=-1||_thisUrl.indexOf("/paytestpre.suning.com/epps-pppm")!=-1||_thisUrl.indexOf("/paytestpre.suning.com/epps-ppms")!=-1||_thisUrl.indexOf("/paymentsit.cnsuning.com/epps-ppps")!=-1||_thisUrl.indexOf("/paymentsit.cnsuning.com/epps-pppm")!=-1||_thisUrl.indexOf("/paymentsit.cnsuning.com/epps-ppms")!=-1||_thisUrl.indexOf("/cart2/private/cart2Show.do")!=-1||_thisUrl.indexOf("/cart2/private/cartSplitOrdersView.do")!=-1||_thisUrl.indexOf("/SNOrderPaySuccessView")!=-1||_thisUrl.indexOf("/SNMWPaySubmitView")!=-1||_thisUrl.indexOf("/cartFourOrdersView")!=-1||_thisUrl.indexOf("/project/cart/cart2")!=-1||_thisUrl.indexOf("/project/cart/cartSplitOrders")!=-1||_thisUrl.indexOf("/project/cart/cartFourOrdersView")!=-1||_thisUrl.indexOf("/project/cart/weixinPaySuccess")!=-1||_thisUrl.indexOf("//wpay.suning.com/epps-pwg/showDefault.htm")!=-1||_thisUrl.indexOf("//wpaypre.cnsuning.com/epps-pwg/showDefault.htm")!=-1||_thisUrl.indexOf("//wpaysit.cnsuning.com/epps-pwg/showDefault.htm")!=-1){var data1=sa_orderId;var data2=sa_isNew?sa_isNew:"";var orderDatas=[data1];_samap.put("_saOrderDatas",orderDatas);if(data2.indexOf("true")!=-1){var data3=sa_quickRegister;var registerDatas=[data3];_samap.put("_saRegisterDatas",registerDatas)}}else{if(_thisUrl.indexOf("/SNUserRegisterComfirmView")!=-1||_thisUrl.indexOf("/SNMobileRegisterConfirmView")!=-1||_thisUrl.indexOf("/SNMWUserRegisterSuccessView")!=-1||_thisUrl.indexOf("/reg.suning.com/b2cregsucc")!=-1||_thisUrl.indexOf("/reg.suning.com/compregsucc")!=-1||_thisUrl.indexOf("/reg.suning.com/b2bcardregsucc")!=-1||_thisUrl.indexOf("/reg.suning.com/wap/succjump")!=-1||_thisUrl.indexOf("/wap/register/getRegisterSuccess")!=-1||_thisUrl.indexOf("/regpre.cnsuning.com/b2cregsucc")!=-1||_thisUrl.indexOf("/regpre.cnsuning.com/compregsucc")!=-1||_thisUrl.indexOf("/regpre.cnsuning.com/b2bcardregsucc")!=-1||_thisUrl.indexOf("/regpre.cnsuning.com/wap/succjump")!=-1){var data1=sa_userId;var registerDatas=[data1];_samap.put("_saRegisterDatas",registerDatas)}}var productId;if(_thisUrl.indexOf("/rps-web/rp/showActivity_")>-1||_thisUrl.indexOf("/snupgbpv_10052_")>-1||_thisUrl.indexOf("/snmwsgf_")>-1){var proObject=document.getElementById("ga_itemDataBean_itemID");productId=proObject?proObject.value:""}function _sapush(){var a;try{var d=document.getElementById("ga_itemDataBean_itemID");if(d){a=d.value}var h="";var c=document.getElementById("mdmCityId");if(c){h=c.value}var j="";var f=document.getElementById("shipOffset");if(f){j=f.value}var g=[a,h,j];_samap.put("_saStorageDatas",g)}catch(b){}}function _sapushbook(){var a;try{var d=document.getElementById("ga_itemDataBean_itemID");if(d){a=d.value}var h="";var c=document.getElementById("mdmCityId");if(c){h=c.value}var j="";var f=document.getElementById("shipOffset");if(f){j=f.value}var g=[a,h,j];_samap.put("_saStorageDatas",g)}catch(b){}}function _searchPush(l){var u=document.location.href;var v=u.substring(u.indexOf("?")+1,u.length);var y=v.split("&");var z=new HashMap();for(var s=0;s<y.length;s++){var t=y[s].split("=");for(var w=0;w<t.length;w++){z.put(t[w],t[++w])}}var a=z.get("searchKeywords");var j=(!a||a==null||a=="undefined")?"":a;var h=l;var g="0";var q=z.get("groupName");var f=(!q||q==null||q=="undefined")?"":q;var k=z.get("groupNameValue");var d=(!k||k==null||k=="undefined")?"":k;var x=z.get("catalogId");var c=(!x||x==null||x=="undefined")?"":x;var b=[j,h,g,f,d,c];_samap.put("_saSearchDatas",b)}function _saAsynLoad(){_dasaMap.put=function(a,b){if(_dasaMap.data[a]==null){_dasaMap.keys.push(a)}_dasaMap.data[a]=b;_saAsynCheck()};_saAsynCheck()}function _saAsynCheck(){if(_dasaMap.get("_sapush")!=null){_sapush();_dasaMap.remove("_sapush")}if(_dasaMap.get("_sapushbook")!=null){_sapushbook();_dasaMap.remove("_sapushbook")}if(_dasaMap.get("_searchPush")!=null){_searchPush(_dasaMap.get("_searchPush"));_dasaMap.remove("_searchPush")}}var _saPageViewId=_createPageViewId();_initSaPvHasSendFlg();sa.hotClickObj={count:0,pointSet:""};var _snma="_snma";var _snmaKeysArr=["constant","visitorid","firstViewTime","lastViewTime","thisViewTime","totalPvs","totalVisits"];var _snmb="_snmb";var _snmbKeysArr=["visitid","inTime","outTime","views"];var _snmc="_snmc";var _snmp="_snmp";var _snsr="_snsr";var _snsrKeysArr=["source","medium","content","campaign","theme"];var ad_sp;var _snmz="_snmz";var _snmzKeysArr=["pvid","clickDots"];var _snck="_snck";var _snms="_snms";var _snml="_snml";var _snmx="_snmx";var _snmk="_snmk";var _snsd="_snsd";var _snmo="_snmo";var _snmt="_snmt";var _snmg="_snmg";var _snme="_snme";var _tag="|";var _no_data_tag="";var _splited="*:*";var expires_ms_2years=365*2*24*60*60*1000;var expires_ms_30mins=30*60*1000;var expires_ms_24hours=86400000;var _protocol=location.protocol;var _snProtocol="//";var _isSaPrd=true;var _saServer=_getSaServer(_isSaPrd);var _toTitle=document.title;var _toUrl=_getToUrl();var _fromUrl=_getFromUrl();var _fromTitle=_no_data_tag;var _searchersArr=new Array(".google.com",".baidu.com",".soso.com",".bing.com",".yahoo.com",".sogou.com",".360.cn",".so.com",".youdao.com",".haosou.com");var _sourceMediumArr=new Array("direct","referral","organic");var _inTime=_no_data_tag;var _pvFlag=0;var _crossDayFlag=0;var memberID=_getCookie("custno")?_getCookie("custno"):"-";var loginUserName=_getCookie("idsLoginUserIdLastTime")?_getCookie("idsLoginUserIdLastTime"):"";var loginStatus=_getCookie("logonStatus")?_getCookie("logonStatus"):"";var idsEppLastLogin=_getCookie("idsEppLastLogin")?_getCookie("idsEppLastLogin"):"";var ua=navigator.userAgent,pf=navigator.platform,p="push",m="match",i="indexOf",npo="unknow but like Phone",npa="unknow but like Tablet",n="unknown",r,os=_getOSAndTer(),Bro=_getExplore(),OS,Ter;os.length==2?(OS=os[0],Ter=os[1]):!1;var IE=document.all?true:false;var saCustomDataUtil=new SaCustomDataUtil();var pageSaleCookieUtil=new PageSaleCookieUtil();var pageViewUtil=new PageViewUtil();sa.ready(_saStart);_loadJs(getJsFilePath("4a800e24-7b53-40a4-8113-cbc9a1305f4b/ssa.js"));_samap.put=function(a,b){if(_samap.data[a]==null){_samap.keys.push(a)}_samap.data[a]=b;_saStart()};var uvId,sessionId,basicIds,trafficSource;(function(){var c=frames.length;if(c>0){for(var a=0;a<c;a++){try{frames[a].document.onclick=_updateSnml}catch(b){}}}})();AddListener(document,"click",function(a){_globalClick(a)});AddListener(window,"unload",function(a){_sendClickPoint(true)});function _globalClick(b){try{var a=b||window.event||arguments[0];_putMouseXY(a)}catch(c){}}function _putMouseXY(c){try{var g=0,b=0;var a=c||window.event;if(a.pageX){g=a.pageX;b=a.pageY}else{g=a.clientX+document.body.scrollLeft-document.body.clientLeft;b=a.clientY+document.body.scrollTop-document.body.clientTop}g=((g+"").indexOf(".")!=-1)?g.toFixed(2):g;b=((b+"").indexOf(".")!=-1)?b.toFixed(2):b;var f="("+g+","+b+")";if(sa.hotClickObj.pointSet==""){sa.hotClickObj.pointSet=f}else{sa.hotClickObj.pointSet=sa.hotClickObj.pointSet+";"+f}sa.hotClickObj.count=sa.hotClickObj.count+1;_sendClickPoint()}catch(d){}}function _sendClickPoint(h){try{if(h==undefined||h==null){h=false}if(sa.hotClickObj.count==0){return false}if(!h&&sa.hotClickObj.count<10){return false}var g=_getOnlyId();var b=_encode(sa.hotClickObj.pointSet);var c=_getSense();var j=_getPrinColor();var d=_getSnmaMapFromCookie();var k=d.get("visitorid");var a=_snProtocol+_getSaServer(_isSaPrd,true)+"/hotClick.gif";a=a+"?oId="+g+"&pvId="+_saPageViewId+"&ponits="+b+"&url="+_encode(_toUrl)+"&pageType="+_resourceType+"&bro="+Bro+"&sense="+c+"&color="+j+"&visId="+k+"&memId="+memberID+"&hidUrlPattern="+urlPattern;_httpGifSend(a);sa.hotClickObj.pointSet="";sa.hotClickObj.count=0}catch(f){}}function _saStart(){if(_samap.get("_saPvDatas")!=null){var k=[loginUserName];loginUserName?k.push("R"):k.push("G");_saInit(_arrayToString(k));_samap.remove("_saPvDatas")}if(_samap.get("_saSearchDatas")!=null){var d=_samap.get("_saSearchDatas");var g=_arrayToString(d);_sendSearchDatas(g);_samap.remove("_saSearchDatas")}if(_samap.get("_saOrderDatas")!=null){var h=_samap.get("_saOrderDatas");var b=_arrayToString(h);_sendOrderDatas(b);_samap.remove("_saOrderDatas")}if(_samap.get("_saRegisterDatas")!=null){var j=_samap.get("_saRegisterDatas");var a=_arrayToString(j);_sendRegisterDatas(a);_samap.remove("_saRegisterDatas")}if(_samap.get("_saStorageDatas")!=null){var f=_samap.get("_saStorageDatas");var c=_arrayToString(f);_sendStorageDatas(c);_samap.remove("_saStorageDatas")}}function getHash(){var a=location.href.match(/#(.*)$/);return a?a[1]:""}function _getToUrl(){return document.location.href||"-"}function _getFromUrl(){var h=document.referrer;var j=document.location.href;var f=_getCookie(_snml);if((_protocol=="https:"&&h!=""&&f&&f.substring(0,6)=="https:"&&f!=h)||(_protocol=="http:"&&h==""&&f&&f.substring(0,6)=="https:")||(_protocol=="https:"&&h==""&&f&&f.substring(0,6)=="https:")||(h!=""&&f&&f!=h)){h=f}if(f){_delCookie(_snml)}if(j!=""&&(j.indexOf("sourceUrl4Sa")!=-1)){var b=SaPick(j,"sourceUrl4Sa","&");h=decodeURIComponent(b)}else{if((!h||h==null||h=="")&&j!=""&&(j.indexOf("returnUrl")!=-1)){var d=j.substring(j.indexOf("?")+1,j.length);var g=d.split("&");for(var c=0;c<g.length;c++){var a=g[c].split("=");if(a[0]=="returnUrl"){h=a[1]}}}}return h}function _saPageViewInit(){try{var a=[loginUserName];loginUserName?a.push("R"):a.push("G");sa.pvHasSend=false;urlPattern=document.getElementById("URLPattern")||document.getElementById("CUrlPattern"),urlPattern=urlPattern?urlPattern.value:"";_saInit(_arrayToString(a))}catch(b){}}function _saInit(c){if(sa.pvHasSend&&sa.pvHasSend==true){return false}_putSnmaTimesAndViews();_checkSnmc();_putSnsr();_putSnmb();var g=_getCookie(_snma);var s=_getSnmbAndParam(c);var h=_getSnmx();var j=_getCookie(_snsr);var a=_getSnmzMapFromCookie();var q=_getStrFromKeysArrAndValuesStr(_snmzKeysArr,a);var d=_saErrorCode;if((typeof g=="undefined")&&(typeof j=="undefined")){var b=new Date();var f=_getOnlyId();var t=["1",f,b.getTime(),b.getTime(),b.getTime(),1,1];g=_arrayToString(t);s=s.substring(0,s.lastIndexOf(_tag)+1)+"1";var l=_getSnsrMapFromCookie();l=_checkSource(l);l=_checkSnsr(l);j=_getStrFromKeysArrAndValuesStr(_snsrKeysArr,l)}try{_sendInitData(g,s,h,j,q,d);sa.pvHasSend=true}catch(k){sa.pvHasSend=false}_addCookie(_snmp,_saPageViewId,"/","","");_delCookie(_snmz);_delCookie(_snck);_refreshSnmbInTime()}var GetMainProId=function(){var c="-",b;var a=document.getElementById("ga_itemDataBean_itemID")||document.getElementById("justAddPartNumber");if(a){b=a.value;b=(b.length==18?b.substring(9):b)}if(b){c=b}return c};function _analyseExpoTags(l,d){var g=document.getElementsByTagName(l),k="",b="baoguang_",a=new RegExp("^"+b),h=1;if(arguments.length==2){b=d;a=new RegExp("^"+b);h=2}for(var j=0,f=g.length;j<f;j++){var c=g[j].id;a.test(c)?(c=c.substring(9),k+=c+"#@#",k=k.replace(/\|/g," ")):!1}if(k!==""){k=k.substring(0,k.length-3),_sendExpoDatas(k,h)}else{_sendExpoDatas("-",h)}}function SaPick(g,d,f){var b="-",a;if(!IsEmpty(g)&&!IsEmpty(d)&&!IsEmpty(f)){a=g.indexOf(d);if(a>-1){var c=g.indexOf(f,a);if(c<0){c=g.length}b=g.substring(a+d.length+1,c)}}return b}function IsEmpty(a){return(undefined==a||""==a||"-"==a)}function SaAjax(){var a=this;a.sendByInnerImage=function(d){if(document.body){var g=document.createElement("iframe");g.height="0";g.width="0";g.style.display="none";g.style.visibility="hidden";var b=function(){g&&g.parentNode&&g.parentNode.removeChild(g)&&(g=null)};AddListener(window,"beforeunload",b);var c=false;var f=function(){if(!c){try{c=true;var k=g.contentWindow.document;var h=k.createElement("img");h.onload=h.onerror=function(){h.onload=h.onerror=null;h=null;b();if(window.removeEventListener){window.removeEventListener("beforeunload",b,false)}else{window.detachEvent&&window.detachEvent("onbeforeunload",b)}};h.src=d}catch(j){}}};AddListener(g,"load",f);document.body.appendChild(g)}else{setTimeout(function(){a.sendByInnerImage(d)},100)}};a.sendByIframe=function(b){if(document.body){var c=document.getElementById("_iframe_sa_sendByIframe");if(c){return false}c=document.createElement("iframe");c.id="_iframe_sa_sendByIframe";c.src=b;c.height="0";c.width="0";c.style.display="none";c.style.visibility="hidden";document.body.appendChild(c)}else{setTimeout(function(){a.sendByIframe(b)},100)}}}function AddListener(b,c,d,a){if(b.addEventListener){b.addEventListener(c,d,!!a)}else{b.attachEvent&&b.attachEvent("on"+c,d)}}function _getSaServer(b,c){c=!!c;if(b){if(c){return"sa.suning.cn"}else{return"click.suning.cn/sa"}}else{var a=sa.curJsUrl;if(a&&a.indexOf("pre")>-1){if(c){return"sasit.suning.cn"}else{return"clickpre.suning.cn/sa"}}else{if(c){return"sasit.suning.cn"}else{return"clicksit.suning.cn/sa"}}}}function _getSnmx(){var b=_getCookie(_snck);if(!b||b==null||b==""){b=_no_data_tag}var a=OS+_tag+Bro+_tag+_getSense()+_tag+_getPrinColor()+_tag+_getFlash()+_tag+_getJava()+_tag+b;return a}function _getOSAndTer(){try{var f=[];if(/AppleWebKit.*Mobile/i.test(ua)||(/Android|SymbianOS|Windows Phone|Tablet PC|NOKIA|Nokia|SAMSUNG|LG|NEC|TCL|Alcatel|BIRD|DBTEL|Dopod|PHILIPS|HAIER|LENOVO|MOT-|SonyEricsson|SIE-|Amoi|ZTE/i.test(ua))){if(r=ua[m](/(iPhone|iPod touch|iPad).*(OS [\d_]+)/i)){f[p](r[2]);f[p](r[1])}else{if(r=ua[m](/(Windows Phone( | OS )[\d\.]+).*; ([^;]+)\)$/i)){f[p](r[1]);f[p](r[3])}else{if(r=ua[m](/(Windows NT [\d\.]+).*(Tablet PC [\d\.]+)/i)){f[p](r[1]);f[p](r[2])}else{if(ua[i]("Windows Phone")>-1){f[p]("Windows Phone");f[p](npo)}else{if(ua[i]("Windows NT")>-1){f[p]("windows NT");f[p](npa)}else{if(r=ua[m](/(Android [\d\.]+);.*? ([^;]*?);? Build\//i)){f[p](r[1]);f[p](r[2])}else{if(r=ua[m](/(Android [\d\.]+);[^;]*; ([^\)]*?)\)/i)){f[p](r[1]);f[p](r[2])}else{if(ua[i]("Android")>-1&&ua[i]("Mobile")>-1){f[p]("Android");if(ua[i]("Xiaomi")>-1){f[p]("Xiaomi")}else{f[p](npo)}}else{if(ua[i]("Andriod")>-1){f[p]("Android");f[p](npa)}else{f[p](n)[p](n)}}}}}}}}}}else{var h=(pf=="Win32")||(pf=="Windows");var j=(pf=="Mac68K")||(pf=="MacPPC")||(pf=="Macintosh")||(pf=="MacIntel");if(j){f[p]("Mac")}var c=(pf=="X11")&&!h&&!j;if(c){f[p]("Unix")}var a=(pf[i]("Linux")>-1);if(a){f[p]("Linux")}if(h){var g=ua[i]("Windows NT 5.0")>-1||ua[i]("Windows 2000")>-1;if(g){f[p]("Win2000")}var q=ua[i]("Windows NT 5.1")>-1||ua[i]("Windows XP")>-1;if(q){f[p]("WinXP")}var b=ua[i]("Windows NT 5.2")>-1||ua[i]("Windows 2003")>-1;if(b){f[p]("Win2003")}var b=ua[i]("Windows NT 6.0")>-1||ua[i]("Windows Vista")>-1;if(b){f[p]("WinVista")}var b=ua[i]("Windows NT 6.1")>-1||ua[i]("Windows 7")>-1;if(b){f[p]("Win7")}var l=ua[i]("Windows NT 6.2")>-1;if(l){f[p]("Windows 8")}var d=ua[i]("Windows NT 6.3")>-1;if(d){f[p]("Windows 8.1")}}f[p]("PC")}f.length>2?f=f.slice(0,2):f.length==1?f[p](n):f.length==0?f[p](n)[p](n):f;return f}catch(k){}return["unknown","unknown"]}function _getExplore_old(){try{var b={};var c;(c=ua[m](/ucbrowser\/[\d\.]+/i))?b.uc=c[0]:(c=ua[m](/msie ([\d.]+)/i))?b.ie=c[1]:(c=ua[m](/firefox\/([\d.]+)/i))?b.firefox=c[1]:(c=ua[m](/chrome\/([\d.]+)/i))?b.chrome=c[1]:(c=ua[m](/opera.([\d.]+)/i))?b.opera=c[1]:(c=ua[m](/version\/([\d.]+).*safari/i))?b.safari=c[1]:0;var a="";if(b.uc){a=b.uc}else{if(b.ie){a="msie "+b.ie}else{if(b.firefox){a="firefox "+b.firefox}else{if(b.chrome){a="chrome "+b.chrome}else{if(b.opera){a="opera "+b.opera}else{if(b.safari){a="safari "+b.safari}else{a="unknown Browser"}}}}}}return a}catch(d){}return"unknown"}function _getExplore(){try{var a={uc:" ubrowser|ucbrowser|ucweb",baidu:"bidubrowser|baiduhd|baidubrowser",qq:"qqbrowser|mqqbrowser","2345":"2345explorer|Mb2345Browser",weixin:"micromessenger",lbbrowser:"lbbrowser|liebaofast","360":"360se|360ee|QHBrowser",firefox:"firefox|FxiOS",maxthon:"maxthon|mxbrowser|MXiOS",theworld:"theworld",sougou:"metasr|sogoumobilebrowser",edge:" edge",kwe:" kwe",sleipnir:"sleipnir",xiaomi:"miuiBrowser",baiduboxapp:"baiduboxapp",opera:"opr|opios","snclient-wap":"SNCLIENT-WAP"};var c="unknown";for(var b in a){var f=new RegExp("(?:"+a[b]+") ?\\/?(\\d+\\.*\\d*)?","i");if(f.test(ua)){c=b+" "+(RegExp.$1?RegExp.$1:"");break}}if(c=="unknown"){var d;if(d=ua[m](/(msie|ie) ([\d.]+)/i)){c="msie "+d[2]}if((d=ua[m](/(chrome|CriOS)\/([\d.]+)/i))){c="chrome "+d[2]}if(d=ua[m](/opera.([\d.]+)/i)){c="opera "+d[1]}if(d=ua[m](/version\/([\d.]+).*safari/i)){c="safari "+d[1]}}return c}catch(g){return"unknown"}}function _getSense(){return window.screen.width+"x"+window.screen.height}function _getPrinColor(){return window.screen.colorDepth+"bit"}function _getFlash(){try{var f="";var n=navigator;if(n.plugins&&n.plugins.length){for(var ii=0;ii<n.plugins.length;ii++){if(n.plugins[ii].name.indexOf("Shockwave Flash")!=-1){f=n.plugins[ii].description.split("Shockwave Flash ")[1].split(" ")[0];break}}}else{if(window.ActiveXObject){for(var ii=10;ii>=2;ii--){try{var fl=eval("new ActiveXObject('ShockwaveFlash.ShockwaveFlash."+ii+"');");if(fl){f=ii+".0";break}}catch(e){}}}}if(f!=""){return 1}}catch(e){}return 0}function _getJava(){try{if(navigator.javaEnabled()){return 1}}catch(a){}return 0}function _putSnmz(c){var a=_getSnmzMapFromCookie();a.put("clickDots",a.get("clickDots").replace(_no_data_tag,""));var b=_getStrFromKeysArrAndValuesStr(_snmzKeysArr,a);b=b+c;_addCookie(_snmz,b,"/","","")}function _putSnmaTimesAndViews(){var b=new Date();var a=_getSnmaMapFromCookie();a.put("lastViewTime",a.get("thisViewTime"));a.put("thisViewTime",b.getTime());a.put("totalPvs",Number(a.get("totalPvs"))+1);_setSnmaMapToCookie(a);uvId=a.get("visitorid")}function _putSnsr(){var a=_getSnsrMapFromCookie();a=_checkSource(a);a=_checkSnsr(a);_setSnsrMapToCookie(a);trafficSource=_getCookie(_snsr)}function _checkSource(g){try{var v=new Array("wd","q","w","query","p","word");var l=0;var h=0;if(_fromUrl!=""){for(var b=0;b<_searchersArr.length;b++){var u=_searchersArr[b];if(_fromUrl.indexOf(u)!=-1){g.put("source",u.substring(1,u.length));g.put("medium",_sourceMediumArr[1]);g.put("content",_no_data_tag);g.put("campaign",_no_data_tag);g.put("theme",_no_data_tag);var q=_fromUrl.substring(_fromUrl.indexOf("?")+1,_fromUrl.length);var c=q.split("&");for(var t=0;t<c.length;t++){var f=c[t].split("=");for(var a=0;a<v.length;a++){if(v[a]==f[0]){g.put("medium",_sourceMediumArr[2]);g.put("theme",f[1]+_splited);break}}h=a;if(h<v.length){break}}break}}l=b;if(l==_searchersArr.length||(l<_searchersArr.length&&h==v.length)){var k=_getDomainByUrl(location.href);var s=_getDomainByUrl(_fromUrl);if((s.indexOf(".suning.com")==-1&&s.indexOf(".cnsuning.com")==-1&&s.indexOf(".suningpay.com")==-1)||s.indexOf("union.suning.com")!=-1){g.put("source",_getDomainByUrl(_fromUrl));g.put("medium",_sourceMediumArr[1]);g.put("content",_no_data_tag);g.put("campaign",_no_data_tag);g.put("theme",_no_data_tag);for(var b=0;b<_searchersArr.length;b++){var u=_searchersArr[b];if(_fromUrl.indexOf(u)!=-1){g.put("source",u.substring(1,u.length));break}}}}}}catch(d){}return g}function _checkSnsr(h){try{if(_toUrl!=""&&(_toUrl.indexOf("utm_source")>0||_toUrl.indexOf("utm_medium")>0||_toUrl.indexOf("utm_content")>0||_toUrl.indexOf("utm_campaign")>0||_toUrl.indexOf("utm_term")>0)){var d=_toUrl.substring(_toUrl.indexOf("?")+1,_toUrl.length);var f=d.split("&");for(var b=0;b<f.length;b++){var a=f[b].split("=");if(a[0]=="utm_source"){h.put("source",a[1])}else{if(a[0]=="utm_medium"){h.put("medium",a[1])}else{if(a[0]=="utm_content"){h.put("content",a[1])}else{if(a[0]=="utm_campaign"){h.put("campaign",a[1])}else{if(a[0]=="utm_term"){var c=h.get("theme");fromUrl_utm_term=c?cutWord(c,_splited):(_no_data_tag+_splited);h.put("theme",fromUrl_utm_term+a[1])}}}}}}}}catch(g){}return h}function cutWord(b,a){return b?b.substring(0,b.indexOf(a)+a.length):b}function _checkSnmc(){var a=_getCookie(_snmc);if(!a||a==null||a==""){var b=_getCookie(_snmb);if(!b||b==null||b==""){_inTime=_no_data_tag}else{var c=_getSnmbMapFromCookie();_inTime=c.get("inTime");_delCookie(_snmb)}}_putSnmc()}function _getSnmbAndParam(g){var j=_getSnmbMapFromCookie();var b=_getStrFromKeysArrAndValuesStr(_snmbKeysArr,j);var f=_cutUrlToShort(_fromUrl);var a=_cutUrlToShort(_fromTitle);var h=_cutUrlToShort(_toUrl);var d=_base64.encode(_cutUrlToShort(_toTitle));var c=g+_tag+f+_tag+a+_tag+h+_tag+d+_tag+b;return c}function _putSnmb(){var b=_getSnmbMapFromCookie();var a=new Date();b.put("outTime",a.getTime());b.put("views",Number(b.get("views"))+1);_setSnmbMapToCookie(b);sessionId=b.get("visitid")}function _refreshSnmbInTime(){var a=_getSnmbMapFromCookie();a.put("inTime",new Date().getTime());_setSnmbMapToCookie(a)}function _putSnmc(){_addCookie(_snmc,"1","/",expires_ms_30mins,"")}function _updateSnml(){var a=_getCookie(_snml);if(!a||a!=_toUrl){_addCookie(_snml,_toUrl,"/","","")}}function _getSnmaMapFromCookie(){var b;var d=_getCookie(_snma);if(d&&d!=null&&d!=""){var f=d.split(_tag);b=_getMapFromKeyValueArrs(_snmaKeysArr,f);return b}else{var c=new Date();var a=_getOnlyId();var f=["1",a,c.getTime(),c.getTime(),c.getTime(),0,0];b=_getMapFromKeyValueArrs(_snmaKeysArr,f);return b}}function _setSnmaMapToCookie(b){var a=_getStrFromKeysArrAndValuesStr(_snmaKeysArr,b);_addCookie(_snma,a,"/",expires_ms_2years,"")}function _getSnmbMapFromCookie(){var f;var b=_getCookie(_snmb);if(b){var d=b.split(_tag);f=_getMapFromKeyValueArrs(_snmbKeysArr,d);if(_crossDayFlag===0){var c=f.get("inTime");if(c&&/\d/.test(c)){var a=new Date(Number(c)).getDate();if(new Date().getDate()==a+1){_inTime=c;_crossDayFlag++;return newSession()}}}return f}else{return newSession()}}function newSession(){if(_pvFlag===0){var b=_getSnmaMapFromCookie();b.put("totalVisits",Number(b.get("totalVisits"))+1);_setSnmaMapToCookie(b);_pvFlag++}var c=_getOnlyId(),a=[c,_inTime,_no_data_tag,0],d=_getMapFromKeyValueArrs(_snmbKeysArr,a);return d}function _setSnmbMapToCookie(b){var a=_getStrFromKeysArrAndValuesStr(_snmbKeysArr,b);_addCookie(_snmb,a,"/","","")}function _getSnmzMapFromCookie(){var a;var c=_getCookie(_snmz);if(c&&c!=null&&c!=""){var d=c.split(_tag);a=_getMapFromKeyValueArrs(_snmzKeysArr,d)}else{var b=_saPageViewId;var d=[b,_no_data_tag];a=_getMapFromKeyValueArrs(_snmzKeysArr,d)}a.put("pvid",_saPageViewId);return a}function _setSnmzMapToCookie(b){var a=_getStrFromKeysArrAndValuesStr(_snmzKeysArr,b);_addCookie(_snmz,a,"/","","")}function _getSnsrMapFromCookie(){var b;var c=_getCookie(_snsr);if(c&&c!=null&&c!=""){var a=c.split(_tag);b=_getMapFromKeyValueArrs(_snsrKeysArr,a);return b}else{var a=[_sourceMediumArr[0],_sourceMediumArr[0],_no_data_tag,_no_data_tag,_no_data_tag];b=_getMapFromKeyValueArrs(_snsrKeysArr,a);return b}}function _setSnsrMapToCookie(d){var f=_getSnsrMapFromCookie();var a=_getStrFromKeysArrAndValuesStr(_snsrKeysArr,f),c=_getStrFromKeysArrAndValuesStr(_snsrKeysArr,d);if(!_getCookie(_snsr)||a!=c){var g=_getStrFromKeysArrAndValuesStr(_snsrKeysArr,d);_addCookie(_snsr,g,"/",expires_ms_24hours,"");var b=_getSnmbMapFromCookie();_inTime=b.get("inTime");_delCookie(_snmb)}}function HashMap(){this.keys=new Array();this.data=new Object();this.put=function(a,b){if(this.data[a]==null){this.keys.push(a)}this.data[a]=b};this.get=function(a){return this.data[a]};this.remove=function(a){if(this.get(a)!=null){delete this.data[a]}}}function _addCookie(d,g,h,a,f){var j=d+"="+escape(g);if(a!=""){var c=new Date();c.setTime(c.getTime()+a);j+=";expires="+c.toGMTString()}if(h!=""){j+=";path="+h}var b=_getDomain();if(b.indexOf(".suning.com")!=-1){j+=";domain=.suning.com"}else{if(b.indexOf(".cnsuning.com")!=-1){j+=";domain=.cnsuning.com"}else{if(b.indexOf(".manzuo.com")!=-1){j+=";domain=.manzuo.com"}else{j+=";domain="+location.hostname}}}document.cookie=j}function _getCookie(b){var d=document.cookie.split("; ");for(var c=0;c<d.length;c++){var a=d[c].split("=");if(a[0]==b){return decodeURIComponent(a[1]?a[1]:"-")}}}function _delCookie(a){_addCookie(a,"","/",-10000,"")}function _getDomain(){var a=document.location.hostname;return a}function _getDomainByUrl(a){var b=a.substring(a.indexOf("/",a.indexOf("/")+1)+1);var c=b.substring(0,b.indexOf("/"));return c}function _createPageViewId(){if(!sa.pvId){sa.pvId=_getOnlyId()}return sa.pvId}function _initSaPvHasSendFlg(){if(sa.pvHasSend==undefined||sa.pvHasSend==null){sa.pvHasSend=false}}function _getOnlyId(){var b=new Date();var a=Math.round(100000*Math.random());var c=b.getTime().toString().concat(a);return c}function _getMapFromKeyValueArrs(d,a){var c=new HashMap();for(var b=0;b<d.length;b++){c.put(d[b],a[b])}return c}function _getStrFromKeysArrAndValuesStr(c,b){var d="";for(var a=0;a<c.length;a++){d=d+b.get(c[a])+_tag}return d.substring(0,d.length-1)}function _arrayToString(a){if(!a||a==""){return""}var c="";for(var b=0;b<a.length;b++){c=c+a[b]+_tag}return c.substring(0,c.length-1)}function _cutUrlToShort(a){if(a.length>301){a=a.substring(0,300)}while(a.indexOf(_tag)!=-1){a=a.replace(_tag,"--")}return a}function _httpGifSend(c){var b="log_"+(new Date()).getTime();var a=window[b]=new Image();a.onload=(a.onerror=function(){window[b]=null});a.src=c+"&iId="+b;a=null}function _ssaSendPvData(f,d,b){try{_toTitle=b;_toUrl=d;_fromUrl=f;_fromTitle=_no_data_tag;var a=[loginUserName];loginUserName?a.push("R"):a.push("G");sa.pvHasSend=false;urlPattern=document.getElementById("URLPattern")||document.getElementById("CUrlPattern"),urlPattern=urlPattern?urlPattern.value:"";_saInit(_arrayToString(a))}catch(c){}}function _sendInitData(l,g,f,d,c,b){var k=_snProtocol+_saServer+"/ajaxInit.gif";ad_sp=SaPick(_toUrl,"ad_sp","&");var j=_snma+"="+_encode(l)+"&"+_snmb+"="+encodeURIComponent(g)+"&"+_snmx+"="+_encode(f)+"&"+_snsr+"="+d+"&"+_snmz+"="+_encode(c)+"&"+_snme+"="+_encode(b)+"&_type="+_resourceType+"&ter="+Ter+"&ad_sp="+ad_sp+"&ls="+loginStatus;if(productId){j=j+"&productId="+productId}var h=document.getElementById("URLPattern")||document.getElementById("CUrlPattern");h=h?h.value:"";if(h){j=j+"&urlPattern="+h}var q=document.getElementById("CSupplierID");q=q?q.value:"";if(q){j=j+"&sperId="+q}j=j+"&mbId="+memberID;var s=document.getElementById("ga_itemDataBean_itemID");if(s){j=j+"&itemId="+s.value}var t=document.getElementById("ssa-abtest");if(t){j=j+"&ab="+t.value}j=j+"&iel="+idsEppLastLogin;j=j+"&ua="+_encode(ua);var a=k+"?"+j;_httpGifSend(a);basicIds=loginUserName+_tag+memberID+_tag+uvId+_tag+sessionId;_saSendCookieMapping()}function _sendSearchDatas(l){try{var j=_snProtocol+_saServer+"/ajaxSearch.gif";var b=new Date();var a=_cutUrlToShort(_fromUrl);var t=_cutUrlToShort(_fromTitle);var h=_getOnlyId();var v=_saPageViewId;_addCookie(_snms,h,"/","","");var w="";var x="";var q="";var u="";var B="";var A="";if(l!=undefined&&l!=null){var s=l.split(_tag);if(s.length>=9){w=s[6];x=s[7];q=s[8];u=s[0]+_tag+s[1]+_tag+s[2]+_tag+s[3]+_tag+s[4]+_tag+s[5]}else{if(s.length>=7){w=s[6];u=l.substring(0,l.lastIndexOf(_tag))}else{u=l}}B=s[0];A=s[1]}var g=h+_tag+v+_tag+a+_tag+t+_tag+b.getTime()+_tag+u;var k=_toUrl.match(/cityId=([\d]+)/),y=(k&&(k.length>0)?k[1]:"-");if(!q||q==""||q=="undefined"){var f=document.getElementById("searchCategory");if(f){q=f.value}}if(x&&x=="kzkeyword undefined"){x=""}var c=document.getElementById("ssa-abtest");if(c){c=c.value}var d=j+"?"+_snsd+"="+encodeURIComponent(g)+"&_type="+_resourceType+"&scId="+y+"&ids="+basicIds+"&r="+trafficSource+"&usrWord="+w+"&ls="+loginStatus+"&kzWord="+x+"&sType="+q+"&ab="+c;_httpGifSend(d)}catch(z){}}function _sendOrderDatas(a){if(!a||a==""){return false}var d=_snProtocol+_saServer+"/ajaxOrder.gif";var c=new Date();var j=_getCookie(_snms);var g=_saPageViewId;var h=_getOnlyId();if(!j&&j==null||j==""){j=_no_data_tag}var f=h+_tag+a+_tag+g+_tag+j+_tag+c.getTime();var b=d+"?"+_snmo+"="+f+"&_type="+_resourceType+"&ids="+basicIds+"&r="+trafficSource+"&t="+_toUrl+"&oi="+sa_orderInfo;b=b+"&iel="+idsEppLastLogin;_httpGifSend(b)}function _sendOrderInfo(f,h){if(!f){return false}if(!h){h=f}try{var c=_snProtocol+_saServer+"/ajaxOrder.gif";var d=new Date();var a=_getCookie(_snms);var l=_saPageViewId;var j=_getOnlyId();if(!a&&a==null||a==""){a=_no_data_tag}var g=j+_tag+f+_tag+l+_tag+a+_tag+d.getTime();var b=c+"?"+_snmo+"="+g+"&_type="+_resourceType+"&ids="+basicIds+"&r="+trafficSource+"&t="+_toUrl+"&oi="+h;b=b+"&iel="+idsEppLastLogin;_httpGifSend(b)}catch(k){}}function _sendRegisterDatas(f){var g=_snProtocol+_saServer+"/ajaxRegister.gif",d=_getOnlyId(),c=_saPageViewId,b=d+_tag+c+_tag+f,a=g+"?"+_snmg+"="+b+"&_type="+_resourceType+"&ids="+basicIds+"&r="+trafficSource;_httpGifSend(a)}function _sendStorageDatas(H){if(!basicIds||basicIds==""){basicIds=loginUserName+_tag+memberID+_tag+""+_tag+""}var z=_snProtocol+_saServer+"/ajaxStorage.gif",s=new Date,f=_getOnlyId(),h=_saPageViewId,w=_toUrl?_encode(_cutUrlToShort(_toUrl).replace(/\|/g," ")):"can not get url",j=document.getElementById("supplierID"),B=j?j.value.replace(/\|/g," "):"can not get supplierId",y=f+_tag+h+_tag+H+_tag+s.getTime()+_tag+w+_tag+B,l=z+"?"+_snmt+"="+y+"&_type="+_resourceType+"&ter="+Ter+"&os="+OS+"&ids="+basicIds;var I="";var G="";var g=document.getElementById("shop_code");var d=document.getElementById("shop_name");if(g){I=g.value}if(d){G=d.value;G=_encode(G)}var t="",C="",A="",q="",J="",D="";var x=document.getElementById("mdmProvinceId");if(x){t=x.value}var F=document.getElementById("mdmDistrictId");if(F){C=F.value}var a=document.getElementById("vendorType");if(a){A=a.value}var b=document.getElementById("manageInvFlag");if(b){q=b.value}var c=document.getElementById("productStatus");if(c){J=c.value}var k=document.getElementById("productStatusDesc");if(k){D=k.value}var E="";var u=document.getElementById("suppliernewID");if(u){E=u.value}var K=document.getElementById("operatetype");K=K.value||"";var v=document.getElementById("deliverytype");v=v.value||"";l=l+"&shcode="+I+"&shname="+G+"&provinceId="+t+"&districtId="+C+"&vendorType="+A+"&manageInvFlag="+q+"&productStatus="+J+"&productStatusDesc="+D+"&supplierNewId="+E+"&operatetype="+K+"&deliverytype="+v;_httpGifSend(l)}function _sendExpoDatas(c,l){var g=_getSnmaMapFromCookie();var d=g.get("visitorid");var q=(l===1?GetMainProId():"-");var b=_snProtocol+_saServer+"/ajaxExpoDatas.gif",h=_getOnlyId(),k=_saPageViewId,a=typeof sn=="object"?sn.cityId:"-",f=(f=document.getElementById("resourceType"))?f.value:"web",j=h+_tag+k+_tag+c+_tag+a+_tag+f+_tag+d+_tag+q+_tag+loginUserName+_tag+memberID+_tag+sessionId+_tag+trafficSource,b=b+"?_expo="+encodeURIComponent(j);_httpGifSend(b)}function _saSendCookieMapping(){if(!__ssaIsGaPage){return false}var d=_getSnmaMapFromCookie();var c=d.get("visitorid");var b=new Date();var j=new SaAjax;if("http:"==document.location.protocol){var k="//cms.gtags.net/p?a=20&xid="+c;var a="//cm.ipinyou.com/suning/cms.gif?sid="+c;var f="//ckmap.mediav.com/m?tid=613&tck="+c;var h="//r.dmp.sina.com.cn/cm/write?cid=19922&platform=pc&sid="+c;var g="//origin.qtmojo.com/snpixel?ptr=sn&data=&uid="+c;var l="//dsp.brand.sogou.com/sl?userid=18618367&local_cookie="+c+"&timestamp="+b.getTime();j.sendByInnerImage(k);j.sendByInnerImage(a);j.sendByInnerImage(f);j.sendByInnerImage(h);j.sendByInnerImage(g);j.sendByInnerImage(l);j.sendByInnerImage("//rtb.behe.com/cm?snuid="+c);j.sendByInnerImage("//q.vlion.cn/u/sn/cm?iac=1&snu="+c)}else{var k="//cms.gtags.net/p?a=20&xid="+c;var a="//cm.ipinyou.com/suning/cms.gif?sid="+c;var f="//ckmap.mediav.com/m?tid=613&tck="+c;var h="//r.dmp.sina.com.cn/cm/write?cid=19922&platform=pc&sid="+c;var g="//origin.qtmojo.com/snpixel?ptr=sn&data=&uid="+c;var l="//data.sogou.com/sl?userid=18618367&local_cookie="+c+"&timestamp="+b.getTime();j.sendByInnerImage(k);j.sendByInnerImage(a);j.sendByInnerImage(f);j.sendByInnerImage(h);j.sendByInnerImage(g);j.sendByInnerImage(l);j.sendByInnerImage("//rtb.behe.com/cm?snuid="+c);j.sendByInnerImage("//q.vlion.cn/u/sn/cm?iac=1&snu="+c)}}function _encode(a){return null!=a?encodeURIComponent(a):""}function SaCustomDataUtil(){var a=this;a.sendData=function(d,w,u){var l=_snProtocol+_saServer+"/ajaxCustom.gif";if(d==undefined||d==null||d==""){return false}if(w==undefined||w==null||w==""){return false}if(u==undefined||u==null||u==""){return false}var f="$@$";var y=w.split(",");var t=u.split(",");if(y.length!=t.length){return false}var g="";var k="";for(var s=0;s<y.length;s++){k=encodeURIComponent(y[s]);if(g==""){g=k}else{g=g+f+k}}var b="";var h="";for(var s=0;s<t.length;s++){h=encodeURIComponent(t[s]);if(b==""){b=h}else{b=b+f+h}}var v=d+_tag+g+_tag+b;var q=_saPageViewId;var j=q+_tag+basicIds;var c=l+"?ids="+j+"&r="+trafficSource+"&cust="+v;_httpGifSend(c)}}function PageSaleCookieUtil(){var j=this;var a="_saPageSaleInfo";var t=2048;var g=30;var c=1*30*24*60*60*1000;var q="-";var d="|";var b=":";var h=",";var w=";";var v=function(){var x=0;var y=new Object();this.getThis=function(){return y};this.put=function(z,A){if(!this.containsKey(z)){x++}y[z]=A};this.get=function(z){if(this.containsKey(z)){return y[z]}else{return null}};this.remove=function(z){if(delete y[z]){x--}};this.containsKey=function(z){return(z in y)};this.containsValue=function(z){for(var A in y){if(y[A]==z){return true}}return false};this.values=function(){var z=new Array(x);for(var A in y){z.push(y[A])}return z};this.keys=function(){var z=new Array(x);for(var A in y){z.push(A)}return z};this.size=function(){return x}};j.saveCookie=function(C,J){try{if(C==undefined||C==null){C=q}if(J==undefined||J==null){J=q}var K=_saPageViewId;var N=memberID;if(loginStatus==undefined||loginStatus==null||loginStatus==""||loginStatus==q){N=q}var I=false;var M=_getCookie(a);if(!M||M==q||M==""){var y=C+d+K+d+J;M=N+b+y}else{var F=new Array();var z=M.split(w);for(var G=0;G<z.length;G++){var D=z[G];if(!D){continue}var A=D.substring(0,D.indexOf(b));if(A!=q){if(N==A){I=true}}F.push(A)}if(!I){if(N&&N!=""&&N!=q){F.push(N)}}var Q=k(M);var L=l();if(L>=g){var B=Q.keys();var P="";for(var G=0;G<B.length;G++){P=B[G];if(P&&P!=null&&P!=""){break}}Q.remove(P)}var H=N+b+C;var E=K+d+J;Q.put(H,E);M=u(F,Q)}try{if(!M||M==q||M==""){_delCookie(a)}else{_addCookie(a,M,"/",c,"")}}catch(O){}}catch(O){}};j.deleteCookie=function(y){try{if(y==undefined||y==null||y==""||y==q){return false}var H=_saPageViewId;var D=memberID;if(loginStatus==undefined||loginStatus==null||loginStatus==""||loginStatus==q){D=q}var z=_getCookie(a);if(!z||z==q||z==""){return true}var M=false;var E=new Array();var K=z.split(w);for(var I=0;I<K.length;I++){var B=K[I];var L=B.substring(0,B.indexOf(b));if(L!=q){if(D==L){M=true}}E.push(L)}if(!M){if(D&&D!=""&&D!=q){E.push(D)}}var C=k(z);var J=y.split(d);for(var I=0;I<J.length;I++){var F=J[I];if(F==""||F==q){continue}var A=D+b+F;C.remove(A)}z=u(E,C);try{if(!z||z==q||z==""){_delCookie(a)}else{_addCookie(a,z,"/",c,"")}}catch(G){return false}}catch(G){return false}return true};j.deleteCustCookie=function(){try{var z=memberID;if(loginStatus==undefined||loginStatus==null||loginStatus==""||loginStatus==q){z=q}if(z==q){return false}var y=_getCookie(a);if(!y||y==q||y==""){return false}var x=f(y);if(!x||x==null){return false}x.remove(z);y=s(x);try{if(!y||y==q||y==""){_delCookie(a)}else{_addCookie(a,y,"/",c,"")}}catch(A){return false}}catch(A){return false}return true};j.clearCookie=function(){try{_delCookie(a)}catch(x){}};j.updateCustNo=function(){try{var A=memberID;if(loginStatus==undefined||loginStatus==null||loginStatus==""||loginStatus==q){A=q}if(A==q){return false}var z=_getCookie(a);if(!z||z==q||z==""){return false}var y=f(z);if(y==null||y.size()==0){return false}var G=new v();var D=y.keys();for(var E=0;E<D.length;E++){var F=D[E];if(!F){continue}if(F==q){var B=y.get(A);if(B&&B!=null&&B!=""){G.put(A,B+h+y.get(F))}else{G.put(A,y.get(F))}}else{var B=G.get(F);if(B&&B!=null&&B!=""){G.put(F,B+h+y.get(F))}else{G.put(F,y.get(F))}}}z=s(G);try{if(!z||z==q||z==""){_delCookie(a)}else{_addCookie(a,z,"/",c,"")}}catch(C){return false}}catch(C){return false}return true};j.sendCookie=function(H,O){if(!H||H==null||H==""){return false}if(!O||O==null||O==""){return false}try{var P=_getCookie(a);try{var F="",N="";if(O){F=encodeURIComponent(O)}if(P){N=encodeURIComponent(P)}var A=_snProtocol+_saServer+"/ajaxPageSale.gif";A=A+"?pvId="+_saPageViewId+"&loginUserName="+loginUserName+"&memberId="+memberID+"&loginStatus="+loginStatus+"&orderId="+H+"&goodIds="+F+"&ck="+N;_httpGifSend(A)}catch(E){}if(memberID==q){return false}if(!P||P==q||P==""){return false}var L=f(P);if(!L||L==null||L.size()==0){return false}var D=L.get(memberID);if(D==undefined||D==null||D==q||D==""){return false}var K="";var G=new Array();var z=D.split(h);var B=O.split(d);for(var J=0;J<B.length;J++){var C=B[J];if(!C||C==""||C==q){continue}for(var I=0;I<z.length;I++){var M=z[I];if(!M||M==""||M==q){continue}if(M.indexOf(C)==-1){continue}G.push(M);if(K==""){K=M}else{K=K+h+M}break}}if(K==""||K==q){return false}for(var J=0;J<G.length;J++){var R=G[J];if(!R||R==""){continue}if(D.indexOf(R+h)!=-1){D=D.replace(R+h,"")}else{D=D.replace(R,"")}}if(D!=""&&D!=q){if(D.lastIndexOf(h)!=-1){D=D.substring(0,D.length-1)}}L.put(memberID,D);P=s(L);try{if(!P||P==q||P==""){_delCookie(a)}else{_addCookie(a,P,"/",c,"")}}catch(Q){return false}}catch(Q){}return true};function l(){var y=_getCookie(a);if(!y||y==q||y==""){return 0}var E=y.split(w);if(E==null||E.length==0){return 0}var A=0;var C="";try{for(var B=0;B<E.length;B++){C=E[B];if(C==null||C==""){continue}var z=C.split(b);if(z==null||z.length<2){continue}var x=z[1];var D=x.split(h);A=A+D.length}}catch(F){}return A}function f(B){if(!B||B==q||B==""){return null}var A=new v();var C=B.split(w);for(var y=0;y<C.length;y++){var z=C[y];if(!z||z==""){continue}var E=z.substring(0,z.indexOf(b));var D=z.substring(z.indexOf(b)+1);A.put(E,D)}return A}function s(B){var z="";if(!B||B==null||B.size()==0){return z}try{if(B.size()==1){var A=B.keys();if(!B.get(A[0])&&!B.get(A[1])){return z}if((B.get(A[0])==""||B.get(A[0])==q)&&(B.get(A[1])==""||B.get(A[1])==q)){return z}}}catch(C){}var A=B.keys();for(var y=0;y<A.length;y++){var E=A[y];if(!E){continue}var D=B.get(E);if(!D||D==""||D==q){continue}if(z==""||z==q){z=E+b+D}else{z=z+w+(E+b+D)}}return z}function k(A){if(!A||A==q||A==""){return new v()}var D=new v();var H=A.split(w);for(var G=0;G<H.length;G++){var B=H[G];if(!B||B==""||B==q){continue}var J=B.substring(0,B.indexOf(b));var C=B.substring(B.indexOf(b)+1);var I=C.split(h);for(var F=0;F<I.length;F++){var L=I[F];if(!L||L==""||L==q){continue}var E=L.substring(0,L.indexOf(d));var z=J+b+E;var K=L.substring(L.indexOf(d)+1);D.put(z,K)}}return D}function u(F,D){var A="";if(!D||D==null||D.size()==0){return A}try{if(D.size()==1){var I=D.keys();if(!D.get(I[0])&&!D.get(I[1])){return A}if((D.get(I[0])==""||D.get(I[0])==q)&&(D.get(I[1])==""||D.get(I[1])==q)){return A}}}catch(C){}var z=new v();for(var K=0;K<F.length;K++){var L=F[K];if(!L){continue}var I=D.keys();for(var J=0;J<I.length;J++){var H=I[J];if(!H){continue}var G=D.get(H);if(!G||G==null||G==""){continue}if(H.substring(0,(L+b).length)==(L+b)){var E=H.substring(H.indexOf(b)+1);var B=z.get(L);if(B&&B!=q&&B!=""){B=B+h+(E+d+G)}else{B=E+d+G}z.put(L,B)}}}A=s(z);return A}}function PageViewUtil(){var a=this;a.sendData=function(H,I){var g=new Date();var t=_saPageViewId;var y=_getSnmaMapFromCookie();var w=y.get("visitorid");var q=sessionId;var L=memberID;var M=_encode(loginUserName);var l=M?"R":"G";var z=g.getTime();var u=_cutUrlToShort(_fromUrl);var k=_cutUrlToShort(_fromTitle);var E=_cutUrlToShort(_toUrl);var c=_base64.encode(_cutUrlToShort(_toTitle));var h=_getSnmbMapFromCookie();var K=_getStrFromKeysArrAndValuesStr(_snmbKeysArr,h);var C=_encode(_saErrorCode);var D=_encode(_getSnmx());var j=_getSnmzMapFromCookie();var f=_getStrFromKeysArrAndValuesStr(_snmzKeysArr,snmzMap);f=_encode(f);var A=trafficSource;var G=_resourceType;var s=Ter;var F=SaPick(_toUrl,"ad_sp","&");var J="";var B=document.getElementById("ga_itemDataBean_itemID");if(B){J=B.value}var b=loginStatus;var x=_snProtocol+_saServer+"/ajaxDialog.gif";x=x+"?from="+H+"&dialog="+I+"&c1="+t+"&c2="+w+"&c3="+q+"&c4="+L+"&c5="+M+"&c6="+l+"&c7="+z+"&c8="+u+"&c9="+k+"&c10="+E+"&c11="+c+"&c12="+K+"&c13="+C+"&c14="+D+"&c15="+f+"&c16="+A+"&c17="+G+"&c18="+s+"&c19="+F+"&c20="+J+"&c21="+b;var v="";if(urlPattern){v=v+"&urlPattern="+urlPattern}if(productId){v=v+"&productId="+productId}if(urlPattern){v=v+"&urlPattern="+urlPattern}var d=document.getElementById("CSupplierID");d=d?d.value:"";if(d){v=v+"&sperId="+d}x=x+v;_httpGifSend(x)}};