if (window.XMLHttpRequest)
{
	xhttp=new XMLHttpRequest();
}
else // Internet Explorer 5/6
{
	xhttp=new ActiveXObject("Microsoft.XMLHTTP");
}

xhttp.open("GET","omniture.xml",false);
xhttp.send("");
xmlDoc=xhttp.responseXML; 


var tags = xmlDoc.getElementsByTagName("tag");
var omniturexml_s = new Array();

for(i = 0; i < tags.length; i++)
{
	tag = tags[i].getAttribute("tag");
	
	omniturexml_s[tag] = new Array();
	
	for (a = 0; a < tags[i].attributes.length; a++)
	{
		name = tags[i].attributes[a].name;
		value = tags[i].attributes[a].value;
		
		omniturexml_s[tag][name] = value;
	}
}


function omniture_tc_log (tag)
{
	if (omniturexml_s[tag])
	{
		omniture_log(omniturexml_s[tag]);
	}
	else 
	{
		if (console != null)
		{
			console.log("No Omniture-Tag for: " + tag);
		}
	}
	
	tc_log(tag);
}
