(function(){currentLogParam=new Array();
lsu=null;
elap=true;
PID={InitialPage:0,ResultLocal:4,ResultRoute:7,FreeCallVisible:8,VcardVisible:9,NotepadVisible:10,VcardEntryAdd:11,VcardEntryDel:12,WhatNavClick:14,WhereNavClick:15,WhereDymClick:16,PreviewVisible:17,NearByVisible:18,PoiSelect:19,OTVisible:20,ImgVisible:21,MultipleDomainsVisible:22,RouteToVisible:23,PpcClick:24,RouteFromVisible:25,SendSiteVisible:26,DisplayLinkVisible:27,ErrorLocal:35,ErrorRoute:36,PpcCount:46,SeoInitialPage:500,SeoCatalogPage:501,SeoLetterPage:502,SeoResultPage:503,SeoAdvise:504,SeoErrorPage:505,SeoVCard:506,SeoPopup:507};
LPN={PageId:"pageid",What:"what",Where:"where",Referrer:"referrer",Browser:"browser",ScreenRes:"screen_resolution",ScreenDepth:"screendepth",OS:"os",Plugins:"plugins",Java:"java_aktiv",Scope:"searchkind",Time:"time",Offset:"offset",Hits:"hits",Advise:"advise",WhereDymCount:"dym_where_view",Error:"error",ClickPosition:"position_click",Origin:"origin",Destination:"destination",RouteSpeed:"rtrvtype",RouteToll:"rtoll",WhereNavigator:"nav_where",WhatNavigator:"nav_what",Partner:"partnerid",Box:"boxid",ViewTyp:"portalview",POISelect:"poi",PpcSize:"ppcsize"};
EMPTY="empty";
statImage=new Image()
})();
var escapeForStats=function(B){var A=encodeURIComponent((B+"").replace(/&#034;/g,'"'));
return A.replace(/%20/g,"+").replace(/%2F/gi,"/").replace(/%21/gi,"!").replace(/%27/gi,"'").replace(/%3B/gi,";").replace(/%3A/gi,":").replace(/%7E/gi,"~")
};
var slsu=function(A){lsu=A
};
var alp=function(B,A){currentLogParam[currentLogParam.length]={key:B,value:escapeForStats(A)}
};
var aepl=function(){alp(LPN.Referrer,document.referrer);
alp(LPN.Browser,navigator.userAgent);
alp(LPN.ScreenRes,screen.width+"x"+screen.height);
alp(LPN.ScreenDepth,screen.pixelDepth);
alp(LPN.OS,navigator.oscpu);
var A;
if(navigator.plugins.length==0){A="null"
}for(var B=0;
B<navigator.plugins.length;
B++){A+=navigator.plugins[B].name+"+"
}alp(LPN.Plugins,A);
alp(LPN.Java,navigator.javaEnabled())
};
var sl=function(A){if(typeof A=="undefined"||A==null||A<0){alert("Wrong PID.")
}var B=lsu+"?"+LPN.PageId+"="+A;
if(A==PID.InitialPage&&elap){aepl();
elap=false
}else{alp(LPN.Browser,navigator.userAgent)
}if(typeof GLOBALS!="undefined"&&GLOBALS!=null){alp(LPN.What,$(GLOBALS.What).value);
if(SEARCHPARAM.Where!=null){alp(LPN.Where,$(GLOBALS.Where).value)
}alp(LPN.Offset,SEARCHPARAM.Offset==null?EMPTY:SEARCHPARAM.Offset)
}alp(LPN.Scope,activeScope==SEARCHTYPE.Local?"lokal":activeScope);
alp(LPN.Time,new Date().getTime());
if(typeof currentLogParam!="undefined"&&currentLogParam!=null){for(i=0;
i<currentLogParam.length;
i++){B+="&"+currentLogParam[i].key+"="+currentLogParam[i].value
}statImage.src=B.toLowerCase()+"&";
currentLogParam=[]
}return false
};