if((typeof ataxscript == 'undefined' || ataxscript.length == 0) &&
(typeof ataximg == 'undefined' || ataximg.length == 0) &&
(typeof showStitial == 'undefined' || !showStitial) &&
(typeof forwardedByStitial == 'undefined' || !forwardedByStitial))
{
var now = new Date();
var random = now.getTime();
var ataxscript = "<"+"script src='http://atax.ign.com/size=1x1&property=ign&site=direct2drive&dechannel=ign&subdomain=www.direct2drive.com&hosted_id=11187®insider=a&PageId=1255729001576&random=1255729001576&network=fim&server=linapp40.in.snowball.com&src=wrapper&name=ATAtracker&ct=js&'" + ">"+"<" + "/script" + ">";
document.write(ataxscript);
// ubt pixel as transparent GIF.
if (ataxscript.indexOf("atax.ign.com") >= 0) // why was this trued?
{
// change to GIF form
var ubtscript = ataxscript.split('atax').join('ubt');
var tokens = ubtscript.split("'");
tokens = tokens[1].split('/');
tokens[3] = tokens[3].split('?').join('&');
ubtscript = '';
ubtscript = ubtscript.split('ct=js').join('ct=gif');
document.write(ubtscript);
}
// pixel for Akamai tracking
// var akamai = '';
// document.write(akamai);
// nuconomy stuff
// gamespy only
if (false && ataxscript.indexOf("atax.gamespy.com") >= 0)
{
// setup stuff
document.writeln("");
// make sure the ign read user stuff is in
if (typeof(getUsernameFromIgnLogin) == 'undefined')
{
document.writeln("");
}
// save old onload
var ___oldWinOnload = window.onload;
// wait for the document.writeln to load
window.onload = function()
{
// execute old one first
if (typeof(___oldWinOnload) == 'function') {___oldWinOnload();}
// tell them it's gamespy
NUCONOMY.ProjectToken = "3e17decd-54";
// log the PV; 1 = PV; 0 = value
NUCONOMY.Logger.LogActivity( getUsernameFromIgnLogin(), '', document.location , 1, 0);
// the metadata will be the ATA name/value pairs
var tokens = ataxscript.split("'");
tokens = tokens[1].split('/');
tokens[3] = tokens[3].split('?').join('&'); // add in query string
tokens[3] = tokens[3].split('&').join(';'); // convert to semi-colon delimited
// we need to use pagetype expressly
var tokens2 = tokens[3].split(';');
var pagetype = '';
try
{
for (token in tokens2)
{
if (tokens2[token].indexOf("pagetype") == 0)
{
pagetype = tokens2[token].substring(9); // remove pagetype=
break;
}
}
}
catch (err) {}
// set metadata---
NUCONOMY.Logger.SetContentMetadata (document.location, '' , pagetype, tokens[3] );
}
}
}