function LoadLocalAgent(CharID, CharACS) {
LoadReq = npds.Characters.Load(CharID, CharACS);
return(true);
}
function unloadLoadLocalAgent(CharID, CharACS) {
LoadReq = npds.Characters.Load(CharID, CharACS);
return(false);
}
var ismarlindeja_ano = getCookie("Genie_ano");
function doGenie_ano(numip) {
var numip;
var GenieID;
var GenieACS;
npds.Connected = true;
GenieLoaded = LoadLocalAgent(GenieID, GenieACS);
Genie = npds.Characters.Character(GenieID);
if ( ismarlindeja_ano !="dejavu_ano") {
    
Genie.Show();
Genie.MoveTo (0,0);

Genie.Play("GetAttention");
Genie.Play("Alert");
Genie.speak("Bienvenue chez guadopure, Mettez le son, je vous parle")
Genie.speak("Bonjour je suis votre humble serviteur");
Genie.Play("Read");
Genie.Play("ReadReturn");
Genie.speak("Vous avez frotté la lampe magique ?");
Genie.Play("GestureUp");
Genie.Play("Congratulate");
Genie.speak("Alors faites un voeu sur ce site");
Genie.Play("Process");
Genie.Play("Announce");
Genie.Play("Acknowledge");
Genie.Play("GestureDown");
Genie.Play("Blink");
Genie.speak("Je suis sur qu'il sera exaucé");
Genie.Play("DoMagic1");
Genie.MoveTo (303,200);
Genie.Play("Suggest");
Genie.speak("Venez nous rendre visite");
Genie.Play("Blink");
Genie.speak("Pour un conseil personnalisé");
Genie.speak("un achat à crédit");
Genie.Play("GestureRight");
Genie.speak("Voir les produits");
Genie.Play("GestureLeft");
Genie.speak("Voir une démo sur la qualité de l'eau");
Genie.Play("Blink");
Genie.MoveTo (10,450);
Genie.speak("Nous sommes à votre disposition");
Genie.Play("Blink");
Genie.speak("Accueil, sourire sont notre force");
Genie.speak("Notre service après vente est irréprochable");
Genie.speak("Dépannage, et livraison dans les vingt quatre heures");
Genie.speak("Quatre commerciaux et deux techniciens pour vous servir");
Genie.MoveTo (350,10);
Genie.Play("Blink");
Genie.Play("DoMAgic2");
Genie.speak("J'allais oublier");
Genie.Play("LookLeftReturn");
Genie.Play("LookRightReturn");
Genie.Play("Search");
Genie.speak("Les escrocs sont toujours sur la place");
Genie.speak("Donc attention à la date pour vos cartouches");
Genie.speak("C'est une fois par an seulement");
Genie.speak("Pas tous les six mois");
Genie.speak("Comme le fait une société de la place");
Genie.speak("Et juste un rappel il n'y a que GUADOPURE");
Genie.speak("c'est juste une question d'honneteté");
Genie.speak("Bon surf");
Genie.Play("DoMAgic1");
Genie.Hide();
setCookie("Genie_ano", "dejavu_ano");
} else {
}
}

function setCookie(name, value, expires, path, domain, secure)
{
document.cookie= name + "=" + escape(value) +
((expires) ? "; expires=" + expires.toGMTString() : "") +
((path) ? "; path=" + path : "") +
((domain) ? "; domain=" + domain : "") +
((secure) ? "; secure" : "");
}

function getCookie(name)
{
var dc = document.cookie;
var prefix = name + "=";
var begin = dc.indexOf("; " + prefix);
if (begin == -1)
{
begin = dc.indexOf(prefix);
if (begin != 0) return null;
}
else
{
begin += 2;
}
var end = document.cookie.indexOf(";", begin);
if (end == -1)
{
end = dc.length;
}
return unescape(dc.substring(begin + prefix.length, end));
}

function deleteCookie(name, path, domain)
{
if (getCookie(name))
{
document.cookie = name + "=" +
((path) ? "; path=" + path : "") +
((domain) ? "; domain=" + domain : "") +
"; expires=Thu, 01-Jan-70 00:00:01 GMT";
}
}