var nav        = window.navigator.userAgent.toString().toLowerCase();
var isMSIE     = nav.indexOf("msie") > -1 && nav.indexOf("opera") == -1;

window.onload = function () {
  /* start the comment form if it is present - commentform.js */
  if (document.getElementById("commentform")){ setEvents(); } 
}

/* SET THE COOKIE DATA FOR A FRIEND REQUEST CLICK */
function friendClick(id){
    setCookie('fid',id,365);
}