var xmlhttp;
var seenIt = new Array(100)


function loadXMLDoc(url)
{
	xmlhttp=null;
	if (window.XMLHttpRequest)
	{
	  	xmlhttp=new XMLHttpRequest();
        xmlhttp.open("GET",url,true);
		xmlhttp.send(null);

	}
	else 	    
    {
        try{ xmlhttp = new ActiveXObject("MSXML2.XMLHTTP.6.0");  }catch(e){}
        try{ if(!xmlhttp) xmlhttp = new ActiveXObject("MSXML2.XMLHTTP.3.0");  }catch(e){}
        try{ if(!xmlhttp) xmlhttp = new ActiveXObject("MSXML2.XMLHTTP");  }catch(e){}
        try{ if(!xmlhttp) xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");  }catch(e){}
        try
        {
            xmlhttp.open("GET",url,true);
		    xmlhttp.send(null);
		}
        catch(e){}  
    }
}

function logIt(intNewItem)
{
    var force = Math.floor(Math.random()*100000);
    if (seenIt[intNewItem] == undefined)
    {   
        seenIt[intNewItem] = 1;
	    loadXMLDoc("logIt.asp?event=" + intNewItem + "&rnd=" + force);
    }
}

function logExpand(objGroup,objRow)
{   
	switch (objGroup)
	{
	    case 1:
	        logIt(objRow + 13);
	        break;
	    case 2:
	        logIt(objRow + 44);
	        break;
	    case 3:
	        logIt(objRow + 52);
	        break;
	    default:
		    logIt(objRow + 4);
    }
}
