<!--
    var main = document.getElementById('header');
    var dWrapDiv = document.createElement("div");
    var dRegBar = document.createElement("div");
    var aReg = document.createElement("a");
    var aSign = document.createElement("a");
    var aLogOut= document.createElement("a");
    var aAcc = document.createElement("a");
    var sWelcome = document.createElement("span");
    /*var hantCookieSet = SetCookie('hant', 'skinnycat', 5);
    var uifdCookieSet = SetCookie('uifd', 'Neil Cooper', 5);*/
    var idCookie = ReadCookie('hant');
    var nameCookie = ReadCookie('uifd');
    var txtUid;
    var txt;

    dWrapDiv.setAttribute("id", "GM_Console");
    dWrapDiv.setAttribute("class", "hbx-lpos hbx-con");
    dRegBar.setAttribute("id", "regBar");
    dRegBar.setAttribute("class", "hbx-c");
    sWelcome.setAttribute("id", "welcome");
    aLogOut.setAttribute("id", "logOut");
    aLogOut.setAttribute("class", "hbx-lid");    
    aSign.setAttribute("id", "signIn");
    aSign.setAttribute("class", "hbx-lid");
    aAcc.setAttribute("id", "myAccount");
    aAcc.setAttribute("class", "hbx-lid");
    aReg.setAttribute("id", "register");
    aReg.setAttribute("class", "hbx-lid");
    
    //home page
    aReg.setAttribute("href", "https://webauth.sky.com/registration/register!doDefault.action?key=2afb3d573e952653198f1cb86db26095");
    aSign.setAttribute("href", "https://webauth.sky.com/registration/login!doDefault.action?key=2afb3d573e952653198f1cb86db26095");
    aLogOut.setAttribute("href", "http://mysky.sky.com/portal/servlet/logout?rp=http%3A%2F%2Fgames.sky.com");   
    aAcc.setAttribute("href", "https://mysky.sky.com/portal/site/games/myaccount");
    
    if (idCookie != "") {
        dRegBar.appendChild(aLogOut);
        dRegBar.appendChild(aAcc);
        dRegBar.appendChild(sWelcome);
        dWrapDiv.appendChild(dRegBar);
        main.appendChild(dWrapDiv);
        txtUid = document.createTextNode(idCookie);
        document.getElementById('welcome').appendChild(txtUid);
        txtUid = document.createTextNode("Sign Out");
        document.getElementById('logOut').appendChild(txtUid);
        txtUid = document.createTextNode("Profile");
        document.getElementById('myAccount').appendChild(txtUid);
    } else {    
        dRegBar.appendChild(aReg);
        dRegBar.appendChild(aSign);
        dWrapDiv.appendChild(dRegBar);
        main.appendChild(dWrapDiv);
        txt = document.createTextNode("Sign Up");
        document.getElementById('register').appendChild(txt);
        txt = document.createTextNode("Sign In");
        document.getElementById('signIn').appendChild(txt);
    }


function ReadCookie(cookieName) {
 var theCookie=""+ document.cookie;
 var ind=theCookie.indexOf(cookieName);
 if (ind==-1 || cookieName=="") return ""; 
 var ind1=theCookie.indexOf(';',ind);
 if (ind1==-1) ind1=theCookie.length; 
 return unescape(theCookie.substring(ind+cookieName.length+1,ind1));
}
-->