if(!this.b5mshoppingassist20131213173748)this.b5mshoppingassist20131213173748={};(function(t,e){t.define("console",function(){var t={LEVEL:"DEBUG",setLevel:function(t){this.LEVEL=t},debug:function(t){if(this.LEVEL!="DEBUG")return;try{console.debug(this.msg(t))}catch(e){this.ieDebug(t)}},error:function(t){if(this.LEVEL!="ERROR")return;try{console.debug(this.msg(t))}catch(e){this.ieDebug(t)}},ieDebug:function(t){var e=this.msg(t);setTimeout(function(){var t=document.getElementById("b5m_test");if(!t){t=document.createElement("div");t.id="b5m_test";t.style.display="none";document.body.appendChild(t)}var n=t.innerHTML;n=[n,""+e+"</br>"].join("");t.innerHTML=n},13)},msg:function(t){var e=new Date;var n=function(t){return(t<10?"0":"")+t};t=e.getFullYear()+"-"+n(e.getMonth()+1)+"-"+n(e.getDate())+" "+n(e.getHours())+":"+n(e.getMinutes())+":"+n(e.getSeconds())+" ["+this.LEVEL+"] [B5M] "+t;return t}};return t});t.define("common",["server","console","jquery-highcharts"],function(e,n,a){var i={console:n,gaFakePageView:function(t){try{_gaq.push(["tb5m._setAccount","UA-35991905-1"]);_gaq.push(["tb5m._setSampleRate","50"]);_gaq.push(["tb5m._trackPageview","/b5t_pageview/"+t]);var a="UA-35991905-"+(parseInt(e.uuid.charAt(0),16)+5);_gaq.push(["tb5m2._setAccount",a]);_gaq.push(["tb5m2._setCustomVar",3,"clientId",e.uuid+"",3]);_gaq.push(["tb5m2._setSampleRate","100"]);_gaq.push(["tb5m2._trackPageview","/b5t_pageview/"+t])}catch(i){}n.debug("ga--"+t)},clientApi:function(t){var e=document.getElementById("b5tplugin");try{return e[t]()}catch(n){return null}},getClientStatus:function(t){try{return this.getCache(t)}catch(e){return this.getB5MCookie(t)}},setClientStatus:function(t,e){try{this.setCache(t,e)}catch(n){this.setB5MCookie.apply(this,Array.prototype.slice.call(arguments,0))}},setCache:function(t,e){var n=document.getElementById("b5tplugin");n.setCacheValue(t,e+"")},getCache:function(t){var e=document.getElementById("b5tplugin");var a=e.getCacheValue(t);n.debug(t+"--"+a);return a},setCookie:function(t,e,n){var a=this.getDomain();var i=t+"="+escape(e);i+="; path=/; domain="+a;if(n)i+="; expires="+n;document.cookie=i},getCookie:function(t){var e=document.cookie.match(new RegExp("(^| )"+t+"=([^;]*)(;|$)"));if(e!=null)return unescape(e[2]);return null},today:function(){var t=new Date;var e=t.getMonth()+1;if(e<10)e="0"+e;var n=t.getDate();if(n<10)n="0"+n;return t.getFullYear()+""+e+""+n},setB5MCookie:function(t,n,a){if(!t)return;var i="";if(a){for(var r in a){i+="&"+r+"="+a[r]}}(new Image).src=e.server+"/extension.do?method=c&name="+t+"&value="+encodeURIComponent(n)+i+"&t="+(new Date).getTime()},getB5MCookie:function(n){if(t.cookie&&typeof n==="string")return t.cookie[n];if(!t.cookie){$5m.ajax({url:e.server+"/extension.do?method=c",cache:false,dataType:"jsonp",jsonp:"jsoncallback",async:true,success:function(e){t.cookie=e;if(typeof n==="function")n(e)}})}},loadCss:function(t){var e=$5m('<link rel="stylesheet" href="'+t+'" type="text/css">');$5m("head").append(e)},loadScript:function(n,a){var i=t.util.$T("head",0);var r=t.util.$C("script");r.type="text/javascript";if(n.indexOf("http://")!==0)n=e.server+n;r.src=n+"?v="+t.build_no;r.onload=r.onreadystatechange=function(){if(!r.readyState||r.readyState==="loaded"||r.readyState==="complete"){r.onload=r.onreadystatechange=null;if(a){a()}}};t.util.$A(i,r)},getDomain:function(t){var e="";try{e=t||(window.location||document.location).hostname;e=e.match(/([-\w]+\.\b(?:net\.cn|com\.hk|com\.cn|com|cn|net|org|cc|tv$|hk)\b)/)[1]}catch(n){}return e},ga:function(t){try{_gaq.push(["tb5m._setAccount","UA-35991905-1"]);_gaq.push(["tb5m._setSampleRate","50"]);_gaq.push(["tb5m._trackPageview","/b5t_pageview/"+t]);var a="UA-35991905-"+(parseInt(e.uuid.charAt(0),16)+5);_gaq.push(["tb5m2._setAccount",a]);_gaq.push(["tb5m2._setCustomVar",3,"clientId",e.uuid+"",3]);_gaq.push(["tb5m2._setSampleRate","100"]);_gaq.push(["tb5m2._trackPageview","/b5t_pageview/"+t])}catch(i){}n.debug("ga--"+t)},pathResolve:function(t,e){if(!e){e=t;t=location.href}if(e.match(/^http:\/\//))return e;if(e.match(/^\/\//))return"http:"+e;t=t.replace(/\?.*/,"").replace(/^http:\/\//,"");var n=t.replace(/\/.*/,""),a=t.lastIndexOf("/"),i=a>0?t.substring(0,a):t,r=i,o=e;if(e.indexOf("/")===0)return"http://"+n+e;if(e.indexOf("./")===0)return"http://"+n+e.substring(1);if(e.indexOf(".")!==0)return"http://"+i+"/"+e;while(o.indexOf("../")===0){r=r.substring(0,r.lastIndexOf("/"));o=o.substring(3)}return"http://"+r+"/"+o}};return i})})(this.b5mshoppingassist20131213173748);