//thisNode = "traffic"; // debug

var trafficUpgradeURL = "http://www.washingtonpost.com/wp-srv/traffic/ssi/browserUpgrade_Traffic.html";

// define nodes to be upgraded:
var upgradeList = new Array(1);
upgradeList[0] = new UpgradeNode("traffic", false, trafficUpgradeURL);


// determine if browser supports getElementById
if (!document.getElementById) 
{
	//determineValidBrowser();
	top.location.replace(trafficUpgradeURL);
}


function UpgradeNode(nodeName, includeChildren, upgradeURL)
{
	this.nodeName = nodeName;
	this.includeChildren = includeChildren;
	this.upgradeURL = upgradeURL;
}


function determineValidBrowser()
{
	// go through upgrades list to determine redirect url
	for (var i=0; i <= upgradeList.length; i++) 
	{
		var theNodeName = upgradeList[i].nodeName;
		var isIncludeChildren = upgradeList[i].includeChildren;
		var theUpgradeUrl = upgradeList[i].upgradeURL;
		
		if (theNodeName.indexOf(thisNode) == 0 )
		{
			//alert("upgrade url "+ theUpgradeUrl); // debug
			top.location.replace(theUpgradeUrl);
		}
		else
		{
			//alert("not in list"); // debug
		}
		
	}
 	//top.location.replace('http://www.washingtonpost.com');
}


