var _marinTrack=new Object({host:"tracker.marinsm.com",clientId:"hsm7rdaq10",expires:365,getKeyValues:function(){var A=["mkwid","pcrid"];
return A},setClientId:function(A){this.clientId=A;return this},getClientId:function(){return this.clientId
},setHost:function(A){this.host=A;return this},getHost:function(){return this.host
},setExpires:function(A){this.expires=A;return this},getExpires:function(A){var B=new Date();
if(typeof A!="number"){A=this.expires}B.setTime(B.getTime()+(A*24*60*60*1000));return"; expires="+B.toUTCString()
},_getBrowserTzOffset:function(){var A=new Date();return A.getTimezoneOffset()/60
},_isFunction:function(A){return !!A&&typeof A!="string"&&!A.nodeName&&A.constructor!=Array&&/^[\s[]?function/.test(A+"")
},_escapeStr:function(B,A){if(B==null||B==""){return""}var C=encodeURIComponent;return this._isFunction(C)?(A?encodeURI(B):C(B)):escape(B)
},trackPage:function(){if(this.firstHit()){var A=window.location.protocol+"//"+this.getHost()+"/tp?act=1&cid="+this._escapeStr(this.clientId)+"&tz="+this._escapeStr(this._getBrowserTzOffset())+"&ref="+this._escapeStr(document.referrer)+"&page="+this._escapeStr(window.location);
if(this._hasUuidCookie()){A+="&uuid="+this._escapeStr(this._getUuidCookie())}else{A+="&uuid="+this._escapeStr(this._generateUuid())
}this._writeImage(A)}},firstHit:function(){var A=this._hasClientKeyword(window.location.toString())||this._hasClientKeyword(document.referrer)||!this._compareDomains(document.referrer,window.location.toString());
if(!this._hasUuidCookie()){this._setCookie("_msuuid",this._generateUuid())}return A
},_compareDomains:function(B,A){var D=/^([^:]*:\/\/)?([^:]*:[^@]*@)?([^\/:\?]*\.[^\/:\?]*)?(:[^\/]*)?(\/[^?#]*)?(\?[^#]*)?(#.*)?$/i;
try{return B.match(D)[3]==A.match(D)[3]}catch(C){}return false},_pruneDomain:function(A){var B=A.indexOf("/",8);
var C=A.indexOf("?",8);if(B>=0){return A.substring(B+1)}else{if(C>=0){return A.substring(C+1)
}else{return""}}},_hasKeyword:function(A,B){var C=this._pruneDomain(B);if(C.length>0){var D=new RegExp("\\W"+A+"\\W");
return D.test(C)}return false},_hasClientKeyword:function(C){if(C==null||C==""){return false
}var A=this.getKeyValues();for(var B=0;B<A.length;B++){if(this._hasKeyword(A[B],C)){return true
}}return false},processOrders:function(){var A=document.getElementsByName("utmform");
if(typeof (A)=="undefined"){A=document.getElementsByTagName("form")}for(var C=0;C<A.length;
C++){if(A[C].getAttribute("name")=="utmform"){var B=this._handleForm(A[C]);this._writeImage(B)
}}},_handleForm:function(B){if(B.utmtrans!=undefined&&B.utmtrans.value!=undefined){var A=window.location.protocol+"//"+this.getHost()+"/tp?act=2&cid="+this._escapeStr(this.clientId)+"&tz="+this._escapeStr(this._getBrowserTzOffset())+"&trans="+this._escapeStr(B.utmtrans.value)+"&ref="+this._escapeStr(document.referrer)+"&page="+this._escapeStr(window.location);
if(this._hasUuidCookie()){A+="&uuid="+this._escapeStr(this._getUuidCookie())}else{A+="&uuid="+this._escapeStr(this._generateUuid())
}if(typeof _marinTransaction!="undefined"){if(typeof _marinTransaction.currency!="undefined"){A+="&currency="+this._escapeStr(_marinTransaction.currency)
}}return A}},_getCookie:function(A){var F=null;if(document.cookie&&document.cookie!=""){var D=document.cookie.split(";");
for(var C=0;C<D.length;C++){var B=D[C];B=B.replace(/^\s+/,"");var E=A+"_"+this.clientId;
if(B.substring(0,E.length+1)==(E+"=")){F=decodeURIComponent(B.substring(E.length+1));
break}}}return F},_setCookie:function(A,B){if(B==null||B==""){return this}document.cookie=A+"_"+this.clientId+"="+this._escapeStr(B)+"; path=/"+this.getExpires();
return this},_writeImage:function(A){A=A+"&rnd="+Math.round(Math.random()*2147483647);
document.write('<img src="'+A+'" border="0" height="1" width="1" />')},_getUuidCookie:function(){return this._getCookie("_msuuid")
},_hasUuidCookie:function(){var A=this._getUuidCookie();return(A!=null&&A.length>0)
},_generateUuid:function(){var G="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz".split("");
var F=G,D=[],B=Math.random;var C=F.length;var E;D[8]=D[13]=D[18]=D[23]="-";D[14]="4";
for(var A=0;A<36;A++){if(!D[A]){E=0|B()*16;D[A]=F[(A==19)?(E&3)|8:E&15]}}return D.join("")
}});