$sd(document).ready(function(){var i=99;var a=$sd("#optimostCounterName").val();var l=0;
var h=0;var c="";if(a=="ADDTOBASKET"){i=1;c="http://by.optimost.com/counter/648/-/"+i+"/event.js";
}else{if(a=="BASKET"){i=2;c="http://by.optimost.com/counter/648/-/"+i+"/event.js";
}else{if(a=="LOGIN"){i=3;c="https://by.essl.optimost.com/by/counter/648/-/"+i+"/event.js";
}else{if(a=="PERSONALDETAILS"){i=4;c="https://by.essl.optimost.com/by/counter/648/-/"+i+"/event.js";
}else{if(a=="ADDRESSDETAILS"){i=5;c="https://by.essl.optimost.com/by/counter/648/-/"+i+"/event.js";
}else{if(a=="CONTACTDETAILS"){i=6;c="https://by.essl.optimost.com/by/counter/648/-/"+i+"/event.js";
}else{if(a=="PAYMENTDETAILS"){i=7;c="https://by.essl.optimost.com/by/counter/648/-/"+i+"/event.js";
}else{if(a=="checkoutDeliveryOptions"){i=8;l=$sd("#basketItems").html();h=$sd("#basketPrice").html();
c="https://by.essl.optimost.com/by/counter/648/-/"+i+"/event.js";}else{if(a=="checkoutPayment"){i=9;
l=$sd("#basketItems").html();h=$sd("#basketPrice").html();c="https://by.essl.optimost.com/by/counter/648/-/"+i+"/event.js";
}else{if(a=="checkoutOrderConfirmation"){i=10;l=$sd("#basketItems").html();h=$sd("#basketPrice").html();
c="https://by.essl.optimost.com/by/counter/648/-/"+i+"/event.js";}else{return;}}}}}}}}}}var b=(typeof opcounter=="object")?opcounter:new Object;
b.D=document;b.L=b.D.location;b.T=new Date;b.Q=new Object;b.C=new Object;b.U=c;b.D_ts=Math.round(b.T.getTime()/1000);
b.D_tzo=b.T.getTimezoneOffset();b.D_loc=b.L.protocol+"//"+b.L.hostname+b.L.pathname;
b.D_ckl=b.D.cookie.length;b.D_ref=b.D.referrer;if(h>0){b.opRevenue=h;}function k(){var t=b.L.search;
var w=b.D.cookie;if(t.length>3){for(var o=t.substring(1).split("&"),r=0,n=o.length;
r<n;r++){var u=o[r].indexOf("=");if(u>0){b.Q[o[r].substring(0,u)]=unescape(o[r].substring(u+1));
}}}if(w.length>3){for(var o=w.split(";"),r=0,m=o.length;r<m;r++){var q=o[r].split("=");
while(q[0].substring(0,1)==" "){q[0]=q[0].substring(1,q[0].length);}if(q.length==2){b.C[q[0]]=unescape(q[1]);
}}}}function g(){var p=new Object;for(var r in b){p[r]=b[r];}p.D=p.L=p.T=p.Q=p.C=p.U=null;
var m="";for(var r in p){if(p[r]!=null&&p[r]!=""){m+=(m.length>0?"&":(b.U.indexOf("?")>0?"&":"?"))+r+"="+escape(p[r]);
}}return b.U+m;}k();for(var e in b.Q){if(e.substring(0,2)=="op"){b[e]=b.Q[e];}}for(var e in b.C){if(e.substring(0,2)=="op"){b[e]=b.C[e];
}}var f=$sd("#optimostCounterName").attr("rel");if(f=="DOC"){b.D.write('<script type="text/javascript" src="'+g()+'"><\/script>');
}else{var d=document.getElementsByTagName("head")[0];var j=document.createElement("script");
j.type="text/javascript";j.src=g();d.appendChild(j);}});
