function xPageGreyLog(sDivClass, sImgUrl, sImgClass, sMsg, sMsgClass)
{
  /*@cc_on
  @if (@_jscript_version < 5.5) //  not supported in IE until v5.5
  this.ele = null;
  @else @*/
  this.ele = document.createElement('div');
  this.ele.className = sDivClass;
  if (sImgUrl) {
    var img = document.createElement('img');
    img.src = sImgUrl;
    img.className = sImgClass;
    this.msg = document.createElement('p');
    this.msg.className = sMsgClass;
    this.msg.appendChild(img);
    this.msg.appendChild(document.createTextNode(sMsg));
    this.space = document.createElement('br');
    this.msg.appendChild(this.space);
    this.space = document.createElement('br');
    this.msg.appendChild(this.space);
 

	  this.elea = document.createElement('div');
          this.elea.className = 'scelta';
	  this.eleab = document.createElement('a');
          this.eleab.setAttribute("href",'http://www.theprimate.it');
	  this.elea.appendChild(document.createTextNode('Si, perchè non mi interessa quel che dici'));
          this.eleab.appendChild(this.elea);
	  this.msg.appendChild(this.eleab);
 

	  this.elea = document.createElement('div');
          this.elea.className = 'scelta';
	  this.eleab = document.createElement('a');
          this.eleab.setAttribute("href",'http://www.theprimate.it');
	  this.elea.appendChild(document.createTextNode('Si, perchè cercavo proprio lui'));
          this.eleab.appendChild(this.elea);
	  this.msg.appendChild(this.eleab);
 
  		this.elea = document.createElement('div');
          this.elea.className = 'scelta';
	  this.eleab = document.createElement('a');
          this.eleab.setAttribute("href",'http://www.theprimate.it');
	  this.elea.appendChild(document.createTextNode('Vabé'));
          this.eleab.appendChild(this.elea);
	  this.msg.appendChild(this.eleab);

   
	  this.elea = document.createElement('div');
          this.elea.className = 'scelta';
	  this.eleab = document.createElement('a');
          this.eleab.setAttribute("href",'#');
	  this.eleab.onclick=function(){
	     		primater.hide();
	     		return false;
	   	  };
	  this.elea.appendChild(document.createTextNode('Anche.. anzi no, ma poi vengo'));
          

          this.eleab.appendChild(this.elea);
	  this.msg.appendChild(this.eleab);

    document.body.appendChild(this.msg);
  }
  document.body.appendChild(this.ele);

  /*@end @*/
  this.show = function()
  {
    if (this.ele) {
      var ds = xDocSize();
      xMoveTo(this.ele, 0, 0);
      xResizeTo(this.ele, ds.w, ds.h);
      if (this.msg) {
        xMoveTo(this.msg, xScrollLeft()+(xClientWidth()-xWidth(this.msg))/2, xScrollTop()+(xClientHeight()-xHeight(this.msg))/2);
      }
    }
  };
  this.hide = function()
  {
    if (this.ele) {
      xResizeTo(this.ele, 10, 10);
      xMoveTo(this.ele, -10, -10);
      if (this.msg) {
        xMoveTo(this.msg, -xWidth(this.msg), 0);
      }
    }
  };
}

