/**
 * NetGenesis Page Dot Script
 *
 * This javascript uses system & user-assigned variables to
 * create a meaningful entry in the page dotting webserver access
 * log.
 **/


function pagedot() {


     //Version 102
     //
     var ng_pdver=102;

     // Inherit protocol from Web Page requested
     //
     var loggingProtocol = window.document.location.protocol;

     //
     //Edit the next few lines to include the pointer to your one by one pixel gif
     //

     // host name for logging server
     //
     var loggingHost="//pagedot.rivalsdm.com";

     // name of path for location of gif
     //
     var loggingContextPath="/img/" ;

     // the tracking server returns the 1x1 invisible gif for all gif requests.
     var loggingGif = "1pixel.gif";

     var loggingURL = loggingProtocol
        + loggingHost
        + loggingContextPath 
        + loggingGif;
 

	
     // variables used to bust caches
     //
     var n = new Date;
     var r1 = n.getMilliseconds();
     var r2= Math.floor(Math.random()*12345678);

     // Building the query string of tracking information passed to the Page Dot Server.
     //
     var querystr = "?";

     querystr +=   "ng_host="      + window.location.host;
     querystr +=   "&ng_datetime="  + escape(Date());
     querystr +=   "&ng_pagetitle=" + escape(window.document.title);
     querystr +=   "&ng_referrer="  + escape((parent.window.document.referrer==""?"-":parent.window.document.referrer));
     querystr +=   "&ng_language="  + escape((navigator.appName=="Netscape"?navigator.language:navigator.userLanguage));

     if(navigator.appName=="Netscape"){ 
         querystr += "&ng_plugins=";
         for(var _i = 0; _i < navigator.plugins.length; _i ++)querystr += escape(navigator.plugins[_i].name)+":";
     }else querystr += "&ng_plugins=na";

     querystr += "&ng_screenresolution=" + window.screen.width+"*"+window.screen.height;
     querystr += "&ng_screencolordepth="+window.screen.colorDepth;
     querystr += "&ng_cookieOK="+(navigator.cookieEnabled?"Yes":"No");



     //
     //   Meta Tag Support
     //
     var ngpd_Meta;
     var ngpd_DocumentElements=null;
     if (document.all)
     { 
        ngpd_DocumentElements=document.all.tags("meta");
     }  else if (document.documentElement)
     {
        ngpd_DocumentElements=document.getElementsByTagName("meta");
     } 
     if(ngpd_DocumentElements)
     {
        for (var i=1; i<=ngpd_DocumentElements.length;i++)
        {
          ngpd_Meta=ngpd_DocumentElements.item(i-1);

          // Code to only strip out certain META TAGS WITH ngmeta_ Naming Convention
          //

         if (ngpd_Meta.name.indexOf("ngm_")==0) 
         querystr+="&"+ ngpd_Meta.name + "=" + escape(ngpd_Meta.content);
        }
     }

     querystr += "&ng_pdver="+ng_pdver;
     querystr += "&ng_r1=" + r1 + "&ng_r2=" + r2;


     //create the dot itself
     //
     var image = new Image();
     image.src = loggingURL + querystr;
}


window.onload=pagedot;




