<!--
// user profile display on main pages:
// to be inserted in main body
// requires personaliseRetrieve to be inserted in HEAD

// ********** Global variables set-up below **********

var userProfile = Get_Cookie("userProfile");
// retrieves cookie value, or returns null if not exist

 if (userProfile)
// if there is a cookie called userProfile, sets up the global values below:
{
var user = getValues(userProfile,"user");
var backColour = lookup("backColour", getValues(userProfile,"backColour"));
var textColour  = lookup("textColour", getValues(userProfile,"textColour"));
var world = lookup("world", getValues(userProfile,"world"));
var age = getValues(userProfile,"age");
var sex = getValues(userProfile,"sex");
var interests = getValues(userProfile,"interests");
// interests returned as an array 0 - 7
}

document.write('<span class="special">');

if (!userProfile) {
    
    document.write('<div align="center">');
    document.write(" Hello Web Surfer!  Give power to your visits by clicking on Personalise!");
    document.write('</div>');    
    }
    
else {
    document.write('<div align="center">');
    document.write("    Welcome back, " + user + ".      ");
    document.write('<img src="/images/clear.gif" width="10" height="1">');
    document.write("Your World Zone:  " + world + "  ");
    if (world == "USA/Canada") {
    document.write('<img src="/images/clear.gif" width="10" height="1">');
    document.write("Page Color: " + backColour + "   ");
    document.write('<img src="/images/clear.gif" width="10" height="1">');
    document.write("Text Color: " + textColour + "   ");}
    else {
    document.write('<img src="/images/clear.gif" width="10" height="1">');
    document.write("Page Colour: " + backColour + "   ");
    document.write('<img src="/images/clear.gif" width="10" height="1">');
    document.write("Text Colour: " + textColour + "   ");
    document.write('</div>');
    }
}
document.write('</span>');
//-->