/* If first char is a slash, omit adding one */
var pageName = "Logo"+location.pathname;

if (location.pathname.match(/\/$/) && location.pathname.length==1)
	pageName = pageName.substr(0,pageName.length-1);

// Check CODA version
// If version below 3, then then map old Object to new one
if(typeof btg == 'undefined' || btg == null) btg = {};
if(typeof(btg.Controller) == 'undefined' && typeof mtvn != 'undefined' && mtvn != null && mtvn.hasOwnProperty('btg') && mtvn.btg != null && typeof mtvn.btg.Controller != 'undefined') {
		btg.Controller = mtvn.btg.Controller;
}

// Initialize Controller
btg.Controller.init();

//var dispatcher= new com.mtvi.reporting.Dispatcher();
var dispatcher = btg.Controller;

