
﻿
siteSeeker.registerClick=function(type,href,ordinal,response){url=siteSeeker.rootPath+"h.siteseeker?sht=4";url+="&sn="+siteSeeker.searchIndexName;url+="&crts="+type;if(href){url+="&hu="+encodeURIComponent(href);}
if(siteSeeker.sessionId.length>0){url+="&si="+siteSeeker.sessionId;}
if(ordinal>=0){url+="&pisr="+ordinal;}
if(response.length>0){url+="&rid="+response;}
$.ajax({url:url,async:true});};siteSeeker.registerConversion=function(href,ordinal,response,index){if(index.length>0){siteSeeker.searchIndexName=index;}
siteSeeker.registerClick(3,href,ordinal,response);}
siteSeeker.initClickRegistration=function(){$('a.ess-hitLink').mousedown(function(){var ordinal=(typeof(this.name)=='string'&&(ordinal=this.name.split('ess-hitNumber-')[1]).length>0)?parseInt(ordinal):-1;var response;try{response=($(this).closest($('.ess-searchResult'))[0]).attributes.getNamedItem('name').value.split('ess-responseId-')[1];}catch(e){response="";}
siteSeeker.registerClick(0,this.href,ordinal,response);});$('.ess-bestBet a').mousedown(function(){siteSeeker.registerClick(1,this.href,$('.ess-bestBet a').index($(this))+1,"");});siteSeeker.registerClick(2,null,-1,"");};