/*
	Pulled all dotomi code from FM templates, wrapped in dojo.addOnLoad, wrapped in try-catch-squelch block.
*/
dojo.addOnLoad(function(){
	if (typeof dtmTag==='object') {dtmTag.dtmc_ref = document.referrer;}
	try{
		for (var item in dtmTag){
			if(typeof dtmTag[item] != "function" && typeof dtmTag[item] != "object")
				dtmSrc += "&" + item + "=" + escape(dtmTag[item]);
		}
		setTimeout(function (){ 
			if(document.getElementById("dotomiDomHook"))
				document.getElementById("dotomiDomHook").innerHTML = "";
		},2000);
		if(dojo.byId("dotomiDomHook"))
			dojo.byId("dotomiDomHook").innerHTML = '<iframe name="response_frame" src="' + dtmSrc + '"></iframe>';
	} catch(err) {
		//squelch any dotomi errors.
	}
});
