var mtvi={
	config: {
		account: "viacmt",
		list: "viacmtdev=cmt-d,cmt-q,mtvi.com",
		filters: "javascript:,cmt.com,mtvi.com"
	},
	path: "www.cmt.com/global/scripts/yeti/remotecall.html",
	data: {/*local overrides*/},
	error: function(e){
		try{
			var url="http://viarnd.112.2o7.net/b/ss/viarnd/1/EMAIL?";
			var map={message:'c21',name:'c22',stack:'c23'};
			var msg=url+"pageName=JS_ER-"+window.location;
			if(!(e.stack)){e.stack=window.location.href;}
			for(var i in map){
				if(e[i]){msg+="&"+map[i]+"="+e[i].replace(/^.*www\.(.*)\.com/g,"");}
			}
			var img=new Image();img.src=msg;
		}catch(e){}
	},
	setPageVars: function(){
		try{
			this.config.pageName=window.location.href.split('?')[0].replace(/^.*www\.(.*)\.com/g,"");
			this.config.hier2=this.config.pageName.replace(/^\//,"");
			this.config.channel=this.config.hier2.split("/")[0];
			this.config.referrer=window.document.referrer?window.document.referrer:"";
		}catch(e){this.error(e);}
	},
	getProtocol: function(){
		try{
			return (window.location.href.indexOf("https")!=-1?'https':'http');
		}catch(e){this.error(e);}
	},
	getQueryString: function(){
		try{
			var a=[];
			for(var i in this.data){if(this.data[i]){this.config[i]=this.data[i];}}
			for(var i in this.config){a.push(i+"="+this.config[i]);}
			return a.join('&');
		}catch(e){this.error(e);}
	},
	getFrame: function(){
		try{
			return '<ifr' + 'ame src="' + this.getProtocol() + '://' 
			+ this.path + '?' + this.getQueryString() 
			+ '" width="0" height="0" name="mtvi" marginheight="0" marginwidth="0"'
			+ ' frameborder="0" scrolling="no"></ifr' + 'ame>';
		}catch(e){this.error(e);}
	},
	send: function(){
		try{
			this.setPageVars();
			document.write(this.getFrame());
		}catch(e){this.error(e);}}
};
