//this is the user's webjam login session
var rootLoginHash = "";
var rootLoginExpiry = "10 Feb 2010 04:46:40 UTC";
var rootDomain = document.domain;
if(rootDomain != null) rootDomain = rootDomain.replace("www.", "");

if(rootLoginHash != "") {
if(loginHash == "") {
//erase the current cookie if any
eraseCookie("LoginHash", rootDomain);

//set the webjam cookie and refresh
createCookie("LoginHash", rootLoginHash, rootLoginExpiry);

if(window.location.href.indexOf("__wjRefresh") == -1) {
//refresh the page
//$refresh();
}
}
}