/* Lynchpin Data Collection JavaScript Library V1.1 */
/* (c) Lynchpin Analytics Limited 2009-2011, All Rights Reserved */
__lpImgLoad=function(){return;}
LYPN=function(hash){this.hash=hash};
LYPN.prototype.data=new Object();
LYPN.prototype.baseurl='//trk.lypn.net/exp/';
LYPN.prototype.protocol=document.location.protocol;
LYPN.prototype.random=escape(Math.random());
LYPN.prototype.getcookie=function(cname){var d=document.cookie;
var j=d.indexOf(cname+'=');if(j>-1){k=d.indexOf(';',j+cname.length+1);
return d.substring(j+cname.length+1,(k>0)?k:d.length);}else{return '';}}
LYPN.prototype.addevent=function(o,t,f){if(o.attachEvent){o['e'+t+f]=f;
o[t+f]=function(){o['e'+t+f](window.event);};o.attachEvent('on'+t,o[t+f]);
}else{o.addEventListener(t,f,false);}}
LYPN.prototype.parameters=function(){var x='';for(var i in this.data)
{x=x+'&'+i+'='+escape(this.data[i]);}return x+'&rnd='+this.random;}
LYPN.prototype.request=function(){return this.protocol+this.baseurl+
'?sid='+this.hash+this.parameters();}
LYPN.prototype.formtrack=function(){for(var i=0;i<document.forms.length;i++){
for(var j=0;j<document.forms[i].elements.length;j++){o=this;
this.addevent(document.forms[i].elements[j],'blur',function(){o.logform(this);})
;}}}
LYPN.prototype.log=function(){var i=new Image(1,1);i.src=this.request();
i.onload=function(){__lpImgLoad();}}
LYPN.prototype.logevent=function(e1,e2,e3){var i=new Image(1,1);
i.src=this.request()+'&ev1='+escape(e1)+'&ev2='+escape(e2)+'&ev3='+escape(e3);
i.onload=function(){__lpImgLoad();}}
LYPN.prototype.logform=function(e){this.logevent('form',e.form.name,e.name);}
LYPN.prototype.init=function(){this.log();this.formtrack();}			
