function sendAnalyticsEvent(str){ 
	try{
		if(typeof dispatcher!="undefined"){
			ns=com.mtvi.reporting.Account.name;
			if(str!=null&&str!=="") ns+=","+str;
			com.mtvi.reporting.Account.name=ns;
			dispatcher.sendCall();
		}
	}catch(e){}
}

function sendLinkEvent(str,lnkname){
	try{
		if(typeof dispatcher!="undefined"){
			ns=com.mtvi.reporting.Account.name;
			if(str!=null&&str!=="") ns+=","+str;
			com.mtvi.reporting.Account.name=ns;
			dispatcher.setAttribute("linkType","o");
			dispatcher.setAttribute("lnk",true);
			dispatcher.setAttribute("linkName",lnkname);
			dispatcher.send();
		}
	}catch(e){}
}

function sendReportingCall(ro){
	if(ro){
		if(ro.setOverrides)	omniSetOverrides(ro.setOverrides);
	} sendAnalyticsEvent("");
}

function sendLinkCall(linkName, ro){
	var lnkName = unescape(linkName);
	if(ro){
		if(ro.setOverrides)	omniSetOverrides(ro.setOverrides);
	} void(sendLinkEvent("", lnkName));
}

function omniSetOverrides(or){
	for(var i in or){
		try{
			if(typeof dispatcher!="undefined"){
				var omniParam=i.replace(/s_/,"");
				com.mtvi.config.SectionSetup[omniParam]=or[i];
				dispatcher.setAttribute(omniParam,or[i]);
			}
		}catch(e){}
	}
}
