
var Groep1 = new Group('yoZfyc6GX8nsj0gNyI9IDc');
var Groep2 = new Group('POQMoTDkDKE+slcPerJXD3');

DeclareUser('tpzG4r6cxuK/RPdj90T3Y/','Dw4ohg8OKIY/CNBhewjQYT',[Groep1,'7G/hDWrAE9I']);
DeclareUser('8y+Jwf8vicH/EE0orxBNKK','bVS0EG1UtBB+XX7Lrl1+y6',[Groep1,'S+RC8zg+jLL'],[Groep2,'8rRbJj2zNeL']);
DeclareUser('5/kcUe/5HFH+lT5x3pU+cQ','XwWxiF8FsYh+q5398qud/a',[Groep1,'GFNqtBfFBGP'],[Groep2,'oQNzYRJIvTP']);
DeclareUser('up+EZr6fhGa1RvUsHUb1LB','wEuojMxLqIzlUP3v/VD977',[Groep1,'4vhe6riFkWG'],[Groep2,'W6hHP70IKDG']);
DeclareUser('yD4sysA+LMr+Ao/D5gKPw4','ipObl46Tm5epTAdY/UwHWP',[Groep1,'r4tzzih9O3C'],[Groep2,'FttqGy3wgiC']);//kc

var S = new Session('my_session');
S.Callback = s_cb; 
S.nCookieExpirationDelay = 48;
S.bLocationLogin = false;

var ly;

function r_cb(context,lparam)
{
  if(context == this.ccAfterDecrypt)
  {
    if(!lparam)
      top.mainFrame.document.getElementById("cnt").innerHTML = "";
    else  
	  top.mainFrame.document.getElementById("cnt").innerHTML = lparam; 
  } else if(context == this.ccInvallidMaster)
  {
    top.mainFrame.document.getElementById("cnt").innerHTML = "Sorry, but you do not have authorisation to view this page.";
  }
  return true;
}   

function s_cb(context,lparam)
{
  switch(context)
  {
    case this.ccLogin:
	  top.leftFrame.document.getElementById("mnu").style.display = '';
	  top.leftFrame.showMenuX('Menu');
	  ly=top.mainFrame.document.getElementById("content");
      if (ly) {
       ly.style.display = "block";
       ly.style.visibility = "visible";
      };
	  lz=top.mainFrame.document.getElementById("about");
      if (lz) {
       lz.style.display = "none";
       lz.style.visibility = "hidden";
      };
      setTimeout("Content.DecryptResourceS(S)",0);
      break;
    case this.ccLogout:
	  top.mainFrame.location.href='start.htm';
	  top.leftFrame.document.getElementById("mnu").style.display = 'none';
	  top.leftFrame.hideMenuX('Menu');
	  ly=top.mainFrame.document.getElementById("content");
      if (ly) {
       ly.style.display = "none";
       ly.style.visibility = "hidden";
      };
      default_text();
  }
  return true;
}

function default_text()
{
}

function login() 
{
  S.UserLogin('HrtgBuff','RnoHTpsR','false'); 	
}

function logout() 
{  
  S.Logout();
}
