/*************************************************************
* Note that this script MUST appear in the BODY, not the HEAD, 
* of every page that needs to be reported.
*************************************************************/

	//You must change defaultPageName if yours isn't "index.html"!
	var defaultPageName = "index.htm";
	var pageName = (location.pathname.charAt(location.pathname.length-1)=="/")?location.pathname.substring(1,location.pathname.length-1):location.pathname.substring(1);
	pageName = pageName==""?defaultPageName:pageName;
	var channel = pageName.split("/").length>1?pageName.split("/")[0]:defaultPage;

	//Reporting Account Config
	com.mtvi.reporting.Account={
		name:'viaeurovh1',
		dynamic:'true',
		list:'viaeurovh1dev=inhouse,mtvi.com',
		filters:'javascript:,mtv.tv,inhouse,mtvi.com,'+location.hostname
	};
	//Create an instance of Dispatcher
	var dispatcher=new com.mtvi.reporting.Dispatcher();

	//Manually set channel, pagename, hierarchy, and "props"
	dispatcher.setAttribute('pageName',pageName);
	dispatcher.setAttribute('channel',channel);
	dispatcher.setAttribute('hier1',pageName);

	//Send the reporting call. All configuration must be done prior to this point.
	dispatcher.sendCall();

