/* DNA Tracking Code */
/* This script tests the ppc parameter in the url. */
/* URLs submitted for paid campaigns need to have "ppc=y"  to the URL of each landing page.              */
/* Otherwise, DNA counts the clicks to the paid ads. This code can be pasted to HEAD section or saved as .js include file. */

var urlparam = document.location.href.split('?');
if( urlparam[1] )
{
    var params = urlparam[1].split('&');
    var ppcCheck = 0;
    for( var i = params.length -1; i >= 0; i-- )
    {
        var param = params[i].split('=')[0];
        var value = params[i].split('=')[1];
        if(param == 'ppc' || param == 'PPC')
        {
            if(value == 'y' || value == 'Y')
            {
                ppcCheck = 1;
            }
        }
    }
    if( ppcCheck == 0 )
    {
        DITrack();
    }
}
else
{
    DITrack();
}
 
/* ppc is checked above and tracking starts below */

function DITrack()
{


var refr=escape(document.referrer); /* get the http referer and encode it */
var dom=location.hostname; /* get the host domain */
var stURL="http://au.track.decideinteractive.com/n/16013/16083/www.bigpond.com/4bd0e3ab002503000000000600000000036fa1a60000000000000000000000000000000100/i/c?0&pq=%2fnews&1pixgif&referer="
+ refr;
if (refr && refr.search(dom) == -1) /* if the referrer is external preload the image request */
{
imageTR = new Image();
imageTR.src = stURL;
}


}

/* End DI Tracking Code */
