//
// NOTE: The following onload event fucntion is also in /lfg/js/lfgclient/view.js since the index template for the home page of the
// SLUX views is not the same as the index template for the inner pages
//
// Need to update the index template of the home page to include the view.js and remove this from common-home.js
//
if(location.href.indexOf("/lfgclient/smp")!=-1){
function addLoadEvent(func) {
  var oldonload = window.onload;
  if (typeof window.onload != 'function') {
    window.onload = func;
  } else {
    window.onload = function() {
      oldonload();
      func();
    }
  }
}

function hasAutoCookie(){
	return false;
}

function callPrepareAutoLogoff() {
	prepareAutoLoggoff(viewAs);	
}

addLoadEvent(callPrepareAutoLogoff);
}