/st.js
  1. var _noteGlAnalytics='';
  2. var _notevalute='LVL';
  3. var _notegoal='';
  4. var _notegoalprice='';
  5. var _clientlang='';
  6. var _pagename='';
  7. var _clientId='0';
  8. var _clientIdExternal='0';
  9. var _catalogClientId='0';
  10. var _catalogRecord='';
  11. var _catalogName='';
  12. var _catalogQK='';
  13. var _catalogKeyword='';
  14. var _catalogQP='';
  15. var _catalogPlace='';
  16. var _currentOrderId='';
  17. var _currentOrderSum='0';
  18. var _clientindex=new Array();
  19. var _clientItemsInc=0;
  20. var _segment=0;
  21. var _writeToFrame='';
  22. var _nt_image=new Image(1,1);
  23. __isChrome = function() { return Boolean(window.chrome); }
  24. function __noteVoid() { return; }
  25. function __noteAnalytics() {
  26. __prtclw=document.location.protocol;
  27. __noteHostw=(__prtclw=="https:")?'s://www.':'s://www.';
  28. cdDepths=window.screen.colorDepth;
  29. document.cookie="__noteCook";
  30. if (document.cookie) {
  31. _clcook=1;
  32. } else {
  33. _clcook=0;
  34. }
  35. _pname=_pagename;
  36. _clang=_clientlang;
  37. if (_notegoal != '') { _noteGlAnalytics='&gt='+_notegoal+'&vlt='+_notevalute; if (_notegoalprice != '') { _noteGlAnalytics=_noteGlAnalytics+'&gp='+_notegoalprice; } }
  38. _currentOrderstr='';
  39. if (_currentOrderId != '') { _currentOrderstr='&oid='+_currentOrderId+'&osm='+_currentOrderSum; }
  40. sw=window.screen.width;
  41. sh=window.screen.height;
  42. ref=encodeURIComponent(document.referrer);
  43. locat=encodeURIComponent(location.href);
  44. _title=encodeURIComponent(document.title);
  45. nt_date=new Date();
  46. var _tmz=encodeURIComponent(nt_date.getTimezoneOffset());
  47. _nt_image.src='http'+__noteHostw+'nstat.com/nt/?cookie='+_clcook +'&color='+cdDepths +'&ww='+sw +'&wh='+sh +'&ref='+ref +'&loc='+locat+'&title='+_title +'&tmz='+_tmz +'&cid='+_clientId +'&sq='+_segment +'&clang='+_clang +'&pagename='+_pname+_noteGlAnalytics+_currentOrderstr +'&rnd='+Math.random();
  48. }
  49. function __noteCatalog() {
  50. __prtclw=document.location.protocol;
  51. __noteHostw=(__prtclw=="https:")?'s://www.':'s://www.';
  52. cdDepths=window.screen.colorDepth;
  53. document.cookie="__noteCook";
  54. if (document.cookie) {
  55. _clcook=1;
  56. } else {
  57. _clcook=0;
  58. }
  59. _pname=_pagename;
  60. _clang=_clientlang;
  61. if (_notegoal != '') { _noteGlAnalytics='&gt='+_notegoal+'&vlt='+_notevalute; if (_notegoalprice != '') { _noteGlAnalytics=_noteGlAnalytics+'&gp='+_notegoalprice; } }
  62. _currentOrderstr='';
  63. if (_currentOrderId != '') { _currentOrderstr='&oid='+_currentOrderId+'&osm='+_currentOrderSum; }
  64. sw=window.screen.width;
  65. sh=window.screen.height;
  66. ref=encodeURIComponent(document.referrer);
  67. locat=encodeURIComponent(location.href);
  68. _title=encodeURIComponent(document.title);
  69. nt_date=new Date();
  70. var _tmz=encodeURIComponent(nt_date.getTimezoneOffset());
  71. if (_catalogQK === '')
  72. { _catalogKeyword = encodeURIComponent(_catalogKeyword); } else
  73. { if (document.referrer && document.referrer !== '')
  74. {
  75.         __tmp = document.referrer.split("?");
  76.         if (__tmp.length > 1)
  77.         {
  78.                 __tms = __tmp[1].split("&");
  79.                 __l = __tms.length;
  80.                 for(__i = 0; __i < __l; __i++)
  81.                 {
  82.                         __v = __tms[__i].split("=");
  83.                         if (__v[0] === _catalogQK && __v[1])
  84.                         {
  85.                                 _catalogKeyword = encodeURIComponent(__v[1]);
  86.                         }
  87.                         if (__v[0] === _catalogQP && __v[1])
  88.                         {
  89.                                 _catalogPlace = encodeURIComponent(__v[1]);
  90.                         }
  91.                 }
  92.         }
  93. }
  94. }
  95. _catalogPlace = encodeURIComponent(_catalogPlace);
  96. _nt_image.src='http'+__noteHostw+'nstat.com/nt/ca.php?cookie='+_clcook+'&color='+cdDepths+'&ww='+sw+'&wh='+sh+'&ref='+ref+'&loc='+locat+'&title='+_title +'&tmz='+_tmz+'&cid='+_clientIdExternal+'&cati='+_catalogClientId+'&catr='+_catalogRecord+'&catn='+_catalogName+'&catk='+_catalogKeyword+'&catp='+_catalogPlace+'&sq='+_segment +'&clang='+_clang+'&pagename='+_pname+_noteGlAnalytics+_currentOrderstr +'&rnd='+Math.random();
  97. }
  98. function __noteCatalogAction(hr) {
  99. __prtclw=document.location.protocol;
  100. __noteHostw=(__prtclw=="https:")?'s://www.':'s://www.';
  101. locat=encodeURIComponent(location.href); _title=encodeURIComponent(document.title); _pname=_pagename; _clang=_clientlang; hr=encodeURIComponent(hr);
  102. if (__isChrome()) {
  103. http = new XMLHttpRequest();
  104. http.open('GET', 'http'+__noteHostw+'nstat.com/nt/ca.php?exit=1&nm=1&exitpage='+hr+'&loc='+locat+'&title='+_title+'&cid='+_clientIdExternal+'&cati='+_catalogClientId+'&catr='+_catalogRecord+'&catn='+_catalogName+'&sq='+_segment+'&clang='+_clang+'&pagename='+_pname+'&rnd='+Math.random(), false);
  105. http.send(null);
  106. } else {
  107. nt_image2=new Image(1,1);
  108. nt_image2.src='http'+__noteHostw+'nstat.com/nt/ca.php?exit=1&exitpage='+hr+'&loc='+locat+'&title='+_title+'&cid='+_clientIdExternal+'&cati='+_catalogClientId+'&catr='+_catalogRecord+'&catn='+_catalogName+'&sq='+_segment+'&clang='+_clang+'&pagename='+_pname+'&rnd='+Math.random();
  109. }
  110. }
  111. function __addTransaction(orderId,clientId,clientName,sumTotal,shipTotal,ordValute) {
  112. _currentOrderId=orderId;
  113. _currentOrderSum=sumTotal;
  114. __prtclw=document.location.protocol;
  115. __noteHostw=(__prtclw=="https:")?'s://www.':'s://www.';
  116. document.write('<iframe name="transactionIframe" id="transactionIframe" src="/thetransactions.html" style="border: 0px;" width="1" height="1" marginwidth="0" marginheight="0" vspace="0" hspace="0" frameborder="0" scrolling="0"></iframe>');
  117. _writeToFrame+='<html><head><title></title></head><body><form name="divsTransactionAnalytics" id="divsTransactionAnalytics" target="_self" method="POST" action="http'+__noteHostw+'nstat.com/nt/tr.php?cid='+_clientId +'">';
  118. _writeToFrame+='<input type="hidden" name="W_submit" value="1">';
  119. _writeToFrame+='<input type="hidden" name="W_'+orderId +'[orderId]" value="'+orderId+'">';
  120. _writeToFrame+='<input type="hidden" name="W_'+orderId +'[clientId]" value="'+clientId+'">';
  121. _writeToFrame+='<input type="hidden" name="W_'+orderId +'[clientName]" value="'+clientName+'">';
  122. _writeToFrame+='<input type="hidden" name="W_'+orderId +'[sumTotal]" value="'+sumTotal+'">';
  123. _writeToFrame+='<input type="hidden" name="W_'+orderId +'[shipTotal]" value="'+shipTotal+'">';
  124. _writeToFrame+='<input type="hidden" name="W_'+orderId +'[ordValute]" value="'+ordValute+'">';
  125. }
  126. function __addItem(orderId,itemId,itemName,itemCat,itemPrice,itemTax,itemQuant,itemCode,itemDiscount) {
  127. if (_currentOrderId != "" && _currentOrderId != orderId) { orderId=_currentOrderId; }
  128. _writeToFrame+='<input type="hidden" name="W_'+orderId +'[trans][I_'+_clientItemsInc+'][itemId]" value="'+itemId +'">';
  129. _writeToFrame+='<input type="hidden" name="W_'+orderId +'[trans][I_'+_clientItemsInc+'][itemName]" value="'+itemName +'">';
  130. _writeToFrame+='<input type="hidden" name="W_'+orderId +'[trans][I_'+_clientItemsInc+'][itemCat]" value="'+itemCat +'">';
  131. _writeToFrame+='<input type="hidden" name="W_'+orderId +'[trans][I_'+_clientItemsInc+'][itemPrice]" value="'+itemPrice +'">';
  132. _writeToFrame+='<input type="hidden" name="W_'+orderId +'[trans][I_'+_clientItemsInc+'][itemTax]" value="'+itemTax +'">';
  133. _writeToFrame+='<input type="hidden" name="W_'+orderId +'[trans][I_'+_clientItemsInc+'][itemQuant]" value="'+itemQuant +'">';
  134. _writeToFrame+='<input type="hidden" name="W_'+orderId +'[trans][I_'+_clientItemsInc+'][itemCode]" value="'+itemCode +'">';
  135. _writeToFrame+='<input type="hidden" name="W_'+orderId +'[trans][I_'+_clientItemsInc+'][itemDiscount]" value="'+itemDiscount +'">';
  136. _clientItemsInc++;
  137. }
  138. function __submitOrder() {
  139. _writeToFrame+='</form></body></html>';
  140. window.frames.transactionIframe.document.open();
  141. window.frames.transactionIframe.document.write(_writeToFrame);
  142. window.frames.transactionIframe.document.close();
  143. if (window.frames.transactionIframe.document.divsTransactionAnalytics) { __sOTM(); }
  144. }
  145. function __sOTM() {
  146. if (_nt_image.complete==true) { window.frames.transactionIframe.document.divsTransactionAnalytics.submit(); return true; }
  147. var t=setTimeout("__sOTM()",100);
  148. }
  149. function __noteExplode(inputstring,separators,includeEmpties) {
  150. inputstring=new String(inputstring);
  151. separators=new String(separators);
  152. if(separators=="undefined") { separators=" :;"; }
  153. fixedExplode=new Array(1);
  154. _currentElement="";
  155. _count=0;
  156. for(x=0;x<inputstring.length;x++) {
  157. _char=inputstring.charAt(x);
  158. if(separators.indexOf(_char) != -1) {
  159. if ( ( (includeEmpties <= 0) || (includeEmpties==false)) && (_currentElement=="")) {
  160. } else {
  161. fixedExplode[_count]=_currentElement;
  162. _count++;
  163. _currentElement="";
  164. }
  165. } else { _currentElement+=_char; }
  166. }
  167. if (( !(includeEmpties<=0) && (includeEmpties!=false)) || (_currentElement!="")) { fixedExplode[_count]=_currentElement; }
  168. return fixedExplode;
  169. }
  170. function __noteClickerMan(hr) {
  171. __prtclw=document.location.protocol;
  172. __noteHostw=(__prtclw=="https:")?'s://www.':'s://www.';
  173. locat=encodeURIComponent(location.href); _title=encodeURIComponent(document.title); _pname=_pagename; _clang=_clientlang; hr=encodeURIComponent(hr);
  174. if (__isChrome()) {
  175. http = new XMLHttpRequest();
  176. http.open('GET', 'http'+__noteHostw+'nstat.com/nt/?exit=1&nm=1&exitpage='+hr+'&loc='+locat+'&title='+_title+'&cid='+_clientId+'&sq='+_segment+'&clang='+_clang+'&pagename='+_pname+'&rnd='+Math.random(), false);
  177. http.send(null);
  178. } else {
  179. nt_image2=new Image(1,1);
  180. nt_image2.src='http'+__noteHostw+'nstat.com/nt/?exit=1&exitpage='+hr+'&loc='+locat+'&title='+_title+'&cid='+_clientId+'&sq='+_segment+'&clang='+_clang+'&pagename='+_pname+'&rnd='+Math.random();
  181. }
  182. }
  183. function __noteClicker(e) {
  184. __prtclw=document.location.protocol;
  185. __noteHostw=(__prtclw=="https:")?'s://www.':'s://www.';
  186. locat=encodeURIComponent(location.href); _title=encodeURIComponent(document.title); _pname=_pagename; _clang=_clientlang; pn1=window.event?window.event.srcElement:e.target;
  187. i=0;
  188. while(pn1.tagName) {
  189. if(pn1) {
  190. if(pn1.tagName.toLowerCase()=='a' || pn1.tagName.toLowerCase()=='area') {
  191. _ok=1;
  192. hr=pn1.getAttribute('href');
  193. _curExplode=new Array();
  194. _curExplode=__noteExplode(hr,"/",0);
  195. _i=0;
  196. if (_curExplode[1]) {
  197. while (_clientindex[_i]) {
  198. if (_curExplode[1].indexOf(_clientindex[_i]) > -1) { _ok=0; break; }
  199. _i++;
  200. }
  201. }
  202. if (hr!=null && _ok==1 && hr.indexOf('javascript:')==-1 && hr.indexOf('://')>-1) {
  203. hr=encodeURIComponent(hr);
  204. if (__isChrome()) {
  205. http = new XMLHttpRequest();
  206. http.open('GET', 'http'+__noteHostw+'nstat.com/nt/?exit=1&nm=1&exitpage='+hr+'&loc='+locat+'&title='+_title+'&cid='+_clientId+'&sq='+_segment+'&clang='+_clang+'&pagename='+_pname+'&rnd='+Math.random(), false);
  207. http.send(null);
  208. } else {
  209. nt_image2=new Image(1,1);
  210. nt_image2.src='http'+__noteHostw+'nstat.com/nt/?exit=1&exitpage='+hr+'&loc='+locat+'&title='+_title+'&cid='+_clientId+'&sq='+_segment+'&clang='+_clang+'&pagename='+_pname+'&rnd='+Math.random();
  211. }
  212. }
  213. break;
  214. } else { if (!pn1.parentNode) { break; } pn1=pn1.parentNode; }
  215. } else { break; }
  216. i++;
  217. }
  218. }
  219. var __noteRoot=window.addEventListener || window.attachEvent?window:document.addEventListener?document:null;
  220. if (__noteRoot){
  221. if (__noteRoot.addEventListener) { __noteRoot.addEventListener("click",__noteClicker,false); }
  222. else if (__noteRoot.attachEvent) { document.attachEvent("onclick",__noteClicker); }
  223. }
Parsed in 0.083 seconds