$(document).ready(function(){PostEvent('view');});function PostEvent(eventtype){var refererurl;if(typeof document.referrer=="undefined"){refererurl='';}else{refererurl=document.referrer;}
var url='http'+(location.protocol=='https:'?'s://':'://')+location.host+'/events.php';$.ajax({async:false,type:"POST",url:url,data:({type:eventtype,referer:refererurl,url:location.href})});}
