function Is ()
{   // convert all characters to lowercase to simplify testing
    var agt=navigator.userAgent.toLowerCase()

    // *** BROWSER VERSION ***
    this.major = parseInt(navigator.appVersion)

    this.nav  = ((agt.indexOf('mozilla')!=-1) && ((agt.indexOf('spoofer')==-1)
                && (agt.indexOf('compatible') == -1)))

    this.nav4 = (this.nav && (this.major == 4))
  
    this.DOM = (document.getElementById) ? 1 : 0

    this.ie   = (agt.indexOf("msie") != -1)
    this.ie4  = (this.ie && (this.major == 4))
    this.ie4up  = this.ie  && (this.major >= 4)
}
var is = new Is();

function creationdiv(id, width, message)
{
   var theString = '<STYLE TYPE="text/css">#'+id+'{width:'+width+';}</STYLE>';
   theString+='<DIV CLASS="cadrevisa" id="'+id+'">'+message+'</DIV>';
   document.write(theString);
}
function affiche(id, event)
{
	if (is.nav4) {
		document.layers[id].left = event.pageX + 10;
		document.layers[id].top = event.pageY + 10;
		document.layers[id].visibility="show";
		}

	 if (is.ie) {
		document.all[id].style.pixelLeft = (document.body.scrollLeft +event.clientX) + 10;
		document.all[id].style.pixelTop = (document.body.scrollTop + event.clientY) + 10;
		document.all[id].style.visibility="visible";
		} 

	else if (is.DOM)    	{
		document.getElementById(id).style.left = event.pageX + 10;
		document.getElementById(id).style.top = event.pageY + 10;
		document.getElementById(id).style.visibility="visible";
		}
}
function cache(id)
{
	if (is.nav4) {document.layers[id].visibility="hide"}
	if (is.ie)	 
		{document.all[id].style.visibility="hidden"}
	else if (is.DOM) 
		{document.getElementById(id).style.visibility="hidden";}
}
