	
	










		//Including Coda 3 config.
		

if(typeof btg=="undefined")var btg = {};

btg.config={
	version:'2',
	defferedAdLoading: false,
	Omniture:{
		enabled: true,
		account: 'viaicarly',
		charSet: '',
		dynamicAccountSelection: 'false',
		dynamicAccountList:  '',
		linkInternalFilters: 'javascript:',
		videoViewEventDisable: true,
		enableTimeParting: false,
		trackInlineStats: true,
		defaultHier: 'hier1',
		enableVisitorNamespace: 'false',
		enableMtvnVisitorGuid: false,
		enableMeteorPlugin: false,
		enableGuidPlugin: true,
		enableGuidAuxiliaryCall: true,
		enableFirstPartyCookie: false,
		tabletAccount: '',
		timezone: '-5',
		trackExternalLinks: 'true',
		fluxCommunityId:''
	},
	Nielsen:{
		enabled:       false,
		cid:      '',
		videoCensusId: ''
	},
	GoogleAnalytics:{
		enabled:    false,
		account:    '',
		reportMode: '' // iframe/direct
	},
	QuantCast:{
		enabled:    true,
		adsEnabled:  false,
		labels:     'MTVN Global Digital Network,MTVN Global Digital Proper,Nickelodeon Kids and Family Global Network,Nickelodeon Kids and Family Proper,Nickelodeon Kids and Family Domestic,Nickelodeon Kids and Family Tribes,Nickelodeon Kids Digital,Nick Network,iCarly Site',
		reportMode: '' //direct/ads
	},
	ComScore:{
		enabled:    true,
		c2:	'6036034'
	},
	Meteor:{
		enabled:false,
		applicationId:"",
		multiDomain:false
	},
	ChoiceStream:{
		enabled:false,
		apiKey: "",
		profileId:""
	},
	DoubleClick:{
		enabled:  true,
		dartSite: 'icarly.nol'
	},
	International:{
		enabled:  false,
		dartSite: ''
	},
	ABTest:{
		enabled:  false
	},
	FluxHosted:{
		enabled:  false
	},
	Photos:{
		enabled:  false
	},
	TestAndTarget:{
		enabled:  false
	},
	Demdex:{
		enabled:true
	}
};
	


	
		
				
				
					
						
					
		
				//Including Coda 2 build.
				// CODA 2.51 dated 24-Oct-2011 Mon 01:32 PM
/*	SWFObject v2.2 <http://code.google.com/p/swfobject/> 
	is released under the MIT License <http://www.opensource.org/licenses/mit-license.php> 
*/

var mtvn=typeof mtvn==="object"?mtvn:{};mtvn.btg=typeof mtvn.btg==="object"?mtvn.btg:{};mtvn.btg.config=typeof mtvn.btg.config==="object"?mtvn.btg.config:{};mtvn.btg.managers=typeof mtvn.btg.managers==="object"?mtvn.btg.managers:{};mtvn.btg.ads=typeof mtvn.btg.ads==="object"?mtvn.btg.ads:{};mtvn.btg.ads.games=typeof mtvn.btg.ads.games==="object"?mtvn.btg.ads.games:{};mtvn.btg.ads.doubleclick=typeof mtvn.btg.ads.doubleclick==="object"?mtvn.btg.ads.doubleclick:{};
mtvn.btg.ads.freewheel=typeof mtvn.btg.ads.freewheel==="object"?mtvn.btg.ads.freewheel:{};mtvn.btg.reporting=typeof mtvn.btg.reporting==="object"?mtvn.btg.reporting:{};mtvn.btg.reporting.omniture=typeof mtvn.btg.reporting.omniture==="object"?mtvn.btg.reporting.omniture:{};mtvn.btg.util=typeof mtvn.btg.util==="object"?mtvn.btg.util:{};mtvn.btg.globalvars=typeof mtvn.btg.globalvars==="object"?mtvn.btg.globalvars:{};
mtvn.btg.reporting.player=typeof mtvn.btg.reporting.player==="object"?mtvn.btg.reporting.player:{};mtvn.btg.reporting.games=typeof mtvn.btg.reporting.games==="object"?mtvn.btg.reporting.games:{};mtvn.btg.html5=typeof mtvn.btg.html5==="object"?mtvn.btg.html5:{};mtvn.btg.html5.reporting=typeof mtvn.btg.html5.reporting==="object"?mtvn.btg.html5.reporting:{};mtvn.btg.html5.ads=typeof mtvn.btg.html5.ads==="object"?mtvn.btg.html5.ads:{};
mtvn.btg.plugins=typeof mtvn.btg.plugins==="object"?mtvn.btg.plugins:{};
mtvn.btg.globalvars={VISITOR_NAMESPACE:"mtvn",IS_CODA_ADS_USED:false,VERSION:"2.51",IS_TOP_ACCESSIBLE:function(){try{return typeof top.location.search!="undefined"&&typeof top.location.search!="unknown"}catch(a){return false}}(),PAGE_URL:function(){try{var a="",a=self.location.pathname;if(a=="")a="/";return a}catch(b){}}(),IS_UNIT_TEST:function(){try{return location.href.toLowerCase().indexOf("/api/jsunittest/tests/")!=-1}catch(a){return false}}(),FORCE_AD_WAIT_TIME:{PLAYER_LOADED:1E4,PLAYER_FAILED:1E4,
PLAYER_LOAD_WAIT_TIME:1E4},VALID_DCOPT:["ist"]};
mtvn.btg.Controller=new function(){var a=mtvn.btg.globalvars,b=mtvn.btg.config,c=mtvn.btg.reporting,d=c.games,e=mtvn.btg.ads,f=e.games,g=false,h=false,j=false,k=false,l="";this.init=function(){a.IS_LIVE_ENV=function(){var c=true;try{if(mtvn.btg.util.String.isDefined(b.ReportSettings.Omniture.dynamicAccountList)){var d=b.ReportSettings.Omniture.dynamicAccountList,e=d.indexOf("=");if(e>-1){var d=d.substring(e+1),d=d.split(","),g=self.location.hostname;if(a.IS_TOP_ACCESSIBLE)g=top.location.hostname;
for(var e=0,f=d.length;e<f;e++)if(g.indexOf(d[e])>-1){c=false;break}}}}catch(h){}return c}();l=typeof a.PAGE_URL=="string"&&a.PAGE_URL!=""?a.PAGE_URL:location.pathname;if(l.charAt(l.length-1)=="/")l+=typeof b.ReportSettings.indexFileName=="string"?b.ReportSettings.indexFileName:"index";if(b.ReportSettings){b.ReportSettings._defaultPageName=l;c.ReportingManager.init();g=true}if(b.AdSettings){b.AdSettings.defaultPageName=l;e.AdManager.init();h=true}if(typeof c.TestAndTarget!="undefined")c.TestAndTarget.init();
return true};this.gameInit=function(){if(!g&&b.ReportSettings){c.ReportingManager.init();g=true}if(!h&&b.AdSettings){e.AdManager.init();h=true}if(!j&&com.mtvnet.games.GameSettings){d.GameReportingManager.init();f.GameAdManager.init();j=true}return true};this.html5Init=function(a){if(!k){var b=mtvn.btg.html5.reporting,c=mtvn.btg.html5.ads;if(b.ReportingManager)b.ReportingManager.init(a);if(c.AdManager)c.AdManager.init(a);k=true}return true};this.loadGame=function(a){if(j){f.GameAdManager.loadGame(a);
d.GameReportingManager.gameLoad(a)}};this.sendPageCall=function(a){if(g){if(typeof a=="undefined"||!a)a={};c.ReportingManager.sendPageCall(a);c.ReportingManager.getData()}};this.sendLinkEvent=function(a){if(g){if(typeof a=="undefined"||!a)a={};c.ReportingManager.sendLinkEvent(a)}};this.placeAd=function(a){if(h){e.AdManager.placeAd(a);e.AdManager.getData()}};this.placeIFrameAd=function(a,b){e.AdManager.placeIFrameAd(a,b)};this.getAdUrl=function(a){if(h)return e.AdManager.getAdUrl(a)};this.getVersion=
function(){return a.VERSION};this.createMboxes=function(a){if(typeof mboxDefine=="function"&&typeof b.ReportSettings.Omniture.enableTestAndTarget=="boolean"&&b.ReportSettings.Omniture.enableTestAndTarget&&typeof c.TestAndTarget!="undefined")c.TestAndTarget.createMboxes(a)};this.setChoiceStreamRequest=function(a,b){if(g)mtvn.btg.reporting.ReportingManager.setChoiceStreamRequest(a,b)}};mtvn.btg.util.Beacon=function(a){this.url=a;this.data=null};
mtvn.btg.util.Beacon.prototype={setData:function(a){this.data=mtvn.btg.util.Object.toString(a,"&")},formatSrc:function(){if(this.data)if(this.url.indexOf("?")>-1)this.url+="&"+this.data;else this.url+="?"+this.data;return this.url},send:function(){var a=new Image(1,1);a.src=this.formatSrc();a.onload=function(){};a.onabort=function(){};a.onerror=function(){}}};
mtvn.btg.util.Alert=function(a,b){if(!a)return;switch(b){case 1:var c="Warning";break;case 2:c="Alert";break;default:c="Error"}this.dependencies=new mtvn.btg.managers.DependencyManager;this.dependencies.add("ga_script_load",function(){return typeof _gat=="object"},100);this.dependencies.checkDependency("ga_script_load");if(this.dependencies.hasDependency()){this.dependencies.addToCallQueue(this,function(){new mtvn.btg.util.Alert(a,b)});return}var d=_gat._createTracker("UA-18578264-1","coda_alerts_tracker");
d._setDomainName("");d._trackEvent(location.hostname,location.pathname,c+": "+a)};
mtvn.btg.util.Cookie={read:function(a){for(var a=a+"=",b=document.cookie.split(";"),c=0,d=b.length;c<d;c++){for(var e=b[c];e.charAt(0)==" ";)e=e.substring(1,e.length);if(e.indexOf(a)==0)return unescape(e.substring(a.length,e.length))}return null},set:function(a,b,c,d,e){a=a+"="+escape(b)+"; path=/";if(c)a+=";expires="+c;if(!e){e=document.domain.split(".");e=e.length>2?e[e.length-2]+"."+e[e.length-1]:document.domain}if(e!="localhost")a+=";domain="+e;a+=";path="+(d?d:"/");document.cookie=a},remove:function(a,
b,c){a=a+"=";if(!c){c=document.domain.split(".");c=c.length>2?c[c.length-2]+"."+c[c.length-1]:document.domain}if(c!="localhost")a+=";domain="+c;a+=";path="+(b?b:"/");a+=";expires=Thu, 01-Jan-1970 00:00:01 GMT";document.cookie=a}};
mtvn.btg.util.DOM={Events:{addListener:function(a,b,c){if(a.attachEvent)a.attachEvent("on"+b,c);else if(a.addEventListener)a.addEventListener(b,c,false);else a["on"+b]=c},removeListener:function(a,b,c){if(a.detachEvent)a.detachEvent("on"+b,c);else if(a.removeEventListener)a.removeEventListener(b,c,false);else a["on"+b]=null}},appendIframe:function(a,b,c){if(mtvn.btg.util.String.isDefined(a)){if(!b)b="height:1px;width:1px;visibility:hidden;position:absolute;bottom:0;left:-1000px;";if(!c)c=document.body;
var d="Coda_iframe_"+(new Date).getTime(),e=document.createElement("iframe");e.setAttribute("id",d);if(b)if(/MSIE/.test(navigator.userAgent))document.createStyleSheet().addRule("#"+d,b);else e.setAttribute("style",b);e.src=a;c.appendChild(e);return e}return null},loadScript:function(a,b){if(mtvn.btg.util.String.isDefined(a))try{var c=document.createElement("script");c.setAttribute("type","text/javascript");c.setAttribute("src",a);if(b)document.body.appendChild(c);else document.getElementsByTagName("head")[0].appendChild(c)}catch(d){}},
loadScriptOnHead:function(a){if(mtvn.btg.util.String.isDefined(a))try{var b=document.createElement("script");b.setAttribute("type","text/javascript");b.setAttribute("src",a);document.getElementsByTagName("head")[0].appendChild(b)}catch(c){}}};
mtvn.btg.util.Events=new function(){var a=function(){this.callbacks=[];this.subscribe=function(a){if(typeof a=="function")this.callbacks[this.callbacks.length]=a};this.remove=function(a){for(var c=0,d=this.callbacks.length;c<d;c++)if(this.callbacks[c]==a)delete this.callbacks[c];if(typeof a=="function")this.callbacks[this.callbacks.length]=a};this.fire=function(){for(var a=0,c=this.callbacks.length;a<c;a++)try{if(typeof this.callbacks[a]=="function")this.callbacks[a].apply(this,arguments)}catch(d){new mtvn.btg.util.Alert('An event callback has failed. "'+
d.number+": "+d.message+'".')}}};this.add=function(b){this[b]=new a;return this};this.flipBookView=new a;this.adLoaded=new a;this.Player_Freewheel_failsafe=new a;this.Player_HTML5_play=new a;this.Player_HTML5_pause=new a;this.Player_HTML5_end=new a;this.Player_HTML5_seek=new a;this.Player_HTML5_milestone=new a;this.ABTest_Group_Assigned=new a;this.ON_GAME_CONFIG_LOADED=new a;this.ON_GAME_LOAD=new a;this.ON_GAME_PLAY=new a;this.ON_GAME_LEVELSTART=new a};
if(!this.mtvn.btg.util.JSON)mtvn.btg.util.JSON=function(){function a(a){return a<10?"0"+a:a}function b(a,e){var f,g,h,j;f=/["\\\x00-\x1f\x7f-\x9f]/g;var k;switch(typeof a){case "string":return f.test(a)?'"'+a.replace(f,function(a){var b=c[a];if(b)return b;b=a.charCodeAt();return"\\u00"+Math.floor(b/16).toString(16)+(b%16).toString(16)})+'"':'"'+a+'"';case "number":return isFinite(a)?String(a):"null";case "boolean":case "null":return String(a);case "object":if(!a)return"null";if(typeof a.toJSON===
"function")return b(a.toJSON());f=[];if(typeof a.length==="number"&&!a.propertyIsEnumerable("length")){j=a.length;for(g=0;g<j;g+=1)f.push(b(a[g],e)||"null");return"["+f.join(",")+"]"}if(e){j=e.length;for(g=0;g<j;g+=1){h=e[g];if(typeof h==="string")if(k=b(a[h],e))f.push(b(h)+":"+k)}}else for(h in a)if(typeof h==="string")if(k=b(a[h],e))f.push(b(h)+":"+k);return"{"+f.join(",")+"}"}}Date.prototype.toJSON=function(){return this.getUTCFullYear()+"-"+a(this.getUTCMonth()+1)+"-"+a(this.getUTCDate())+"T"+
a(this.getUTCHours())+":"+a(this.getUTCMinutes())+":"+a(this.getUTCSeconds())+"Z"};var c={"\u0008":"\\b","\t":"\\t","\n":"\\n","\u000c":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"};return{stringify:b,parse:function(a,b){function c(a,d){var g,l;if(d&&typeof d==="object")for(g in d)if(Object.prototype.hasOwnProperty.apply(d,[g])){l=c(g,d[g]);if(l!==undefined)d[g]=l}return b(a,d)}var g;if(/^[\],:{}\s]*$/.test(a.replace(/\\./g,"@").replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(:?[eE][+\-]?\d+)?/g,
"]").replace(/(?:^|:|,)(?:\s*\[)+/g,""))){g=eval("("+a+")");return typeof b==="function"?c("",g):g}throw new SyntaxError("parseJSON");}}}();mtvn.btg.util.Math={random:function(){var a,b;if(arguments.length>1){a=arguments[0];b=arguments[1]}else{a=0;b=arguments[0]}return Math.floor(Math.random()*(b-a+1)+a)}};
mtvn.btg.util.Object={isDefined:function(a){if(typeof a=="object"&&a!==null)return true;else return false},toString:function(a,b){var b=b?b:",",c=[],d;for(d in a)if(mtvn.btg.util.String.isDefined(a[d]))c.push(d+"="+a[d]);return c.join(b)},copyProperties:function(a,b,c){if(this.isDefined(a)&&this.isDefined(b))for(var d in a)if(this.isDefined(b[d])||mtvn.btg.util.String.isDefined(b[d])){if(c=="forceOverwrite")b[d]=a[d]}else b[d]=a[d]},isConfigDefined:function(a){if(typeof a=="object"&&a!==null&&a.enabled==
true)return true;else return false}};mtvn.btg.util.Sections={getAdSections:function(){var a=mtvn.btg.util,b=mtvn.btg.config,c=self.location.pathname;if(c=="")c="/";if(c.lastIndexOf("/")==c.length-1)c+=a.Object.isDefined(b.AdSettings)&&a.String.isDefined(b.AdSettings.defaultIndexFileName)?b.AdSettings.defaultIndexFileName:"index";if(c!="/"&&c.indexOf("/")==0)c=c.substring(1);return c},getReportingSections:function(){return self.location.pathname}};
mtvn.btg.util.Session={btgCk:mtvn.btg.util.Cookie,Variables:{config:[],add:function(a){if(typeof a=="undefined")return false;for(var b=0,c=this.config.length;b<c;b++){if(typeof this.config[b].varName!="string")continue;for(var d=0,c=a.length;d<c;d++){if(typeof a[d].varName!="string")continue;if(a[d].varName==this.config[b].varName)this.config.splice(b,1)}}this.config=this.config.concat(a);return true},setData:function(a){var b=mtvn.btg.util.String.isDefined;if(!b(a))return null;for(var c=0,d=this.config.length;c<
d;c++){var e=this.config[c];if(typeof a[e.varName]!="undefined")a[e.varName]=this.saveToCookie(e,a[e.varName]);else{var f=this.btgCk.read(b(e.cookieName)?e.cookieName:"mtvn_btg_"+e.varName);if(b(f)){f=f.replace(/\+/gim,";");a[e.varName]=f}}}return a},saveToCookie:function(a,b){var c=mtvn.btg.util.String.isDefined;if(typeof b=="string"&&typeof a.varName=="string"){var b=b.replace(/\;/gim,"+"),d=a.varName,d=typeof a.cookieName=="string"?a.cookieName:"mtvn_btg_"+d,e=typeof a.neverDie=="boolean"?a.neverDie:
0;if(typeof a.appendOnly=="boolean"||typeof a.appendOnly=="number"?a.appendOnly:0){var f=this.btgCk.read(d);if(c(f)){values=b.split(",");for(var g=0,h=values.length;g<h;g++){var j=values[g];if(!c(j))continue;if(f.indexOf(j)>-1)continue;if(f.length>0)f+=",";f+=j}b=f}}f=(new Date).getYear();this.btgCk.set(d,b,e?"Thu, 01-Jan-"+(f+10)+" 23:59:59 GMT":null)}return c(b)?b.replace(/\+/gim,";"):null}}};
mtvn.btg.util.String={isDefined:function(a){if(typeof a==="undefined"||a===null||a=="")return false;else return true},random:function(a){for(var b="",a=a?a:8,c=0;c<a;c++){var d=Math.floor(Math.random()*"ABCDEFGHIJKLMNOPQRSTUVWXTZabcdefghiklmnopqrstuvwxyz".length);b+="ABCDEFGHIJKLMNOPQRSTUVWXTZabcdefghiklmnopqrstuvwxyz".substring(d,d+1)}return b},toObject:function(a,b){for(var c=a.split(b?b:","),d={},e=0,f=c.length;e<f;e++){var g=c[e].split("=");d[g[0]]=g[1]}return d},queryStringToObject:function(a){a=
a.indexOf("?")>-1?a.split("?")[1]:a;return this.toObject(a,"&")},stripFileExtension:function(a){var b=a.lastIndexOf(".");if(b>0)return a.substring(0,b);else return a},charLtrim:function(a,b){if(a.indexOf(b)==0)a=a.substring(1);return a},charRtrim:function(a,b){var c=a.lastIndexOf(b),d=a.length;if(c==d-1)a=a.substring(0,d-1);return a},charTrim:function(a,b){a=this.charLtrim(a,b);return a=this.charRtrim(a,b)},mockItUp:function(a){a=a.replace(/[<]/g,"&lt;");return a=a.replace(/[>]/g,"&gt;")},getFileName:function(a){a=
this.isDefined(a)?a:"";return a=a.substring(a.lastIndexOf("/")+1)},getBetween:function(a,b,c){var d="";if(this.isDefined(a)){if(this.isDefined(b)){var e=a.indexOf(b);if(e>=0)d=a.substring(e+b.length)}if(this.isDefined(c)){a=d.indexOf(c);if(a>=0)d=d.substring(0,a)}}return d}};
mtvn.btg.util.Window={getNodeLinkName:function(a){for(var b=null,c=0,d=a.childNodes.length;c<d;c++){var e=a.childNodes[c];switch(e.nodeType){case 3:b=e.nodeValue;break;case 1:if(a.attributes.title&&a.attributes.title.nodeValue!="")b=a.attributes.title.nodeValue;else if(a.attributes.alt&&a.attributes.alt.nodeValue!="")b=a.attributes.alt.nodeValue}}return b},debug:function(a){var b=document.getElementById("debug");if(!b){b=document.createElement("div");b.setAttribute("id","debug");document.getElementsByTagName("body")[0].appendChild(b)}b.innerHTML=
b.innerHTML+a+"<br>"}};
mtvn.btg.util.swfobject=function(){try{var a=function(){if(F)return;try{var a=r.getElementsByTagName("body")[0].appendChild(r.createElement("span"));a.parentNode.removeChild(a)}catch(b){return}F=true;for(var a=J.length,c=0;c<a;c++)J[c]()},b=function(a){if(F)a();else J[J.length]=a},c=function(a){if(typeof y.addEventListener!=p)y.addEventListener("load",a,false);else if(typeof r.addEventListener!=p)r.addEventListener("load",a,false);else if(typeof y.attachEvent!=p)v(y,"onload",a);else if(typeof y.onload==
"function"){var b=y.onload;y.onload=function(){b();a()}}else y.onload=a},d=function(){var a=r.getElementsByTagName("body")[0],b=r.createElement(w);b.setAttribute("type",z);var c=a.appendChild(b);if(c){var d=0;(function(){if(typeof c.GetVariable!=p){var g=c.GetVariable("$version");if(g){g=g.split(" ")[1].split(",");n.pv=[parseInt(g[0],10),parseInt(g[1],10),parseInt(g[2],10)]}}else if(d<10){d++;setTimeout(arguments.callee,10);return}a.removeChild(b);c=null;e()})()}else e()},e=function(){var a=C.length;
if(a>0)for(var b=0;b<a;b++){var c=C[b].id,d=C[b].callbackFn,e={success:false,id:c};if(n.pv[0]>0){var k=t(c);if(k)if(u(C[b].swfVersion)&&!(n.wk&&n.wk<312)){q(c,true);if(d){e.success=true;e.ref=f(c);d(e)}}else if(C[b].expressInstall&&g()){e={};e.data=C[b].expressInstall;e.width=k.getAttribute("width")||"0";e.height=k.getAttribute("height")||"0";if(k.getAttribute("class"))e.styleclass=k.getAttribute("class");if(k.getAttribute("align"))e.align=k.getAttribute("align");for(var l={},k=k.getElementsByTagName("param"),
z=k.length,o=0;o<z;o++)if(k[o].getAttribute("name").toLowerCase()!="movie")l[k[o].getAttribute("name")]=k[o].getAttribute("value");h(e,l,c,d)}else{j(k);if(d)d(e)}}else{q(c,true);if(d){if((c=f(c))&&typeof c.SetVariable!=p){e.success=true;e.ref=c}d(e)}}}},f=function(a){var b=null;if((a=t(a))&&a.nodeName=="OBJECT")if(typeof a.SetVariable!=p)b=a;else if(a=a.getElementsByTagName(w)[0])b=a;return b},g=function(){return!K&&u("6.0.65")&&(n.win||n.mac)&&!(n.wk&&n.wk<312)},h=function(a,b,c,d){K=true;N=d||null;
P={success:false,id:c};var e=t(c);if(e){if(e.nodeName=="OBJECT"){I=k(e);L=null}else{I=e;L=c}a.id=G;if(typeof a.width==p||!/%$/.test(a.width)&&parseInt(a.width,10)<310)a.width="310";if(typeof a.height==p||!/%$/.test(a.height)&&parseInt(a.height,10)<137)a.height="137";r.title=r.title.slice(0,47)+" - Flash Player Installation";d=n.ie&&n.win?"ActiveX":"PlugIn";d="MMredirectURL="+y.location.toString().replace(/&/g,"%26")+"&MMplayerType="+d+"&MMdoctitle="+r.title;if(typeof b.flashvars!=p)b.flashvars+="&"+
d;else b.flashvars=d;if(n.ie&&n.win&&e.readyState!=4){d=r.createElement("div");c+="SWFObjectNew";d.setAttribute("id",c);e.parentNode.insertBefore(d,e);e.style.display="none";(function(){if(e.readyState==4)e.parentNode.removeChild(e);else setTimeout(arguments.callee,10)})()}l(a,b,c)}},j=function(a){if(n.ie&&n.win&&a.readyState!=4){var b=r.createElement("div");a.parentNode.insertBefore(b,a);b.parentNode.replaceChild(k(a),b);a.style.display="none";(function(){if(a.readyState==4)a.parentNode.removeChild(a);
else setTimeout(arguments.callee,10)})()}else a.parentNode.replaceChild(k(a),a)},k=function(a){var b=r.createElement("div");if(n.win&&n.ie)b.innerHTML=a.innerHTML;else if(a=a.getElementsByTagName(w)[0])if(a=a.childNodes)for(var c=a.length,d=0;d<c;d++)if(!(a[d].nodeType==1&&a[d].nodeName=="PARAM")&&!(a[d].nodeType==8))b.appendChild(a[d].cloneNode(true));return b},l=function(a,b,c){var d,e=t(c);if(n.wk&&n.wk<312)return d;if(e){if(typeof a.id==p)a.id=c;if(n.ie&&n.win){var g="",f;for(f in a)if(a[f]!=
Object.prototype[f])if(f.toLowerCase()=="data")b.movie=a[f];else if(f.toLowerCase()=="styleclass")g+=' class="'+a[f]+'"';else if(f.toLowerCase()!="classid")g+=" "+f+'="'+a[f]+'"';f="";for(var h in b)if(b[h]!=Object.prototype[h])f+='<param name="'+h+'" value="'+b[h]+'" />';e.outerHTML='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"'+g+">"+f+"</object>";M[M.length]=a.id;d=t(a.id)}else{h=r.createElement(w);h.setAttribute("type",z);for(var j in a)if(a[j]!=Object.prototype[j])if(j.toLowerCase()==
"styleclass")h.setAttribute("class",a[j]);else if(j.toLowerCase()!="classid")h.setAttribute(j,a[j]);for(g in b)if(b[g]!=Object.prototype[g]&&g.toLowerCase()!="movie"){a=h;f=g;j=b[g];c=r.createElement("param");c.setAttribute("name",f);c.setAttribute("value",j);a.appendChild(c)}e.parentNode.replaceChild(h,e);d=h}}return d},o=function(a){var b=t(a);if(b&&b.nodeName=="OBJECT")if(n.ie&&n.win){b.style.display="none";(function(){if(b.readyState==4){var c=t(a);if(c){for(var d in c)if(typeof c[d]=="function")c[d]=
null;c.parentNode.removeChild(c)}}else setTimeout(arguments.callee,10)})()}else b.parentNode.removeChild(b)},t=function(a){var b=null;try{b=r.getElementById(a)}catch(c){}return b},v=function(a,b,c){a.attachEvent(b,c);H[H.length]=[a,b,c]},u=function(a){var b=n.pv,a=a.split(".");a[0]=parseInt(a[0],10);a[1]=parseInt(a[1],10)||0;a[2]=parseInt(a[2],10)||0;return b[0]>a[0]||b[0]==a[0]&&b[1]>a[1]||b[0]==a[0]&&b[1]==a[1]&&b[2]>=a[2]?true:false},A=function(a,b,c,d){if(n.ie&&n.mac)return;var e=r.getElementsByTagName("head")[0];
if(!e)return;c=c&&typeof c=="string"?c:"screen";if(d)O=B=null;if(!B||O!=c){d=r.createElement("style");d.setAttribute("type","text/css");d.setAttribute("media",c);B=e.appendChild(d);if(n.ie&&n.win&&typeof r.styleSheets!=p&&r.styleSheets.length>0)B=r.styleSheets[r.styleSheets.length-1];O=c}if(n.ie&&n.win){if(B&&typeof B.addRule==w)B.addRule(a,b)}else if(B&&typeof r.createTextNode!=p)B.appendChild(r.createTextNode(a+" {"+b+"}"))},q=function(a,b){if(!Q)return;var c=b?"visible":"hidden";if(F&&t(a))t(a).style.visibility=
c;else A("#"+a,"visibility:"+c)},D=function(a){return/[\\\"<>\.;]/.exec(a)!=null&&typeof encodeURIComponent!=p?encodeURIComponent(a):a};var p="undefined",w="object",z="application/x-shockwave-flash",G="SWFObjectExprInst",y=window,r=document,E=navigator,R=false,J=[function(){if(R)d();else e()}],C=[],M=[],H=[],I,L,N,P,F=false,K=false,B,O,Q=true,n=function(){var a=typeof r.getElementById!=p&&typeof r.getElementsByTagName!=p&&typeof r.createElement!=p,b=E.userAgent.toLowerCase(),c=E.platform.toLowerCase(),
d=c?/win/.test(c):/win/.test(b),c=c?/mac/.test(c):/mac/.test(b),b=/webkit/.test(b)?parseFloat(b.replace(/^.*webkit\/(\d+(\.\d+)?).*$/,"$1")):false,e=!+"\u000b1",g=[0,0,0],f=null;if(typeof E.plugins!=p&&typeof E.plugins["Shockwave Flash"]==w){if((f=E.plugins["Shockwave Flash"].description)&&!(typeof E.mimeTypes!=p&&E.mimeTypes[z]&&!E.mimeTypes[z].enabledPlugin)){R=true;e=false;f=f.replace(/^.*\s+(\S+\s+\S+$)/,"$1");g[0]=parseInt(f.replace(/^(.*)\..*$/,"$1"),10);g[1]=parseInt(f.replace(/^.*\.(.*)\s.*$/,
"$1"),10);g[2]=/[a-zA-Z]/.test(f)?parseInt(f.replace(/^.*[a-zA-Z]+(.*)$/,"$1"),10):0}}else if(typeof y.ActiveXObject!=p)try{var h=new ActiveXObject("ShockwaveFlash.ShockwaveFlash");if(h)if(f=h.GetVariable("$version")){e=true;f=f.split(" ")[1].split(",");g=[parseInt(f[0],10),parseInt(f[1],10),parseInt(f[2],10)]}}catch(j){}return{w3:a,pv:g,wk:b,ie:e,win:d,mac:c}}();(function(){if(!n.w3)return;if(typeof r.readyState!=p&&r.readyState=="complete"||typeof r.readyState==p&&(r.getElementsByTagName("body")[0]||
r.body))a();if(!F){if(typeof r.addEventListener!=p)r.addEventListener("DOMContentLoaded",a,false);if(n.ie&&n.win){r.attachEvent("onreadystatechange",function(){if(r.readyState=="complete"){r.detachEvent("onreadystatechange",arguments.callee);a()}});if(y==top)(function(){if(F)return;try{r.documentElement.doScroll("left")}catch(b){setTimeout(arguments.callee,0);return}a()})()}if(n.wk)(function(){if(F)return;if(!/loaded|complete/.test(r.readyState)){setTimeout(arguments.callee,0);return}a()})();c(a)}})();
(function(){if(n.ie&&n.win)window.attachEvent("onunload",function(){for(var a=H.length,b=0;b<a;b++)H[b][0].detachEvent(H[b][1],H[b][2]);a=M.length;for(b=0;b<a;b++)o(M[b]);for(var c in n)n[c]=null;n=null;for(var d in mtvn.btg.util.swfobject)mtvn.btg.util.swfobject[d]=null;mtvn.btg.util.swfobject=null})})();return{registerObject:function(a,b,c,d){if(n.w3&&a&&b){var e={};e.id=a;e.swfVersion=b;e.expressInstall=c;e.callbackFn=d;C[C.length]=e;q(a,false)}else if(d)d({success:false,id:a})},getObjectById:function(a){if(n.w3)return f(a)},
embedSWF:function(a,c,d,e,f,j,k,z,o,t){var r={success:false,id:c};if(n.w3&&!(n.wk&&n.wk<312)&&a&&c&&d&&e&&f){q(c,false);b(function(){d+="";e+="";var b={};if(o&&typeof o===w)for(var n in o)b[n]=o[n];b.data=a;b.width=d;b.height=e;n={};if(z&&typeof z===w)for(var G in z)n[G]=z[G];if(k&&typeof k===w)for(var v in k)if(typeof n.flashvars!=p)n.flashvars+="&"+v+"="+k[v];else n.flashvars=v+"="+k[v];if(u(f)){G=l(b,n,c);if(b.id==c)q(c,true);r.success=true;r.ref=G}else if(j&&g()){b.data=j;h(b,n,c,t);return}else q(c,
true);if(t)t(r)})}else if(t)t(r)},switchOffAutoHideShow:function(){Q=false},ua:n,getFlashPlayerVersion:function(){return{major:n.pv[0],minor:n.pv[1],release:n.pv[2]}},hasFlashPlayerVersion:u,createSWF:function(a,b,c){if(n.w3)return l(a,b,c);else return undefined},showExpressInstall:function(a,b,c,d){if(n.w3&&g())h(a,b,c,d)},removeSWF:function(a){if(n.w3)o(a)},createCSS:function(a,b,c,d){if(n.w3)A(a,b,c,d)},addDomLoadEvent:b,addLoadEvent:c,getQueryParamValue:function(a){var b=r.location.search||r.location.hash;
if(b){if(/\?/.test(b))b=b.split("?")[1];if(a==null)return D(b);for(var b=b.split("&"),c=0;c<b.length;c++)if(b[c].substring(0,b[c].indexOf("="))==a)return D(b[c].substring(b[c].indexOf("=")+1))}return""},expressInstallCallback:function(){if(K){var a=t(G);if(a&&I){a.parentNode.replaceChild(I,a);if(L){q(L,true);if(n.ie&&n.win)I.style.display="block"}if(N)N(P)}K=false}}}}catch(S){}}();
mtvn.btg.util.Class={inheritFrom:function(a,b){function c(){if(arguments.length>0&&typeof a==="function")a.apply(this,arguments)}if(typeof a==="function"||typeof a==="object")if(typeof b==="function"||typeof b==="object"){var d=b.prototype;b.prototype=typeof a==="function"?new a:a;for(var e in d)b.prototype[e]=d[e];b.prototype.constructor=b;c.prototype=typeof b==="function"?new b:b;c.prototype.constructor=c}else{c.prototype=typeof a==="function"?new a:a;c.prototype.constructor=c}else throw"Coda ERROR: mtvn.btg.util.Class.inheritFrom(a_superClass,a_subClass) requires at least a_superClass argument!";
return c}};mtvn.btg.util.Timer=function(a,b){this.id=a;this.isRunning=false;this.currentCount=0;this.milliseconds=b?b:100;this.intervalId=null;this.listeners=[]};
mtvn.btg.util.Timer.prototype={on:function(a,b){if(typeof b=="function")this.listeners[a]=b},execListener:function(a){if(typeof this.listeners[a]=="function")this.listeners[a]()},start:function(){if(!this.isRunning){this.isRunning=true;this.intervalId=setInterval(this.id+".count()",this.milliseconds)}},count:function(){this.currentCount=this.currentCount+this.milliseconds;this.execListener("count")},stop:function(){clearInterval(this.intervalId);this.isRunning=false},reset:function(){this.stop();
this.currentCount=0;this.start()}};
mtvn.btg.util.TimeTracker=function(a){var b=mtvn.btg.util,c=b.String.isDefined,d=b.Cookie,e="",f=null,g=c(a)?a:"";this.init=function(){f=(new Date).getTime();b.DOM.Events.addListener(window,"unload",this.saveTimeSpent);return true};this.setData=function(a){if(c(a))e=a};this.getTimeSpentOnPage=function(){var a="",a=(new Date).getTime(),a=Math.round((a-f)/100);if(a<1)a="";f=(new Date).getTime();return a};this.saveTimeSpent=function(){if(c(g)){var a=(new Date).getTime(),a=Math.round((a-f)/100);if(a<
1)a=1;a=a;a+=c(e)?","+e:"";d.set(g,a)}};this.getTimespent=function(){if(c(g)){var a=d.read(g);d.remove(g);f=(new Date).getTime();return c(a)?a:""}}};
mtvn.btg.managers.DependencyManager=function(a){var b=mtvn.btg.config,c=mtvn.btg.util.String.isDefined,d=a?a:8E3,e=false,f=[],g=[];this.add=function(a,b,c,f){if(typeof a=="undefined"||typeof b=="undefined")return false;for(var o=0,t=g.length;o<t;o++)if(g[o].flagname==a)return false;g[g.length]={flagname:a,callback:b,interval:c?c:100};if(!e){e=true;window.setTimeout(this.sendCalls,d)}if(f)this.checkDependency(a);return true};this.remove=function(a){if(typeof a=="string"&&a!="")for(var b=0,c=g.length;b<
c;b++)if(g[b].flagname==a)g.splice(b,1);if(!this.hasDependency())this.sendCalls()};this.checkDependency=function(a){for(var b=null,c=0,d=g.length;c<d;c++)if(g[c].flagname==a)b=g[c];if(!b)return false;if(b.callback.apply())this.remove(a);else{var e=this;window.setTimeout(function(){e.checkDependency(a)},b.interval)}};this.hasDependency=function(a){if(c(a)){for(var b=g.length,d=0;d<b;d++)if(g[d].flagname==a)return true;return false}return g.length>=1};this.addToCallQueue=function(a,c){if(!c)return false;
for(var d=new Array,e=2,g=arguments.length;e<g;e++)d.push(arguments[e]);f[f.length]={context:a?a:this,callback:c,args:d,config:b.ReportSettings};return true};this.sendCalls=function(){g=[];for(var a=b.ReportSettings,c=0,d=f.length;c<d;c++){b.ReportSettings=f[c].config;f[c].callback.apply(f[c].context,f[c].args)}b.ReportSettings=a;f=[]}};
mtvn.btg.managers.PluginManager=function(a){for(var b=new Array,c=1,d=arguments.length;c<d;c++)b.push(arguments[c]);c=0;for(d=a.length;c<d;c++)if(typeof a[c].init=="function")a[c].init.apply(this,b);this.run=function(b){for(var c=0,d=a.length;c<d;c++)if(mtvn.btg.util.Object.isDefined(a[c])&&typeof a[c].run=="function")b=a[c].run(b);return b}};
mtvn.btg.managers.QueueManager=function(a){this.id=a.id;this.timeToWait=!isNaN(a.timeToWait)?a.timeToWait:1;this.handler=typeof a.handler=="function"?a.handler:function(){};this.notificationHandler=typeof a.notificationHandler=="function"?a.notificationHandler:function(){};this.intervalId=null;this.isProcessing=false;this.queue=[];this.processedQueue=[];this.maxNumItems=a.maxNumItems;this.maxElapsed=a.maxElapsed;this.itemsAdded=this.totalItems=this.elapsed=0};
mtvn.btg.managers.QueueManager.prototype={init:function(){this.isProcessing=true;this.processQueue();this.intervalId=setInterval(this.id+".processQueue()",this.timeToWait)},addToQueue:function(){this.queue.push(arguments);this.itemsAdded++;if(!this.isProcessing)this.init()},processQueue:function(){if(this.isProcessing==true)if(this.queue.length>0){var a=this.queue.shift();this.elapsed=this.elapsed+this.timeToWait;this.totalItems++;if(!this.hasLimit()){this.handler(a);this.processedQueue.push(a)}else{this.notificationHandler(this);
this.clearQueue();this.stop()}}else this.stop()},stop:function(){clearInterval(this.intervalId);this.isProcessing=false;this.itemsAdded=this.totalItems=this.elapsed=0},hasLimit:function(){return this.elapsed==this.maxElapsed||this.totalItems>this.maxNumItems},clearQueue:function(){this.queue=[];this.processedQueue=[]}};
mtvn.btg.plugins.Meteor=new function(){var a=mtvn.btg.config,b=mtvn.btg.util,c=mtvn.btg.plugins,d=null,e=null,f="";this.getWOM=function(){for(var a=document.cookie.split(";"),b=null,b=0,c=a.length;b<c;b++){var d=a[b].split("=");if(d[0].match(/[a-zA-Z0-9]{8}\-[a-zA-Z0-9]{4}\-[a-zA-Z0-9]{4}\-[a-zA-Z0-9]{4}\-[a-zA-Z0-9]{12}/)){b=unescape(d[1]);eval("var _meteor_settings = "+b);if(typeof _meteor_settings.wom=="undefined")return null;return typeof _meteor_settings.wom=="boolean"?_meteor_settings.wom:null}}return null};
var g=function(){return mtvn.btg.util.Object.isConfigDefined(a.ReportSettings.Meteor)&&f!=""};this.isWOMReported=false;this.init=function(h){d=h;if(mtvn.btg.util.Object.isDefined(a.ReportSettings.Meteor))f=b.String.isDefined(a.ReportSettings.Meteor.applicationId)?a.ReportSettings.Meteor.applicationId:"";if(typeof d.womVarMap=="undefined")d.womVarMap=["prop32","eVar55"];if(typeof d.womVarMap=="string")d.womVarMap=d.womVarMap.split(",");if(!g())return false;c.Meteor.multiTrackTimer.on("count",mtvn.btg.plugins.Meteor.multiTrackScript);
c.Meteor.multiTrackTimer.start();e=c.Meteor.getWOM();return true};this.run=function(a){if(!g())return a;var c=null;if(typeof e=="undefined"||e===null){c="Unknown";new b.Alert('Failed to find Meteor Word-of-Mouth ("wom") value.')}else if(e===true){this.isWOMReported=true;c="Word of mouth"}else if(e===false){this.isWOMReported=true;c="Not word of mouth"}for(var f=0,l=d.womVarMap.length;f<l;f++)a[d.womVarMap[f]]=c;return a};this.sendLinkEventCall=function(){var b=a.ReportSettings.Meteor,d={linkName:"Meteor reporting",
linkType:"o"};e=c.Meteor.getWOM();if(typeof b.enabled=="boolean"&&b.enabled&&b.applicationId!="")mtvn.btg.Controller.sendLinkEvent(d)};this.multiTrackScript=function(){var d=mtvn.btg.util.Object.isDefined(a.ReportSettings)?a.ReportSettings.Meteor:null;if(typeof meteor!="undefined"){if(mtvn.btg.util.Object.isConfigDefined(d)&&d.applicationId!="")b.DOM.loadScript("http"+("https:"==document.location.protocol?"s":"")+"://cdnt.meteorsolutions.com/api/multi_track?application_id="+d.applicationId+"&url_storage_source=hash&hash_join=true");
c.Meteor.multiTrackTimer.stop()}};this.multiTrackTimer=new b.Timer("mtvn.btg.plugins.Meteor.multiTrackTimer",500);this.womScript=function(){var a=c.Meteor.getWOM(),b=c.Meteor;if(a!=null){b.sendLinkEventCall();b.isWOMReported=true;b.womTimer.stop()}};this.womTimer=new b.Timer("mtvn.btg.plugins.Meteor.womTimer",500);this.multiDomainScript=function(){if(c.Meteor.isWOMReported&&typeof meteor!="undefined"&&typeof meteor.orion!="undefined"&&meteor.orion.init!="undefined"){meteor.orion.init();c.Meteor.multiDomainTimer.stop()}};
this.multiDomainTimer=new b.Timer("mtvn.btg.plugins.Meteor.multiDomainTimer",500)};try{mtvn.btg.util.DOM.loadScript("http"+("https:"==document.location.protocol?"s":"")+"://btg.mtvnservices.com/aria/metsol-mtv.js");mtvn.btg.plugins.Meteor.multiTrackTimer.on("count",mtvn.btg.plugins.Meteor.multiTrackScript);mtvn.btg.plugins.Meteor.multiTrackTimer.start()}catch(e$$10){}
try{mtvn.btg.util.DOM.Events.addListener(window,"load",function(){var a=mtvn.btg.config,b=mtvn.btg.plugins.Meteor;if(!b.isWOMReported){b.womTimer.on("count",b.womScript);b.womTimer.start()}if(mtvn.btg.util.Object.isConfigDefined(b)&&b.applicationId!="")if(typeof a.ReportSettings.Meteor.multiDomain=="boolean"&&a.ReportSettings.Meteor.multiDomain){b.multiDomainTimer.on("count",b.multiDomainScript);b.multiDomainTimer.start()}})}catch(e$$11){}
mtvn.btg.plugins.GUID=new function(){var a=mtvn.btg.util,b=mtvn.btg.plugins,c=null,d=null,e=function(){var b=a.Cookie.read("vmn_uuid");if(typeof b=="string")d=b;return typeof d=="string"},f=function(){return typeof c.enableGuidPlugin=="boolean"&&c.enableGuidPlugin};this.isGUIDReported=false;this.hasGUIDCookie=function(){return e()};this.get3pcCookie=function(){var b=a.Cookie.read("vmn_3pc");return!a.String.isDefined(b)?null:b};this.init=function(a){c=a;if(!f())return false;if(typeof c.guidIdVarMap==
"undefined")c.guidIdVarMap=["eVar57"];if(typeof c.guidIdVarMap=="string")c.guidIdVarMap=c.guidIdVarMap.split(",");return true};this.run=function(b){if(!f())return b;if(!e()){new a.Alert("Failed to find the GUID value.");return b}for(var g=0,h=c.guidIdVarMap.length;g<h;g++)b[c.guidIdVarMap[g]]=d;this.isGUIDReported=true;return b};this.guidScript=function(){var a=b.GUID;if(a.hasGUIDCookie()&&!a.isGUIDReported){a.sendLinkEventCall();return a.isGUIDReported=true}return false};this.sendLinkEventCall=function(){var a=
{linkName:"GUID reporting",linkType:"o"},a=b.GUID.run(a);if(f)mtvn.btg.Controller.sendLinkEvent(a)};try{var g="http"+("https:"==document.location.protocol?"s":"")+"://btg.mtvnservices.com/aria/uuid.html";if(!this.get3pcCookie())mtvn.btg.util.DOM.loadScript(g)}catch(h){}};
try{mtvn.btg.util.DOM.Events.addListener(window,"load",function(){var a=mtvn.btg.config,b=mtvn.btg.plugins,c=mtvn.btg.util.Object.isConfigDefined;if(c(a.ReportSettings.Omniture))if(a.ReportSettings.Omniture.enableGuidPlugin&&a.ReportSettings.Omniture.enableGuidAuxiliaryCall&&!b.GUID.isGUIDReported){a=new mtvn.btg.managers.DependencyManager;a.add("mtvn_guid",b.GUID.guidScript);a.checkDependency("mtvn_guid")}})}catch(e$$13){}
mtvn.btg.plugins.UserAgent=new function(){var a=mtvn.btg.reporting,b=[["iPad","iPad"],["iPhone","iPhone"],["Android","Android"]];this.init=function(){};this.run=function(c){for(var d=0,e=b.length;d<e;d++)if(navigator.userAgent.indexOf(b[d][0])>-1)if(typeof a.UserSegment!="undefined")a.UserSegment.set(b[d][1]);return c}};
mtvn.btg.reporting.ABTest=function(a,b,c){var d=mtvn.btg.util.Cookie;if(typeof a!=="string"||mtvn.btg.util.String.charTrim(a," ")=="")throw new Error("mtvn.btg.reporting.ABTest: The first argument to the constructor must be a unique ID of the type {String}.");if(typeof b!="object"||b.length<2)throw new Error('mtvn.btg.reporting.ABTest: The second argument to the constructor must be an Array of 2 or more Objects, each with a "name" and a "weight" property.');var e=0,f=Math.floor(Math.random()*(100-
1+1)+1),g="MTVN_ABTest_"+a,h=d.read(g),j=null;this.getId=function(){return a};this.getGroup=function(){return j};if(h&&h!="")j=h;else{b.sort(function(a,b){return b.weight-a.weight});for(var h=0,k=b.length;h<k;h++){var l=e+b[h].weight;if(f>e&&f<=l)j=b[h].name;e+=b[h].weight}if(!j)throw new Error("mtvn.btg.reporting.ABTest: Couldn't assign user to an A/B Test group.");if(e!=100)throw new Error("mtvn.btg.reporting.ABTest: The sum of the weights of your A/B Test groups must equal 100 exactly.");d.set(g,
j,"Thu, 31-Dec-2038 11:59:59 GMT")}mtvn.btg.reporting.UserSegment.set(a+": "+j);mtvn.btg.util.Events.ABTest_Group_Assigned.fire(a,j);if(typeof c=="function")c.call(this)};
mtvn.btg.reporting.ComScore=function(a){this.btgIsStr=mtvn.btg.util.String.isDefined;this.btgU=mtvn.btg.util;this.btgGv=mtvn.btg.globalvars;this.config=a;this.c1=this.btgIsStr(this.config.c1)?this.config.c1:"2";this.c2=this.btgIsStr(this.config.c2)?this.config.c2:"6036034";this.c3=this.btgIsStr(this.config.c3)?this.config.c3:"";this.c4=this.btgIsStr(this.config.c4)?this.config.c4:this.btgU.Object.isDefined(this.btgU.Sections)?escape(this.btgU.Sections.getReportingSections()):this.btgGv.IS_TOP_ACCESSIBLE?
escape(top.document.location.hostname+top.document.location.pathname):escape(document.location.hostname+document.location.pathname);this.c5=this.btgIsStr(this.config.c5)?this.config.c5:"20000";this.c6=this.btgIsStr(this.config.c6)?this.config.c6:"";this.c15=this.btgIsStr(this.config.c15)?this.config.c15:"";this.sendPageCall()};
mtvn.btg.reporting.ComScore.prototype={sendPageCall:function(a){var b=mtvn.btg.reporting.ReportingManager;if(typeof a==="object"){if(this.btgIsStr(a.comScore1))this.c1=a.comScore1;if(this.btgIsStr(a.comScore2))this.c2=a.comScore2;if(this.btgIsStr(a.comScore3))this.c3=a.comScore3;if(this.btgIsStr(a.comScore4))this.c4=a.comScore4;if(this.btgIsStr(a.comScore5))this.c5=a.comScore5;if(this.btgIsStr(a.comScore6))this.c6=a.comScore6;if(this.btgIsStr(a.comScore15))this.c15=a.comScore15}a=["c1=",this.c1,"&c2=",
this.c2,"&c3=",this.c3,"&c4=",this.c4,"&c5=",this.c5,"&c6=",this.c6,"&c15=",this.c15].join("");try{if(!this.btgGv.IS_UNIT_TEST&&!b.isScriptIncluded.comscore){this.btgU.DOM.loadScript((document.location.protocol=="https:"?"https://sb":"http://b")+".scorecardresearch.com/beacon.js?"+a);b.isScriptIncluded.comscore=true}}catch(c){}}};
mtvn.btg.reporting.FluxHosted={sendCall:function(){var a=function(){if(typeof Flux!="object"||typeof Flux.Context!="object")return false;return true},b=function(){if(typeof FluxReporting!="object"||typeof FluxReporting.Standard!="object")return false;return true},c=function(){var c=mtvn.btg.util.String.isDefined,d=FluxReporting.Standard,e={};if(!a()&&!b())return false;for(var j=location.pathname.substring(1),j=j=="/"||j==""?"main.aspx":j,j=j.substring(0,2)=="-/"?j.substring(2):j,k=["/profile","/Topic"],
l=0,o=k.length;l<o;l++)if(j.indexOf(k[l])>-1)j=j.substring(0,j.indexOf(k[l])+k[l].length);e.pageName=e.hier1=j;if(a()){a:{if(!a()){j=null;break a}j=Flux.Context.isCommunityMember()?"member":"non-member"}e.prop10=e.eVar10=j;a:{if(!a()){j=null;break a}j=Flux.Context.isUserAuthenticated()?"logged-in":"not logged-in"}e.prop11=e.eVar11=j}if(b()){e.prop3=e.eVar3=c(d.Community_Name)?d.Community_Name:null;e.prop4=e.eVar4=c(d.Content_UCID)?d.Content_UCID:null;e.prop5=e.eVar5=c(d.Content_Title)?d.Content_Title:
null;e.prop6=e.eVar6=c(d.Content_Section)?d.Content_Section:null;e.prop7=e.eVar7=c(d.Content_Page)?d.Content_Page:null;e.prop8=e.eVar8=c(d.Content_Details)?d.Content_Details:null;e.prop9=e.eVar9=c(d.Content_Subtype)?d.Content_Subtype:null}e.prop12=e.eVar12=location.host;if(typeof FluxReporting.Overrides!="undefined")for(l in FluxReporting.Overrides)e[l]=FluxReporting.Overrides[l];return e}(),d=mtvn.btg.config.ReportSettings;mtvn.btg.config.ReportSettings={Omniture:{enabled:true,account:"viafluxrollup",
dynamicAccountSelection:"true",dynamicAccountList:"viafluxrollupdev=mtv-d,mtv-q,mtvi.com",linkInternalFilters:"javascript:,flux.com,mtvi.com,"+location.hostname,trackExternalLinks:true,trackDownloadLinks:true,isFluxHosted:true},GoogleAnalytics:{enabled:false},Comscore:{enabled:false},QuantCast:{enabled:false},Nielsen:{enabled:false}};var e=mtvn.btg.Controller;e.init();e.sendPageCall(c);mtvn.btg.config.ReportSettings=d;return true}};
if(typeof FluxReporting!="undefined")mtvn.btg.util.DOM.Events.addListener(window,"load",function(){mtvn.btg.reporting.FluxHosted.sendCall()});
mtvn.btg.reporting.FluxState=new function(){var a=function(){if(typeof Flux!="object"||Flux==null)return null;else if(typeof Flux.context=="object"&&Flux.context!=null&&typeof Flux.context.user=="object"&&Flux.context.user!=null)return 3;else if(typeof Flux.Context=="object"&&Flux.Context!=null)return 2;return null};this.init=function(a){if(a)mtvn.btg.util.DOM.loadScript((document.location.protocol=="https:"?"https://":"http://")+"widgets3.flux.com/context/short/"+a)};this.setData=function(b,c){var d=
b.config.fluxVarMap.memberState;var e=null;switch(a()){case 3:e=Flux.context.user.communityMember;break;case 2:e=Flux.Context.isCommunityMember()}c[d]=e?"member":"non-member";d=b.config.fluxVarMap.loginState;var e=mtvn.btg.reporting.UserSegment,f=null;switch(a()){case 3:if(Flux.context.user.memberType){f=Flux.context.user.memberType;e.add(b,f+" User")}else if(Flux.context.user.facebookOnly){f="FB Only";e.add(b,"FB Connect Only User")}else if(Flux.context.user.facebookConnected){f="Flux + FB";e.add(b,
"Flux & FB Connect User")}else if(typeof Flux.context.user.ucid=="string"&&Flux.context.user.ucid.length>0){f="Flux Only";e.add(b,"Flux Only User")}else f="not logged-in";break;case 2:f=Flux.Context.isUserAuthenticated()?"logged-in":"not logged-in";break;default:f="not logged-in"}if(f&&f!="not logged-in")e.add(b,"LoggedIn");c[d]=f;return c}};
mtvn.btg.reporting.GoogleAnalytics=function(a){this.btgGv=mtvn.btg.globalvars;this.btgIsStr=mtvn.btg.util.String.isDefined;this.config=a;if(a.iframeAccount!=""&&!this.btgGv.IS_UNIT_TEST)document.write(unescape("%3Cdiv id='btg_ga_div'%3E%3C/div%3E"));this.account=a.account;this.dependencies=new mtvn.btg.managers.DependencyManager;this.dependencies.add("ga_script_load",function(){return typeof _gat=="object"},100);this.dependencies.checkDependency("ga_script_load")};
mtvn.btg.reporting.GoogleAnalytics.prototype={sendPageCall:function(a){if(this.dependencies.hasDependency()){this.dependencies.addToCallQueue(this,this.sendPageCall,a);return}if(this.btgIsStr(this.config.iframeAccount)){var b=[];if(this.config.iframeAccount.indexOf(",")>-1)b=this.config.iframeAccount.split(",");else b[0]=this.config.iframeAccount;for(var c=0,d=b.length;c<d;c++){var e=document.getElementById("btg_ga_div"),f=window.location,g=a.pageName,g=g.substring(0,1)!="/"?"/"+g:g,h=document.referrer,
j="//btg.mtvnservices.com/aria/ga.html?ga="+b[c]+"&uri=",h="&ref="+escape(h);if(e){var k=document.createElement("iframe");k.src=f.protocol+j+f.hostname+g+h;k.style.width=1+"px";k.style.height=1+"px";k.style.visibility="hidden";k.style.left=-50+"px";k.style.top=-50+"px";k.style.position="absolute";e.appendChild(k)}}}if(this.btgIsStr(this.config.account))try{if(!this.btgGv.IS_UNIT_TEST)if(typeof _gat=="object")_gat._getTracker(this.config.account)._trackPageview()}catch(l){}},sendLinkEvent:function(a){if(!a||
!this.btgIsStr(a.category)||!this.btgIsStr(a.action)||!this.btgIsStr(a.label))return;if(this.dependencies.hasDependency()){this.dependencies.addToCallQueue(this,this.sendLinkEvent,a);return}a.value=typeof a.value!="undefined"&&typeof parseInt(a.value)=="number"?parseInt(a.value):null;var b=_gat._createTracker(this.config.account,"event_tracker");b._setDomainName("");b._trackEvent(a.category,a.action,a.label,a.value)}};
try{if(!mtvn.btg.globalvars.IS_UNIT_TEST){var ga=document.createElement("script");ga.type="text/javascript";ga.async=true;ga.src=("https:"==document.location.protocol?"https://ssl":"http://www")+".google-analytics.com/ga.js";var s=document.getElementsByTagName("script")[0];s.parentNode.insertBefore(ga,s)}}catch(e$$17){}mtvn.btg.reporting.Nielsen=function(a){this.config=a;this.sendPageCall()};
mtvn.btg.reporting.Nielsen.prototype={sendPageCall:function(){var a=mtvn.btg.util.String.isDefined,b=null;if(!b&&a(this.config.cid))b=this.config.cid;if(!b)return false;var c=new Image(1,1);c.onerror=c.onload=function(){c.onerror=c.onload=null};c.src=["//secure-us.imrworldwide.com/cgi-bin/m?ci="+b+"&cg=0&cc=1&si=",escape(window.location.href),"&rp=",escape(document.referrer),"&ts=compact&rnd=",(new Date).getTime()].join("")}};
mtvn.btg.reporting.Omniture=function(a){this.pageViewEventSet=false;this.btgStr=mtvn.btg.util.String;this.btgIsStr=this.btgStr.isDefined;var b=mtvn.btg.managers,c=mtvn.btg.plugins;this.btgCfg=mtvn.btg.config;this.btgRep=mtvn.btg.reporting;this.btgSv=mtvn.btg.util.Session.Variables;this.btgCk=mtvn.btg.util.Cookie;this.name="Omniture";this.values=[];this.newRepeatProp=this.btgIsStr(a.newRepeatProp)?a.newRepeatProp:"prop41";this.config=a;this.hcode=this.btgRep.omniture.Hcode;this.hcode.setAccount(this.config.account);
if(this.config.enableFirstPartyCookie&&this.btgIsStr(this.config.cName))this.hcode.trackingServer=this.config.cName;for(var d in this.config)this.hcode[d]=this.config[d];this.url="http"+(this.hcode.ssl?"s":"")+"://"+this.hcode.un+".112.2o7.net/b/ss/"+this.hcode.un+"/1/";this.dependencies=new b.DependencyManager;this.plugins=new b.PluginManager([c.Meteor,c.GUID,c.UserAgent],this.config,this.dependencies);if(typeof this.config.userSegmentVarMap=="undefined"){this.config.userSegmentVarMap={traffic:"prop31",
commerce:"products"};this.btgCfg.ReportSettings.Omniture.userSegmentVarMap=this.config.userSegmentVarMap}if(typeof this.btgRep.UserSegment=="object")this.btgRep.UserSegment.init(this);if(typeof this.btgRep.FluxState=="object")this.btgRep.FluxState.init(this.config.fluxCommunityId);if(typeof this.config.fluxVarMap=="undefined"){this.config.fluxVarMap={memberState:"prop5",loginState:"prop6"};this.btgCfg.ReportSettings.Omniture.fluxVarMap=this.config.fluxVarMap}if(typeof this.config.timePartingVarMap==
"undefined")this.config.timePartingVarMap={trafficDay:"prop33",trafficHour:"prop34",commerceDay:"eVar45",commerceHour:"eVar46"};if(typeof this.config.photosVarMap=="undefined")this.config.photosVarMap={application:["prop48","eVar31"],gallery:"eVar16",photoId:"eVar17",flipbookView:"event57",photoView:"event58",adView:"event59",timeSpent:"event60"};if(typeof mtvn_btg_Photos=="object"&&mtvn_btg_Photos!=null)this.btgRep.Photos.init(this.config.photosVarMap);if(typeof this.config.pageViewEvent!="string")this.config.pageViewEvent=
"event16";if(typeof this.btgRep.player.MediaPlayer=="object")this.btgRep.player.MediaPlayer.init(this);if(typeof this.config.sessionVars!="undefined")this.btgSv.add(this.config.sessionVars)};
mtvn.btg.reporting.Omniture.prototype={setAttribute:function(a,b){if(this.btgIsStr(a)){this.hcode[a]=this.btgIsStr(b)?b:"";return true}else return false},getAttribute:function(a){return this.hcode[a]},setValues:function(a){for(var b in a){this.setAttribute(b,a[b]);this.values.push(b)}return true},clearValues:function(){for(var a=0,b=this.values.length;a<b;a++)if(this.values[a]!="pageName")this.setAttribute(this.values[a],"");this.clearNewRepeat();this.values=this.getPageName()?["pageName"]:[];return true},
setNewRepeat:function(){this.setAttribute(this.newRepeatProp,this.hcode.getNewRepeat());return true},clearNewRepeat:function(){this.setAttribute(this.newRepeatProp,"");return true},getValOnce:function(a,b,c){return this.hcode.getValOnce(a,b,c)},getNewRepeat:function(){return this.hcode.getNewRepeat()},getPageName:function(){return this.getAttribute("pageName")},preprocessData:function(a){a=this.plugins.run(a);if(typeof mboxDefine=="function"&&typeof this.config.enableTestAndTarget=="boolean"&&this.config.enableTestAndTarget){a.tnt=
this.hcode.trackTNT();if(a.tnt=="")a.tnt=this.btgRep.TestAndTarget.getCampaignId()}if(typeof this.btgCfg.ReportSettings.Omniture.enableVisitorNamespace=="boolean"&&this.btgCfg.ReportSettings.Omniture.enableVisitorNamespace)a.visitorNamespace=mtvn.btg.globalvars.VISITOR_NAMESPACE;if(typeof this.btgRep.UserSegment!="undefined")a=this.btgRep.UserSegment.setData(this,a);if(typeof mtvn.btg.util.Session!="undefined")a=this.btgSv.setData(a);return a},sendPageCall:function(a){var b=mtvn.btg.reporting.games;
if(this.dependencies.hasDependency()){this.dependencies.addToCallQueue(this,this.sendPageCall,a);return}a=typeof a!="object"?{}:a;if(typeof a.pageName!="string"||a.pageName=="")a.pageName=typeof this.hcode.pageName==="string"&&this.hcode.pageName!=""?this.hcode.pageName:this.btgCfg.ReportSettings._defaultPageName;if(typeof this.config.noPagenameSlash!="undefined"&&this.config.noPagenameSlash&&a.pageName.charAt(0)=="/")a.pageName=a.pageName.substring(1);if(typeof this.config.defaultHier=="string"&&
this.config.defaultHier!="")if(typeof a[this.config.defaultHier]!=="string"||a[this.config.defaultHier]==""){if(typeof this.hcode[this.config.defaultHier]==="string"&&this.hcode[this.config.defaultHier]!="")var c=this.hcode[this.config.defaultHier];else if(typeof a.docHierarchy==="string"&&a.docHierarchy!="")c=a.docHierarchy;else c=a.pageName;if(c.charAt(c.length-1)=="/")if(typeof this.btgCfg.ReportSettings.indexFileName==="string")a[this.config.defaultHier]=c+this.btgCfg.ReportSettings.indexFileName;
else a[this.config.defaultHier]=c+"index";else a[this.config.defaultHier]=c;a[this.config.defaultHier]=this.btgStr.charLtrim(a[this.config.defaultHier],"/")}if(typeof a.channel!="string"||a.channel=="")if(typeof this.hcode.channel=="string")a.channel=this.hcode.channel;else if(a.pageName=="/")a.channel=a.pageName;else for(var c=a.pageName.split("/"),d=0,e=c.length;d<e;d++)if(c[d]!=""){a.channel=c[d];break}if(typeof a.channel=="string")a.eVar49=a.channel;if(typeof this.btgRep.SEO!="undefined")a=this.btgRep.SEO.setData(this,
a);if(typeof this.btgRep.BrowserToolbar!="undefined")a=this.btgRep.BrowserToolbar.setData(this,a);if((typeof this.config.isFluxHosted=="undefined"||typeof this.config.isFluxHosted!="undefined"&&this.config.isFluxHosted!=true)&&typeof this.btgRep.FluxState!="undefined")a=this.btgRep.FluxState.setData(this,a);if(typeof this.btgRep.Search!="undefined")a=this.btgRep.Search.setData(a);if(typeof this.btgRep.Search!="undefined")a=this.btgRep.Search.chkConversions(a);if(typeof this.btgRep.Photos!="undefined")a=
this.btgRep.Photos.setData(a);if(typeof this.btgRep.RecsABTesting!="undefined")a=this.btgRep.RecsABTesting.setData(this,a);if(typeof this.config.enableTimeParting!="undefined"&&this.config.enableTimeParting==true&&typeof this.config.timePartingVarMap!="undefined"){c=typeof this.btgCfg.ReportSettings.Omniture.timezone!="undefined"?this.btgCfg.ReportSettings.Omniture.timezone:"-5";a[this.config.timePartingVarMap.commerceHour]=a[this.config.timePartingVarMap.trafficHour]=this.hcode.getTimeParting("h",
c);a[this.config.timePartingVarMap.commerceDay]=a[this.config.timePartingVarMap.trafficDay]=this.hcode.getTimeParting("d",c)}if(typeof this.config.percentPageViewedVarMap!="undefined"){if(typeof this.config.percentPageViewedVarMap.previousPage!="undefined")a[this.config.percentPageViewedVarMap.previousPage]=this.hcode.getPreviousValue(a.pageName,"s_pn");if(typeof this.config.percentPageViewedVarMap.percentage!="undefined")if(this.config.percentPageViewedVarMap.percentage.indexOf("event")>=0){if(typeof a.events==
"string"&&a.events!="")a.events+=",";else a.events="";a.events+=this.config.percentPageViewedVarMap.percentage;if(typeof a.products=="string"&&a.products!="")a.products+=",";else a.products="";a.products+=";;;;"+this.config.percentPageViewedVarMap.percentage+"="+this.hcode.getPercentPageViewed()}else a[this.config.percentPageViewedVarMap.percentage]=this.hcode.getPercentPageViewed()}if(!this.pageViewEventSet){c=typeof a.events==="string"?a.events:"";if(typeof this.config.pageViewEvent==="string"&&
c.indexOf(this.config.pageViewEvent)<0){if(c!="")c+=",";c+=this.config.pageViewEvent;a.events=c;this.pageViewEventSet=true}}if(typeof b.GameReporter!="undefined"){b.GameReporter.gtsEvent="event74";a=b.GameReporter.setData(a)}a=this.preprocessData(a);this.setValues(a);this.setNewRepeat();this.attachLoggedEvent();if(mtvn.btg.util.Object.isConfigDefined(mtvn.btg.config.ReportSettings.Demdex)&&mtvn.btg.reporting.Demdex){a[this.newRepeatProp]=this.getAttribute(this.newRepeatProp);mtvn.btg.reporting.Demdex.sendPageCall(a)}this.hcode.t();
this.clearValues();return true},sendLinkEvent:function(a){if(this.dependencies.hasDependency()){this.dependencies.addToCallQueue(this,this.sendPageCall,a);return}var a=typeof a!="object"?{}:a,a=this.plugins.run(a),b=this.getPageName();a.lnk=a.lnk?this.hcode.co(a.lnk):true;a.linkType=a.linkType?a.linkType:"o";a.referrer=location.href;a=this.preprocessData(a);this.setValues(a);this.setAttribute("pageName","");this.attachLoggedEvent();this.hcode.t();this.clearValues();this.setAttribute("pageName",b);
return true},setAccountVars:function(a){this.setAttribute("un",a.name);this.setAttribute("dynamicAccountSelection",a.dynamic);this.setAttribute("dynamicAccountList",a.list);this.setAttribute("linkInternalFilters",a.filters);this.setAttribute("charSet",a.chartset);for(var b in a)if(this.btgIsStr(b))this.setAttribute(b,this.btgIsStr(a[b])?a[b]:"")},logEvent:function(a){var b=this.btgCk.set;if(this.btgIsStr(a)){if(this.btgIsStr(a.UIEvent))b("UIEvent",a.UIEvent);if(this.btgIsStr(a.UIEventName))b("UIEventName",
a.UIEventName);if(this.btgIsStr(a.UITrackingCode))b("UITrackingCode",a.UITrackingCode)}},attachLoggedEvent:function(){var a=this.btgCk.read,b=this.btgCk.remove;if(this.btgIsStr(a("UIEvent"))){this.setAttribute("events",a("UIEvent"));b("UIEvent")}if(this.btgIsStr(a("UIEventName"))){this.setAttribute("eVar40",a("UIEventName"));b("UIEventName")}if(this.btgIsStr(a("UITrackingCode"))){this.setAttribute("campaign",a("UITrackingCode"));b("UITrackingCode")}return true},clearAllVars:function(){for(var a=1;a<=
50;a++){this.setAttribute("eVar"+a,"");this.setAttribute("prop"+a,"");if(a<6)this.setAttribute("hier"+a,"")}this.setAttribute("pageName","");this.setAttribute("channel","");return true}};
mtvn.btg.reporting.Demdex=new function(){try{var a="https:"==document.location.protocol?"https://":"http://"}catch(b){}var c=a+"mtvn.demdex.net",d=a+"dpm.demdex.net/ibs:dpid=332&dpuuid=",e=mtvn.btg.util.Cookie,f=new mtvn.btg.util.Beacon,g=false;this.canSendRequest=true;this.dependencies=new mtvn.btg.managers.DependencyManager;this.sendIdSyncCall=function(){var a=e.read("vmn_uuid");if(!e.read("mtvn_dmp_init")&&a){var b=new Date;f.url=d+a;f.send();b.setHours(23);b.setMinutes(59);e.set("mtvn_dmp_init",
1,b)}};this.sendPageCall=function(a,b){if(!e.read("vmn_uuid"))return false;this.dependencies.add("demdex_response",function(){return(mtvn.btg.reporting.Demdex?mtvn.btg.reporting.Demdex:{}).canSendRequest},500);this.dependencies.checkDependency("demdex_response");if(this.dependencies.hasDependency()){this.dependencies.addToCallQueue(this,this.sendPageCall,a,b);return}this.canSendRequest=false;var d=c+"/event?",g={d_rtbd:"json",d_dst:1,d_cts:1,d_cb:"mtvn.btg.reporting.Demdex.response"};if(b&&typeof b===
"object")for(var f in b)if(b.hasOwnProperty(f))g["d_"+f]=escape(b[f]);if(a&&typeof a==="object")for(f in a)if(a.hasOwnProperty(f)){var t=f;if(f.match(/^(prop\d{1,2})$/ig))t=f.replace("prop","c");else if(f.match(/^(evar\d{1,2})$/ig))t=f.replace("eVar","v");else if(f.match(/^(hier\d{1,2})$/ig))t=f.replace("hier","h");else if(f.match(/^(channel)$/ig))t=f.replace("channel","ch");g["c_"+t]=escape(a[f])}mtvn.btg.util.DOM.loadScript(d+mtvn.btg.util.Object.toString(g,"&"))};this.sendSocialCall=function(a){var b=
e.read("vmn_uuid");if(!b)return;this.dependencies.add("demdex_response",function(){return(mtvn.btg.reporting.Demdex?mtvn.btg.reporting.Demdex:{}).canSendRequest},500);this.dependencies.checkDependency("demdex_response");if(this.dependencies.hasDependency()){this.dependencies.addToCallQueue(this,this.sendSocialCall,a);return}this.canSendRequest=false;var d=c+"/event?",b={d_rtbd:"json",d_dst:1,d_cts:1,d_cb:"mtvn.btg.reporting.Demdex.response",c_uuid:b};if(a&&typeof a==="object")for(var f in a)if(a.hasOwnProperty(f)&&
a[f])b["c_"+f]=escape(a[f]);mtvn.btg.util.DOM.loadScript(d+mtvn.btg.util.Object.toString(b,"&"))};this.response=function(){mtvn.btg.reporting.Demdex.canSendRequest=true;if(!g){mtvn.btg.util.DOM.appendIframe("http://fast.mtvn.demdex.net/DSD-gz/mtvn-dest.html?targus=1&targusvalidttl=14400&bizo=1&bizovalidttl=14400&nexac=1&nexacvalidttl=14400");g=true}}};
mtvn.btg.reporting.QuantCast=function(a){var b=mtvn.btg.config,c=mtvn.btg.reporting.ReportingManager,d=mtvn.btg.util.DOM.Events;this.labels="";this.config=a;var e="https:"==document.location.protocol?"https://secure":"http://edge";if((a=typeof b.AdSettings!="undefined"&&typeof b.AdSettings.QuantCast!="undefined"&&typeof b.AdSettings.QuantCast.enableDemoTargeting=="boolean"?b.AdSettings.QuantCast.enableDemoTargeting:true)&&!mtvn.btg.globalvars.IS_UNIT_TEST&&!c.isScriptIncluded.quantcast){d.addListener(window,
"load",function(){mtvn.btg.util.DOM.loadScript(e+".quantserve.com/quant.js",true)});if(a&&!mtvn.btg.util.String.isDefined(mtvn.btg.util.Cookie.read("qcDemo")))try{d.addListener(window,"load",function(){mtvn.btg.util.DOM.loadScript("http"+("https:"==document.location.protocol?"s":"")+"://pixel.quantserve.com/api/segments.json?a="+"p-94wNw88f65Rhk"+"&callback=mtvn.btg.reporting.QuantCast.Ads.setCookieDemoTargetVal")})}catch(f){}c.isScriptIncluded.quantcast=true}this.labels=this.config.labels};
mtvn.btg.reporting.QuantCast.prototype={sendPageCall:function(){if(this.config.reportMode=="direct")try{_qoptions={labels:this.labels};_qacct="p-94wNw88f65Rhk";quantserve()}catch(a){}}};
mtvn.btg.reporting.QuantCast.Ads=new function(){this.setLabels=function(a,b){try{var c="",d="",e="",d=a.dartSite.replace(/\./g,"_"),e=b.replace(/^\//m,""),e=e.replace(/\//g,"."),c=mtvn.btg.config.ReportSettings.QuantCast.labels+",Viacom Global Digital Network.MTVN Digital Ad Sales.Content.Pages."+d+"."+e;_qoptions={labels:c};_qacct="p-94wNw88f65Rhk";quantserve()}catch(f){}};this.setCookieDemoTargetVal=function(a){for(var b=[],c=0,d=a.segments.length;c<d;c++)b[c]="demo="+a.segments[c].id;mtvn.btg.util.Cookie.set("qcDemo",
escape(b.join(";")))}};
mtvn.btg.reporting.ReportingManager=new function(){var a=false,b=false,c=false,d=false,e,f,g,h,j;this.isScriptIncluded={comscore:false,quantcast:false,googleAnalytics:false};this.init=function(){var e=mtvn.btg.reporting;f=mtvn.btg.config.ReportSettings;var l=mtvn.btg.util.Object.isConfigDefined;if(l(f.Omniture)&&e.Omniture){g=new e.Omniture(f.Omniture);a=true}if(l(f.Nielsen)&&e.Nielsen)new e.Nielsen(f.Nielsen);if(l(f.GoogleAnalytics)&&e.GoogleAnalytics){j=new e.GoogleAnalytics(f.GoogleAnalytics);c=
true}if(l(f.QuantCast)&&e.QuantCast){h=new e.QuantCast(f.QuantCast);b=true}if(l(f.ComScore)&&e.ComScore)new e.ComScore(f.ComScore);if(l(f.ChoiceStream)&&e.ChoiceStream){choicestream=new mtvn.btg.reporting.ChoiceStream(f.ChoiceStream);d=true}if(l(f.Demdex)&&mtvn.btg.reporting.Demdex)mtvn.btg.reporting.Demdex.sendIdSyncCall()};this.sendPageCall=function(d){if(a){g.sendPageCall(typeof d.omniture=="object"&&d.omniture!=null?d.omniture:d);e=g.getPageName()}if(b)h.sendPageCall(typeof d.quantCast=="object"&&
d.quantCast!=null?d.quantCast:d);if(c)j.sendPageCall(typeof d.googleAnalytics=="object"&&d.googleAnalytics!=null?d.googleAnalytics:d)};this.sendLinkEvent=function(b){if(a)g.sendLinkEvent(typeof b.omniture=="object"&&b.omniture!=null?b.omniture:b);if(c&&mtvn.btg.util.Object.isDefined(b.googleAnalytics))j.sendLinkEvent(b.googleAnalytics)};this.getData=function(){return{pageName:e}};this.getOmniture=function(){return a?g:null};this.setChoiceStreamRequest=function(a,b){if(d)choicestream.setChoiceStreamRequest(a,
b)}};
mtvn.btg.reporting.TestAndTarget={btgIsStr:mtvn.btg.util.String.isDefined,btgCfg:mtvn.btg.config,campaignId:"",isEnabled:function(){return this.btgIsStr(this.btgCfg.ReportSettings.Omniture.enableTestAndTarget)&&this.btgCfg.ReportSettings.Omniture.enableTestAndTarget},init:function(){if(!this.isEnabled())return false;for(var a=typeof this.btgCfg.ReportSettings.Omniture.mboxMap!="undefined"?this.btgCfg.ReportSettings.Omniture.mboxMap:"",b=0,c=a.length;b<c;b++){var d="temp_"+a[b].elementId,e=document.createElement("div");e.setAttribute("id",
d);document.getElementsByTagName("body")[0].appendChild(e);var e=a[b].mboxId,f=a[b].params;if(this.btgIsStr(a[b].params)){mboxDefine(d,e,f);mboxUpdate(e,a[b].params)}else{mboxDefine(d,e);mboxUpdate(e)}}},convertMbox:function(a){if(!this.isEnabled())return false;var b="div_"+mtvn.btg.util.Math.random(1E17,1E18);var c=document.createElement("div");document.getElementsByTagName("body")[0].appendChild(c);mboxDefine(b,a);mboxUpdate(a)},createMboxes:function(a){if(!this.isEnabled())return false;if(typeof this.btgCfg.ReportSettings.Omniture.mboxMap==
"object")if(typeof a!="object")a=this.btgCfg.ReportSettings.Omniture.mboxMap;else a=a.concat(this.btgCfg.ReportSettings.Omniture.mboxMap);for(i in a){var b=a[i].elementId;if(!document.getElementById(b))continue;var c="mboxImported-default-"+a[i].mboxId+"-0";if(document.getElementById(c).childNodes.length>3){document.getElementById(b).innerHTML="";document.getElementById(b).appendChild(document.getElementById(c))}}},getCampaignId:function(){return this.campaignId},setCampaignId:function(a){this.campaignId=
a}};
mtvn.btg.reporting.Search=new function(){var a=mtvn.btg.util.Cookie,b="",c=function(a){if(b.indexOf(a)<0){if(b!="")b+=",";b+=a}return b};this.init=function(){};this.setData=function(a){if(typeof com_mtvi_SSDC!="object")return a;var e="events,prop31,"+"eVar55";c("event36");a.eVar3=typeof com_mtvi_SSDC.srchtype=="string"?com_mtvi_SSDC.srchtype:"GENERAL";if(typeof com_mtvi_SSDC.srchsyn!="undefined"){c("event33");if(typeof com_mtvi_SSDC.srchsyn=="object"){for(var f=0,g=com_mtvi_SSDC.srchsyn.length;f<g;f++)com_mtvi_SSDC.srchsyn[f]=
com_mtvi_SSDC.srchsyn[f].replace(/\,/,"");com_mtvi_SSDC.srchsyn=com_mtvi_SSDC.srchsyn.join(",")}a.eVar36=com_mtvi_SSDC.srchsyn;e+=",eVar36"}if(typeof com_mtvi_SSDC.srchterm=="string"){c("event38");a.eVar2=com_mtvi_SSDC.srchterm;e+=",eVar2"}else if(typeof com_mtvi_SSDC.srchfail=="string"){c("event37");a.eVar4=typeof com_mtvi_SSDC.appfailure=="boolean"&&com_mtvi_SSDC.appfailure?"APP_FAILURE":com_mtvi_SSDC.srchfail;e+=",eVar4"}mtvn.btg.reporting.UserSegment.set("SiteSearcher");a.linkTrackVars=e;a.linkTrackEvents=
b;return a};this.sendLinkEvent=function(){if(!com_mtvi_SSDC)return false;var a={linkName:"SITE_SEARCH_RESULTS",linkType:"o"},a=this.setData(a);mtvn.btg.Controller.sendLinkEvent(a);return true};this.chkConversions=function(d){var e=a.read,f=a.remove;if(typeof d.events=="string")b=d.events;var g=e("mtvn_btg_SSDC_conv");if(e("mtvn_btg_SSDC_conv")){c("event35");d.eVar55=g;f("mtvn_btg_SSDC_conv")}if(e("mtvn_btg_SSDC_syn_conv")){c("event34");f("mtvn_btg_SSDC_syn_conv")}if(e("mtvn_btg_SSDC_typeahead_conv")){c("event39");
f("mtvn_btg_SSDC_typeahead_conv")}d.events=b;return d};this.setConversion=function(b){if(!b||isNaN(b))b="not reported";a.set("mtvn_btg_SSDC_conv",b)};this.setSynConversion=function(){a.set("mtvn_btg_SSDC_syn_conv",1)};this.setTypeAheadConversion=function(){a.set("mtvn_btg_SSDC_typeahead_conv",1)}};
mtvn.btg.reporting.SEO=new function(){this.setData=function(a,b){for(var c=mtvn.btg.reporting,d=[["google.com","GoogleUser"],["msn.com","MSNUser"],["yahoo.com","YahooUser"]],e=0,f=d.length;e<f;e++)if(document.referrer.indexOf(d[e][0])>-1)if(typeof c.UserSegment!="undefined")c.UserSegment.set(d[e][1]);return b}};
mtvn.btg.reporting.UserSegment=new function(){var a=mtvn.btg.util.Cookie;this.init=function(b){var c=a.read("mtvn_btg_userSegments");b.userSegments=c?c.split(","):[];return true};this.set=function(b,c){if(!c)c=mtvn.btg.reporting.ReportingManager.getOmniture();for(var d=0,e=c.userSegments.length;d<e;d++)if(c.userSegments[d]==b)return false;c.userSegments[c.userSegments.length]=b;a.set("mtvn_btg_userSegments",c.userSegments.join(","));return true};this.add=function(a,c){this.set(c,a);return true};this.getSegments=
function(a){return a.userSegments};this.getStr=function(a,c,d){if(!c)c="";if(!d)d="";return typeof a.userSegments=="object"&&a.userSegments.length>0?c+a.userSegments.join(d+","+c)+d:""};this.setData=function(a,c){c[a.config.userSegmentVarMap.traffic]=c[a.config.userSegmentVarMap.traffic]?c[a.config.userSegmentVarMap.traffic]+(this.getStr(a)!=""?",":"")+this.getStr(a):this.getStr(a);c[a.config.userSegmentVarMap.commerce]=c[a.config.userSegmentVarMap.commerce]?c[a.config.userSegmentVarMap.commerce]+
(this.getStr(a,"User Segment;")!=""?",":"")+this.getStr(a,"User Segment;"):this.getStr(a,"User Segment;");return c}};
mtvn.btg.reporting.RecsABTesting={btgCk:mtvn.btg.util.Cookie,setData:function(a,b){var c=mtvn.btg.util.String.isDefined,d=mtvn.btg.reporting.UserSegment,e=this.btgCk.read("RecsVendor");if(c(e)){var f=null;switch(e){case "0":f="RecsAB_ChoiceStream";break;case "1":f="RecsAB_Control"}if(f)d.add(a,f)}if(c(this.btgCk.read("RecsConversion"))){d.add(a,"RecsAB_ChoiceStream_Clickthrough");if(typeof b.events==="string"&&b.events.length>0)b.events+=",event40";else b.events="event40";this.btgCk.remove("RecsConversion")}return b},
setConversion:function(){this.btgCk.set("RecsConversion",1)}};
mtvn.btg.reporting.ESIVars=new function(){this.setData=function(a,b){var c;a:{if(typeof mtvn_btg_ESIVars!="object"){c=false;break a}c=true}if(!c)return b;if(typeof a.config.ESIVarMap.network=="string")mtvn.btg.reporting.UserSegment.add(a,mtvn_btg_ESIVars.network);if(typeof a.config.ESIVarMap.asnum=="string")b[a.config.ESIVarMap.asnum]=mtvn_btg_ESIVars.asnum;if(typeof a.config.ESIVarMap.proxy=="string")b[a.config.ESIVarMap.proxy]=mtvn_btg_ESIVars.proxy;if(typeof a.config.ESIVarMap.countryCode=="string")b[a.config.ESIVarMap.countryCode]=
mtvn_btg_ESIVars.countryCode;return b}};
mtvn.btg.reporting.Photos=new function(){var a=mtvn.btg.util,b=mtvn.btg.util.Cookie,c=b.set,d=b.read,e=mtvn.btg.Controller;_TIMESPENT_COOKIE_NAME="mtvn_btg_photos_timespent";_FLIPBOOKVIEW_COOKIE_NAME="mtvn_btg_photos_flipbook";_varMap=_startTime=null;_events="";var f=function(a){if(_events.indexOf(a)<0){if(_events!="")_events+=",";_events+=a}return _events};this.init=function(b){_startTime=(new Date).getTime();this._varMap=b;a.DOM.Events.addListener(window,"unload",function(){mtvn.btg.reporting.Photos.setTimespent()});
return true};this.setTimespent=function(){var a=(new Date).getTime(),a=Math.round((a-_startTime)/100);if(a<1)a=1;c(_TIMESPENT_COOKIE_NAME,a)};this.getTimespent=function(){var a=d(_TIMESPENT_COOKIE_NAME);b.remove(_TIMESPENT_COOKIE_NAME);_startTime=(new Date).getTime();return a?a:0};this.setData=function(b){_events=typeof b.events=="string"&&b.events.length>0?b.events:"";if(typeof mtvn_btg_Photos=="object"&&mtvn_btg_Photos!=null&&typeof _varMap=="object"&&_varMap!=null){if(typeof mtvn_btg_Photos.isPhotoView==
"boolean"&&mtvn_btg_Photos.isPhotoView||typeof mtvn_btg_Photos.photoId=="string"&&mtvn_btg_Photos.photoId!="")mtvn.btg.reporting.UserSegment.set("Photo Viewer");else if(typeof mtvn_btg_Photos.isAd=="boolean"&&typeof mtvn_btg_Photos.isAd)f(_varMap.adView);if(typeof mtvn_btg_Photos.application!="undefined"&&typeof mtvn_btg_Photos.gallery!="undefined"&&(typeof mtvn_btg_Photos.photoId!="undefined"||typeof mtvn_btg_Photos.isAd=="boolean"&&typeof mtvn_btg_Photos.isAd)){for(var e=typeof _varMap.application==
"string"?_varMap.application.split(","):_varMap.application,j=0,k=e.length;j<k;j++)b[e[j]]=mtvn_btg_Photos.application;e=typeof _varMap.gallery=="string"?_varMap.gallery.split(","):_varMap.gallery;j=0;for(k=e.length;j<k;j++)b[e[j]]=mtvn_btg_Photos.gallery;e=typeof _varMap.photoId=="string"?_varMap.photoId.split(","):_varMap.photoId;j=0;for(k=e.length;j<k;j++)b[e[j]]=mtvn_btg_Photos.photoId;if(typeof mtvn_btg_Photos.photoId!="undefined")f(_varMap.photoView);k=d(_FLIPBOOKVIEW_COOKIE_NAME);if(mtvn_btg_Photos.gallery!=
k){f(_varMap.flipbookView);c(_FLIPBOOKVIEW_COOKIE_NAME,mtvn_btg_Photos.gallery);if(typeof a.Events.flipBookView!="undefined")a.Events.flipBookView.fire()}if(typeof b.products=="string"&&b.products!="")b.products+=",";else b.products="";b.products+=";;;;"+_varMap.timeSpent+"="+this.getTimespent();f(_varMap.timeSpent)}}b.events=_events;return b};this.sendCall=function(a){if(typeof a=="object"){if(typeof mtvn_btg_Photos!="object")mtvn_btg_Photos={};if(typeof a.application=="string")mtvn_btg_Photos.application=
a.application;if(typeof a.gallery=="string")mtvn_btg_Photos.gallery=a.gallery;if(typeof a.photoId=="string")mtvn_btg_Photos.photoId=a.photoId;if(typeof a.isAd=="boolean")mtvn_btg_Photos.isAd=a.isAd}this.setTimespent();e.sendPageCall()};this.trackShareButton=function(){e.sendLinkEvent({linkName:"Photo Share Button",linkType:"o"})};this.trackRSSButton=function(){e.sendLinkEvent({linkName:"Photo RSS Button",linkType:"o"})}};
mtvn.btg.reporting.BrowserToolbar={setData:function(a,b){var c=mtvn.btg.util.Cookie.read,d=mtvn.btg.util.Cookie.remove,e=mtvn.btg.util.String.isDefined,f=mtvn.btg.reporting.UserSegment,g=c("mtvn_btg_Toolbar");if(e(g)){f.add(a,"Toolbar - Main - User");d("mtvn_btg_Toolbar")}g=c("mtvn_btg_ToolbarSubscriber");if(e(g)){f.add(a,"Toolbar - Main - Subscriber");d("ToolBarSubscriber")}c=c("mtvn_btg_ToolbarHpUser");if(e(c))f.add(a,"Toolbar - Main - HP User");return b}};
mtvn.btg.reporting.ChoiceStream=function(a){this.config=a;this.apiKey=this.config.apiKey?this.config.apiKey:"";this.profileId=this.config.profileId?this.config.profileId:"";this.CSRR=null;if(this.config.enabled)try{mtvn.btg.util.DOM.loadScript("http"+("https:"==document.location.protocol?"s":"")+"://stgapi.choicestream.com/instr/csanywhere.js")}catch(b){}};
mtvn.btg.reporting.ChoiceStream.prototype={setChoiceStreamRequest:function(a,b){var c=this,d=mtvn.btg.util.Object.isDefined(a)?a:{};if(!mtvn.btg.util.Object.isConfigDefined(this.config))return;var e=new mtvn.btg.managers.DependencyManager;e.add("mtvn_csrr",function(){if(typeof csRR=="undefined")return false;c.CSRR=new csRR(c.apiKey,"custom");c.CSRR.addRecoDisplayRequest(d.pageType,{appcontext:d.pageType});c.CSRR.setParameter("cookie_id",c.profileId);for(var a=0,e=d.items?d.items.length:0;a<e;a++)c.CSRR.addItem(d.items[a]);
for(var h in d.parameters)if(d.hasOwnProperty(h))c.CSRR.setParameter(h,d.parameters[h]);if(!b)c.CSRR.getRequest().setSuccessCallback(c.setPlayerEndSlate);c.CSRR.send();return true});e.checkDependency("mtvn_csrr")},setPlayerEndSlate:function(a){a.getStatus();var a=a.getRecoSet(0),b=a.getStatus(),c=a.getNumRecos(),d=[];if(b.getCode()==99)if(c!=0)for(b=0;b<c;b++){var e=a.getReco(b),f={};f.title=e.getAttribute("name");f.description=e.getAttribute("description");f.displayData={thumbnail:{url:e.getAttribute("image_link"),
width:70,height:53},source:e.getAttribute("name")};f.link=e.getAttribute("link");d.push(f)}window.getEndSlateFeed=function(){return{title:"Related Videos",items:d}}}};
mtvn.btg.reporting.player.Loadtime={initTime:Number(new Date),initFlag:0,timeRangeArr:[0,0.9,2.9,4.9,6.9,9.9,12.9,15.9,19.9,24.9,30],reportURL:"http://{suiteName}.112.2o7.net/b/ss/{suiteName}/1/H.1-pdv-2/{ord}?pageName={siteName}&c11=PLAYER-LOAD-TEST&c12={delta}&events=event1&products=;;;;event1={playerLoadTime}",suiteName:"viarnd",siteNameVal:"media.mtvnservices.com",timerStateCheck:function(a){if(typeof siteName!="undefined")this.siteNameVal=siteName;if(a=="connected"&&this.initFlag==0){this.initFlag++;
var b=a=(Number(new Date)-this.initTime)/1E3,a=a>30?30:a,c=0;switch(a){case 0:c="0-1";break;case 30:c="30";break;default:for(var d=1,e=this.timeRangeArr.length;d<e;d++)if(this.timeRangeArr[d-1]<a&&this.timeRangeArr[d]>=a){c=Math.ceil(this.timeRangeArr[d-1])+"-"+Math.ceil(this.timeRangeArr[d]);break}}this.reportURL=this.reportURL.replace(/http:/,"https:"==document.location.protocol?"https:":"http:").replace(/\{suiteName\}/g,this.suiteName).replace(/\{ord\}/,Math.floor(Math.random()*1E12)).replace(/\{siteName\}/g,
this.siteNameVal).replace(/\{delta\}/,c).replace(/\{playerLoadTime\}/,b);(new Image).src=this.reportURL}}};
mtvn.btg.reporting.player.MediaPlayer={btgC:mtvn.btg.util.Cookie,btgMp:mtvn.btg.reporting.player.MediaPlayer,context:null,playerCommandQueue:null,init:function(a){this.context=a;this.playerCommandQueue=new mtvn.btg.managers.QueueManager({id:"mtvn.btg.reporting.player.MediaPlayer.playerCommandQueue",timeToWait:100,maxNumItems:10,maxElapsed:1E3,handler:this.execute})},playStarted:false,players:[],addPlayer:function(a,b){this.players[a]=new this.Player(a,b);return this.players[a]},setEndSlateClick:function(a){var b=
this.btgC.set;b("mtvn_btg_tnt",(a?mtvn.btg.reporting.TestAndTarget.getCampaignId():"")+"_"+(typeof feedEndslate!="undefined"&&feedEndslate));b("mtvn_btg_esclicked",a)},getEndSlateClick:function(){return this.btgC.read("mtvn_btg_esclicked")},PlayerController:function(a,b){return this.addPlayer(a,b)},pause:function(){var a=mtvn.btg.reporting.player.MediaPlayer,b;for(b in a.players)if(a.players.hasOwnProperty(b))a.players[b].player.pause()},unpause:function(){var a=mtvn.btg.reporting.player.MediaPlayer,
b;for(b in a.players)if(a.players.hasOwnProperty(b))a.players[b].player.unpause()},execute:function(a){var b=mtvn.btg.reporting.player.MediaPlayer,c=mtvn.btg.html5.ads.AdLoader,d=btg&&btg.ads&&btg.ads.Freewheel&&btg.ads.Freewheel.API?btg.ads.Freewheel.API:false;try{if(c.html5Player||d)b.playStarted=true}catch(e){}if(b.playStarted)switch(a){case "unpause":if(mtvn.btg.html5&&c.html5Player){if(b.pausedPlay)c.html5Player.play()}else if(d)d.play();else b.unpause();break;case "pause":if(mtvn.btg.html5&&
c.html5Player){b.pausedPlay=!c.html5Player.paused;c.html5Player.pause()}else if(d)d.pause();else b.pause()}else b.playerCommandQueue.queue.push(a)},Player:function(a,b){var c=mtvn.btg.Controller,d=mtvn.btg.util.Cookie,e=mtvn.btg.reporting,f=mtvn.btg.reporting.TestAndTarget,g=mtvn.btg.reporting.player.MediaPlayer,h=mtvn.btg.config;this.playerId=a;this.player=this.lastGuid=null;this.playerLoaded=false;this.onLoadFunctionName=b;this.onLoaded=function(){if(navigator.appName.indexOf("Microsoft"))this.player=
window[this.playerId]?window[this.playerId]:document[this.playerId]?document[this.playerId]:null;else this.player=document[this.playerId]?document[this.playerId]:window[this.playerId]?window[this.playerId]:null;if(this.player==null)return;if(typeof this.player.length!="undefined")for(var a in this.player)if(typeof this.player[a].pause!="undefined"){this.player=this.player[a];break}this.player.addEventListener("METADATA",'mtvn.btg.reporting.player.MediaPlayer.players["'+this.playerId+'"].onMetaData');
this.player.addEventListener("ENDSLATE_CLICK",'mtvn.btg.reporting.player.MediaPlayer.players["'+this.playerId+'"].onEndslateLoad');this.player.addEventListener("PLAYHEAD_UPDATE",'mtvn.btg.reporting.player.MediaPlayer.players["'+this.playerId+'"].onPlayHeadUpdate');this.playerLoaded=true;a=eval(this.onLoadFunctionName);if(typeof a=="function")a(this)};this.onDump=function(){};this.dump=function(){var a="";if(this.playerLoaded)a=this.player.getLogDump();else a="player not loaded";this.onDump(a)};this.onPlayHeadUpdate=
function(a){var b=mtvn.btg.reporting.player.MediaPlayer;if((a=a==-1||a==null||typeof a=="undefined"?1.5:a)&&a>1)if(!b.playStarted){b.playStarted=true;b.playerCommandQueue.init()}};this.onMetaData=function(a){if(location.search.match(/showMetaData\=true/)){str="";for(m in a)str+=m+": "+a[m]+"\n";alert(this.lastGuid+"\n\n\n"+str)}var b="",l=document.location.search,o=l.toLowerCase().indexOf("xrs=mpes_")!=-1?true:false,t=a.contentType==="c3_adpod";if(o)for(var l=l.replace(/^\?/g,"").split("&"),o=0,v=
l.length;o<v;o++)if(l[o].split("=")[0]=="xrs")b=mtvn.btg.util.String.isDefined(l[o].split("=")[1])?l[o].split("=")[1]:"";if(a.guid&&this.lastGuid!==a.guid){b={linkName:"Video View",linkType:"o",eVar28:a.contentType,events:"event15"+(g.getEndSlateClick()=="true"?",event45":""),campaign:b};if(typeof h.ReportSettings.Omniture.enableTestAndTargetTrial!="undefined"&&h.ReportSettings.Omniture.enableTestAndTargetTrial){l=(o=d.read("mtvn_btg_tnt"))?o.split("_")[0]:"";o=o?o.split("_")[1]:"false";if(g.getEndSlateClick()==
"true"&&l!="")if(o.toString()=="true")f.convertMbox(location.href&&location.href.match(/[\?#&]id=[^&]/gi)?"editorialplaylist":"dynamicplaylist");else f.convertMbox("endslatevideoloaded");f.convertMbox("endSlateGating")}d.set("mtvn_btg_tnt","");if(typeof e.UserSegment!="undefined"){e.UserSegment.add(g.context,"VideoViewer");if(t)e.UserSegment.add(e.MediaPlayer.context,"C3VideoViewer")}if(typeof h.ReportSettings.Omniture.videoViewEventDisable!="undefined"&&h.ReportSettings.Omniture.videoViewEventDisable){b.events=
b.events.replace(/event15(,)?/gi,"");b.eVar28=""}else{g.setEndSlateClick("false");c.sendLinkEvent(b)}}this.lastGuid=a.guid};this.onEndslateLoad=function(){if(typeof this.onEndslateFired!="undefined")return;else this.onEndslateFired=true;if(typeof e.UserSegment!="undefined")e.UserSegment.add(g.context,"EndslateViewer");c.sendLinkEvent({linkName:"Endslate View",linkType:"o",events:"event44"});if(typeof h.ReportSettings.Omniture.enableTestAndTargetTrial!="undefined"&&h.ReportSettings.Omniture.enableTestAndTargetTrial)f.convertMbox("endslateload")}},
onWindowLoaded:function(){var a=mtvn.btg.reporting.player.MediaPlayer,b=window.mtvnPlayerLoaded;window.mtvnPlayerLoaded=function(c){try{if(typeof b!="undefined")b(c)}catch(d){}if(typeof document.getElementById(c)=="undefined")return;if(typeof a.players[c]=="undefined")a.addPlayer(c);a.players[c].onLoaded()}}};try{mtvn.btg.reporting.player.MediaPlayer.onWindowLoaded()}catch(e$$28){}
mtvn.btg.reporting.player.Preload=function(){this.playUpUrl="http://media.mtvnservices.com/player/images/Button_playBig_upSkin.png";this.playOverUrl="http://media.mtvnservices.com/player/images/Button_playBig_overSkin.png";this.playButtonWidth=92;this.playButtonHeight=70;this.embedCount=0;this.getElementsByClassName=function(a,b){for(var c=[],d=new RegExp("\\b"+b+"\\b"),e=document.getElementsByTagName(a),f=0,g=e.length;f<g;f++)if(d.test(e[f].className))c.push(e[f]);return c};this.attachClickToWrappers=
function(a,b,c){for(var a=this.getElementsByClassName("div",a),d=0,e=a.length;d<e;d++)this.onClickWrapper(a[d],b,c)};this.attachToWrappers=function(a,b,c){for(var a=this.getElementsByClassName("div",a),d=0,e=a.length;d<e;d++)this.attachToWrapper(a[d],b,c)};this.attachToWrapper=function(a,b,c){var d=this.embedCount,e="pUp"+this.embedCount,f="pOver"+this.embedCount,g=a.getElementsByTagName("img")[0];a.style.position="relative";var h=document.createElement("img");h.src=this.playOverUrl;h.style.position=
"absolute";h.style.zIndex=15;h.style.left=g.width/2-this.playButtonWidth/2;h.style.top=g.height/2-this.playButtonHeight/2;h.style.display="none";h.className="pOver";h.id=f;var j=document.createElement("img");j.src=this.playUpUrl;j.style.position="absolute";j.style.zIndex=15;j.style.left=g.width/2-this.playButtonWidth/2;j.style.top=g.height/2-this.playButtonHeight/2;j.style.display="block";j.className="pUp";j.id=e;a.m=new Object;a.m.idNumber=d;a.m.overIdName=f;a.m.upIdName=e;a.appendChild(h);a.appendChild(j);
this.onClickWrapper(a,b,c);this.onEnterWrapper(a);this.onExitWrapper(a);this.embedCount++};this.onEnterWrapper=function(a){a.onmouseover=function(){document.getElementById(this.m.overIdName).style.display="block";document.getElementById(this.m.upIdName).style.display="none"}};this.onExitWrapper=function(a){a.onmouseout=function(){document.getElementById(this.m.overIdName).style.display="none";document.getElementById(this.m.upIdName).style.display="block"}};this.createEmbedTag=function(a,b,c,d){var e=
document.createElement("embed");e.setAttribute("src","http://media.mtvnservices.com/"+a);e.setAttribute("height",b);e.setAttribute("width",c);e.setAttribute("id",a);e.setAttribute("flashVars",d);e.setAttribute("wmode","window");e.setAttribute("allowFullScreen",true);e.setAttribute("allowScriptAccess","always");e.setAttribute("type","application/x-shockwave-flash");e.style.backgroundColor="black";return e};this.onClickWrapper=function(a,b,c){a.onclick=function(){var d=this.id,e;if(this.getElementsByTagName("q").length>
0)e=this.getElementsByTagName("q")[0].innerHTML;if(this.getAttribute("flashVars"))e=this.getAttribute("flashVars");if(b==0){var f=this.getElementsByTagName("img")[0];b=f.height;c=f.width}pOver=document.getElementById(this.m.overIdName);this.removeChild(pOver);pUp=document.getElementById(this.m.upIdName);this.removeChild(pUp);for(var f=this.getElementsByTagName("img"),g=0,h=f.length;g<h;g++)this.removeChild(f[g]);this.appendChild(MTVNPlayerPreload.createEmbedTag(d,b,c,e));a.onmouseout=function(){};
a.onmouseover=function(){};a.onclick=function(){}}}}();mtvn.btg.reporting.games.GameEventMediator={gameSwf:null,gameLoad:function(a){if((this.gameSwf=navigator.appName.indexOf("Microsoft")!=-1&&window[a]?window[a]:document[a])&&this.gameSwf.addEventListener)this.gameSwf.addEventListener("ON_GAME_EVENT","mtvn.btg.reporting.games.GameReporter.onGameEvent")}};mtvn.btg.reporting.games.GameEventVO={ON_GAME_LOAD:"event51",ON_GAME_PLAY:"event52",ON_GAME_LEVELSTART:"event54"};
mtvn.btg.reporting.games.GameReporter={config:{},metadata:{},gtsEvent:"event74",gtsTracker:new mtvn.btg.util.TimeTracker("gtsTracker"),omniVarMap:{linkName:"linkName",linkURL:"gameURL",prop39:"gameGenre",prop40:"gameTitle",eVar53:"gameTitle",eVar54:"franchise",eVar41:"gameGenre",eVar42:"level",eVar31:"applicationName",prop48:"applicationName",eVar30:"applicationOrigin",prop47:"applicationOrigin",eVar32:"applicationContext",prop49:"applicationContext",products:"products",events:"events"},gaVarMap:{category:"gameTitle",
action:"eventName"},init:function(a){this.mapConfig(a);this.gameReporterQueue=new mtvn.btg.managers.QueueManager({id:"mtvn.btg.reporting.games.GameReporter.gameReporterQueue",timeToWait:300,maxNumItems:10,maxElapsed:3E3,handler:this.gameEvent,notificationHandler:this.notify})},onGameLoad:function(a){if(a=="embed"&&mtvn.btg.reporting.games.GameEventMediator.gameSwf!=null)return;this.onGameEvent("ON_GAME_LOAD",a)},onGameEvent:function(a,b){if(mtvn.btg.ads.games.GameAdLoader.isPreCache)return;this.gameReporterQueue.addToQueue(a,
b)},notify:function(a){var b="";b+="QueueManager/GameReporter processed ";b+=a.processedQueue.length+" Game Events out of "+a.itemsAdded+" before aborting.";b+="QM settings:timeToWait="+a.timeToWait;b+=";maxNumItems="+a.maxNumItems;b+=";maxElapsed="+a.maxElapsed+".";b+="Events processed:";for(var c=0,d=a.processedQueue.length;c<d;c++){b+=a.processedQueue[c][0];b+=c<a.processedQueue.length-1?";":""}new mtvn.btg.util.Alert(b)},gameEvent:function(a){var b=mtvn.btg.reporting.games,c=mtvn.btg.util.Object.isDefined,
d=mtvn.btg.Controller,e=mtvn.btg.util,f=mtvn.btg.util.String.isDefined,g,h=b.GameReporter.metadata,j=b.GameReporter.config,k=a[0],a=c(a[1])?a[1]:{},l=b.GameEventVO;g=false;if(typeof l[k]!="undefined"){g=a;g.events=l[k];switch(k){case "ON_GAME_LOAD":b.GameReporter.gtsTracker.init()}g=b.GameReporter.mapOmniData(g);d.sendLinkEvent(g)}else{if(c(a)&&typeof a.varmap!="undefined"){g=a;if(typeof g.varmap=="string"){g.varmap=g.varmap.replace(/\s/,"");g.varmap=g.varmap.split(",")}for(var l=0,o=g.varmap.length;l<
o;l++)if(g.varmap[l].match(/event/))if(isNaN(parseFloat(k))){g.events=typeof g.events=="string"?g.events+=",":"";g.events+=g.varmap[l]}else{g.products=typeof g.products=="string"?g.events+=",":"";g.products+=";;;;"+g.varmap[l]+"="+k}else g[g.varmap[l]]=k;delete g.varmap;g=b.GameReporter.mapOmniData(g);d.sendLinkEvent(g);g=true}else if(c(j.omnitureEventMap)&&c(j.omnitureEventMap[k])){g=a;l={};e.Object.copyProperties(b.GameReporter.omniVarMap,l);b.GameReporter.appendOmniVarMap(j.omnitureEventMap[k]);
g=b.GameReporter.mapOmniData(g);b.GameReporter.omniVarMap=l;d.sendLinkEvent(g);g=true}if(f(j.gaAccount)&&c(j.googleEventMap)&&c(j.googleEventMap[k])){c=a;b.GameReporter.appendGaVarMap(j.googleEventMap[k]);c.eventName=k;c=b.GameReporter.mapGaData(c);c.label=typeof c.label!="undefined"&&c.label!=""?c.label:"General";c.value=typeof c.value!="undefined"&&typeof parseInt(c.value)=="number"?parseInt(c.value):null;b=_gat._createTracker(j.gaAccount,"event_tracker");b._setDomainName("");b._trackEvent(c.category,
c.action,c.label,c.value);g=true}if(!g){new e.Alert("GameReporter: Unrecognized event "+k+". Game Title = "+h.gameTitle+" Game URL= "+h.gameURL+".");return}}if(typeof e.Events[k]!="undefined")e.Events[k].fire(a)},mapOmniData:function(a){var b=this.omniVarMap,c=mtvn.btg.util.String.isDefined,d={};if(typeof a=="object"&&a!=null)for(var e in a)if(a.hasOwnProperty(e)&&!c(this.metadata[e]))d[e]=a[e];for(e in b){if(!b.hasOwnProperty(e))continue;if(c(this.metadata[b[e]]))d[e]=this.metadata[b[e]];else if(c(a[b[e]]))d[e]=
a[b[e]]}mtvn.btg.reporting.games.GameReporter.gtsTracker.setData(d.eVar53+","+d.eVar54);return d=this.addGtsData(d)},appendOmniVarMap:function(a){var b=mtvn.btg.reporting.games;if(typeof a!="undefined")for(var c in a){if(!a.hasOwnProperty(c))continue;if(/prop(((0|1|3|4|5|6|7|8|9|10|11|12|30|31|33|34|35|36|37|38|43|45|46|47|48|49)$)|([5-9][0-9]|[1-9][0-9]{2,})$)/.test(c)||/eVar(((0|2|3|4|5|6|7|8|9|10|11|12|18|26|27|28|29|30|31|32|33|34|36|42|45|46|49)$)|([5-9][0-9]|[1-9][0-9]{2,})$)/.test(c)||/event(((0|15|16|24|25|26|27|28|29|33|34|35|36|37|38|39|40|44|45|49)$)|([5-9][0-9]|[1-9][0-9]{2,})$)/.test(c)){new mtvn.btg.util.Alert("GameReporter error nonstandard event call. Omniture variable '"+
c+"' is reserved and cannot be overriden. Game Title = "+b.GameReporter.metadata.gameTitle+". Game URL= "+b.GameReporter.metadata.gameURL+".");continue}if(!mtvn.btg.util.String.isDefined(this.omniVarMap[c]))this.omniVarMap[c]=a[c]}},mapGaData:function(a){var b=this.gaVarMap,c=mtvn.btg.util.String.isDefined,d={},e;for(e in b){if(!b.hasOwnProperty(e))continue;if(c(this.metadata[b[e]]))d[e]=this.metadata[b[e]];else if(c(a[b[e]]))d[e]=a[b[e]]}return d},appendGaVarMap:function(a){if(typeof a!="undefined")for(var b in a){if(!a.hasOwnProperty(b))continue;
this.gaVarMap[b]=a[b]}},mapConfig:function(a){this.config={gaAccount:a.Reporting.GoogleAnalytics&&a.Reporting.GoogleAnalytics.enabled?a.Reporting.GoogleAnalytics.account:"",googleEventMap:a.googleEventMap,omnitureEventMap:a.omnitureEventMap};this.metadata.gameURL=a.Game.metadata.gameURL;this.metadata.gameGenre=a.Game.metadata.gameGenre;this.metadata.gameTitle=a.Game.metadata.gameTitle;this.metadata.franchise=a.Game.metadata.franchise;this.metadata.applicationName=a.Game.metadata.type;this.metadata.applicationOrigin=
a.Game.metadata.orig;this.metadata.applicationContext=a.Game.metadata.ref;this.metadata.products="User Segment;Game Player";this.metadata.events="";this.metadata.linkName="Game Link Event"},getGtsVals:function(a,b){if(mtvn.btg.util.String.isDefined(a)){a+="";var a=a.split(","),c=parseInt(a[0]);if(!isNaN(c)&&c>0){b.products=typeof b.products=="string"?b.products+=",":"";b.products+=";;;;"+this.gtsEvent+"="+c;b.events=typeof b.events=="string"?b.events+=",":"";b.events+=this.gtsEvent;if(a.length==3){b.eVar53=
a[1];b.eVar54=a[2]}}}return b},addGtsData:function(a){return this.getGtsVals(mtvn.btg.reporting.games.GameReporter.gtsTracker.getTimeSpentOnPage(),a)},setData:function(a){return this.getGtsVals(mtvn.btg.reporting.games.GameReporter.gtsTracker.getTimespent(),a)}};
mtvn.btg.reporting.games.GameReportingManager=new function(){var a=mtvn.btg.reporting.games,b;this.init=function(){b=com.mtvnet.games.GameSettings;a.GameReporter.init(b)};this.gameLoad=function(b){if(mtvn.btg.util.String.isDefined(b))if(b=="embed")setTimeout('mtvn.btg.reporting.games.GameReporter.onGameLoad("embed")',1E4);else if(b!="load")a.GameEventMediator.gameLoad(b)}};var s_code="",s_objectID;
function s_gi(a,b,c){try{var d='s.version=\'H.23.4\';s.an=s_an;s.logDebug=function(m){var s=this,tcf=new Function(\'var e;try{console.log("\'+s.rep(s.rep(m,"\\n","\\\\n"),"'+'\\"","\\\\\\"")+\'");}catch(e){}\');tcf()};s.cls=function(x,c){var i,y=\'\';if(!c)c=this.an;for(i=0;i<x.length;i++){n=x.substring(i,i+1);if(c.indexOf(n)>=0)y+=n}return y};s.fl=function(x,l){retur'+"n x?(''+x).substring(0,l):x};s.co=function(o){if(!o)return o;var n=new Object,x;for(x in o)if(x.indexOf('select')<0&&x.indexOf('filter')<0)n[x]=o[x];return n};s.num=function(x){x=''+x;for(var p=0;p"+
"<x.length;p++)if(('0123456789').indexOf(x.substring(p,p+1))<0)return 0;return 1};s.rep=s_rep;s.sp=s_sp;s.jn=s_jn;s.ape=function(x){var s=this,h='0123456789ABCDEF',i,c=s.charSet,n,l,e,y='';c=c?c.toU"+"pperCase():'';if(x){x=''+x;if(s.em==3)x=encodeURIComponent(x);else if(c=='AUTO'&&('').charCodeAt){for(i=0;i<x.length;i++){c=x.substring(i,i+1);n=x.charCodeAt(i);if(n>127){l=0;e='';while(n||l<4){e=h"+".substring(n%16,n%16+1)+e;n=(n-n%16)/16;l++}y+='%u'+e}else if(c=='+')y+='%2B';else y+=escape(c)}x=y}else x=escape(''+x);x=s.rep(x,'+','%2B');if(c&&c!='AUTO'&&s.em==1&&x.indexOf('%u')<0&&x.indexOf('"+
"%U')<0){i=x.indexOf('%');while(i>=0){i++;if(h.substring(8).indexOf(x.substring(i,i+1).toUpperCase())>=0)return x.substring(0,i)+'u00'+x.substring(i);i=x.indexOf('%',i)}}}return x};s.epa=function(x)"+"{var s=this;if(x){x=s.rep(''+x,'+',' ');return s.em==3?decodeURIComponent(x):unescape(x)}return x};s.pt=function(x,d,f,a){var s=this,t=x,z=0,y,r;while(t){y=t.indexOf(d);y=y<0?t.length:y;t=t.substri"+"ng(0,y);r=s[f](t,a);if(r)return r;z+=y+d.length;t=x.substring(z,x.length);t=z<x.length?t:''}return ''};s.isf=function(t,a){var c=a.indexOf(':');if(c>=0)a=a.substring(0,c);c=a.indexOf('=');if(c>=0)a"+
"=a.substring(0,c);if(t.substring(0,2)=='s_')t=t.substring(2);return (t!=''&&t==a)};s.fsf=function(t,a){var s=this;if(s.pt(a,',','isf',t))s.fsg+=(s.fsg!=''?',':'')+t;return 0};s.fs=function(x,f){var"+" s=this;s.fsg='';s.pt(x,',','fsf',f);return s.fsg};s.si=function(){var s=this,i,k,v,c=s_gi+'var s=s_gi(\"'+s.oun+'\");s.sa(\"'+s.un+'\");';for(i=0;i<s.va_g.length;i++){k=s.va_g[i];v=s[k];if(v!=unde"+"fined){if(typeof(v)!='number')c+='s.'+k+'=\"'+s_fe(v)+'\";';else c+='s.'+k+'='+v+';'}}c+=\"s.lnk=s.eo=s.linkName=s.linkType=s.wd.s_objectID=s.ppu=s.pe=s.pev1=s.pev2=s.pev3='';\";return c};s.c_d='';"+
"s.c_gdf=function(t,a){var s=this;if(!s.num(t))return 1;return 0};s.c_gd=function(){var s=this,d=s.wd.location.hostname,n=s.fpCookieDomainPeriods,p;if(!n)n=s.cookieDomainPeriods;if(d&&!s.c_d){n=n?pa"+"rseInt(n):2;n=n>2?n:2;p=d.lastIndexOf('.');if(p>=0){while(p>=0&&n>1){p=d.lastIndexOf('.',p-1);n--}s.c_d=p>0&&s.pt(d,'.','c_gdf',0)?d.substring(p):d}}return s.c_d};s.c_r=function(k){var s=this;k=s.a"+"pe(k);var c=' '+s.d.cookie,i=c.indexOf(' '+k+'='),e=i<0?i:c.indexOf(';',i),v=i<0?'':s.epa(c.substring(i+2+k.length,e<0?c.length:e));return v!='[[B]]'?v:''};s.c_w=function(k,v,e){var s=this,d=s.c_gd"+
"(),l=s.cookieLifetime,t;v=''+v;l=l?(''+l).toUpperCase():'';if(e&&l!='SESSION'&&l!='NONE'){t=(v!=''?parseInt(l?l:0):-60);if(t){e=new Date;e.setTime(e.getTime()+(t*1000))}}if(k&&l!='NONE'){s.d.cookie"+"=k+'='+s.ape(v!=''?v:'[[B]]')+'; path=/;'+(e&&l!='SESSION'?' expires='+e.toGMTString()+';':'')+(d?' domain='+d+';':'');return s.c_r(k)==v}return 0};s.eh=function(o,e,r,f){var s=this,b='s_'+e+'_'+s."+"_in,n=-1,l,i,x;if(!s.ehl)s.ehl=new Array;l=s.ehl;for(i=0;i<l.length&&n<0;i++){if(l[i].o==o&&l[i].e==e)n=i}if(n<0){n=i;l[n]=new Object}x=l[n];x.o=o;x.e=e;f=r?x.b:f;if(r||f){x.b=r?0:o[e];x.o[e]=f}if("+
"x.b){x.o[b]=x.b;return b}return 0};s.cet=function(f,a,t,o,b){var s=this,r,tcf;if(s.apv>=5&&(!s.isopera||s.apv>=7)){tcf=new Function('s','f','a','t','var e,r;try{r=s[f](a)}catch(e){r=s[t](e)}return "+"r');r=tcf(s,f,a,t)}else{if(s.ismac&&s.u.indexOf('MSIE 4')>=0)r=s[b](a);else{s.eh(s.wd,'onerror',0,o);r=s[f](a);s.eh(s.wd,'onerror',1)}}return r};s.gtfset=function(e){var s=this;return s.tfs};s.gtfs"+"oe=new Function('e','var s=s_c_il['+s._in+'],c;s.eh(window,\"onerror\",1);s.etfs=1;c=s.t();if(c)s.d.write(c);s.etfs=0;return true');s.gtfsfb=function(a){return window};s.gtfsf=function(w){var s=thi"+
"s,p=w.parent,l=w.location;s.tfs=w;if(p&&p.location!=l&&p.location.host==l.host){s.tfs=p;return s.gtfsf(s.tfs)}return s.tfs};s.gtfs=function(){var s=this;if(!s.tfs){s.tfs=s.wd;if(!s.etfs)s.tfs=s.cet"+"('gtfsf',s.tfs,'gtfset',s.gtfsoe,'gtfsfb')}return s.tfs};s.mrq=function(u){var s=this,l=s.rl[u],n,r;s.rl[u]=0;if(l)for(n=0;n<l.length;n++){r=l[n];s.mr(0,0,r.r,r.t,r.u)}};s.flushBufferedRequests=fun"+"ction(){};s.mr=function(sess,q,rs,ta,u){var s=this,dc=s.dc,t1=s.trackingServer,t2=s.trackingServerSecure,tb=s.trackingServerBase,p='.sc',ns=s.visitorNamespace,un=s.cls(u?u:(ns?ns:s.fun)),r=new Obje"+
"ct,l,imn='s_i_'+(un),im,b,e;if(!rs){if(t1){if(t2&&s.ssl)t1=t2}else{if(!tb)tb='2o7.net';if(dc)dc=(''+dc).toLowerCase();else dc='d1';if(tb=='2o7.net'){if(dc=='d1')dc='112';else if(dc=='d2')dc='122';p"+"=''}t1=un+'.'+dc+'.'+p+tb}rs='http'+(s.ssl?'s':'')+'://'+t1+'/b/ss/'+s.un+'/'+(s.mobile?'5.1':'1')+'/'+s.version+'/'+sess+'?AQB=1&ndh=1'+(q?q:'')+'&AQE=1';if(s.isie&&!s.ismac)rs=s.fl(rs,2047)}if(s."+"d.images&&s.apv>=3&&(!s.isopera||s.apv>=7)&&(s.ns6<0||s.apv>=6.1)){if(!s.rc)s.rc=new Object;if(!s.rc[un]){s.rc[un]=1;if(!s.rl)s.rl=new Object;s.rl[un]=new Array;setTimeout('if(window.s_c_il)window."+
"s_c_il['+s._in+'].mrq(\"'+un+'\")',750)}else{l=s.rl[un];if(l){r.t=ta;r.u=un;r.r=rs;l[l.length]=r;return ''}imn+='_'+s.rc[un];s.rc[un]++}im=s.wd[imn];if(!im)im=s.wd[imn]=new Image;im.s_l=0;im.onload"+"=new Function('e','this.s_l=1;var wd=window,s;if(wd.s_c_il){s=wd.s_c_il['+s._in+'];s.mrq(\"'+un+'\");s.nrs--;if(!s.nrs)s.m_m(\"rr\")}');if(!s.nrs){s.nrs=1;s.m_m('rs')}else s.nrs++;if(s.debugTrackin"+"g){var d='AppMeasurement Debug: '+rs,dl=s.sp(rs,'&'),dln;for(dln=0;dln<dl.length;dln++)d+=\"\\n\\t\"+s.epa(dl[dln]);s.logDebug(d)}im.src=rs;if((!ta||ta=='_self'||ta=='_top'||(s.wd.name&&ta==s.wd.na"+
"me))&&rs.indexOf('&pe=')>=0){b=e=new Date;while(!im.s_l&&e.getTime()-b.getTime()<500)e=new Date}return ''}return '<im'+'g sr'+'c=\"'+rs+'\" width=1 height=1 border=0 alt=\"\">'};s.gg=function(v){va"+"r s=this;if(!s.wd['s_'+v])s.wd['s_'+v]='';return s.wd['s_'+v]};s.glf=function(t,a){if(t.substring(0,2)=='s_')t=t.substring(2);var s=this,v=s.gg(t);if(v)s[t]=v};s.gl=function(v){var s=this;if(s.pg)s"+".pt(v,',','glf',0)};s.rf=function(x){var s=this,y,i,j,h,p,l=0,q,a,b='',c='',t;if(x&&x.length>255){y=''+x;i=y.indexOf('?');if(i>0){q=y.substring(i+1);y=y.substring(0,i);h=y.toLowerCase();j=0;if(h.su"+
"bstring(0,7)=='http://')j+=7;else if(h.substring(0,8)=='https://')j+=8;i=h.indexOf(\"/\",j);if(i>0){h=h.substring(j,i);p=y.substring(i);y=y.substring(0,i);if(h.indexOf('google')>=0)l=',q,ie,start,s"+"earch_key,word,kw,cd,';else if(h.indexOf('yahoo.co')>=0)l=',p,ei,';if(l&&q){a=s.sp(q,'&');if(a&&a.length>1){for(j=0;j<a.length;j++){t=a[j];i=t.indexOf('=');if(i>0&&l.indexOf(','+t.substring(0,i)+',"+"')>=0)b+=(b?'&':'')+t;else c+=(c?'&':'')+t}if(b&&c)q=b+'&'+c;else c=''}i=253-(q.length-c.length)-y.length;x=y+(i>0?p.substring(0,i):'')+'?'+q}}}}return x};s.s2q=function(k,v,vf,vfp,f){var s=this,qs"+
"='',sk,sv,sp,ss,nke,nk,nf,nfl=0,nfn,nfm;if(k==\"contextData\")k=\"c\";if(v){for(sk in v) {if((!f||sk.substring(0,f.length)==f)&&v[sk]&&(!vf||vf.indexOf(','+(vfp?vfp+'.':'')+sk+',')>=0)){nfm=0;if(nf"+"l)for(nfn=0;nfn<nfl.length;nfn++)if(sk.substring(0,nfl[nfn].length)==nfl[nfn])nfm=1;if(!nfm){if(qs=='')qs+='&'+k+'.';sv=v[sk];if(f)sk=sk.substring(f.length);if(sk.length>0){nke=sk.indexOf('.');if(n"+"ke>0){nk=sk.substring(0,nke);nf=(f?f:'')+nk+'.';if(!nfl)nfl=new Array;nfl[nfl.length]=nf;qs+=s.s2q(nk,v,vf,vfp,nf)}else{if(typeof(sv)=='boolean'){if(sv)sv='true';else sv='false'}if(sv){if(vfp=='ret"+
"rieveLightData'&&f.indexOf('.contextData.')<0){sp=sk.substring(0,4);ss=sk.substring(4);if(sk=='transactionID')sk='xact';else if(sk=='channel')sk='ch';else if(sk=='campaign')sk='v0';else if(s.num(ss"+")){if(sp=='prop')sk='c'+ss;else if(sp=='eVar')sk='v'+ss;else if(sp=='list')sk='l'+ss;else if(sp=='hier'){sk='h'+ss;sv=sv.substring(0,255)}}}qs+='&'+s.ape(sk)+'='+s.ape(sv)}}}}}}if(qs!='')qs+='&.'+k"+"}return qs};s.hav=function(){var s=this,qs='',l,fv='',fe='',mn,i,e;if(s.lightProfileID){l=s.va_m;fv=s.lightTrackVars;if(fv)fv=','+fv+','+s.vl_mr+','}else{l=s.va_t;if(s.pe||s.linkType){fv=s.linkTrac"+
"kVars;fe=s.linkTrackEvents;if(s.pe){mn=s.pe.substring(0,1).toUpperCase()+s.pe.substring(1);if(s[mn]){fv=s[mn].trackVars;fe=s[mn].trackEvents}}}if(fv)fv=','+fv+','+s.vl_l+','+s.vl_l2;if(fe){fe=','+f"+"e+',';if(fv)fv+=',events,'}if (s.events2)e=(e?',':'')+s.events2}for(i=0;i<l.length;i++){var k=l[i],v=s[k],b=k.substring(0,4),x=k.substring(4),n=parseInt(x),q=k;if(!v)if(k=='events'&&e){v=e;e=''}if("+"v&&(!fv||fv.indexOf(k)>=0)&&k!='linkName'&&k!='linkType'){if(k=='timestamp')q='ts';else if(k=='dynamicVariablePrefix')q='D';else if(k=='visitorID')q='vid';else if(k=='pageURL'){q='g';v=s.fl(v,255)}"+
"else if(k=='referrer'){q='r';v=s.fl(s.rf(v),255)}else if(k=='vmk'||k=='visitorMigrationKey')q='vmt';else if(k=='visitorMigrationServer'){q='vmf';if(s.ssl&&s.visitorMigrationServerSecure)v=''}else i"+"f(k=='visitorMigrationServerSecure'){q='vmf';if(!s.ssl&&s.visitorMigrationServer)v=''}else if(k=='charSet'){q='ce';if(v.toUpperCase()=='AUTO')v='ISO8859-1';else if(s.em==2||s.em==3)v='UTF-8'}else i"+"f(k=='visitorNamespace')q='ns';else if(k=='cookieDomainPeriods')q='cdp';else if(k=='cookieLifetime')q='cl';else if(k=='variableProvider')q='vvp';else if(k=='currencyCode')q='cc';else if(k=='channel"+
"')q='ch';else if(k=='transactionID')q='xact';else if(k=='campaign')q='v0';else if(k=='resolution')q='s';else if(k=='colorDepth')q='c';else if(k=='javascriptVersion')q='j';else if(k=='javaEnabled')q"+"='v';else if(k=='cookiesEnabled')q='k';else if(k=='browserWidth')q='bw';else if(k=='browserHeight')q='bh';else if(k=='connectionType')q='ct';else if(k=='homepage')q='hp';else if(k=='plugins')q='p';"+"else if(k=='events'){if(e)v+=(v?',':'')+e;if(fe)v=s.fs(v,fe)}else if(k=='events2')v='';else if(k=='contextData'){qs+=s.s2q('c',s[k],fv,k,0);v=''}else if(k=='lightProfileID')q='mtp';else if(k=='ligh"+
"tStoreForSeconds'){q='mtss';if(!s.lightProfileID)v=''}else if(k=='lightIncrementBy'){q='mti';if(!s.lightProfileID)v=''}else if(k=='retrieveLightProfiles')q='mtsr';else if(k=='deleteLightProfiles')q"+"='mtsd';else if(k=='retrieveLightData'){if(s.retrieveLightProfiles)qs+=s.s2q('mts',s[k],fv,k,0);v=''}else if(s.num(x)){if(b=='prop')q='c'+n;else if(b=='eVar')q='v'+n;else if(b=='list')q='l'+n;else "+"if(b=='hier'){q='h'+n;v=s.fl(v,255)}}if(v)qs+='&'+s.ape(q)+'='+(k.substring(0,3)!='pev'?s.ape(v):v)}}return qs};s.ltdf=function(t,h){t=t?t.toLowerCase():'';h=h?h.toLowerCase():'';var qi=h.indexOf('"+
"?');h=qi>=0?h.substring(0,qi):h;if(t&&h.substring(h.length-(t.length+1))=='.'+t)return 1;return 0};s.ltef=function(t,h){t=t?t.toLowerCase():'';h=h?h.toLowerCase():'';if(t&&h.indexOf(t)>=0)return 1;"+"return 0};s.lt=function(h){var s=this,lft=s.linkDownloadFileTypes,lef=s.linkExternalFilters,lif=s.linkInternalFilters;lif=lif?lif:s.wd.location.hostname;h=h.toLowerCase();if(s.trackDownloadLinks&&l"+"ft&&s.pt(lft,',','ltdf',h))return 'd';if(s.trackExternalLinks&&h.substring(0,1)!='#'&&(lef||lif)&&(!lef||s.pt(lef,',','ltef',h))&&(!lif||!s.pt(lif,',','ltef',h)))return 'e';return ''};s.lc=new Func"+
"tion('e','var s=s_c_il['+s._in+'],b=s.eh(this,\"onclick\");s.lnk=s.co(this);s.t();s.lnk=0;if(b)return this[b](e);return true');s.bc=new Function('e','var s=s_c_il['+s._in+'],f,tcf;if(s.d&&s.d.all&&"+'s.d.all.cppXYctnr)return;s.eo=e.srcElement?e.srcElement:e.target;tcf=new Function("s","var e;try{if(s.eo&&(s.eo.tagName||s.eo.parentElement||s.eo.parentNode))s.t()}catch(e){}");tcf(s);s.eo=0\');'+"s.oh=function(o){var s=this,l=s.wd.location,h=o.href?o.href:'',i,j,k,p;i=h.indexOf(':');j=h.indexOf('?');k=h.indexOf('/');if(h&&(i<0||(j>=0&&i>j)||(k>=0&&i>k))){p=o.protocol&&o.protocol.length>1?o."+
"protocol:(l.protocol?l.protocol:'');i=l.pathname.lastIndexOf('/');h=(p?p+'//':'')+(o.host?o.host:(l.host?l.host:''))+(h.substring(0,1)!='/'?l.pathname.substring(0,i<0?0:i)+'/':'')+h}return h};s.ot="+"function(o){var t=o.tagName;if(o.tagUrn||(o.scopeName&&o.scopeName.toUpperCase()!='HTML'))return '';t=t&&t.toUpperCase?t.toUpperCase():'';if(t=='SHAPE')t='';if(t){if((t=='INPUT'||t=='BUTTON')&&o.ty"+"pe&&o.type.toUpperCase)t=o.type.toUpperCase();else if(!t&&o.href)t='A';}return t};s.oid=function(o){var s=this,t=s.ot(o),p,c,n='',x=0;if(t&&!o.s_oid){p=o.protocol;c=o.onclick;if(o.href&&(t=='A'||t="+
"='AREA')&&(!c||!p||p.toLowerCase().indexOf('javascript')<0))n=s.oh(o);else if(c){n=s.rep(s.rep(s.rep(s.rep(''+c,\"\\r\",''),\"\\n\",''),\"\\t\",''),' ','');x=2}else if(t=='INPUT'||t=='SUBMIT'){if(o"+".value)n=o.value;else if(o.innerText)n=o.innerText;else if(o.textContent)n=o.textContent;x=3}else if(o.src&&t=='IMAGE')n=o.src;if(n){o.s_oid=s.fl(n,100);o.s_oidt=x}}return o.s_oid};s.rqf=function(t"+",un){var s=this,e=t.indexOf('='),u=e>=0?t.substring(0,e):'',q=e>=0?s.epa(t.substring(e+1)):'';if(u&&q&&(','+u+',').indexOf(','+un+',')>=0){if(u!=s.un&&s.un.indexOf(',')>=0)q='&u='+u+q+'&u=0';return"+
" q}return ''};s.rq=function(un){if(!un)un=this.un;var s=this,c=un.indexOf(','),v=s.c_r('s_sq'),q='';if(c<0)return s.pt(v,'&','rqf',un);return s.pt(un,',','rq',0)};s.sqp=function(t,a){var s=this,e=t"+".indexOf('='),q=e<0?'':s.epa(t.substring(e+1));s.sqq[q]='';if(e>=0)s.pt(t.substring(0,e),',','sqs',q);return 0};s.sqs=function(un,q){var s=this;s.squ[un]=q;return 0};s.sq=function(q){var s=this,k='"+"s_sq',v=s.c_r(k),x,c=0;s.sqq=new Object;s.squ=new Object;s.sqq[q]='';s.pt(v,'&','sqp',0);s.pt(s.un,',','sqs',q);v='';for(x in s.squ)if(x&&(!Object||!Object.prototype||!Object.prototype[x]))s.sqq[s."+
"squ[x]]+=(s.sqq[s.squ[x]]?',':'')+x;for(x in s.sqq)if(x&&(!Object||!Object.prototype||!Object.prototype[x])&&s.sqq[x]&&(x==q||c<2)){v+=(v?'&':'')+s.sqq[x]+'='+s.ape(x);c++}return s.c_w(k,v,0)};s.wd"+'l=new Function(\'e\',\'var s=s_c_il[\'+s._in+\'],r=true,b=s.eh(s.wd,"onload"),i,o,oc;if(b)r=this[b](e);for(i=0;i<s.d.links.length;i++){o=s.d.links[i];oc=o.onclick?""+o.onclick:"";if((oc.indexOf("'+'s_gs(")<0||oc.indexOf(".s_oc(")>=0)&&oc.indexOf(".tl(")<0)s.eh(o,"onclick",0,s.lc);}return r\');s.wds=function(){var s=this;if(s.apv>3&&(!s.isie||!s.ismac||s.apv>=5)){if(s.b&&s.b.attachEvent)'+
"s.b.attachEvent('onclick',s.bc);else if(s.b&&s.b.addEventListener)s.b.addEventListener('click',s.bc,false);else s.eh(s.wd,'onload',0,s.wdl)}};s.vs=function(x){var s=this,v=s.visitorSampling,g=s.vis"+"itorSamplingGroup,k='s_vsn_'+s.un+(g?'_'+g:''),n=s.c_r(k),e=new Date,y=e.getYear();e.setYear(y+10+(y<1900?1900:0));if(v){v*=100;if(!n){if(!s.c_w(k,x,e))return 0;n=x}if(n%10000>v)return 0}return 1};"+"s.dyasmf=function(t,m){if(t&&m&&m.indexOf(t)>=0)return 1;return 0};s.dyasf=function(t,m){var s=this,i=t?t.indexOf('='):-1,n,x;if(i>=0&&m){var n=t.substring(0,i),x=t.substring(i+1);if(s.pt(x,',','dy"+
"asmf',m))return n}return 0};s.uns=function(){var s=this,x=s.dynamicAccountSelection,l=s.dynamicAccountList,m=s.dynamicAccountMatch,n,i;s.un=s.un.toLowerCase();if(x&&l){if(!m)m=s.wd.location.host;if"+"(!m.toLowerCase)m=''+m;l=l.toLowerCase();m=m.toLowerCase();n=s.pt(l,';','dyasf',m);if(n)s.un=n}i=s.un.indexOf(',');s.fun=i<0?s.un:s.un.substring(0,i)};s.sa=function(un){var s=this;s.un=un;if(!s.oun"+")s.oun=un;else if((','+s.oun+',').indexOf(','+un+',')<0)s.oun+=','+un;s.uns()};s.m_i=function(n,a){var s=this,m,f=n.substring(0,1),r,l,i;if(!s.m_l)s.m_l=new Object;if(!s.m_nl)s.m_nl=new Array;m=s.m"+
"_l[n];if(!a&&m&&m._e&&!m._i)s.m_a(n);if(!m){m=new Object,m._c='s_m';m._in=s.wd.s_c_in;m._il=s._il;m._il[m._in]=m;s.wd.s_c_in++;m.s=s;m._n=n;m._l=new Array('_c','_in','_il','_i','_e','_d','_dl','s',"+"'n','_r','_g','_g1','_t','_t1','_x','_x1','_rs','_rr','_l');s.m_l[n]=m;s.m_nl[s.m_nl.length]=n}else if(m._r&&!m._m){r=m._r;r._m=m;l=m._l;for(i=0;i<l.length;i++)if(m[l[i]])r[l[i]]=m[l[i]];r._il[r._i"+"n]=r;m=s.m_l[n]=r}if(f==f.toUpperCase())s[n]=m;return m};s.m_a=new Function('n','g','e','if(!g)g=\"m_\"+n;var s=s_c_il['+s._in+'],c=s[g+\"_c\"],m,x,f=0;if(!c)c=s.wd[\"s_\"+g+\"_c\"];if(c&&s_d)s[g]="+
'new Function("s",s_ft(s_d(c)));x=s[g];if(!x)x=s.wd[\\\'s_\\\'+g];if(!x)x=s.wd[g];m=s.m_i(n,1);if(x&&(!m._i||g!="m_"+n)){m._i=f=1;if((""+x).indexOf("function")>=0)x(s);else s.m_m("x",n,x,e)}'+"m=s.m_i(n,1);if(m._dl)m._dl=m._d=0;s.dlt();return f');s.m_m=function(t,n,d,e){t='_'+t;var s=this,i,x,m,f='_'+t,r=0,u;if(s.m_l&&s.m_nl)for(i=0;i<s.m_nl.length;i++){x=s.m_nl[i];if(!n||x==n){m=s.m_i(x"+");u=m[t];if(u){if((''+u).indexOf('function')>=0){if(d&&e)u=m[t](d,e);else if(d)u=m[t](d);else u=m[t]()}}if(u)r=1;u=m[t+1];if(u&&!m[f]){if((''+u).indexOf('function')>=0){if(d&&e)u=m[t+1](d,e);else i"+
"f(d)u=m[t+1](d);else u=m[t+1]()}}m[f]=1;if(u)r=1}}return r};s.m_ll=function(){var s=this,g=s.m_dl,i,o;if(g)for(i=0;i<g.length;i++){o=g[i];if(o)s.loadModule(o.n,o.u,o.d,o.l,o.e,1);g[i]=0}};s.loadMod"+"ule=function(n,u,d,l,e,ln){var s=this,m=0,i,g,o=0,f1,f2,c=s.h?s.h:s.b,b,tcf;if(n){i=n.indexOf(':');if(i>=0){g=n.substring(i+1);n=n.substring(0,i)}else g=\"m_\"+n;m=s.m_i(n)}if((l||(n&&!s.m_a(n,g)))"+"&&u&&s.d&&c&&s.d.createElement){if(d){m._d=1;m._dl=1}if(ln){if(s.ssl)u=s.rep(u,'http:','https:');i='s_s:'+s._in+':'+n+':'+g;b='var s=s_c_il['+s._in+'],o=s.d.getElementById(\"'+i+'\");if(s&&o){if(!o"+
".l&&s.wd.'+g+'){o.l=1;if(o.i)clearTimeout(o.i);o.i=0;s.m_a(\"'+n+'\",\"'+g+'\"'+(e?',\"'+e+'\"':'')+')}';f2=b+'o.c++;if(!s.maxDelay)s.maxDelay=250;if(!o.l&&o.c<(s.maxDelay*2)/100)o.i=setTimeout(o.f"+"2,100)}';f1=new Function('e',b+'}');tcf=new Function('s','c','i','u','f1','f2','var e,o=0;try{o=s.d.createElement(\"script\");if(o){o.type=\"text/javascript\";'+(n?'o.id=i;o.defer=true;o.onload=o.o"+"nreadystatechange=f1;o.f2=f2;o.l=0;':'')+'o.src=u;c.appendChild(o);'+(n?'o.c=0;o.i=setTimeout(f2,100)':'')+'}}catch(e){o=0}return o');o=tcf(s,c,i,u,f1,f2)}else{o=new Object;o.n=n+':'+g;o.u=u;o.d=d;"+
"o.l=l;o.e=e;g=s.m_dl;if(!g)g=s.m_dl=new Array;i=0;while(i<g.length&&g[i])i++;g[i]=o}}else if(n){m=s.m_i(n);m._e=1}return m};s.voa=function(vo,r){var s=this,l=s.va_g,i,k,v,x;for(i=0;i<l.length;i++){"+'k=l[i];v=vo[k];if(v||vo[\'!\'+k]){if(!r&&(k=="contextData"||k=="retrieveLightData")&&s[k])for(x in s[k])if(!v[x])v[x]=s[k][x];s[k]=v}}};s.vob=function(vo){var s=this,l=s.va_g,i,k;for(i=0;i<l.leng'+"th;i++){k=l[i];vo[k]=s[k];if(!vo[k])vo['!'+k]=1}};s.dlt=new Function('var s=s_c_il['+s._in+'],d=new Date,i,vo,f=0;if(s.dll)for(i=0;i<s.dll.length;i++){vo=s.dll[i];if(vo){if(!s.m_m(\"d\")||d.getTime"+
"()-vo._t>=s.maxDelay){s.dll[i]=0;s.t(vo)}else f=1}}if(s.dli)clearTimeout(s.dli);s.dli=0;if(f){if(!s.dli)s.dli=setTimeout(s.dlt,s.maxDelay)}else s.dll=0');s.dl=function(vo){var s=this,d=new Date;if("+"!vo)vo=new Object;s.vob(vo);vo._t=d.getTime();if(!s.dll)s.dll=new Array;s.dll[s.dll.length]=vo;if(!s.maxDelay)s.maxDelay=250;s.dlt()};s.track=s.t=function(vo){var s=this,trk=1,tm=new Date,sed=Math&"+"&Math.random?Math.floor(Math.random()*10000000000000):tm.getTime(),sess='s'+Math.floor(tm.getTime()/10800000)%10+sed,y=tm.getYear(),vt=tm.getDate()+'/'+tm.getMonth()+'/'+(y<1900?y+1900:y)+' '+tm.ge"+
"tHours()+':'+tm.getMinutes()+':'+tm.getSeconds()+' '+tm.getDay()+' '+tm.getTimezoneOffset(),tcf,tfs=s.gtfs(),ta=-1,q='',qs='',code='',vb=new Object;s.gl(s.vl_g);s.uns();s.m_ll();if(!s.td){var tl=tf"+"s.location,a,o,i,x='',c='',v='',p='',bw='',bh='',j='1.0',k=s.c_w('s_cc','true',0)?'Y':'N',hp='',ct='',pn=0,ps;if(String&&String.prototype){j='1.1';if(j.match){j='1.2';if(tm.setUTCDate){j='1.3';if(s"+".isie&&s.ismac&&s.apv>=5)j='1.4';if(pn.toPrecision){j='1.5';a=new Array;if(a.forEach){j='1.6';i=0;o=new Object;tcf=new Function('o','var e,i=0;try{i=new Iterator(o)}catch(e){}return i');i=tcf(o);if"+
"(i&&i.next)j='1.7'}}}}}if(s.apv>=4)x=screen.width+'x'+screen.height;if(s.isns||s.isopera){if(s.apv>=3){v=s.n.javaEnabled()?'Y':'N';if(s.apv>=4){c=screen.pixelDepth;bw=s.wd.innerWidth;bh=s.wd.innerH"+"eight}}s.pl=s.n.plugins}else if(s.isie){if(s.apv>=4){v=s.n.javaEnabled()?'Y':'N';c=screen.colorDepth;if(s.apv>=5){bw=s.d.documentElement.offsetWidth;bh=s.d.documentElement.offsetHeight;if(!s.ismac&"+"&s.b){tcf=new Function('s','tl','var e,hp=0;try{s.b.addBehavior(\"#default#homePage\");hp=s.b.isHomePage(tl)?\"Y\":\"N\"}catch(e){}return hp');hp=tcf(s,tl);tcf=new Function('s','var e,ct=0;try{s.b."+
"addBehavior(\"#default#clientCaps\");ct=s.b.connectionType}catch(e){}return ct');ct=tcf(s)}}}else r=''}if(s.pl)while(pn<s.pl.length&&pn<30){ps=s.fl(s.pl[pn].name,100)+';';if(p.indexOf(ps)<0)p+=ps;p"+"n++}s.resolution=x;s.colorDepth=c;s.javascriptVersion=j;s.javaEnabled=v;s.cookiesEnabled=k;s.browserWidth=bw;s.browserHeight=bh;s.connectionType=ct;s.homepage=hp;s.plugins=p;s.td=1}if(vo){s.vob(vb)"+";s.voa(vo)}if((vo&&vo._t)||!s.m_m('d')){if(s.usePlugins)s.doPlugins(s);var l=s.wd.location,r=tfs.document.referrer;if(!s.pageURL)s.pageURL=l.href?l.href:l;if(!s.referrer&&!s._1_referrer){s.referrer"+
"=r;s._1_referrer=1}s.m_m('g');if(s.lnk||s.eo){var o=s.eo?s.eo:s.lnk;if(!o)return '';var p=s.pageName,w=1,t=s.ot(o),n=s.oid(o),x=o.s_oidt,h,l,i,oc;if(s.eo&&o==s.eo){while(o&&!n&&t!='BODY'){o=o.paren"+"tElement?o.parentElement:o.parentNode;if(!o)return '';t=s.ot(o);n=s.oid(o);x=o.s_oidt}oc=o.onclick?''+o.onclick:'';if((oc.indexOf(\"s_gs(\")>=0&&oc.indexOf(\".s_oc(\")<0)||oc.indexOf(\".tl(\")>=0)r"+"eturn ''}if(n)ta=o.target;h=s.oh(o);i=h.indexOf('?');h=s.linkLeaveQueryString||i<0?h:h.substring(0,i);l=s.linkName;t=s.linkType?s.linkType.toLowerCase():s.lt(h);if(t&&(h||l))q+='&pe=lnk_'+(t=='d'||"+
"t=='e'?s.ape(t):'o')+(h?'&pev1='+s.ape(h):'')+(l?'&pev2='+s.ape(l):'');else trk=0;if(s.trackInlineStats){if(!p){p=s.pageURL;w=0}t=s.ot(o);i=o.sourceIndex;if(s.gg('objectID')){n=s.gg('objectID');x=1"+";i=1}if(p&&n&&t)qs='&pid='+s.ape(s.fl(p,255))+(w?'&pidt='+w:'')+'&oid='+s.ape(s.fl(n,100))+(x?'&oidt='+x:'')+'&ot='+s.ape(t)+(i?'&oi='+i:'')}}if(!trk&&!qs)return '';s.sampled=s.vs(sed);if(trk){if(s"+".sampled)code=s.mr(sess,(vt?'&t='+s.ape(vt):'')+s.hav()+q+(qs?qs:s.rq()),0,ta);qs='';s.m_m('t');if(s.p_r)s.p_r();s.referrer=s.lightProfileID=s.retrieveLightProfiles=s.deleteLightProfiles=''}s.sq(qs"+
");}else{s.dl(vo);}if(vo)s.voa(vb,1);s.lnk=s.eo=s.linkName=s.linkType=s.wd.s_objectID=s.ppu=s.pe=s.pev1=s.pev2=s.pev3='';if(s.pg)s.wd.s_lnk=s.wd.s_eo=s.wd.s_linkName=s.wd.s_linkType='';return code};"+"s.trackLink=s.tl=function(o,t,n,vo){var s=this;s.lnk=s.co(o);s.linkType=t;s.linkName=n;s.t(vo)};s.trackLight=function(p,ss,i,vo){var s=this;s.lightProfileID=p;s.lightStoreForSeconds=ss;s.lightIncre"+"mentBy=i;s.t(vo)};s.jsLoaded=function(){var s=this,x;if(s.lmq)for(i=0;i<s.lmq.length;i++){x=s.lmq[i];s.loadModule(x.n,x.u,x.d)}if(s.onLoad)s.onLoad(s);if(s.tq)for(i=0;i<s.tq.length;i++)s.t(s.tq[i])"+
"};s.wd=window;s.ssl=(s.wd.location.protocol.toLowerCase().indexOf('https')>=0);s.d=document;s.b=s.d.body;if(s.d.getElementsByTagName){s.h=s.d.getElementsByTagName('HEAD');if(s.h)s.h=s.h[0]}s.n=navi"+"gator;s.u=s.n.userAgent;s.ns6=s.u.indexOf('Netscape6/');var apn=s.n.appName,v=s.n.appVersion,ie=v.indexOf('MSIE '),o=s.u.indexOf('Opera '),i;if(v.indexOf('Opera')>=0||o>0)apn='Opera';s.isie=(apn=='"+"Microsoft Internet Explorer');s.isns=(apn=='Netscape');s.isopera=(apn=='Opera');s.ismac=(s.u.indexOf('Mac')>=0);if(o>0)s.apv=parseFloat(s.u.substring(o+6));else if(ie>0){s.apv=parseInt(i=v.substrin"+
"g(ie+5));if(s.apv>3)s.apv=parseFloat(i)}else if(s.ns6>0)s.apv=parseFloat(s.u.substring(s.ns6+10));else s.apv=parseFloat(v);s.em=0;if(s.em.toPrecision)s.em=3;else if(String.fromCharCode){i=escape(St"+"ring.fromCharCode(256)).toUpperCase();s.em=(i=='%C4%80'?2:(i=='%U0100'?1:0))}if(s.oun)s.sa(s.oun);s.sa(un);s.vl_l='dynamicVariablePrefix,visitorID,vmk,visitorMigrationKey,visitorMigrationServer,vis"+"itorMigrationServerSecure,ppu,charSet,visitorNamespace,cookieDomainPeriods,cookieLifetime,pageName,pageURL,referrer,currencyCode';s.va_l=s.sp(s.vl_l,',');s.vl_mr=s.vl_m='charSet,visitorNamespace,co"+
"okieDomainPeriods,cookieLifetime,contextData,lightProfileID,lightStoreForSeconds,lightIncrementBy';s.vl_t=s.vl_l+',variableProvider,channel,server,pageType,transactionID,purchaseID,campaign,state,z"+"ip,events,events2,products,linkName,linkType,contextData,lightProfileID,lightStoreForSeconds,lightIncrementBy,retrieveLightProfiles,deleteLightProfiles,retrieveLightData';var n;for(n=1;n<=75;n++){s"+".vl_t+=',prop'+n+',eVar'+n;s.vl_m+=',prop'+n+',eVar'+n}for(n=1;n<=5;n++)s.vl_t+=',hier'+n;for(n=1;n<=3;n++)s.vl_t+=',list'+n;s.va_m=s.sp(s.vl_m,',');s.vl_l2=',tnt,pe,pev1,pev2,pev3,resolution,color"+
"Depth,javascriptVersion,javaEnabled,cookiesEnabled,browserWidth,browserHeight,connectionType,homepage,plugins';s.vl_t+=s.vl_l2;s.va_t=s.sp(s.vl_t,',');s.vl_g=s.vl_t+',trackingServer,trackingServerS"+"ecure,trackingServerBase,fpCookieDomainPeriods,disableBufferedRequests,mobile,visitorSampling,visitorSamplingGroup,dynamicAccountSelection,dynamicAccountList,dynamicAccountMatch,trackDownloadLinks,"+"trackExternalLinks,trackInlineStats,linkLeaveQueryString,linkDownloadFileTypes,linkExternalFilters,linkInternalFilters,linkTrackVars,linkTrackEvents,linkNames,lnk,eo,lightTrackVars,_1_referrer,un';"+
"s.va_g=s.sp(s.vl_g,',');s.pg=pg;s.gl(s.vl_g);s.contextData=new Object;s.retrieveLightData=new Object;if(!ss)s.wds();if(pg){s.wd.s_co=function(o){s_gi(\"_\",1,1).co(o)};s.wd.s_gs=function(un){s_gi(u"+"n,1,1).t()};s.wd.s_dc=function(un){s_gi(un,1).t()}}",e=window,f=e.s_c_il,g=navigator,h=g.userAgent,j=g.appVersion,k=j.indexOf("MSIE "),l=h.indexOf("Netscape6/"),o,t,v,u;if(a){a=a.toLowerCase();if(f)for(t=0;t<f.length;t++){u=f[t];v=u._c;if((!v||v=="s_c"||v=="s_l")&&(u.oun==a||u.fs&&u.sa&&u.fs(u.oun,a))){if(u.sa)u.sa(a);
if(v=="s_c")return u}else u=0}}e.s_an="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";e.s_sp=new Function("x","d","var a=new Array,i=0,j;if(x){if(x.split)a=x.split(d);else if(!d)for(i=0;i<x.length;i++)a[a.length]=x.substring(i,i+1);else while(i>=0){j=x.indexOf(d,i);a[a.length]=x.subst"+"ring(i,j<0?x.length:j);i=j;if(i>=0)i+=d.length}}return a");e.s_jn=new Function("a","d","var x='',i,j=a.length;if(a&&j>0){x=a[0];if(j>1){if(a.join)x=a.join(d);else for(i=1;i<j;i++)x+=d+a[i]}}return x");
e.s_rep=new Function("x","o","n","return s_jn(s_sp(x,o),n)");e.s_d=new Function("x","var t='`^@$#',l=s_an,l2=new Object,x2,d,b=0,k,i=x.lastIndexOf('~~'),j,v,w;if(i>0){d=x.substring(0,i);x=x.substring(i+2);l=s_sp(l,'');for(i=0;i<62;i++)l2[l[i]]=i;t=s_sp(t,'');d"+"=s_sp(d,'~');i=0;while(i<5){v=0;if(x.indexOf(t[i])>=0) {x2=s_sp(x,t[i]);for(j=1;j<x2.length;j++){k=x2[j].substring(0,1);w=t[i]+k;if(k!=' '){v=1;w=d[b+l2[k]]}x2[j]=w+x2[j].substring(1)}}if(v)x=s_jn("+"x2,'');else{w=t[i]+' ';if(x.indexOf(w)>=0)x=s_rep(x,w,t[i]);i++;b+=62}}}return x");
e.s_fe=new Function("c","return s_rep(s_rep(s_rep(c,'\\\\','\\\\\\\\'),'\"','\\\\\"'),\"\\n\",\"\\\\n\")");e.s_fa=new Function("f","var s=f.indexOf('(')+1,e=f.indexOf(')'),a='',c;while(s>=0&&s<e){c=f.substring(s,s+1);if(c==',')a+='\",\"';else if((\"\\n\\r\\t \").indexOf(c)<0)a+=c;s++}return a?'\"'+a+'\"':"+"a");e.s_ft=new Function("c","c+='';var s,e,o,a,d,q,f,h,x;s=c.indexOf('=function(');while(s>=0){s++;d=1;q='';x=0;f=c.substring(s);a=s_fa(f);e=o=c.indexOf('{',s);e++;while(d>0){h=c.substring(e,e+1);if(q){i"+
"f(h==q&&!x)q='';if(h=='\\\\')x=x?0:1;else x=0}else{if(h=='\"'||h==\"'\")q=h;if(h=='{')d++;if(h=='}')d--}if(d>0)e++}c=c.substring(0,s)+'new Function('+(a?a+',':'')+'\"'+s_fe(c.substring(o+1,e))+'\")"+"'+c.substring(e+1);s=c.indexOf('=function(')}return c;");d=s_d(d);if(k>0){o=parseInt(t=j.substring(k+5));if(o>3)o=parseFloat(t)}else if(l>0)o=parseFloat(h.substring(l+10));else o=parseFloat(j);if(o<5||j.indexOf("Opera")>=0||h.indexOf("Opera")>=0)d=s_ft(d);if(!u){u=new Object;if(!e.s_c_in){e.s_c_il=new Array;
e.s_c_in=0}u._il=e.s_c_il;u._in=e.s_c_in;u._il[u._in]=u;e.s_c_in++}u._c="s_c";(new Function("s","un","pg","ss",d))(u,a,b,c);return u}catch(A){}}var mboxCopyright="Copyright 1996-2009. Adobe Systems Incorporated. All rights reserved";mboxUrlBuilder=function(a,b){this.a=a;this.b=b;this.c=new Array;this.d=function(a){return a};this.f=null};
mboxUrlBuilder.prototype.addParameter=function(a,b){if((new RegExp("('|\")")).exec(a))throw"Parameter '"+a+"' contains invalid characters";for(var c=0;c<this.c.length;c++){var d=this.c[c];if(d.name==a){d.value=b;return this}}c=new Object;c.name=a;c.value=b;this.c[this.c.length]=c;return this};mboxUrlBuilder.prototype.addParameters=function(a){if(!a)return this;for(var b=0;b<a.length;b++){var c=a[b].indexOf("=");if(c==-1||c==0)continue;this.addParameter(a[b].substring(0,c),a[b].substring(c+1,a[b].length))}return this};
mboxUrlBuilder.prototype.setServerType=function(a){this.o=a};mboxUrlBuilder.prototype.setBasePath=function(a){this.f=a};mboxUrlBuilder.prototype.setUrlProcessAction=function(a){this.d=a};
mboxUrlBuilder.prototype.buildUrl=function(){for(var a=(document.location.protocol=="file:"?"http:":document.location.protocol)+"//"+this.a+(this.f?this.f:"/m2/"+this.b+"/mbox/"+this.o),b=a.indexOf("?")!=-1?"&":"?",c=0;c<this.c.length;c++){var d=this.c[c];a+=b+encodeURIComponent(d.name)+"="+encodeURIComponent(d.value);b="&"}return this.t(this.d(a))};mboxUrlBuilder.prototype.getParameters=function(){return this.c};mboxUrlBuilder.prototype.setParameters=function(a){this.c=a};
mboxUrlBuilder.prototype.clone=function(){var a=new mboxUrlBuilder(this.a,this.b);a.setServerType(this.o);a.setBasePath(this.f);a.setUrlProcessAction(this.d);for(var b=0;b<this.c.length;b++)a.addParameter(this.c[b].name,this.c[b].value);return a};mboxUrlBuilder.prototype.t=function(a){return a.replace(/\"/g,"&quot;").replace(/>/g,"&gt;")};mboxStandardFetcher=function(){};mboxStandardFetcher.prototype.getType=function(){return"standard"};
mboxStandardFetcher.prototype.fetch=function(a){a.setServerType(this.getType());document.write("<"+"scr"+'ipt src="'+a.buildUrl()+'" language="JavaScript"><'+"/scr"+"ipt>")};mboxStandardFetcher.prototype.cancel=function(){};mboxAjaxFetcher=function(){};mboxAjaxFetcher.prototype.getType=function(){return"ajax"};mboxAjaxFetcher.prototype.fetch=function(a){a.setServerType(this.getType());a=a.buildUrl();this.x=document.createElement("script");this.x.src=a;document.body.appendChild(this.x)};
mboxAjaxFetcher.prototype.cancel=function(){};mboxMap=function(){this.y=new Object;this.z=new Array};mboxMap.prototype.put=function(a,b){if(!this.y[a])this.z[this.z.length]=a;this.y[a]=b};mboxMap.prototype.get=function(a){return this.y[a]};mboxMap.prototype.remove=function(a){this.y[a]=undefined};mboxMap.prototype.each=function(a){for(var b=0;b<this.z.length;b++){var c=this.z[b],d=this.y[c];if(d)if(a(c,d)===false)break}};
mboxFactory=function(a,b,c){this.E=false;this.C=a;this.D=c;this.F=new mboxList;mboxFactories.put(c,this);this.H=(this.G=typeof document.createElement("div").replaceChild!="undefined"&&true&&typeof document.getElementById!="undefined"&&typeof(window.attachEvent||document.addEventListener||window.addEventListener)!="undefined"&&typeof encodeURIComponent!="undefined")&&mboxGetPageParameter("mboxDisable")==null;var d=c=="default";this.J=new mboxCookieManager("mbox"+(d?"":"-"+c),mboxCookiePageDomain());
this.H=this.H&&this.J.isEnabled()&&this.J.getCookie("disable")==null;if(this.isAdmin())this.enable();this.K=mboxGenerateId();this.L=mboxScreenHeight();this.M=mboxScreenWidth();this.N=mboxBrowserWidth();this.O=mboxBrowserHeight();this.P=mboxScreenColorDepth();this.Q=mboxBrowserTimeOffset();this.R=new mboxSession(this.K,"mboxSession","session",31*60,this.J);this.S=new mboxPC("PC",1209600,this.J);this.w=new mboxUrlBuilder(a,b);this.T(this.w,d);this.V=this.U=(new Date).getTime();var e=this;this.addOnLoad(function(){e.V=
(new Date).getTime()});if(this.G){this.addOnLoad(function(){e.E=true;e.getMboxes().each(function(a){a.setFetcher(new mboxAjaxFetcher);a.finalize()})});this.limitTraffic(100,10368E3);if(this.H){this.Y();this.Z=new mboxSignaler(function(a,b){return e.create(a,b)},this.J)}}};mboxFactory.prototype.isEnabled=function(){return this.H};mboxFactory.prototype.getDisableReason=function(){return this.J.getCookie("disable")};mboxFactory.prototype.isSupported=function(){return this.G};
mboxFactory.prototype.disable=function(a,b){if(typeof a=="undefined")a=60*60;if(typeof b=="undefined")b="unspecified";if(!this.isAdmin()){this.H=false;this.J.setCookie("disable",b,a)}};mboxFactory.prototype.enable=function(){this.H=true;this.J.deleteCookie("disable")};mboxFactory.prototype.isAdmin=function(){return document.location.href.indexOf("mboxEnv")!=-1};mboxFactory.prototype.limitTraffic=function(){};
mboxFactory.prototype.addOnLoad=function(a){if(window.addEventListener)window.addEventListener("load",a,false);else if(document.addEventListener)document.addEventListener("load",a,false);else if(document.attachEvent)window.attachEvent("onload",a)};mboxFactory.prototype.getEllapsedTime=function(){return this.V-this.U};mboxFactory.prototype.getEllapsedTimeUntil=function(a){return a-this.U};mboxFactory.prototype.getMboxes=function(){return this.F};
mboxFactory.prototype.get=function(a,b){return this.F.get(a).getById(b||0)};mboxFactory.prototype.update=function(a,b){if(!this.isEnabled())return;if(this.F.get(a).length()==0)throw"Mbox "+a+" is not defined";this.F.get(a).each(function(a){a.getUrlBuilder().addParameter("mboxPage",mboxGenerateId());a.load(b)})};
mboxFactory.prototype.create=function(a,b,c){if(!this.isSupported())return null;var d=this.w.clone();d.addParameter("mboxCount",this.F.length()+1);d.addParameters(b);var b=this.F.get(a).length(),e=this.D+"-"+a+"-"+b;if(c)c=new mboxLocatorNode(c);else{if(this.E)throw"The page has already been loaded, can't write marker";c=new mboxLocatorDefault(e)}try{var f=this,g=new mbox(a,b,d,c,"mboxImported-"+e);if(this.H)g.setFetcher(this.E?new mboxAjaxFetcher:new mboxStandardFetcher);g.setOnError(function(a){g.setMessage(a);
g.activate();if(!g.isActivated()){f.disable(60*60,a);window.location.reload(false)}});this.F.add(g)}catch(h){this.disable();throw'Failed creating mbox "'+a+'", the error was: '+h;}a=new Date;d.addParameter("mboxTime",a.getTime()-a.getTimezoneOffset()*6E4);return g};mboxFactory.prototype.getCookieManager=function(){return this.J};mboxFactory.prototype.getPageId=function(){return this.K};mboxFactory.prototype.getPCId=function(){return this.S};mboxFactory.prototype.getSessionId=function(){return this.R};
mboxFactory.prototype.getSignaler=function(){return this.Z};mboxFactory.prototype.getUrlBuilder=function(){return this.w};
mboxFactory.prototype.T=function(a,b){a.addParameter("mboxHost",document.location.hostname).addParameter("mboxSession",this.R.getId());if(!b)a.addParameter("mboxFactoryId",this.D);if(this.S.getId()!=null)a.addParameter("mboxPC",this.S.getId());a.addParameter("mboxPage",this.K);a.addParameter("screenHeight",this.L);a.addParameter("screenWidth",this.M);a.addParameter("browserWidth",this.N);a.addParameter("browserHeight",this.O);a.addParameter("browserTimeOffset",this.Q);a.addParameter("colorDepth",
this.P);a.setUrlProcessAction(function(a){a+="&mboxURL="+encodeURIComponent(document.location);var b=encodeURIComponent(document.referrer);if(a.length+b.length<2E3)a+="&mboxReferrer="+b;a+="&mboxVersion="+mboxVersion;return a})};mboxFactory.prototype.nb=function(){return""};mboxFactory.prototype.Y=function(){document.write("<style>."+"mboxDefault"+" { visibility:hidden; }</style>")};mboxFactory.prototype.isDomLoaded=function(){return this.E};
mboxSignaler=function(a,b){this.J=b;for(var c=b.getCookieNames("signal-"),d=0;d<c.length;d++){var e=c[d],f=b.getCookie(e).split("&");a(f[0],f).load();b.deleteCookie(e)}};mboxSignaler.prototype.signal=function(a){this.J.setCookie("signal-"+a,mboxShiftArray(arguments).join("&"),45*60)};mboxList=function(){this.F=new Array};mboxList.prototype.add=function(a){if(a!=null)this.F[this.F.length]=a};
mboxList.prototype.get=function(a){for(var b=new mboxList,c=0;c<this.F.length;c++){var d=this.F[c];if(d.getName()==a)b.add(d)}return b};mboxList.prototype.getById=function(a){return this.F[a]};mboxList.prototype.length=function(){return this.F.length};mboxList.prototype.each=function(a){if(typeof a!="function")throw"Action must be a function, was: "+typeof a;for(var b=0;b<this.F.length;b++)a(this.F[b])};mboxLocatorDefault=function(a){this.g="mboxMarker-"+a;document.write('<div id="'+this.g+'" style="visibility:hidden;display:none">&nbsp;</div>')};
mboxLocatorDefault.prototype.locate=function(){for(var a=document.getElementById(this.g);a!=null;){if(a.nodeType==1)if(a.className=="mboxDefault")return a;a=a.previousSibling}return null};mboxLocatorDefault.prototype.force=function(){var a=document.createElement("div");a.className="mboxDefault";var b=document.getElementById(this.g);b.parentNode.insertBefore(a,b);return a};mboxLocatorNode=function(a){this.ub=a};
mboxLocatorNode.prototype.locate=function(){return typeof this.ub=="string"?document.getElementById(this.ub):this.ub};mboxLocatorNode.prototype.force=function(){return null};mboxCreate=function(a){var b=mboxFactoryDefault.create(a,mboxShiftArray(arguments));if(b)b.load();return b};mboxDefine=function(a,b){return mboxFactoryDefault.create(b,mboxShiftArray(mboxShiftArray(arguments)),a)};mboxUpdate=function(a){mboxFactoryDefault.update(a,mboxShiftArray(arguments))};
mbox=function(a,b,c,d,e){this.Ab=null;this.Bb=0;this.hb=d;this.ib=e;this.Cb=null;this.Db=new mboxOfferContent;this.vb=null;this.w=c;this.message="";this.Eb=new Object;this.Fb=0;this.yb=b;this.g=a;this.Gb();c.addParameter("mbox",a).addParameter("mboxId",b);this.Hb=function(){};this.Ib=function(){};this.Jb=null};mbox.prototype.getId=function(){return this.yb};
mbox.prototype.Gb=function(){if(this.g.length>250)throw"Mbox Name "+this.g+" exceeds max length of "+"250 characters.";else if(this.g.match(/^\s+|\s+$/g))throw"Mbox Name "+this.g+" has leading/trailing whitespace(s).";};mbox.prototype.getName=function(){return this.g};mbox.prototype.getParameters=function(){for(var a=this.w.getParameters(),b=new Array,c=0;c<a.length;c++)if(a[c].name.indexOf("mbox")!=0)b[b.length]=a[c].name+"="+a[c].value;return b};mbox.prototype.setOnLoad=function(a){this.Ib=a;return this};
mbox.prototype.setMessage=function(a){this.message=a;return this};mbox.prototype.setOnError=function(a){this.Hb=a;return this};mbox.prototype.setFetcher=function(a){if(this.Cb)this.Cb.cancel();this.Cb=a;return this};mbox.prototype.getFetcher=function(){return this.Cb};
mbox.prototype.load=function(a){if(this.Cb==null)return this;this.setEventTime("load.start");this.cancelTimeout();this.Bb=0;this.Cb.fetch(a&&a.length>0?this.w.clone().addParameters(a):this.w);var b=this;this.Lb=setTimeout(function(){b.Hb("browser timeout",b.Cb.getType())},15E3);this.setEventTime("load.end");return this};mbox.prototype.loaded=function(){this.cancelTimeout();if(!this.activate()){var a=this;setTimeout(function(){a.loaded()},100)}};
mbox.prototype.activate=function(){if(this.Bb)return this.Bb;this.setEventTime("activate"+ ++this.Fb+".start");if(this.show()){this.cancelTimeout();this.Bb=1}this.setEventTime("activate"+this.Fb+".end");return this.Bb};mbox.prototype.isActivated=function(){return this.Bb};mbox.prototype.setOffer=function(a){if(a&&a.show&&a.setOnLoad)this.Db=a;else throw"Invalid offer";return this};mbox.prototype.getOffer=function(){return this.Db};
mbox.prototype.show=function(){this.setEventTime("show.start");var a=this.Db.show(this);this.setEventTime(a==1?"show.end.ok":"show.end");return a};mbox.prototype.showContent=function(a){if(a==null)return 0;if(this.vb==null||!this.vb.parentNode){this.vb=this.getDefaultDiv();if(this.vb==null)return 0}if(this.vb!=a){this.Nb(this.vb);this.vb.parentNode.replaceChild(a,this.vb);this.vb=a}this.Ob(a);this.Ib();return 1};
mbox.prototype.hide=function(){this.setEventTime("hide.start");var a=this.showContent(this.getDefaultDiv());this.setEventTime(a==1?"hide.end.ok":"hide.end.fail");return a};mbox.prototype.finalize=function(){this.setEventTime("finalize.start");this.cancelTimeout();if(this.getDefaultDiv()==null)if(this.hb.force()!=null)this.setMessage("No default content, an empty one has been added");else this.setMessage("Unable to locate mbox");if(!this.activate()){this.hide();this.setEventTime("finalize.end.hide")}this.setEventTime("finalize.end.ok")};
mbox.prototype.cancelTimeout=function(){if(this.Lb)clearTimeout(this.Lb);if(this.Cb!=null)this.Cb.cancel()};mbox.prototype.getDiv=function(){return this.vb};mbox.prototype.getDefaultDiv=function(){if(this.Jb==null)this.Jb=this.hb.locate();return this.Jb};mbox.prototype.setEventTime=function(a){this.Eb[a]=(new Date).getTime()};mbox.prototype.getEventTimes=function(){return this.Eb};mbox.prototype.getImportName=function(){return this.ib};mbox.prototype.getURL=function(){return this.w.buildUrl()};
mbox.prototype.getUrlBuilder=function(){return this.w};mbox.prototype.Qb=function(a){return a.style.display!="none"};mbox.prototype.Ob=function(a){this.Rb(a,true)};mbox.prototype.Nb=function(a){this.Rb(a,false)};mbox.prototype.Rb=function(a,b){a.style.visibility=b?"visible":"hidden";a.style.display=b?"block":"none"};mboxOfferContent=function(){this.Ib=function(){}};mboxOfferContent.prototype.show=function(a){a=a.showContent(document.getElementById(a.getImportName()));if(a==1)this.Ib();return a};
mboxOfferContent.prototype.setOnLoad=function(a){this.Ib=a};mboxOfferAjax=function(a){this.Mb=a;this.Ib=function(){}};mboxOfferAjax.prototype.setOnLoad=function(a){this.Ib=a};mboxOfferAjax.prototype.show=function(a){var b=document.createElement("div");b.id=a.getImportName();b.innerHTML=this.Mb;a=a.showContent(b);if(a==1)this.Ib();return a};mboxOfferDefault=function(){this.Ib=function(){}};mboxOfferDefault.prototype.setOnLoad=function(a){this.Ib=a};
mboxOfferDefault.prototype.show=function(a){a=a.hide();if(a==1)this.Ib();return a};mboxCookieManager=function(a,b){this.g=a;this.Ub=b==""||b.indexOf(".")==-1?"":"; domain="+b;this.Vb=new mboxMap;this.loadCookies()};mboxCookieManager.prototype.isEnabled=function(){this.setCookie("check","true",60);this.loadCookies();return this.getCookie("check")=="true"};
mboxCookieManager.prototype.setCookie=function(a,b,c){if(typeof a!="undefined"&&typeof b!="undefined"&&typeof c!="undefined"){var d=new Object;d.name=a;d.value=escape(b);d.expireOn=Math.ceil(c+(new Date).getTime()/1E3);this.Vb.put(a,d);this.saveCookies()}};mboxCookieManager.prototype.getCookie=function(a){return(a=this.Vb.get(a))?unescape(a.value):null};mboxCookieManager.prototype.deleteCookie=function(a){this.Vb.remove(a);this.saveCookies()};
mboxCookieManager.prototype.getCookieNames=function(a){var b=new Array;this.Vb.each(function(c){if(c.indexOf(a)==0)b[b.length]=c});return b};mboxCookieManager.prototype.saveCookies=function(){var a=new Array,b=0;this.Vb.each(function(c,e){a[a.length]=c+"#"+e.value+"#"+e.expireOn;if(b<e.expireOn)b=e.expireOn});var c=new Date(b*1E3);document.cookie=this.g+"="+a.join("|")+"; expires="+c.toGMTString()+"; path=/"+this.Ub};
mboxCookieManager.prototype.loadCookies=function(){this.Vb=new mboxMap;var a=document.cookie.indexOf(this.g+"=");if(a!=-1){var b=document.cookie.indexOf(";",a);if(b==-1){b=document.cookie.indexOf(",",a);if(b==-1)b=document.cookie.length}for(var a=document.cookie.substring(a+this.g.length+1,b).split("|"),b=Math.ceil((new Date).getTime()/1E3),c=0;c<a.length;c++){var d=a[c].split("#");if(b<=d[2]){var e=new Object;e.name=d[0];e.value=d[1];e.expireOn=d[2];this.Vb.put(e.name,e)}}}};
mboxSession=function(a,b,c,d,e){this.hc=b;this.qb=c;this.ic=d;this.J=e;this.jc=false;this.yb=typeof mboxForceSessionId!="undefined"?mboxForceSessionId:mboxGetPageParameter(this.hc);if(this.yb==null||this.yb.length==0){this.yb=e.getCookie(c);if(this.yb==null||this.yb.length==0){this.yb=a;this.jc=true}}e.setCookie(c,this.yb,d)};mboxSession.prototype.getId=function(){return this.yb};mboxSession.prototype.forceId=function(a){this.yb=a;this.J.setCookie(this.qb,this.yb,this.ic)};
mboxPC=function(a,b,c){this.qb=a;this.ic=b;this.J=c;this.yb=typeof mboxForcePCId!="undefined"?mboxForcePCId:c.getCookie(a);if(this.yb!=null)c.setCookie(a,this.yb,b)};mboxPC.prototype.getId=function(){return this.yb};mboxPC.prototype.forceId=function(a){if(this.yb!=a){this.yb=a;this.J.setCookie(this.qb,this.yb,this.ic);return true}return false};mboxGetPageParameter=function(a){var b=null,a=(new RegExp(a+"=([^&]*)")).exec(document.location);if(a!=null&&a.length>=2)b=a[1];return b};
mboxSetCookie=function(a,b,c){return mboxFactoryDefault.getCookieManager().setCookie(a,b,c)};mboxGetCookie=function(a){return mboxFactoryDefault.getCookieManager().getCookie(a)};mboxCookiePageDomain=function(){var a=/([^:]*)(:[0-9]{0,5})?/.exec(document.location.host)[1];if(!/[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}/.exec(a)){var b=/([^\.]+\.[^\.]{3}|[^\.]+\.[^\.]+\.[^\.]{2})$/.exec(a);if(b)a=b[0]}return a?a:""};
mboxShiftArray=function(a){for(var b=new Array,c=1;c<a.length;c++)b[b.length]=a[c];return b};mboxGenerateId=function(){return(new Date).getTime()+"-"+Math.floor(Math.random()*999999)};mboxScreenHeight=function(){return screen.height};mboxScreenWidth=function(){return screen.width};mboxBrowserWidth=function(){return window.innerWidth?window.innerWidth:document.documentElement?document.documentElement.clientWidth:document.body.clientWidth};
mboxBrowserHeight=function(){return window.innerHeight?window.innerHeight:document.documentElement?document.documentElement.clientHeight:document.body.clientHeight};mboxBrowserTimeOffset=function(){return-(new Date).getTimezoneOffset()};mboxScreenColorDepth=function(){return screen.pixelDepth};
try{if(typeof mboxVersion=="undefined")var mboxVersion=39,mboxFactories=new mboxMap,mboxFactoryDefault=new mboxFactory("mtvnetworks.tt.omtrdc.net","mtvnetworks","default");if(mboxGetPageParameter("mboxDebug")!=null||mboxFactoryDefault.getCookieManager().getCookie("debug")!=null){setTimeout(function(){if(typeof mboxDebugLoaded=="undefined")alert("Could not load the remote debug.\nPlease check your connection"+" to Test&amp;Target servers")},60*60);document.write("<"+"scr"+'ipt language="Javascript1.2" src='+
'"http://admin5.testandtarget.omniture.com/admin/mbox/mbox_debug.jsp?mboxServerHost=mtvnetworks.tt.omtrdc.net'+'&clientCode=mtvnetworks"><'+"/scr"+"ipt>")}}catch(e$$38){}mboxScPluginFetcher=function(a,b){this.b=a;this.qc=b};mboxScPluginFetcher.prototype.rc=function(a){a.setBasePath("/m2/"+this.b+"/sc/standard");this.sc(a);a=a.buildUrl();a+="&scPluginVersion=1";return a};
mboxScPluginFetcher.prototype.sc=function(a){for(var b=["dynamicVariablePrefix","visitorID","vmk","ppu","charSet","visitorNamespace","cookieDomainPeriods","cookieLifetime","pageName","currencyCode","variableProvider","channel","server","pageType","transactionID","purchaseID","campaign","state","zip","events","products","linkName","linkType","resolution","colorDepth","javascriptVersion","javaEnabled","cookiesEnabled","browserWidth","browserHeight","connectionType","homepage","pe","pev1","pev2","pev3",
"visitorSampling","visitorSamplingGroup","dynamicAccountSelection","dynamicAccountList","dynamicAccountMatch","trackDownloadLinks","trackExternalLinks","trackInlineStats","linkLeaveQueryString","linkDownloadFileTypes","linkExternalFilters","linkInternalFilters","linkTrackVars","linkTrackEvents","linkNames","lnk","eo"],c=0;c<b.length;c++)this.uc(b[c],a);for(c=1;c<=50;c++){this.uc("prop"+c,a);this.uc("eVar"+c,a);this.uc("hier"+c,a)}};
mboxScPluginFetcher.prototype.uc=function(a,b){var c=this.qc[a];if(typeof c==="undefined"||c===null||c==="")return;b.addParameter(a,c)};mboxScPluginFetcher.prototype.cancel=function(){};mboxStandardScPluginFetcher=function(a,b){mboxScPluginFetcher.call(this,a,b)};mboxStandardScPluginFetcher.prototype=new mboxScPluginFetcher;mboxStandardScPluginFetcher.prototype.getType=function(){return"standard"};
mboxStandardScPluginFetcher.prototype.fetch=function(a){a.setServerType(this.getType());a=this.rc(a);document.write("<"+"scr"+'ipt src="'+a+'" language="JavaScript"><'+"/scr"+"ipt>")};mboxAjaxScPluginFetcher=function(a,b){mboxScPluginFetcher.call(this,a,b)};mboxAjaxScPluginFetcher.prototype=new mboxScPluginFetcher;mboxAjaxScPluginFetcher.prototype.fetch=function(a){a.setServerType(this.getType());a=this.rc(a);this.x=document.createElement("script");this.x.src=a;document.body.appendChild(this.x)};
mboxAjaxScPluginFetcher.prototype.getType=function(){return"ajax"};
function mboxLoadSCPlugin(a){if(!a)return null;a.m_tt=function(a){a=a.m_i("tt");a.H=true;a.b="mtvnetworks";a._t=function(){if(!this.isEnabled())return;var a=this.xc();if(a){var b=mboxFactoryDefault.isDomLoaded()?new mboxAjaxScPluginFetcher(this.b,this.s):new mboxStandardScPluginFetcher(this.b,this.s);a.setFetcher(b);a.load()}};a.isEnabled=function(){return this.H&&mboxFactoryDefault.isEnabled()};a.xc=function(){var a=this.yc(),b=document.createElement("DIV");return mboxFactoryDefault.create(a,new Array,
b)};a.yc=function(){return"SiteCatalyst: "+(this.s.events&&this.s.events.indexOf("purchase")!=-1?"purchase":"event")}};return a.loadModule("tt")}mtvn.btg.reporting.omniture.Hcode=s_gi("");if(typeof mtvn.btg.reporting.omniture.Hcode==="object")mtvn.btg.reporting.omniture.Hcode.setAccount=function(a){this.un=a};
if(typeof mtvn.btg.reporting.omniture.Hcode==="object")mtvn.btg.reporting.omniture.Hcode.getNewRepeat=new Function(""+"var s=this,e=new Date(),cval,ct=e.getTime(),y=e.getYear();e.setTime"+"(ct+30*24*60*60*1000);cval=s.c_r('s_nr');if(cval.length==0){s.c_w("+"'s_nr',ct,e);return 'New';}if(cval.length!=0&&ct-cval<30*60*1000){s"+".c_w('s_nr',ct,e);return 'New';}if(cval<1123916400001){e.setTime(cv"+"al+30*24*60*60*1000);s.c_w('s_nr',ct,e);return 'Repeat';}else retur"+"n 'Repeat';");
if(typeof mtvn.btg.reporting.omniture.Hcode==="object"){mtvn.btg.reporting.omniture.Hcode.getTimeParting=new Function("t","z",""+"var s=this,cy;dc=new Date('1/1/2000');"+"if(dc.getDay()!=6||dc.getMonth()!=0){return'Data Not Available'}"+"else{;z=parseFloat(z);var dsts=new Date(s.dstStart);"+"var dste=new Date(s.dstEnd);fl=dste;cd=new Date();if(cd>dsts&&cd<fl)"+"{z=z+1}else{z=z};utc=cd.getTime()+(cd.getTimezoneOffset()*60000);"+"tz=new Date(utc + (3600000*z));thisy=tz.getFullYear();"+"var days=['Sunday','Monday','Tuesday','Wednesday','Thursday','Friday',"+
"'Saturday'];if(thisy!=s.currentYear){return'Data Not Available'}else{;"+"thish=tz.getHours();thismin=tz.getMinutes();thisd=tz.getDay();"+"var dow=days[thisd];var ap='AM';var dt='Weekday';var mint='00';"+"if(thismin>30){mint='30'}if(thish>=12){ap='PM';thish=thish-12};"+"if (thish==0){thish=12};if(thisd==6||thisd==0){dt='Weekend'};"+"var timestring=thish+':'+mint+ap;if(t=='h'){return timestring}"+"if(t=='d'){return dow};if(t=='w'){return dt}}};");mtvn.btg.reporting.omniture.Hcode.dstStart="03/13/2011";
mtvn.btg.reporting.omniture.Hcode.dstEnd="11/06/2011";mtvn.btg.reporting.omniture.Hcode.currentYear=(new Date).getFullYear()}if(typeof mtvn.btg.reporting.omniture.Hcode==="object")mtvn.btg.reporting.omniture.Hcode.getValOnce=new Function("v","c","e",""+"var s=this,k=s.c_r(c),a=new Date;e=e?e:0;if(v){a.setTime(a.getTime("+")+e*86400000);s.c_w(c,v,e?a:0);}return v==k?'':v");
if(typeof mtvn.btg.reporting.omniture.Hcode==="object"){mtvn.btg.reporting.omniture.Hcode.getPreviousValue=new Function("v","c","el",""+"var s=this,t=new Date,i,j,r='';t.setTime(t.getTime()+1800000);if(el"+"){if(s.events){i=split(el,',');j=split(s.events,',');for(x in i"+"){for(y in j){if(i[x]==j[y]){if(s.c_r(c)) r=s.c_r(c);v?s.c_w(c,v,t)"+":s.c_w(c,'no value',t);return r}}}}}else{if(s.c_r(c)) r=s.c_r(c);v?"+"s.c_w(c,v,t):s.c_w(c,'no value',t);return r}");var split=new Function("l","d",""+"var i,x=0,a=new Array;while(l){i=l.indexOf(d);i=i>-1?i:l.length;a[x"+
"++]=l.substring(0,i);l=l.substring(i+d.length);}return a")}
if(typeof mtvn.btg.reporting.omniture.Hcode==="object"){mtvn.btg.reporting.omniture.Hcode.getPercentPageViewed=new Function("",""+"var s=this;if(typeof(s.linkType)=='undefined'||s.linkType=='e'){var"+" v=s.c_r('s_ppv');s.c_w('s_ppv',0);return v;}");mtvn.btg.reporting.omniture.Hcode.getPPVCalc=new Function("",""+"var s=s_c_il["+mtvn.btg.reporting.omniture.Hcode._in+"],dh=Math.max(Math.max(s.d.body.scrollHeight,"+"s.d.documentElement.scrollHeight),Math.max(s.d.body.offsetHeight,s."+"d.documentElement.offsetHeight),Math.max(s.d.body.clientHeight,s.d."+
"documentElement.clientHeight)),vph=s.wd.innerHeight||(s.d.documentE"+"lement.clientHeight||s.d.body.clientHeight),st=s.wd.pageYOffset||(s"+".wd.document.documentElement.scrollTop||s.wd.document.body.scrollTo"+"p),vh=st+vph,pv=Math.round(vh/dh*100),cp=s.c_r('s_ppv');if(pv>100){"+"s.c_w('s_ppv','');}else if(pv>cp){s.c_w('s_ppv',pv);}");mtvn.btg.reporting.omniture.Hcode.getPPVSetup=new Function("",""+"var s=this;if(s.wd.addEventListener){s.wd.addEventListener('load',s"+".getPPVCalc,false);s.wd.addEventListener('scroll',s.getPPVCalc,fals"+
"e);s.wd.addEventListener('resize',s.getPPVCalc,false);}else if(s.wd"+".attachEvent){s.wd.attachEvent('onload',s.getPPVCalc);s.wd.attachEv"+"ent('onscroll',s.getPPVCalc);s.wd.attachEvent('onresize',s.getPPVCa"+"lc);}");mtvn.btg.reporting.omniture.Hcode.getPPVSetup()}
if(typeof mtvn.btg.reporting.omniture.Hcode==="object"){mtvn.btg.reporting.omniture.Hcode.getQueryParam=new Function("p","d","u",""+"var s=this,v='',i,t;d=d?d:'';u=u?u:(s.pageURL?s.pageURL:s.wd.locati"+"on);if(u=='f')u=s.gtfs().location;while(p){i=p.indexOf(',');i=i<0?p"+".length:i;t=s.p_gpv(p.substring(0,i),u+'');if(t){t=t.indexOf('#')>-"+"1?t.substring(0,t.indexOf('#')):t;}if(t)v+=v?d+t:t;p=p.substring(i="+"=p.length?i:i+1)}return v");mtvn.btg.reporting.omniture.Hcode.p_gpv=new Function("k","u",
""+"var s=this,v='',i=u.indexOf('?'),q;if(k&&i>-1){q=u.substring(i+1);v"+"=s.pt(q,'&','p_gvf',k)}return v");mtvn.btg.reporting.omniture.Hcode.p_gvf=new Function("t","k",""+"if(t){var s=this,i=t.indexOf('='),p=i<0?t:t.substring(0,i),v=i<0?'T"+"rue':t.substring(i+1);if(p.toLowerCase()==k.toLowerCase())return s."+"epa(v)}return ''")}
if(typeof mtvn.btg.reporting.omniture.Hcode==="object")mtvn.btg.reporting.omniture.Hcode.trackTNT=function(a,b,c){var a=a?a:"s_tnt",d="",e=false,c=c?c:true;if(this.getQueryParam)e=this.getQueryParam(b?b:"s_tnt");if(e)d+=e+",";if(this.wd[a]!=undefined)d+=this.wd[a];if(c)this.wd[a]="";return d};
mtvn.btg.ads.AdManager=new function(){var a=mtvn.btg.util,b=a.Object,c=a.String.isDefined,d=b.isConfigDefined,e=a.String.stripFileExtension,f=a.Math.random,g=mtvn.btg.ads,h=g.doubleclick,j=mtvn.btg.globalvars,k,l=false,o=false,t=false,v=false,u=false,A=3E4,q,D=[];this.groupedReloadableAdsCounter=this.groupedReloadableAdsTotal=0;var p={},w=0;this.reloadableAds={};this.init=function(){q=mtvn.btg.config.AdSettings;if(q.reloadableAds&&q.reloadableAds===true)u=true;if(q.reloadInterval&&!isNaN(parseInt(q.reloadInterval))){q.reloadInterval=
parseInt(q.reloadInterval);if(q.reloadInterval>=1E4)A=q.reloadInterval}var a={};if(d(q.DoubleClick)){if(q.DoubleClick.type&&q.DoubleClick.type.toLowerCase()=="international"){q.International={};b.copyProperties(q.DoubleClick,q.International)}else if(q.DoubleClick.type&&q.DoubleClick.type.toLowerCase()=="domestic")q.International={};l=true;this.setPositionThreshold(q.DoubleClick.positionThreshold);if(c(q.DoubleClick.sections)){q.DoubleClick.sections=e(q.DoubleClick.sections);a.sections=q.DoubleClick.sections}else{this.setDefaultSections();
if(c(p.sections))a.sections=p.sections}a.dartSite=q.DoubleClick.dartSite;p.tile=0;p.ord=f(1E17,1E18)}if(d(q.FreeWheel))o=true;if(d(q.International)){t=true;if(c(q.International.sections)){q.International.sections=e(q.International.sections);a.sections=q.International.sections}else{this.setDefaultSections();if(c(p.sections))a.sections=p.sections}a.dartSite=q.International.dartSite;p.tile=0;p.ord=f(1E17,1E18)}if(d(q.QuantCast))v=true;if(v){PlatoAd=new h.DomesticDc(q.DoubleClick);dmobj={size:"728x90",
contentType:"adj"};dmobj.sections=a.sections;if(c(q.QuantCast.vertical))PlatoAd.setKeyValues("vertical="+q.QuantCast.vertical);PlatoAd.init(dmobj);PlatoAd.getUrl();mtvn.btg.reporting.QuantCast.Ads.setLabels(a,PlatoAd.getSections())}};this.getPositionThreshold=function(){return k};this.setPositionThreshold=function(a){if(!isNaN(parseInt(a)))k=a};this.placeAd=function(a){if(typeof j.IS_CODA_ADS_USED!="undefined"&&j.IS_CODA_ADS_USED==false)j.IS_CODA_ADS_USED=true;var b=this.getAd(a);if(a.isReloadable===
true||u&&a.isReloadable!==false){if(b.setContentType)b.setContentType("adi");b.reloadInterval=A;if(a.reloadInterval&&!isNaN(parseInt(a.reloadInterval))){b.needUniqueOrd=true;a.reloadInterval=parseInt(a.reloadInterval);if(a.reloadInterval>=1E4)b.reloadInterval=a.reloadInterval}else{this.groupedReloadableAdsTotal++;this.groupedReloadableAdsCounter++}if(b.reloadTimer){clearInterval(b.reloadTimer);b.reloadTimer=null}b.reloadTimer=setInterval(function(){mtvn.btg.ads.AdManager.reloadAd(b)},b.reloadInterval)}if(b!=
null)return b.placeAd(a);else{document.write("[ERROR: Ad not created, please check your config to enable CODA ads]");return null}};this.adLoadNotify=function(b){if(typeof a.Events.adLoaded!="undefined")a.Events.adLoaded.fire(b)};this.setAdReloadOrdByGroup=function(a){if(a.needUniqueOrd===true)a.setOrd(f(1E17,1E18));else{if(this.groupedReloadableAdsCounter>=this.groupedReloadableAdsTotal&&this.groupedReloadableAdsCounter%this.groupedReloadableAdsTotal==0)p.ord=f(1E17,1E18);a.setOrd(p.ord);this.groupedReloadableAdsCounter++}};
this.reloadAd=function(a){var d=b.isDefined;if(d(a)&&c(a.id)&&d(self.frames[a.id])){a.setContentType("adi");this.setAdReloadOrdByGroup(a);try{self.frames[a.id].location.replace(a.getUrl())}catch(e){}}};this.placeIFrameAd=function(a,b){if(typeof j.IS_CODA_ADS_USED!="undefined")j.IS_CODA_ADS_USED=true;var c="container"+b.reloadableAdId;this.reloadableAds[b.reloadableAdId]={data:b};document.write('<iframe allowtransparency="true" name="'+c+'" id="'+c+'" src="'+a+"?"+b.reloadableAdId+'" width='+b.size.split("x")[0]+
" height="+b.size.split("x")[1]+' marginwidth=0 marginheight=0 frameborder=0 scrolling="no"></iframe>')};this.getData=function(){return p};this.setDefaultSections=function(b){b=c(b)?b:a.Sections.getAdSections();if(c(b))p.sections=e(b)};this.getAd=function(a){var d;if(t){d=new h.InternationalDc(q.International);p.tile++;a=this.setReloadableAdData(a);if(c(a.sections))a.sections=e(a.sections);b.copyProperties(p,a);d.init(a);D.push(d)}else if(o){d=new g.freewheel.FreeWheelAd(q);p.tile++;a=this.setReloadableAdData(a);
if(c(a.sections))a.sections=e(a.sections);b.copyProperties(p,a);d.init(a);D.push(d)}else if(l){d=new h.DomesticDc(q.DoubleClick);p.tile++;a=this.setReloadableAdData(a);if(c(a.sections))a.sections=e(a.sections);b.copyProperties(p,a);d.init(a);D.push(d)}else{document.write("<\!-- [ERROR: Ads not enabled. Please check your config or placeAd() method call!] --\>");return null}return d};this.getAdUrl=function(a){return this.getAd(a).getUrl()};this.setReloadableAdData=function(a){if(c(a.reloadableAdId)&&
c(this.reloadableAds[a.reloadableAdId])){++w;a.ord=p.ord=c(this.reloadableAds[a.reloadableAdId].tile)&&this.hasReloadComplete()?f(1E17,1E18):p.ord;a.tile=p.tile=this.reloadableAds[a.reloadableAdId].tile=c(this.reloadableAds[a.reloadableAdId].tile)?this.reloadableAds[a.reloadableAdId].tile:p.tile}if(c(a.loadOrder))a.tile=a.loadOrder;return a};this.hasReloadComplete=function(){var a=0,b;for(b in this.reloadableAds)a++;if(w>a){w=1;return true}return false}};
mtvn.btg.ads.doubleclick.DoubleClick=function(a){this.btgAds=mtvn.btg.ads;this.btgU=mtvn.btg.util;this.btgStr=this.btgU.String;this.btgCfg=mtvn.btg.config;this.isStr=this.btgStr.isDefined;this.isObj=this.btgU.Object.isDefined;this.gv=mtvn.btg.globalvars;if(this.isObj(a))this.config=a;this.ptAdjustedForInvisibleAd=false;this.invisibleAdsSizes=["2x2","6x6"];this.server="ad.doubleclick.net";this.ssl=false;this.contentType="adj";this.mediaType="standard";this.keyValues="";this.zoneOverride=null;this.additionalKeyValues=
[];this.exclusions=[];this.reservedKeyValues={};if(this.isObj(a))this.autoDcopt=a.autoDcopt?true:false;if(this.isObj(this.btgAds.AdManager)&&!this.btgAds.AdManager.dcoptOn)this.btgAds.AdManager.dcoptOn=false;this.isDevEnv=false;if(this.gv.IS_TOP_ACCESSIBLE&&top.location.hostname.indexOf("mtvi.com")>-1)this.isDevEnv=true;if(this.isObj(a))for(var b in a)if(this.isStr(a[b])&&(typeof a[b]=="string"||typeof a[b]=="number"))if(b=="sections")this.setSections(a[b]);else if(b=="keyValues")this.setKeyValues(a[b]);
else this[b]=a[b]};
mtvn.btg.ads.doubleclick.DoubleClick.prototype={formatUrl:function(a){var b="",b=a.dartSite+"/"+a.zone+";";if(b.length>64)a.zone=a.zone.substring(0,a.zone.length-(b.length-64));b=[[a.protocol+a.server,a.contentType,a.dartSite,a.zone].join("/"),a.sections];if(this.isStr(a.keyValues))b.push(a.keyValues);if(a.ord>0)b.push("ord="+a.ord+"?");return b=b.join(";")},setKeyValues:function(a){a=a.replace(/[^\w=!;|-]/g,"_");this.keyValues=a.replace(/^;+|;+$/g,"");if(this.keyValues.indexOf("mtype=")>-1)this.setMediaType(this.getKeyValue("mtype="));
if(this.keyValues.indexOf("pos=")>-1)this.setPosition(this.getKeyValue("pos="));else if(this.keyValues.indexOf("threshold=")>-1)this.btgAds.AdManager.setPositionThreshold(this.getKeyValue("threshold="))},setZoneOverride:function(a){this.zoneOverride=a},setId:function(a){this.id=a},setServer:function(a){this.server=a},setSsl:function(){this.ssl=true},setDartSite:function(a){this.dartSite=a},setContentType:function(a){this.contentType=a},setMediaType:function(a){this.mediaType=a},setPosition:function(a){this.position=
a},setSections:function(a){for(var a=a=="/"?a:this.btgStr.charTrim(a,"/"),b=this.isObj(this.btgCfg.AdSettings)&&this.isStr(this.btgCfg.AdSettings.defaultIndexFileName)?this.btgCfg.AdSettings.defaultIndexFileName:"index",b=this.btgStr.stripFileExtension(b),b=["/",b,"home/"+b],c=0,d=b.length;c<d;c++)if(a.indexOf(b[c])==0&&a.length==b[c].length){a=a.replace(b[c],"_hp");break}for(a=a.replace(/[^\/\w=!;|-]/g,"_");a.match(/\/\d/);)a=a.replace(/\/\d/,RegExp.lastMatch.substring(0,1)+"_"+RegExp.lastMatch.substring(1,
2));a=a.replace(/^\d/,"_"+a.match(/^\d/,"_"));this.sections=a.replace(/^\/+|\/+$/g,"");if(this.sections.indexOf(".")>-1)this.sections=this.sections.split(".")[0]},isInvisibleAd:function(){for(var a=false,b=0,c=this.invisibleAdsSizes.length;b<c;b++)if(this.size==this.invisibleAdsSizes[b]){a=true;break}return a},setSize:function(a){this.size=a},setRealSize:function(a){this.realSize=a},setTile:function(a){this.tile=a},setOrd:function(a){this.ord=a},setPartner:function(a){this.partner=a},addExclusionCategory:function(a){var a=
a.replace(/^;+|;+$/g,""),b=false;if(this.exclusions.length>0){for(var c=0,d=this.exclusions.length;c<d;c++)if(this.exclusions[c].match(new RegExp("category="+a,"ig"))){b=true;break}if(!b)this.exclusions.push("!category="+a)}else this.exclusions.push("!category="+a)},addKeyValues:function(a){if(this.isStr(a)&&a.indexOf("=")>-1)this.additionalKeyValues.push(a)},appendKeyValue:function(a,b){if(!this.isStr(a))a="";if(!this.isStr(b))b="";a=a.replace(/^;+|;+$/g,"");b=b.replace(/^;+|;+$/g,"");if(a.indexOf("=")>
-1)b+=";"+a;return b=b.replace(/^;+|;+$/g,"")},removeKeyValue:function(a){if(this.isStr(this.getKeyValue(a))){var b=";"+a+this.getKeyValue(a);if(this.keyValues.indexOf(b)==-1){b=a+this.getKeyValue(a)+";";if(this.keyValues.indexOf(b)==-1)b=a+this.getKeyValue(a)}this.keyValues=this.keyValues.replace(new RegExp(b,"g"),"");this.removeKeyValue(a)}},getProtocol:function(){return this.ssl?"https://":"http://"},getPosition:function(){var a=this.btgAds.AdManager.getPositionThreshold(),b="unk";if(this.isStr(this.position))if(this.position.indexOf("atf")>
-1)b="atf";else{if(this.position.indexOf("btf")>-1)b="btf"}else if(a){if(this.isInvisibleAd()&&this.ptAdjustedForInvisibleAd==false){this.btgAds.AdManager.setPositionThreshold(++a);this.ptAdjustedForInvisibleAd=true}b=this.tile<=a?"atf":"btf"}return b},getKeyValue:function(a){var b;if(this.keyValues.indexOf(a)>-1){a=this.keyValues.split(a);if(a.length>0)if(a[1].indexOf(";")>-1)b=a[1].substring(0,a[1].indexOf(";"));else b=a[1]}return b},getSections:function(){return this.sections},getContentTypeAbbreviation:function(){var a=
"";if(this.contentType=="pfadx")a="p";if(this.contentType=="adj")a="j";if(this.contentType=="adi")a="i";if(this.contentType=="adx")a="x";if(this.contentType=="ad")a="a";return a},getExclusions:function(){return this.exclusions.join(";")},isValidDcopt:function(a){var b=false;if(this.isStr(a))for(var c=0,d=this.gv.VALID_DCOPT.length;c<d;c++)if(a==this.gv.VALID_DCOPT[c]){b=true;break}return b},formatReserved:function(){for(var a=this.keyValues,b=["dcmt","dcopt","dcove"],c=0,d=b.length;c<d;c++)if(a.indexOf(b[c]+
"=")>-1){for(var e=this.getKeyValue(b[c]+"="),a=a.split(b[c]+"="+e),f=0,d=a.length;f<d;f++)a[f]=a[f].replace(/^;+|;+$/g,"");if(b[c]=="dcopt"&&this.isValidDcopt(e)!=true){this.keyValues=a.join(";");return this.formatReserved()}this.reservedKeyValues[b[c]]=e;a=a.join(";")}if(a.lastIndexOf(";")==a.length-1)a=a.substring(0,a.length-1);return a},getAdditionalKeyValues:function(){return this.additionalKeyValues.join(";")},applyTestbedValues:function(){var a=mtvn.btg.util.Cookie.read("btg_atb");if(a!=null&&
a.indexOf("daDart:")>=0){a=a.split(",")[0].split(":")[1];this.dartSite=a=="auto"?this.dartSite="atb_"+this.dartSite:a}},getValues:function(){this.applyTestbedValues();var a=this.isStr(this.zoneOverride)?this.zoneOverride:this.formatZone(),b=this.formatKeyValues(),c=this.formatSectionValues();return{id:this.id,protocol:this.getProtocol(),server:this.server,dartSite:this.dartSite,contentType:this.contentType,mediaType:this.mediaType,zone:a,sections:c,keyValues:b,ord:this.ord}},getRealWidth:function(){return this.realSize.substr(0,
this.realSize.indexOf("x"))},getRealHeight:function(){return this.realSize.substr(this.realSize.indexOf("x")+1,this.realSize.length)},getWidth:function(){return this.size.substr(0,this.size.indexOf("x"))},getHeight:function(){return this.size.substr(this.size.indexOf("x")+1,this.size.length)},getUrl:function(){return this.formatUrl(this.getValues())},getJson:function(){var a=this.getValues();a.url=this.formatUrl(a);return a},getXml:function(){var a=[],b=this.getValues();b.url=this.formatUrl(b);for(var c in b)if(typeof(b[c]==
"string"))a.push("<"+c+">"+"</"+b[c]+">");return"<DoubleClick>"+a.join("")+"</DoubleClick>"},init:function(a){if(typeof a==="object"){if(this.isStr(a.zoneOverride))this.setZoneOverride(a.zoneOverride);if(this.isStr(a.id))this.setId(a.id);if(this.isStr(a.server))this.setServer(a.server);if(this.isStr(a.ssl))this.setSsl(a.ssl);if(this.isStr(a.dartSite))this.setDartSite(a.dartSite);if(this.isStr(a.contentType))this.setContentType(a.contentType);if(this.isStr(a.mediaType))this.setMediaType(a.mediaType);
if(this.isStr(a.position))this.setPosition(a.position);if(this.isStr(a.sections))this.setSections(a.sections);if(this.isStr(a.keyValues))this.setKeyValues(a.keyValues);if(this.isStr(a.size))this.setSize(a.size);else this.setSize("[ERROR: Size Not Defined!]");if(this.isStr(a.realSize))this.setRealSize(a.realSize);else this.setRealSize(this.size);if(this.isStr(a.tile))this.setTile(a.tile);if(this.isStr(a.positionThreshold))this.btgAds.AdManager.setPositionThreshold(a.positionThreshold);if(this.isStr(a.ord))this.setOrd(a.ord);
if(this.isStr(a.partner))this.setPartner(a.partner)}}};mtvn.btg.ads.doubleclick.DomesticDc=function(){this.type="DomesticDc"};
mtvn.btg.ads.doubleclick.DomesticDc.prototype={formatSectionValues:function(){try{var a=this.sections.split("/")}catch(b){a=["[ERROR: Sections Not Defined!]"]}for(var c=0,d=[],e=0,f=a.length;e<f;e++)if(mtvn.btg.util.String.isDefined(a[e])){d.push("sec"+c+"="+a[e]);c++}return d.join(";")},formatZone:function(){var a=this.getPosition()+"_"+this.getContentTypeAbbreviation()+"_"+this.mediaType.substr(0,1)+"/",b=this.getSections();if(this.isStr(this.keyValues)){if(this.keyValues.indexOf("partner=")>-1){var c=
this.getKeyValue("partner=");if(this.isStr(c)&&c!="null"){a+=c+"/";this.addExclusionCategory(c);this.addExclusionCategory("partner")}else this.keyValues=this.keyValues.replace(/(partner=;)|partner=$/ig,"partner=null;")}if(this.keyValues.indexOf("vertical=")>-1){c=this.getKeyValue("vertical=");if(this.isStr(c)){b=c+"/"+b;this.setSections(b)}}if(this.keyValues.indexOf("synd=")>-1){c=this.getKeyValue("synd=");if(this.isStr(c))this.addExclusionCategory(c)}}a=a.replace(/^\d/,"_"+a.match(/^\d/,"_"));return a+
b},setDemoVal:function(){var a=this.btgU.Cookie.read("qcDemo");if((typeof this.btgCfg.AdSettings!="undefined"&&typeof this.btgCfg.AdSettings.QuantCast!="undefined"&&typeof this.btgCfg.AdSettings.QuantCast.enableDemoTargeting=="boolean"?this.btgCfg.AdSettings.QuantCast.enableDemoTargeting:true)&&this.isStr(a)&&this.keyValues.indexOf("demo=D")==-1)this.keyValues+=";"+unescape(a)},formatKeyValues:function(){var a=this.getAdditionalKeyValues();if(this.isStr(a))this.keyValues+=";"+a;if(this.keyValues.indexOf("pos=")==
-1)this.keyValues+=";pos="+this.getPosition();if(this.keyValues.indexOf("tag=")==-1)this.keyValues+=";tag="+this.contentType;if(this.keyValues.indexOf("mtype=")==-1)this.keyValues+=";mtype="+this.mediaType;if(this.autoDcopt){this.removeKeyValue("dcopt");if(this.tile=="1")this.keyValues+=";dcopt=ist"}this.keyValues=this.formatReserved();if(this.isStr(this.size)&&this.keyValues.indexOf("sz=")==-1)this.keyValues+=";sz="+this.size;if(this.tile>=0&&this.keyValues.indexOf("tile=")==-1)this.keyValues+=";tile="+
this.tile;this.setDemoVal();if(this.isStr(this.reservedKeyValues.dcmt))this.keyValues+=";dcmt="+this.reservedKeyValues.dcmt;if(this.isStr(this.reservedKeyValues.dcopt)){this.removeKeyValue("dcopt");this.keyValues+=";dcopt="+this.reservedKeyValues.dcopt}if(this.keyValues.indexOf(this.getExclusions())==-1&&this.exclusions.length>0)this.keyValues+=";"+this.getExclusions();if(this.isStr(this.reservedKeyValues.dcove))this.keyValues+=";dcove="+this.reservedKeyValues.dcove;if(this.gv.IS_TOP_ACCESSIBLE){a=
this.btgStr.queryStringToObject(top.location.search.toLowerCase()).testmode;if(this.isStr(a))this.keyValues+=";testmode="+a}return this.keyValues=this.keyValues.replace(/^;+|;+$/g,"")},placeAd:function(a){if(!this.isStr(this.id))this.setId("ad"+this.tile);if(this.contentType=="adi"){var b="<ifr"+'ame allowtransparency="true" onload="mtvn.btg.ads.AdManager.adLoadNotify(\''+this.id+'\');" id="'+this.id+'" name="'+this.id+'" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" width="'+this.getRealWidth()+
'" height="'+this.getRealHeight()+'" src="'+this.getUrl()+'"></ifr'+"ame>";if(this.gv.IS_TOP_ACCESSIBLE&&this.btgStr.queryStringToObject(top.location.search).mockupMode=="true")b=this.btgStr.mockItUp(b);if(this.isStr(a)&&this.isStr(a.reloadableAdId))return b;else if(typeof exposeTestFunctionNames=="undefined")document.write(b)}else{b="<scr"+'ipt type="text/javascript" id="'+this.id+"\" onreadystatechange=\"if(this.readyState=='complete')mtvn.btg.ads.AdManager.adLoadNotify('"+this.id+"');\" onload=\"mtvn.btg.ads.AdManager.adLoadNotify('"+
this.id+'\');" src="'+this.getUrl()+'"></scr'+"ipt>";if(this.gv.IS_TOP_ACCESSIBLE&&this.btgStr.queryStringToObject(top.location.search).mockupMode=="true")b=this.btgStr.mockItUp(b);if(this.isStr(a)&&this.isStr(a.reloadableAdId))return b;else if(typeof exposeTestFunctionNames=="undefined")document.write(b)}}};mtvn.btg.ads.doubleclick.DomesticDc=mtvn.btg.util.Class.inheritFrom(mtvn.btg.ads.doubleclick.DoubleClick,mtvn.btg.ads.doubleclick.DomesticDc);
mtvn.btg.ads.doubleclick.InternationalDc=function(){this.type="InternationalDc"};
mtvn.btg.ads.doubleclick.InternationalDc.prototype={formatSectionValues:function(){var a=this.sections.split("/"),b="none",c="none",d="none",e=[];if(this.isStr(a[0]))b=a[0];else b="/";if(this.isStr(a[1]))c=a[1];if(this.isStr(a[2])){for(var d=2,f=a.length;d<f;d++)if(this.isStr(a[d]))e.push(a[d]);d=e.join("/")}return"sec0="+b+";sec1="+c+";secN="+d},formatZone:function(){var a=this.sections.split("/");if(this.isStr(a[0]))a=a[0];else a="/home";return a},formatKeyValues:function(){var a=this.btgAds.AdManager,
b=this.getAdditionalKeyValues();if(this.isStr(b))this.keyValues+=";"+b;this.keyValues=this.formatReserved();if(this.isStr(this.size)&&this.keyValues.indexOf("sz=")==-1)this.keyValues+=";sz="+this.size;if(this.tile>=0&&this.keyValues.indexOf("tile=")==-1)this.keyValues+=";tile="+this.tile;if(this.isStr(this.reservedKeyValues.dcmt))this.keyValues+=";dcmt="+this.reservedKeyValues.dcmt;if(this.autoDcopt&&this.tile=="1"){this.keyValues+=";dcopt=ist";a.dcoptOn=true}if(this.isStr(this.reservedKeyValues.dcopt))if(a.dcoptOn){if(this.tile!=
"1"&&this.isDevEnv)this.keyValues+=";[ERROR: attempt to set dcopt value more than once per page!]"}else{this.keyValues+=";dcopt="+this.reservedKeyValues.dcopt;a.dcoptOn=true}if(this.exclusions.length>0)this.keyValues+=";"+this.getExclusions();if(this.isStr(this.reservedKeyValues.dcove))this.keyValues+=";dcove="+this.reservedKeyValues.dcove;if(self.location.href.indexOf("testmode=on")>-1)this.keyValues+=";testmode=on";return this.keyValues=this.keyValues.replace(/^;+|;+$/g,"")},addInternationalValues:function(a){if(this.isStr(a.log))this.addKeyValues("log="+
a.log);else this.addKeyValues("log=0");if(this.isStr(a.demo))this.addKeyValues("demo="+a.demo);else this.addKeyValues("demo=none");if(this.isStr(a.event))this.addKeyValues("event="+a.event);else this.addKeyValues("event=none");if(this.isStr(a.keyword))this.addKeyValues("search_kw="+a.keyword);else this.addKeyValues("search_kw=none");if(this.isStr(a.vid))this.addKeyValues("vid="+a.vid);else this.addKeyValues("vid=none");if(this.isStr(a.vid_type))this.addKeyValues("vid_type="+a.vid_type);else this.addKeyValues("vid_type=none");
if(this.isStr(a.region))this.addKeyValues("region="+a.region);else this.addKeyValues("region=none");this.addKeyValues("dcove=d");this.addKeyValues("url="+escape(location.pathname));if(this.isStr(a.keyValues))this.addKeyValues(a.keyValues)},placeAd:function(a){this.addInternationalValues(a);if(!this.isStr(this.id))this.setId("ad"+this.tile);if(this.contentType=="adi"){var b="<ifr"+'ame allowtransparency="true" onload="mtvn.btg.ads.AdManager.adLoadNotify(\''+this.id+'\');" id="'+this.id+'" name="'+
this.id+'" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" width="'+this.getRealWidth()+'" height="'+this.getRealHeight()+'" src="'+this.getUrl()+'"></ifr'+"ame>";if(this.gv.IS_TOP_ACCESSIBLE&&this.btgStr.queryStringToObject(top.location.search).mockupMode=="true")b=this.btgStr.mockItUp(b);if(this.isStr(a)&&this.isStr(a.reloadableAdId))return b;else if(typeof exposeTestFunctionNames=="undefined")document.write(b)}else{b="<scr"+'ipt type="text/javascript" id="'+this.id+"\" onreadystatechange=\"if(this.readyState=='complete')mtvn.btg.ads.AdManager.adLoadNotify('"+
this.id+"');\" onload=\"mtvn.btg.ads.AdManager.adLoadNotify('"+this.id+'\');" src="'+this.getUrl()+'"></scr'+"ipt>";if(this.gv.IS_TOP_ACCESSIBLE&&this.btgStr.queryStringToObject(top.location.search).mockupMode=="true")b=this.btgStr.mockItUp(b);if(this.isStr(a)&&this.isStr(a.reloadableAdId))return b;else if(typeof exposeTestFunctionNames=="undefined")document.write(b)}}};mtvn.btg.ads.doubleclick.InternationalDc=mtvn.btg.util.Class.inheritFrom(mtvn.btg.ads.doubleclick.DoubleClick,mtvn.btg.ads.doubleclick.InternationalDc);
mtvn.btg.ads.freewheel.FreeWheelAd=function(a){this.btgU=mtvn.btg.util;this.btgStr=this.btgU.String;this.isStr=this.btgStr.isDefined;this.btgAds=mtvn.btg.ads;this.btgDc=this.btgAds.doubleclick;this.btgAdMgr=this.btgAds.AdManager;this.config=a;this.type="FreeWheelAd";this.fwType="DART";this.slotId="fwph_";this.reloadable=false;this.reloadTime=3E4;this.needUniqueOrd=this.isGroupedByOrd=false};
mtvn.btg.ads.freewheel.FreeWheelAd.prototype={placeAd:function(a){if(this.fwType=="MRM"||this.fwType=="COV"){this.realWidth=this.realSize.substr(0,this.realSize.indexOf("x"));this.realHeight=this.realSize.substr(this.realSize.indexOf("x")+1,this.realSize.length);a="slid=";a+=this.slotId;a+="&ptgt=s&envp=g_iframe_js&w=";a+=this.realWidth;a+="&h=";a+=this.realHeight;var b="";b+='<span id="'+this.slotId+'" class="_fwph">';b+='<form id="_fw_form_'+this.slotId+'" style="display:none;">';b+='<input type="hidden" name="_fw_input_'+
this.slotId+'" id="_fw_input_'+this.slotId+'" value="'+a+'" />';b+="</form>";b+='<span id="_fw_container_'+this.slotId+'" class="_fwac">';b+='<span id="fwCustom_'+this.slotId+'" name="fwCustom_'+this.slotId+'" class="fwCustomAll" style="width:'+this.realWidth+"px;height:"+this.realHeight+'px;display:block;"></span></span>';b+="</span>";if(mtvn.btg.globalvars.IS_TOP_ACCESSIBLE&&this.btgStr.queryStringToObject(top.location.search).mockupMode=="true")b=this.btgStr.mockItUp(b);document.write(b);this.btgAds.freewheel.FreeWheelAdInterface.fwAds[this.slotId]=
this;this.btgU.DOM.Events.addListener(window,"load",this.timerToPlayAd)}else if(this.fwType=="DART"){this.dcAd=new this.btgDc.DomesticDc(this.config.DoubleClick);this.dcAd.init(this.initData);this.dcAd.placeAd(a)}else new this.btgU.Alert("FreeWheel ad type not recognized.")},timerToPlayAd:function(){setTimeout(function(){var a=false,b;for(b in mtvn.btg.reporting.player.MediaPlayer.players){a=true;break}if(a)setTimeout(mtvn.btg.ads.freewheel.FreeWheelAdInterface.forcedPlayAd,mtvn.btg.globalvars.FORCE_AD_WAIT_TIME.PLAYER_LOADED);
else setTimeout(mtvn.btg.ads.freewheel.FreeWheelAdInterface.forcedPlayAd,mtvn.btg.globalvars.FORCE_AD_WAIT_TIME.PLAYER_FAILED)},mtvn.btg.globalvars.FORCE_AD_WAIT_TIME.PLAYER_LOAD_WAIT_TIME)},setContentType:function(){},init:function(a){this.initData=a;if(this.isStr(a.size))this.size=a.size;else{this.size="[ERROR: Size Not Defined!]";new this.btgU.Alert("FreeWheel ad size not defined.")}if(this.isStr(a.realSize))this.realSize=a.realSize;else this.realSize=this.size;this.slotId+=a.tile;if(this.isStr(this.config.FreeWheel.type))this.fwType=
this.config.FreeWheel.type.toUpperCase();if(this.config.FreeWheel.reloadable||a.isReloadable){this.reloadable=true;this.reloadTime=3E4;if(this.config.FreeWheel.reloadTime&&!isNaN(parseInt(this.config.FreeWheel.reloadTime))&&parseInt(this.config.FreeWheel.reloadTime)>=1E4){this.reloadTime=parseInt(this.config.FreeWheel.reloadTime);this.isGroupedByOrd=true}if(a.reloadInterval&&!isNaN(parseInt(a.reloadInterval))&&parseInt(a.reloadInterval)>=1E4){this.reloadTime=parseInt(a.reloadInterval);if(this.isGroupedByOrd===
true)this.isGroupedByOrd=false;this.needUniqueOrd=true}if(this.isGroupedByOrd===true){this.btgAdMgr.groupedReloadableAdsTotal++;this.btgAdMgr.groupedReloadableAdsCounter++}}},reload:function(){var a="_fw_frame_"+this.slotId,b=document.getElementById(a),c=document.getElementById("fwCustom_"+this.slotId);if(!this.btgU.Object.isDefined(this.dcAd)){this.dcAd=new this.btgDc.DomesticDc(this.config.DoubleClick);this.dcAd.init(this.initData)}if(!this.isStr(this.dcAd.id))this.dcAd.setId("ad"+this.dcAd.tile);
this.dcAd.needUniqueOrd=this.needUniqueOrd;if(b!=null)this.btgAdMgr.setAdReloadOrdByGroup(this.dcAd);this.dcAd.setContentType("adi");a="<ifr"+'ame allowtransparency="true" style="display:inline;width:'+this.realWidth+"px;height:"+this.realHeight+'px;border:0px;z-index:99;border-width:0px;" onload="mtvn.btg.ads.AdManager.adLoadNotify(\''+this.dcAd.id+'\');" id="'+a+'" name="'+a+'" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" width="'+this.realWidth+'" height="'+this.realHeight+'" src="'+
this.dcAd.getUrl()+'"></ifr'+"ame>";if(b==null&&c!=null){c.style.border="0px";c.style.backgroundColor="transparent";try{c.innerHTML=a}catch(d){}}else if(b!=null)if(b.parentElement)try{b.parentElement.innerHTML=a}catch(e){}else if(b.parentNode)try{b.parentNode.innerHTML=a}catch(f){}},startReloadTimer:function(){if(this.reloadable){var a=this;if(this.reloadTimer){clearInterval(this.reloadTimer);this.reloadTimer=null}this.reloadTimer=setInterval(function(){a.reload()},this.reloadTime)}}};
mtvn.btg.ads.freewheel.FreeWheelAdInterface=new function(){var a=mtvn.btg.util,b=a.String;this.fwAds=[];this.getFallbackDisplayHTML=function(a,d){for(var e=b.isDefined,f="",g=this.fwAds[a],h=d.split(","),j="",k=0,l=h.length;k<l;k++)if(e(h[k]))j+=";!category="+h[k];g.dcAd=new mtvn.btg.ads.doubleclick.DomesticDc(g.config.DoubleClick);if(e(g.initData.keyValues))g.initData.keyValues+=j;else g.initData.keyValues=j;g.initData.contentType="adj";g.dcAd.init(g.initData);if(g.reloadable)g.startReloadTimer();
if(!e(g.dcAd.id))g.dcAd.setId("ad"+g.dcAd.tile);f+="<scr"+'ipt type="text/javascript"  id="'+g.dcAd.id+"\" onreadystatechange=\"if(this.readyState=='complete')parent.mtvn.btg.ads.AdManager.adLoadNotify('"+g.dcAd.id+"');\" onload=\"parent.mtvn.btg.ads.AdManager.adLoadNotify('"+g.dcAd.id+'\');" src="';f+=g.dcAd.getUrl();f+='"></scr'+"ipt>";return f};this.forcedPlayAd=function(){var c=mtvn.btg.ads.freewheel.FreeWheelAdInterface,d=mtvn.btg.globalvars,e=false,f=false,g,h=d.IS_LIVE_ENV;if(d.IS_TOP_ACCESSIBLE)if(b.queryStringToObject(top.location.search).fwFailSafe==
"true")g=true;else if(b.queryStringToObject(top.location.search).fwFailSafe=="false")g=false;if(g==true){e=true;if(h==true)f=true}else if(g==false)e=false;else if(h==true)f=e=true;if(d.IS_TOP_ACCESSIBLE&&b.queryStringToObject(top.location.search).mockupMode=="true")f=e=false;if(e==true){for(i in c.fwAds)if(document.getElementById("_fw_frame_"+i)==null){if(c.fwAds[i].reloadable)c.fwAds[i].startReloadTimer();c.fwAds[i].reload()}else f=false;if(f==true)new a.Alert("Freewheel failsafe method used.",1)}}};
mtvn.btg.ads.FreeWheelAdInterface=mtvn.btg.ads.freewheel.FreeWheelAdInterface;mtvn.btg.ads.games.GameDc=mtvn.btg.util.Class.inheritFrom(mtvn.btg.ads.doubleclick.DomesticDc);mtvn.btg.ads.games.GameDc.prototype.type="GameDc";
mtvn.btg.ads.games.GameDc.prototype.formatUrl=function(a){var b="",b=a.dartSite+"/"+a.zone+";";if(b.length>64)a.zone=a.zone.substring(0,a.zone.length-(b.length-64));b=[[a.protocol+a.server,a.contentType,a.dartSite,a.zone].join("/")];if(this.isStr(a.keyValues))b.push(a.keyValues);if(a.ord>0)b.push("ord="+a.ord+"?");return b=b.join(";")};
mtvn.btg.ads.games.GameDc.prototype.formatKeyValues=function(){var a=this.getAdditionalKeyValues();if(this.isStr(a))this.keyValues+=";"+a;if(this.keyValues.indexOf("mtype=")==-1)this.keyValues+=";mtype="+this.mediaType;this.keyValues=this.formatReserved();this.keyValues+=";dcmt=text/xml";if(this.isStr(this.size)&&this.keyValues.indexOf("sz=")==-1)this.keyValues+=";sz="+this.size;if(this.tile>=0&&this.keyValues.indexOf("tile=")==-1)this.keyValues+=";tile="+this.tile;a=this.btgU.Cookie.read("qcDemo");
if((typeof this.config.Ad!="undefined"&&typeof this.config.Ad.Quantcast!="undefined"&&typeof this.config.Ad.Quantcast.enabled=="boolean"?this.config.Ad.Quantcast.enabled:true)&&this.isStr(a)&&this.keyValues.indexOf("demo=D")==-1)this.keyValues+=";"+unescape(a);if(this.exclusions.length>0)this.keyValues+=";"+this.getExclusions();if(this.gv.IS_TOP_ACCESSIBLE){a=this.btgStr.queryStringToObject(top.location.search.toLowerCase()).testmode;if(this.isStr(a))this.keyValues+=";testmode="+a}return this.keyValues=
this.keyValues.replace(/^;+|;+$/g,"")};
mtvn.btg.ads.games.GameDc.prototype.formatZone=function(){var a="",b=this.getSections();if(this.isObj(this.config.Game)&&this.isObj(this.config.Game.metadata)){if(this.isStr(this.config.Game.metadata.ageGroup)&&this.config.Game.metadata.ageGroup.toLowerCase()=="mature")this.addExclusionCategory("mature");if(this.isStr(this.config.Game.metadata.franchise))this.addExclusionCategory(this.config.Game.metadata.franchise);var c=false;if(this.config.Game.metadata.type&&this.config.Game.metadata.type.toLowerCase()==
"viral"){this.setDartSite(this.dartSite+".vr");this.addExclusionCategory("vir");this.addKeyValues("pform=vir");c=true}if(this.config.Game.metadata.type&&this.config.Game.metadata.type.toLowerCase()=="syndicated"||c===true){if(c===false)this.setDartSite(this.dartSite+".sy");this.addExclusionCategory("synd");this.addKeyValues("pform=synd");if(c===false&&this.isStr(this.getKeyValue("partner=")))a+=this.getKeyValue("partner=")+"/"}}if(this.isObj(this.config.Ad)&&this.isObj(this.config.Ad.DoubleClick))if(this.isStr(this.config.Ad.DoubleClick.keyValues))this.addKeyValues(this.config.Ad.DoubleClick.keyValues);
this.addExclusionCategory("clip");this.addExclusionCategory("gamevideo");a+="c/gv/";a=a.replace(/^\d/,"_"+a.match(/^\d/,"_"));return a+b};
mtvn.btg.ads.games.GameAdManager=new function(){var a=mtvn.btg.ads.games,b=mtvn.btg.util.Object.isDefined,c=mtvn.btg.util.String.isDefined,d=false,e,f,g={};this.setSectionsData=function(){if(b(f.Game)&&b(f.Game.metadata)){g.sections="";g.sections+=f.Game.metadata.revenueSplit&&f.Game.metadata.revenueSplit.toString()=="true"?"/pay":"";if(c(f.Game.metadata.gameGenre)&&f.Game.metadata.gameGenre.toUpperCase()!="NA")g.sections+="/"+f.Game.metadata.gameGenre;else g.sections+=c(f.Game.metadata.gameType)&&
f.Game.metadata.gameType.toUpperCase()!="NA"?"/"+f.Game.metadata.gameType:"/noG";g.sections+=c(f.Game.metadata.partner)&&f.Game.metadata.partner.toUpperCase()!="NA"?"/"+f.Game.metadata.partner:"/noP";g.sections+=c(f.Game.metadata.franchise)&&f.Game.metadata.franchise.toUpperCase()!="NA"?"/"+f.Game.metadata.franchise:"/noF";if(c(f.Game.metadata.gameType)&&f.Game.metadata.gameType.toUpperCase()!="NA")g.sections+="/"+f.Game.metadata.gameType;else g.sections+=c(f.Game.metadata.gameGenre)&&f.Game.metadata.gameGenre.toUpperCase()!=
"NA"?"/"+f.Game.metadata.gameGenre:"/noGT";if(c(f.Game.metadata.gameName)&&f.Game.metadata.gameName.toUpperCase()!="NA")g.sections+="/"+f.Game.metadata.gameName;else g.sections+=c(f.Game.metadata.gameTitle)&&f.Game.metadata.gameTitle.toUpperCase()!="NA"?"/"+f.Game.metadata.gameTitle:"/noGN";g.sections+=c(f.Game.metadata.ageGroup)&&f.Game.metadata.ageGroup.toLowerCase()=="under13"?"/"+f.Game.metadata.ageGroup.toLowerCase():""}};this.setContentTypeData=function(){g.contentType="pfadx"};this.setOrdData=
function(){g.ord=mtvn.btg.util.Math.random(1E17,1E18)};this.setTileData=function(){g.tile=1};this.setMediaTypeData=function(){g.mediaType="gamevideo"};this.setDartData=function(){var a=mtvn.btg.config;g.dartSite=c(a.AdSettings.DoubleClick.dartSite)?a.AdSettings.DoubleClick.dartSite:"[ERROR: DARTSITE in config not defined!]"};this.setSizeData=function(){if(b(f.Ad)){g.size=f.Ad.width?f.Ad.width:"640";g.size+="x";g.size+=f.Ad.height?f.Ad.height:"480"}};this.setKeyValuesData=function(){g.keyValues="";
g.keyValues+=";partner=";g.keyValues+=c(f.Game.metadata.partner)?f.Game.metadata.partner:"";g.keyValues+=";franchise=";g.keyValues+=c(f.Game.metadata.franchise)?f.Game.metadata.franchise:"";g.keyValues+=";mode=clip";g.keyValues+=";genre=";g.keyValues+=c(f.Game.metadata.gameGenre)?f.Game.metadata.gameGenre:"";g.keyValues+=";game_type=";g.keyValues+=c(f.Game.metadata.gameType)?f.Game.metadata.gameType:"";g.keyValues+=";game_id=";g.keyValues+=c(f.Game.metadata.gameId)?f.Game.metadata.gameId:"";g.keyValues+=
";game_name=";g.keyValues+=c(f.Game.metadata.gameName)?f.Game.metadata.gameName:""};this.getAd=function(){e=new a.GameDc(f);this.setContentTypeData();this.setDartData();this.setSectionsData();this.setSizeData();this.setMediaTypeData();this.setTileData();this.setKeyValuesData();this.setOrdData();e.init(g);return e};this.getAdUrl=function(){return this.getAd().getUrl()};this.init=function(){f=com.mtvnet.games.GameSettings;if(f.Ad.DoubleClick.enabled&&f.Ad.DoubleClick.enabled.toString()=="true")d=true;
if(mtvn.btg.globalvars.IS_TOP_ACCESSIBLE&&mtvn.btg.util.String.queryStringToObject(top.location.search).mockupMode=="true")document.write("<p>"+this.getAdUrl()+"</p>");if(d)f.Ad.DoubleClick.url=this.getAdUrl();a.GameAdLoader.init(f)};this.loadGame=function(b){if(b=="load")a.GameAdLoader.swapGame()}};
mtvn.btg.ads.games.GameAdLoader={isPreCache:false,basePath:null,btgC_read:mtvn.btg.util.Cookie.read,btgC_set:mtvn.btg.util.Cookie.set,config:{},parentDiv:null,init:function(a){this.config=a;this.parentDiv=a.parentDiv;a=this.btgC_read("adPlayCounter");if(!a)this.btgC_set("adPlayCounter",0);if(a>=this.config.Ad.gamePerAd&&!this.config.Ad.disableAds){a=0;this.embedAdLoader()}else{a++;this.embedGame()}this.btgC_set("adPlayCounter",a)},noFlashContent:function(a){this.parentDiv.innerHTML='<div id="'+(a?
a:"adLoader_div")+'"><p><a href="http://www.adobe.com/go/getflashplayer">Download the free Flash Player now!</a><br/><a href="http://www.adobe.com/go/getflashplayer"><img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" /> </a></p></div>'},embedAdLoader:function(){this.noFlashContent("adLoader_div");this.config.Game.metadata.gameSWF=this.config.Game.metadata.gameURL;this.embedFlash(this.config.adLoaderURL,"adLoader_div",this.config.Ad.width,
this.config.Ad.height,true);if(typeof this.config.Game.doPrecache=="boolean"&&this.config.Game.doPrecache)this.embedPreCache()},embedPreCache:function(){this.isPreCache=true;var a=this.config.Game.metadata.gameURL;this.basePath=a!=""?a.replace(/http:\/\//,"").split("/")[0]:location.host;a=document.createElement("div");a.id="precache_div";document.body.appendChild(a);this.embedFlash("http://btg.mtvnservices.com/demo/games/swf/GamePreloader.swf?gameurl="+this.config.Game.metadata.gameURL,"precache_div",
1,1,false,true)},embedGame:function(){this.isPreCache=false;var a=this.config.Game.metadata.gameURL,b=a.split("?");if(mtvn.btg.util.String.isDefined(com.mtvnet.games.GameSettings.Game.gameEmbedTag)){this.noFlashContent("game_div");document.getElementById("game_div").innerHTML=com.mtvnet.games.GameSettings.Game.gameEmbedTag}else if(a.match(/\.swf(\?|#)/gi)||a.match(/(.swf)$/gi)){this.noFlashContent("game_div");if(b[1]&&b[1].match(/(useqsflashvar=true)/gi))this.embedFlash(a,"game_div",this.config.Game.width,
this.config.Game.height,"",true);else this.embedFlash(b[0],"game_div",this.config.Game.width,this.config.Game.height,"",b[1]?b[1]:false)}else this.parentDiv.innerHTML='<div id="game_div"><iframe src="'+this.config.Game.metadata.gameURL+'" height="'+this.config.Game.height+'"width="'+this.config.Game.width+'" scrolling="no" frameborder="0"></iframe></div>'},embedFlash:function(a,b,c,d,e,f){var g=mtvn.btg.util,h={},j={allowfullscreen:"true",allowscriptaccess:"always",wmode:"transparent"};if(e){h.allowscriptaccess=
"always";h.bgcolor="black";h.sWidth=c;h.sHeight=d;h.timeDisplayEnabled=this.config.Ad.timeDisplayEnabled;h.guiEnabled=this.config.Ad.guiEnabled?this.config.Ad.guiEnabled:true;h.language=this.config.Ad.language;h.colorTint=this.config.Ad.colorTint;h.doubleClickEnabled=this.config.Ad.DoubleClick.enabled;h.adURL=this.config.Ad.DoubleClick.url;h.freeWheelEnabled=this.config.Ad.FreeWheel.enabled;h.networkId=this.config.Ad.FreeWheel.networkId;h.assetId=this.config.Ad.FreeWheel.assetId;h.siteSection=this.config.Ad.FreeWheel.siteSection;
h.isLiveEnvironment=this.config.Ad.FreeWheel.isLiveEnvironment;h.quantcastEnabled=this.config.Ad.Quantcast.enabled;h.quantCastID=this.config.Ad.Quantcast.id;if(typeof h.assetId=="undefined")new g.Alert("flashVars.assetId missing in mtvn.btg.ads.games.GameAdLoader.embedFlash.");if(typeof h.siteSection=="undefined")new g.Alert("flashVars.siteSection missing in mtvn.btg.ads.games.GameAdLoader.embedFlash.");if(this.config.gameCompURL!="")h.gameCompURL=this.config.gameCompURL;if(this.config.Ad.params)for(var k in this.config.Ad.params)if(this.config.Ad.params[k]!=
"")j[k]=h[k]=this.config.Ad.params[k];if(this.config.Game.metadata)for(var l in this.config.Game.metadata)if(this.config.Game.metadata[l]!="")h[l]=this.config.Game.metadata[l]}else if(f){if(typeof f!="boolean"){f=f.split("&");k=0;for(var o=f.length;k<o;k++){l=f[k].split("=")[0];var t=f[k].split("=")[1];if(l)h[l]=t?t:""}}else h="";for(var v in this.config.Game.param)if(v)j[v]=this.config.Game.param[v]?this.config.Game.param[v]:""}if(g.swfobject.getFlashPlayerVersion().major<10)g.swfobject.showExpressInstall({data:"http://games.mtvnservices.com/swf/expressinstall/expressInstall.swf",
width:c,height:d},{},b,function(){});else if(g.String.isDefined(com.mtvnet.games.GameSettings.Game.gameEmbedTag)&&b!="adLoader_div")document.getElementById(b).innerHTML=com.mtvnet.games.GameSettings.Game.gameEmbedTag;else g.swfobject.embedSWF(a,b,c,d,"10.0.0","http://games.mtvnservices.com/swf/expressinstall/expressInstall.swf",h,j,{style:"background:#000000;",name:b,base:this.basePath},e?null:this.gameEmbeded)},gameEmbeded:function(a){if(a.success)mtvn.btg.Controller.loadGame("embed")},swapGame:function(){if(document.getElementById("adLoader_div"))document.getElementById("adLoader_div").style.display=
"none";this.embedGame()},isTimeSpentEnabled:function(){return typeof this.config.Ad.timePerAd!="boolean"&&!isNaN(this.config.Ad.timePerAd)&&parseInt(this.config.Ad.timePerAd,10)>0},setTimeSpent:function(a){if(a){this.btgC_set("mtvn_btg_GTS",0);return}if(!this.isTimeSpentEnabled())return;a=this.btgC_read("mtvn_btg_GTS");if(a==null||a==0)this.btgC_set("mtvn_btg_GTS",5);else this.btgC_set("mtvn_btg_GTS",parseInt(a,10)+5)},isTimeForAd:function(){if(!this.isTimeSpentEnabled())return false;var a=this.btgC_read("mtvn_btg_GTS");
if(a!=null&&parseInt(a,10)!=0){a=parseInt(a,10);return a>parseInt(this.config.Ad.timePerAd,10)}return false}};var com=typeof com==="object"?com:{};com.mtvi=typeof com.mtvi==="object"?com.mtvi:{};com.mtvi.reporting=typeof com.mtvi.reporting==="object"?com.mtvi.reporting:{};com.mtvi.ads=typeof com.mtvi.ads==="object"?com.mtvi.ads:{};com.mtvi.config=typeof com.mtvi.config==="object"?com.mtvi.config:{};com.mtvi.util=typeof com.mtvi.util==="object"?com.mtvi.util:{};
com.mtvi.util.IFrameReloader=typeof com.mtvi.util.IFrameReloader==="object"?com.mtvi.util.IFrameReloader:{};com.mtvi.metadata=typeof com.mtvi.metadata==="object"?com.mtvi.metadata:{};
com.mtvi.reporting.Controller=new function(){this.initalized=false;this.initialize=function(){mtvn.btg.Controller.init();this.initalized=true};this.sendCall=function(a){mtvn.btg.Controller.sendPageCall(a)};this.sendLinkEvent=function(a){mtvn.btg.Controller.sendLinkEvent(a)};this.registerLinks=function(){return true};this.setConfig=function(a){for(var b in a)mtvn.btg.config.ReportSettings.Omniture[b]=a[b];return true};this.addRegisterLinks=function(){return true};this.setDefaultData=function(a,b){if(mtvn.btg.util.String.isDefined(a)){mtvn.btg.config.ReportSettings.Omniture[a]=
mtvn.btg.util.String.isDefined(b)?b:"";return true}else return false}};
com.mtvi.reporting.Dispatcher=function(){this.setAccountVars=function(a){try{this.setAttribute("un",a.name);this.setAttribute("dynamicAccountSelection",a.dynamic);this.setAttribute("dynamicAccountList",a.list);this.setAttribute("linkInternalFilters",a.filters);this.setAttribute("charSet",a.chartset);for(var b in a)this.setAttribute(b,a[b])}catch(c){}};this.getValOnce=function(){return true};this.sendCall=function(a){a=mtvn.btg.util.Object.isDefined(a)?a:mtvn.btg.util.Object.isDefined(com.mtvi.config.SectionSetup)?
com.mtvi.config.SectionSetup:{};if(!com.mtvi.reporting.Controller.initalized){mtvn.btg.Controller.init();com.mtvi.reporting.Controller.initalized=true}mtvn.btg.Controller.sendPageCall(a)};this.send=function(a){this.sendCall(a)};this.sendLinkEvent=function(a){for(var b=com.mtvi.reporting.Controller.initalized?mtvn.btg.reporting.omniture.Hcode:mtvn.btg.config.ReportSettings.Omniture,c=1;c<=50;c++){b["eVars"+c]="";b["prop"+c]="";if(c<6)b["hier"+c]=""}b.pageName="";b.channel="";if(!com.mtvi.reporting.Controller.initalized){mtvn.btg.Controller.init();
com.mtvi.reporting.Controller.initalized=true}mtvn.btg.Controller.sendLinkEvent(a)};this.registerLinks=function(){return true};this.setAttribute=function(a,b){if(mtvn.btg.util.String.isDefined(a)){(com.mtvi.reporting.Controller.initalized?mtvn.btg.reporting.omniture.Hcode:mtvn.btg.config.ReportSettings.Omniture)[a]=mtvn.btg.util.String.isDefined(b)?b:"";return true}else return false};this.getAttribute=function(a){return(com.mtvi.reporting.Controller.initalized?mtvn.btg.reporting.omniture.Hcode:mtvn.btg.config.ReportSettings.Omniture)[a]};
this.setValues=function(a){for(var b in a)this.setAttribute(b,a[b]);return true};this.setDefaultData=function(){};this.clearProps=function(){try{for(var a=1;a<=50;a++)this.setAttribute("prop"+a,"")}catch(b){}};this.clearAllVars=function(){var a=com.mtvi.reporting.Controller.initalized?mtvn.btg.reporting.omniture.Hcode:mtvn.btg.config.ReportSettings.Omniture;try{for(var b=1;b<=50;b++)a["prop"+b]="";for(b=1;b<=50;b++)a["eVars"+b]="";for(b=1;b<=5;b++)a["hier"+b]="";a.pageName="";a.channel=""}catch(c){}}};
com.mtvi.reporting.MediaPlayer={addPlayer:function(a){return mtvn.btg.reporting.player.MediaPlayer.addPlayer(a).id}};mtvn.btg.reporting.MediaPlayer={setEndSlateClick:mtvn.btg.reporting.player.MediaPlayer.setEndSlateClick,getEndSlateClick:mtvn.btg.reporting.player.MediaPlayer.getEndSlateClick};
com.mtvi.ads.AdManager=new function(){var a=3E5;this.setDartSite=function(a){try{if(mtvn.btg.config.AdSettings.DoubleClick.enabled&&!mtvn.btg.util.String.isDefined(mtvn.btg.config.AdSettings.DoubleClick.dartSite))mtvn.btg.config.AdSettings.DoubleClick.dartSite=a;else if(mtvn.btg.config.AdSettings.International.enabled)mtvn.btg.config.AdSettings.International.dartSite=a}catch(c){}};this.setPositionThreshold=function(a){try{if(mtvn.btg.config.AdSettings.DoubleClick.enabled&&!mtvn.btg.util.String.isDefined(mtvn.btg.config.AdSettings.DoubleClick.positionThreshold))mtvn.btg.config.AdSettings.DoubleClick.positionThreshold=
a;else if(mtvn.btg.config.AdSettings.International.enabled)mtvn.btg.config.AdSettings.International.positionThreshold=a}catch(c){}};this.setSiteName=function(a){try{if(mtvn.btg.config.AdSettings.DoubleClick.enabled&&!mtvn.btg.util.String.isDefined(mtvn.btg.config.AdSettings.DoubleClick.siteName))mtvn.btg.config.AdSettings.DoubleClick.siteName=a;else if(mtvn.btg.config.AdSettings.International.enabled)mtvn.btg.config.AdSettings.International.siteName=a}catch(c){}};this.setDefaultSections=function(a){if(mtvn.btg.util.String.isDefined(a))mtvn.btg.config.AdSettings.DoubleClick.sections=
a};this.setKeyValues=function(a){try{if(mtvn.btg.config.AdSettings.DoubleClick.enabled&&!mtvn.btg.util.String.isDefined(mtvn.btg.config.AdSettings.DoubleClick.keyValues))mtvn.btg.config.AdSettings.DoubleClick.keyValues=a;else if(mtvn.btg.config.AdSettings.International.enabled)mtvn.btg.config.AdSettings.International.keyValues=a}catch(c){}};this.getFormattedSections=function(a){var c=a;try{var c=a=="/"?a:mtvn.btg.util.String.charTrim(a,"/"),d=a.length,e="index";if(mtvn.btg.util.Object.isDefined(com.mtvi.reporting.Account)&&
mtvn.btg.util.String.isDefined(com.mtvi.reporting.Account.defaultIndexFileName))e=com.mtvi.reporting.Account.defaultIndexFileName;if(mtvn.btg.util.Object.isDefined(mtvn.btg.config.AdSettings)&&mtvn.btg.util.String.isDefined(mtvn.btg.config.AdSettings.defaultIndexFileName))e=mtvn.btg.config.AdSettings.defaultIndexFileName;for(var e=mtvn.btg.util.String.stripFileExtension(e),f=["/",e,"home/"+e],g=0,h=f.length;g<h;g++)if(a.indexOf(f[g])==0&&d==f[g].length){c=a.replace(f[g],"_hp");break}if(c=="")c="_hp";
var j=mtvn.btg.util.String.stripFileExtension(c).split("/");if(j.length==2)if(j[1]==e)c=mtvn.btg.util.String.stripFileExtension(c).replace(e,"_mn")}catch(k){}return c};this.placeAd=function(a){try{if(typeof mtvn.btg.globalvars.IS_CODA_ADS_USED!="undefined")mtvn.btg.globalvars.IS_CODA_ADS_USED="Bridge methods";if(!com.mtvi.reporting.Controller.initalized){mtvn.btg.Controller.init();com.mtvi.reporting.Controller.initalized=true}if(!mtvn.btg.util.String.isDefined(a.sections))if(mtvn.btg.util.Object.isDefined(mtvn.btg.config.AdSettings.DoubleClick)&&
mtvn.btg.util.String.isDefined(mtvn.btg.config.AdSettings.DoubleClick.sections))a.sections=mtvn.btg.config.AdSettings.DoubleClick.sections;else a.sections=mtvn.btg.util.Sections.getAdSections();if(mtvn.btg.util.Object.isDefined(mtvn.btg.config.AdSettings.International)&&mtvn.btg.config.AdSettings.International.enabled&&mtvn.btg.util.String.isDefined(a)&&!mtvn.btg.util.String.isDefined(a.adType))a.adType="InternationalAd";a.sections=this.getFormattedSections(a.sections);mtvn.btg.ads.AdManager.placeAd(a)}catch(c){}};
this.setServer=function(a){try{if(mtvn.btg.config.AdSettings.DoubleClick.enabled&&!mtvn.btg.util.String.isDefined(mtvn.btg.config.AdSettings.DoubleClick.server))mtvn.btg.config.AdSettings.DoubleClick.server=a;else if(mtvn.btg.config.AdSettings.International.enabled)mtvn.btg.config.AdSettings.International.server=a}catch(c){}};this.setSsl=function(){try{if(mtvn.btg.config.AdSettings.DoubleClick.enabled&&!mtvn.btg.util.String.isDefined(mtvn.btg.config.AdSettings.DoubleClick.ssl))mtvn.btg.config.AdSettings.DoubleClick.ssl=
true;else if(mtvn.btg.config.AdSettings.International.enabled)mtvn.btg.config.AdSettings.International.ssl=true}catch(a){}};this.setDefaultContentType=function(a){try{if(mtvn.btg.config.AdSettings.DoubleClick.enabled&&!mtvn.btg.util.String.isDefined(mtvn.btg.config.AdSettings.DoubleClick.contentType))mtvn.btg.config.AdSettings.DoubleClick.contentType=a;else if(mtvn.btg.config.AdSettings.International.enabled)mtvn.btg.config.AdSettings.International.contentType=a}catch(c){}};this.setZoneOverride=function(a){try{if(mtvn.btg.config.AdSettings.DoubleClick.enabled&&
!mtvn.btg.util.String.isDefined(mtvn.btg.config.AdSettings.DoubleClick.zoneOverride))mtvn.btg.config.AdSettings.DoubleClick.zoneOverride=a;else if(mtvn.btg.config.AdSettings.International.enabled)mtvn.btg.config.AdSettings.International.zoneOverride=a}catch(c){}};this.IFrameAds=[];this.placeIFrameAd=function(a){try{if(typeof mtvn.btg.globalvars.IS_CODA_ADS_USED!="undefined")mtvn.btg.globalvars.IS_CODA_ADS_USED="Bridge methods";var c=this.getAd(a),d=new com.mtvi.util.IFrameReloader(a.containerId);
d.src=c.getUrl();d.width=c.getWidth();d.height=c.getHeight();d.write();if(a.reloadAd)this.IFrameAds.push(d)}catch(e){}};this.setReloadInterval=function(b){try{a=parseInt(b);mtvn.btg.util.DOM.Events.addListener(window,"load",function(){try{window.setInterval("com.mtvi.ads.AdManager.reloadIFrameAds()",a)}catch(b){}})}catch(c){}};this.setAdClass=function(){};this.getAdById=function(){return null};this.getDartSite=function(){var a=null;try{if(mtvn.btg.util.String.isDefined(mtvn.btg.ads.AdManager.data.dartSite))a=
mtvn.btg.ads.AdManager.data.dartSite}catch(c){try{a=mtvn.btg.config.AdSettings.DoubleClick.dartSite}catch(d){}}return a};this.getAd=function(a){var c=null;try{c=mtvn.btg.ads.AdManager.getAd(a)}catch(d){}return c};this.getReloadInterval=function(){try{return a}finally{}};this.reloadIFrameAds=function(){for(var a=0,c=this.IFrameAds.length;a<c;a++)this.reloadIFrameAd(a)};this.reloadIFrameAd=function(a){var c=this.IFrameAds[a].src;if(a==0)ord=Math.random(1E17,1E18);if(c.indexOf("ord=")>-1)c=c.split("ord=")[0]+
"ord="+ord+"?";this.IFrameAds[a].src=c;this.IFrameAds[a].reload()};this.setZone=function(){};this.getNewAd=function(){};this.populateNamesValuesObj=function(){}};com.mtvi.ads.DoubleClickAd=function(){};
com.mtvi.ads.DoubleClickAd.prototype={setZoneOverride:function(){},setDartSite:function(){},setOrd:function(){},placeAd:function(){},getXml:function(){return null},getJson:function(){return null},getUrl:function(){return null},getSections:function(){return null},setSize:function(){},setSections:function(){},setContentType:function(){},setKeyValues:function(){},setTile:function(){},setPositionThreshold:function(){},setServer:function(){},setSsl:function(){},setMediaType:function(){},setPosition:function(){},
setPartner:function(){},setId:function(){}};com.mtvi.reporting.FluxWidgeted={setVars:function(){return true}};com.mtvi.reporting.GoogleAnalytics={makeCall:function(){return true}};com.mtvi.reporting.QuantCast=new function(){this.sendQuantCastCall=function(){return true}};com.mtvi.reporting.Search={setVars:function(){return true},sendLinkEvent:function(){return true},setConversion:function(){return true},setSynConversion:function(){return true}};
com.mtvi.util={toObject:function(a,b){for(var c=a.split(b?b:","),d={},e=0,f=c.length;e<f;e++){var g=c[e].split("=");d[g[0]]=g[1]}return d},queryStringToHash:function(a){return mtvn.btg.util.String.queryStringToObject(a)},isDefined:function(a){return mtvn.btg.util.String.isDefined(a)},readCookie:function(a){return mtvn.btg.util.Cookie.read(a)},deleteCookie:function(a){mtvn.btg.util.Cookie.remove(a)},crawlNodes:function(a){return mtvn.btg.util.Window.getNodeLinkName(a)},addOnloadEvent:function(a){return mtvn.btg.util.DOM.Events.addListener(window,
"load",a)}};com.mtvi.reporting.ComScore=new function(){this.sendComScoreCall=function(){}};
com.mtvi.metadata={getDefaultPageName:function(){var a="";try{a=mtvn.btg.config.ReportSettings.defaultPageName;if(a.lastIndexOf("/")==a.length-1)if(mtvn.btg.util.String.isDefined(mtvn.btg.config.ReportSettings.indexFileName))a+=mtvn.btg.config.ReportSettings.indexFileName;else a=a!="/"?mtvn.btg.util.String.charRtrim(a,"/"):a;if(a!="/")a=mtvn.btg.util.String.charRtrim(a,"/");if(a!="/"&&a.indexOf("/")==0)a=a.substring(1);if(a.indexOf("/")==-1&&a.indexOf(mtvn.btg.config.ReportSettings.indexFileName)!=
-1)a="home/"+a}catch(b){return null}return a},getDefaultHierarchy:function(){try{var a=this.getDefaultPageName();if(a=="/")a=""}catch(b){return null}return a},getDefaultChannel:function(){try{var a=this.getDefaultPageName();if(a!="/")a=a.split("/")[0]}catch(b){return null}return a}};com.mtvi.util.IFrameReloader=function(a){try{this.containerId=a;this.id="IFrameReloader"+Math.random(0,1E6);this.lastLoaded=0}catch(b){}};
com.mtvi.util.IFrameReloader.prototype={reload:function(){try{var a=new Date,b=a.getMinutes()*6E4+a.getSeconds()*1E3;if(b-this.lastLoaded>5E3){var c=document.getElementById(this.containerId),d=document.createElement("iframe");d.id=this.id;d.width=this.width;d.height=this.height;d.style.width=this.width;d.style.height=this.height;d.src=this.src;d.frameBorder="0";d.scrolling="no";d.marginheight="0";d.marginwidth="0";d.style.margin="0";d.style.zIndex="99";d.style.border="0";d.style.borderWidth="0px";
c.removeChild(document.getElementById(this.id));c.appendChild(d)}this.lastLoaded=b}catch(e){}},write:function(){try{var a='<iframe id="'+this.id+'" src="'+this.src+'" width="'+this.width+'" height="'+this.height+'" frameborder="0" scrolling="no" marginheight="0" marginwidth="0"></iframe>';if(mtvn.btg.globalvars.IS_TOP_ACCESSIBLE&&mtvn.btg.util.String.queryStringToObject(top.location.search).mockupMode=="true")a=mtvn.btg.util.String.mockItUp(a);document.write(a)}catch(b){}}};
mtvn.btg.html5.ads.AdGuiControl=function(a){this.btgAL=mtvn.btg.html5.ads.AdLoader;this.player=a;this.view=document.createElement("div");this.view.id="adControlsView";this.view.innerHTML='<div id="adPlayPause" class="icon paused"></div>'+'<div id="adProgress">'+'<div id="adTimeDisplay">'+'<span id="adCurrentTimeDisplay">0:00</span> / <span id="adDurationDisplay">0:00</span>'+"</div>"+'<div id="adProgressBar">'+'<div id="adBufferFill"></div>'+'<div id="adProgressFill"></div>'+"</div>"+'<div id="adScrubber" class="icon scrubber"><div id="adScrubberTime" class="scrubberTimeClosed"></div></div>'+
"</div>"+'<div id="adFullPageButton" class="icon"></div>';this.player.view.appendChild(this.view);this.height=this.width=this.availableWidth=0;this.scrubbing=false;this.startX=0;this.visible=false};
mtvn.btg.html5.ads.AdGuiControl.prototype.init=function(){var a=this;window.addEventListener("resize",function(){a.setSize(window.innerWidth,window.innerHeight)});this.currentTimeDisplay=document.getElementById("adCurrentTimeDisplay");this.durationDisplay=document.getElementById("adDurationDisplay");this.progressBar=document.getElementById("adProgressBar");this.progressBar.controls=this;this.progressFill=document.getElementById("adProgressFill");this.bufferFill=document.getElementById("adBufferFill");
this.scrubber=document.getElementById("adScrubber");this.scrubberTime=document.getElementById("adScrubberTime");this.playPause=document.getElementById("adPlayPause");this.playPause.addEventListener("click",function(){a.player.togglePlayPause()});var b=this.btgAL.isTouchDevice()?"touchstart":"mousedown",c=this.btgAL.isTouchDevice()?"touchend":"mouseup";this.playPause.addEventListener(b,function(){a.setPlayingState(a.playing,true)});this.playPause.addEventListener(c,function(){a.setPlayingState(a.playing,
false)});this.setSize(window.innerWidth,window.innerHeight);this.updateUI();document.getElementById("adFullPageButton").addEventListener("click",function(){a.toggleFullScreen()})};mtvn.btg.html5.ads.AdGuiControl.prototype.stopHideCheck=function(){clearTimeout(mtvn.btg.html5.ads.AdLoader.control.hideInterval)};
mtvn.btg.html5.ads.AdGuiControl.prototype.hideCheck=function(){this.btgAL.control.stopHideCheck();mtvn.btg.html5.ads.AdLoader.control.hideInterval=setTimeout(function(){mtvn.btg.html5.ads.AdLoader.timeDispDiv.className="occupyFull";mtvn.btg.html5.ads.AdLoader.control.hide()},5E3)};mtvn.btg.html5.ads.AdGuiControl.prototype.setSize=function(a,b){this.width=a;this.height=b;this.view.style.width=a+"px";this.updateUI()};
mtvn.btg.html5.ads.AdGuiControl.prototype.setPlayingState=function(a,b){var c=this.btgAL.html5Player;this.playing=a;var d=b?"Over":"";if(!a){this.playPause.className="icon playing"+d;c.overlays.playIcon.hide()}else{this.playPause.className="icon paused"+d;c.overlays.playIcon.show()}};mtvn.btg.html5.ads.AdGuiControl.prototype.hide=function(){this.btgAL.control.visible=false;this.btgAL.control.view.className="adControlsClosed"};
mtvn.btg.html5.ads.AdGuiControl.prototype.show=function(){this.btgAL.control.visible=true;this.btgAL.control.view.className="adControlsOpen"};mtvn.btg.html5.ads.AdGuiControl.prototype.toggle=function(){if(!this.btgAL.control.visible)this.btgAL.control.show();else this.btgAL.control.hide()};
mtvn.btg.html5.ads.AdGuiControl.prototype.updateTime=function(){var a=this.btgAL.html5Player.video;this.btgAL.control.currentTimeDisplay.innerHTML=this.btgAL.formatDuration(isNaN(a.currentTime)?0:a.currentTime);this.btgAL.control.durationDisplay.innerHTML=this.btgAL.formatDuration(isNaN(a.duration)?0:a.duration);this.btgAL.control.scrubberTime.innerHTML=this.btgAL.formatDuration(isNaN(a.currentTime)?0:a.currentTime);this.btgAL.control.progressFill.style.width=this.btgAL.control.scrubber.style.left=
a.currentTime/a.duration*100+"%"};mtvn.btg.html5.ads.AdGuiControl.prototype.updateUI=function(){this.updateProgress()};mtvn.btg.html5.ads.AdGuiControl.prototype.updateProgress=function(){this.availableWidth=this.width-72-75;this.progressBar.style.width=this.availableWidth+"px"};
mtvn.btg.html5.ads.AdGuiControl.prototype.toggleFullScreen=function(){this.player.toggleFullScreen();this.player.dispatchEvent(new Event(Player.FULL_SCREEN));parent.postMessage(new Event(Player.FULL_SCREEN,this.player.fullScreen),"*")};
mtvn.btg.html5.ads.AdLoader={btgU:mtvn.btg.util,btgAds:mtvn.btg.html5.ads,_TIME_LAST_AD_STOPPED_COOKIE:"mtvn_btg_timeSinceLastAdCookie",minTimeBtwAds:90,isFWReady:false,isPlayerReady:false,fwAdManager:null,html5Player:null,FW_URL:"http://140cc.v.fwmrm.net/ad/g/1?nw={0}&prof={0}:{1}&flag=+sltp+exvt+slcb+unka+unks;",fwResponse:null,adCompleted:false,adRequested:false,beginAd:false,isAdPlaying:false,failSafeTimer:null,adTimer:0,adTimerObj:null,adDuration:0,timeDispDiv:null,control:null,config:{},init:function(a){var b=
mtvn.btg.html5.reporting;this.FW_URL="http"+("https:"==document.location.protocol?"s":"")+"://140cc.v.fwmrm.net/ad/g/1?nw={0}&prof={0}:{1}&flag=+sltp+exvt+slcb+unka+unks;";this.html5Player=a;this.minTimeBtwAds=b.MetaDataVO.vo.FreeWheel.minTimeBtwAds;this.config.assetId=b.MetaDataVO.vo.FreeWheel.assetId;this.config.siteSection=b.MetaDataVO.vo.FreeWheel.siteSection;if(!this.btgU.String.isDefined(this.config.siteSection)){new this.btgU.Alert("Freewheel ad error because SID is empty for "+b.MetaDataVO.vo.referrer,
0);return false}this.config.networkId=b.MetaDataVO.vo.FreeWheel.networkId;this.config.profileId=b.MetaDataVO.vo.FreeWheel.profileId;this.config.displayBase=b.MetaDataVO.vo.FreeWheel.displayBase;this.config.duration=this.html5Player.episode.duration;this.adRequested=true;this.timeDispDiv=document.createElement("div");this.controls=document.createElement("div");this.requestAd()},setFWReady:function(a){var b=mtvn.btg.html5.ads.AdLoader.btgAds.AdLoader;b.isFWReady=true;b.fwResponse=a.response;if(b.beginAd)b.playAd()},
hideOverlay:function(){if(this.html5Player.overlays.waitingIcon)this.html5Player.overlays.waitingIcon.hide();if(this.html5Player.overlays.playIcon)this.html5Player.overlays.playIcon.hide();this.html5Player.overlayContainer.style.display="none";this.html5Player.controls.hide();this.html5Player.shareBar.hide()},showOverlay:function(a){this.html5Player.overlayContainer.style.display="block";if(a)this.html5Player.overlays[a].show()},isItTimeForAd:function(){var a=this.btgAds.AdLoader;if(!a.isOkToPlayAd())return false;
a.failSafeForcePlay();if(a.isFWReady&&!a.adCompleted){a.playAd();return true}else if(a.adRequested&&!a.adCompleted){a.beginAd=true;return"wait"}a.failSafeForcePlay(true);return false},failSafeForcePlay:function(a){var b=this.btgAds.AdLoader;if(!a){if(b.failSafeTimer==null)b.failSafeTimer=setTimeout("mtvn.btg.html5.ads.AdLoader.postAdHandler('failsafe')",2E4)}else{clearTimeout(b.failSafeTimer);b.failSafeTimer=null}},requestAd:function(){if(!mtvn.btg.html5.reporting.MetaDataVO.vo.FreeWheel.enabled){this.btgAds.AdLoader.adRequested=
false;return}try{this.fwAdManager=new tv.freewheel.SDK.AdManager;this.fwAdManager.registerVideoDisplayBase(this.config.displayBase);this.fwAdManager.setVideoAsset(this.config.assetId,this.config.duration);this.fwAdManager.setSiteSection(this.config.siteSection);this.fwAdManager.setServerURL(this.FW_URL.replace(/\{0\}/g,this.config.networkId).replace(/\{1\}/g,this.config.profileId));this.fwAdManager.submitRequest(this.setFWReady,5E3)}catch(a){new this.btgU.Alert("Error retrieving Freewheel Ad via mtvn.btg.html5.ads.AdLoader.requestAd. "+
a.message)}},playAd:function(a){var b=this.btgAds.AdLoader;if(!b.isFWReady)return;b.preAdHandler();switch(a){case "preroll":this.fwAdManager.playSlots(tv.freewheel.SDK.TIME_POSITION_CLASS_PREROLL,b.postAdHandler);break;case "postroll":this.fwAdManager.playSlots(tv.freewheel.SDK.TIME_POSITION_CLASS_POSTROLL,b.postAdHandler);break;case "overlay":this.fwAdManager.playSlots(tv.freewheel.SDK.TIME_POSITION_CLASS_OVERLAY,b.postAdHandler);break;default:this.fwAdManager.playSlots(tv.freewheel.SDK.TIME_POSITION_CLASS_PREROLL,
b.postAdHandler)}},preAdHandler:function(){var a=mtvn.btg.html5.ads.AdLoader,b=a.html5Player.video;a.isAdPlaying=true;a.hideOverlay();a.createOverlay();b.addEventListener("play",mtvn.btg.html5.reporting.Reporter.onPlay);b.addEventListener("play",a.onPlay);b.addEventListener("playing",a.onPlaying);b.addEventListener("timeupdate",a.updateAdTimer);b.addEventListener("pause",a.onPause);b.addEventListener("waiting",a.onWait)},postAdHandler:function(a){var b=mtvn.btg.html5.ads.AdLoader;b.setTimeLastAdStopped();
var c=b.html5Player.video;if(typeof a!="undefined")new this.btgU.Alert("Error retrieving Freewheel Ad via mtvn.btg.html5.ads.AdLoader.postAdHandler. Fail safe method triggered.");c.removeEventListener("play",mtvn.btg.html5.reporting.Reporter.onPlay);c.removeEventListener("play",b.onPlay);c.removeEventListener("playing",b.onPlaying);c.removeEventListener("timeupdate",b.updateAdTimer);c.removeEventListener("pause",b.onPause);c.removeEventListener("waiting",b.onWait);b.isAdPlaying=false;b.adCompleted=
true;b.hideOverlay();b.timeDispDiv.style.display="none";b.html5Player.play();b.showOverlay();if(b.control!=null)b.control.hide()},setTimeLastAdStopped:function(){this.btgU.Cookie.set(this._TIME_LAST_AD_STOPPED_COOKIE,(new Date).getTime())},getTimeSinceLastAd:function(){var a=this.btgU.Cookie.read(this._TIME_LAST_AD_STOPPED_COOKIE);if(!a||isNaN(parseInt(a)))return this.minTimeBtwAds+1;return((new Date).getTime()-a)/1E3},isOkToPlayAd:function(){return this.getTimeSinceLastAd()>this.minTimeBtwAds},updateAdTimer:function(){var a=
mtvn.btg.html5.ads.AdLoader;if(a.html5Player.video.duration>0){a.setAdDuration();a.failSafeForcePlay(true);a.adTimer=Math.floor(a.html5Player.video.currentTime);a.updateTimeDisplay()}},stopAdTimer:function(){this.btgAds.AdLoader.hideOverlay()},updateTimeDisplay:function(){var a=this.btgAds.AdLoader;if(a.control==null){a.setControls();a.control.show();a.control.hideCheck();a.control.setPlayingState(false,false)}a.timeDispDiv.innerHTML='<p class="adTimeLable">Content will resume '+a.formatDuration(a.adDuration-
a.adTimer)+"</p>";a.control.updateTime()},createOverlay:function(){var a=this.btgAds.AdLoader;a.timeDispDiv.style.display="block";a.timeDispDiv.id="adTimeDisp";a.timeDispDiv.addEventListener(a.isTouchDevice()?"touchend":"mouseup",function(){a.control.hideCheck();if(a.timeDispDiv.className=="occupyFull")a.control.show();a.timeDispDiv.className="occupyEmpty"});a.html5Player.view.appendChild(a.timeDispDiv)},setAdDuration:function(){try{this.adDuration=Math.floor(this.btgAds.AdLoader.html5Player.video.duration)}catch(a){return this.adDuration=
0}return this.adDuration},formatDuration:function(a){if(a>0&&a<60)return"00:"+(a<10?"0":"")+Math.floor(a);else if(a>59)return"0"+Math.floor(x/60)+":"+((a%60).toString().length<2?"0":"")+Math.floor(a)%60;else return"00:00"},setControls:function(){this.control=new this.btgAds.AdGuiControl(this.html5Player);this.control.init()},isTouchDevice:function(){try{document.createEvent("TouchEvent");return true}catch(a){return false}},onWait:function(){mtvn.btg.html5.ads.AdLoader.btgAds.AdLoader.showOverlay("waitingIcon")},
onPlay:function(){var a=mtvn.btg.html5.ads.AdLoader;a.hideOverlay();if(a.control!=null){a.control.setPlayingState(false,false);a.control.hideCheck()}},onPlaying:function(){mtvn.btg.html5.ads.AdLoader.hideOverlay()},onPause:function(){var a=mtvn.btg.html5.ads.AdLoader;setTimeout("mtvn.btg.html5.ads.AdLoader.showOverlay('playIcon')",500);a.control.setPlayingState(true,false);a.control.stopHideCheck()},onError:function(){}};
mtvn.btg.html5.ads.AdManager=new function(){try{mtvn.btg.util.DOM.loadScript("http"+("https:"==document.location.protocol?"s":"")+"://btg.mtvnservices.com/aria/fwadmanager.js")}catch(a){}this.init=function(a){var c=mtvn.btg.html5.ads;c.AdLoader.init(a);c.EventMediator.playerLoad(a)}};mtvn.btg.html5.ads.EventMediator={playerObj:null,playerLoad:function(a){if((this.playerObj=a)&&this.playerObj.addEventListener)this.playerObj.addEventListener("ON_ERROR",mtvn.btg.html5.ads.AdLoader.onError)}};
mtvn.btg.html5.reporting.EventMediator={playerObj:null,playerLoad:function(a){if((this.playerObj=a)&&this.playerObj.addEventListener){mtvn.btg.html5.reporting.Reporter.onLoad();this.playerObj.addEventListener("PLAY",mtvn.btg.html5.reporting.Reporter.onPlay);this.playerObj.addEventListener("PLAYING",mtvn.btg.html5.reporting.Reporter.onPlaying);this.playerObj.addEventListener("PAUSE",mtvn.btg.html5.reporting.Reporter.onPause);this.playerObj.addEventListener("SEEK",mtvn.btg.html5.reporting.Reporter.onSeek);
this.playerObj.addEventListener("END",mtvn.btg.html5.reporting.Reporter.onEnd);this.playerObj.addEventListener("RESIZE",mtvn.btg.html5.reporting.Reporter.onResize);this.playerObj.addEventListener("ERROR",mtvn.btg.html5.reporting.Reporter.onError)}}};
mtvn.btg.html5.reporting.MetaDataVO={btgIsStr:mtvn.btg.util.String.isDefined,btgGv:mtvn.btg.globalvars,btgHtml5Rep:mtvn.btg.html5.reporting,vo:{MetaData:{},Omniture:{enabled:"",account:"",metadata:""},ComScore:{primaryId:"",producerId:"",locationId:"",genreId:"",playerUrl:"",videoTitle:"",referrer:""},Nielsen:{clientId:"",videoCensusId:""},QuantCast:{publisherId:""},FreeWheel:{enabled:true,networkId:82125,profileId:"MTVN_Live_HTML5",assetId:"html5_video",siteSection:"",displayBase:"playerView",minTimeBtwAds:90}},
configJson:{},mediagen:{},html5Player:null,init:function(a){this.html5Player=a;reportSettings=this.configJson.reportSettings;this.setMetadata();this.vo.referrer=this.btgIsStr(this.configJson.referrer)?this.configJson.referrer:this.btgGv.IS_TOP_ACCESSIBLE?top.location.host:false;metadata=this.btgHtml5Rep.MetaDataVO.vo.MetaData;if(metadata.item.length>1)this.vo.FreeWheel.assetId=metadata.item[0].group.playlist_uri;else this.vo.FreeWheel.assetId=metadata.item[this.html5Player.currentIndex].guid;OmnitureVO=
reportSettings.videoReporter;comscoreVO=reportSettings.comScore;quantcastVO=reportSettings.quantCast;nilesenVO=reportSettings.nielsenReporter;freewheelVO={};freewheelVO.enabled=this.btgIsStr(this.configJson.freeWheel)&&typeof this.configJson.freeWheel.enabled=="boolean"?this.configJson.freeWheel.enabled:this.vo.FreeWheel.enabled;freewheelVO.assetId=this.btgIsStr(this.configJson.freeWheel)&&this.btgIsStr(this.configJson.freeWheel.assetId)?this.configJson.freeWheel.assetId:this.vo.FreeWheel.assetId;
freewheelVO.siteSection=this.btgIsStr(this.configJson.freeWheel)&&this.btgIsStr(this.configJson.freeWheel.siteSection)?this.configJson.freeWheel.siteSection:this.vo.FreeWheel.siteSection;freewheelVO.networkId=this.btgIsStr(this.configJson.freeWheel)&&this.btgIsStr(this.configJson.freeWheel.networkId)?this.configJson.freeWheel.networkId:this.vo.FreeWheel.networkId;freewheelVO.profileId=this.btgIsStr(this.configJson.freeWheel)&&this.btgIsStr(this.configJson.freeWheel.profileId)?this.configJson.freeWheel.profileId:
this.vo.FreeWheel.profileId;freewheelVO.displayBase=this.btgIsStr(this.configJson.freeWheel)&&this.btgIsStr(this.configJson.freeWheel.displayBase)?this.configJson.freeWheel.displayBase:this.vo.FreeWheel.displayBase;freewheelVO.minTimeBtwAds=this.btgIsStr(this.configJson.freeWheel)&&this.btgIsStr(this.configJson.freeWheel.minTimeBtwAds)?this.configJson.freeWheel.minTimeBtwAds:this.vo.FreeWheel.minTimeBtwAds;if(OmnitureVO){this.vo.Omniture.enabled=OmnitureVO.enabled.toString()==="true";this.vo.Omniture.account=
OmnitureVO.networkAccount;OmnitureVO.dataCenter&&OmnitureVO.dataCenter.length!="false"?this.vo.Omniture.dataCenter=OmnitureVO.dataCenter:this.vo.Omniture.dataCenter="2o7";this.vo.Omniture.metadata=metadata}this.vo.FreeWheel.enabled=freewheelVO.enabled;this.vo.FreeWheel.networkId=freewheelVO.networkId;this.vo.FreeWheel.profileId=freewheelVO.profileId;this.vo.FreeWheel.assetId=freewheelVO.assetId;this.vo.FreeWheel.siteSection=freewheelVO.siteSection;this.vo.FreeWheel.minTimeBtwAds=freewheelVO.minTimeBtwAds;
if(comscoreVO){this.vo.ComScore.enabled=false;this.vo.ComScore.primaryId=comscoreVO.primaryId;this.vo.ComScore.producerId=this.btgIsStr(comscoreVO.producerId)?comscoreVO.producerId:"";this.vo.ComScore.locationId=this.btgIsStr(comscoreVO.locationId)?comscoreVO.locationId:"";this.vo.ComScore.genreId=this.btgIsStr(comscoreVO.genreId)?comscoreVO.genreId:"";this.vo.ComScore.playerUrl=location.protocol+"//"+location.host+location.pathname;this.vo.ComScore.referrer=this.btgIsStr(this.configJson.referrer)?
this.configJson.referrer:this.btgGv.IS_TOP_ACCESSIBLE?top.location.host:false}if(nilesenVO){this.vo.Nielsen.enabled=false;this.vo.Nielsen.clientId=nilesenVO.clientId;this.vo.Nielsen.videoCensusId=nilesenVO.videoCensusId;this.vo.Nielsen.title="";this.vo.Nielsen.streamUrl=""}if(quantcastVO){this.vo.QuantCast.enabled=false;this.vo.QuantCast.demoTargeting=quantcastVO.demoTargeting.enabled.toString()==="true";this.vo.QuantCast.publisherId=quantcastVO.publisherId;this.vo.QuantCast.videoId="";this.vo.QuantCast.title=
"";this.vo.QuantCast.videoUrl="";this.vo.QuantCast.embedUrl="";this.vo.QuantCast.duration=""}if(typeof metadata.item.length=="undefined")this.btgHtml5Rep.MetaDataVO.vo.MetaData.item[0].adUrl=metadata.item.adContent;else{var a=0,b;for(b in metadata.item)this.btgHtml5Rep.MetaDataVO.vo.MetaData.item[a++].adUrl=b.adContent}},setMetadata:function(){var a={},b=this.html5Player.episode;a.feed=b.feed;a.title=b.title;a.description=b.description;a.duration=b.duration;a.currentSegment=b.currentSegment;a.item=
new Array;for(var b=0,c=this.html5Player.episode.segments.length;b<c;b++){var d=this.html5Player.episode.segments[b];a.item[b]={};for(var e in d)if(e=="metadata"){a.item[b].group={};for(var f in d.metadata)a.item[b].group[f]=d.metadata[f];for(var g in d.metadata.category)if(!a.item[b].group[g]||a.item[b].group[g]!="")a.item[b].group[g]=d.metadata.category[g]}else if(e!="overlays"&&e!="beacons")a.item[b][e]=d[e]}this.btgHtml5Rep.MetaDataVO.vo.MetaData=a}};
mtvn.btg.html5.reporting.Reporter={btgHtml5Rep:mtvn.btg.html5.reporting,hasNielsen:false,hasComScore:false,hasQuantCast:false,hasOmniture:false,config:mtvn.btg.html5.reporting.MetaDataVO.vo,error:"",html5Player:null,init:function(a){this.html5Player=a;a=mtvn.btg.util.Object.isConfigDefined;if(a(this.config.ComScore))this.hasComScore=true;if(a(this.config.Nielsen))this.hasNielsen=true;if(a(this.config.QuantCast))this.hasQuantCast=true;if(a(this.config.Omniture))this.hasOmniture=true},onLoad:function(a){var b=
mtvn.btg.html5.reporting,a=b.Reporter.setData();if(b.Reporter.hasNielsen)b.Nielsen.sendCall("ON_LOAD",a);if(b.Reporter.hasComScore)b.ComScore.sendCall("ON_LOAD",a);if(b.Reporter.hasQuantCast)b.QuantCast.sendCall("ON_LOAD",a);if(b.Reporter.hasOmniture)b.Omniture.sendCall("ON_LOAD",a);b.Labels.sendCall("ON_LOAD",a)},onPlay:function(){},onPlaying:function(a){var b=mtvn.btg.html5.reporting,a=b.Reporter.setData();if(b.Reporter.hasNielsen)b.Nielsen.sendCall("ON_PLAY",a);if(b.Reporter.hasComScore)b.ComScore.sendCall("ON_PLAY",
a);if(b.Reporter.hasQuantCast)b.QuantCast.sendCall("ON_PLAY",a);if(b.Reporter.hasOmniture)b.Omniture.sendCall("ON_PLAY",a);b.Labels.sendCall("ON_PLAY",a)},onPause:function(a){var b=mtvn.btg.html5.reporting,a=b.Reporter.setData();if(b.Reporter.hasNielsen)b.Nielsen.sendCall("ON_PAUSE",a);if(b.Reporter.hasComScore)b.ComScore.sendCall("ON_PAUSE",a);if(b.Reporter.hasQuantCast)b.QuantCast.sendCall("ON_PAUSE",a);if(b.Reporter.hasOmniture)b.Omniture.sendCall("ON_PAUSE",a);b.Labels.sendCall("ON_PAUSE",a)},
onSeek:function(a){var b=mtvn.btg.html5.reporting,a=b.Reporter.setData();if(b.Reporter.hasNielsen)b.Nielsen.sendCall("ON_SEEK",a);if(b.Reporter.hasComScore)b.ComScore.sendCall("ON_SEEK",a);if(b.Reporter.hasQuantCast)b.QuantCast.sendCall("ON_SEEK",a);if(b.Reporter.hasOmniture)b.Omniture.sendCall("ON_SEEK",a);b.Labels.sendCall("ON_SEEK",a)},onResize:function(a){var b=mtvn.btg.html5.reporting,a=b.Reporter.setData();if(b.Reporter.hasNielsen)b.Nielsen.sendCall("ON_RESIZE",a);if(b.Reporter.hasComScore)b.ComScore.sendCall("ON_RESIZE",
a);if(b.Reporter.hasQuantCast)b.QuantCast.sendCall("ON_RESIZE",a);if(b.Reporter.hasOmniture)b.Omniture.sendCall("ON_RESIZE",a)},onEnd:function(a){var b=mtvn.btg.html5.reporting,a=b.Reporter.setData();if(b.Reporter.hasNielsen)b.Nielsen.sendCall("ON_END",a);if(b.Reporter.hasComScore)b.ComScore.sendCall("ON_END",a);if(b.Reporter.hasQuantCast)b.QuantCast.sendCall("ON_END",a);if(b.Reporter.hasOmniture)b.Omniture.sendCall("ON_END",a);b.Labels.sendCall("ON_END",a)},onError:function(a){var b=mtvn.btg.html5.reporting,
c=a&&a.data?a.data.msg:"";if(c!=""&&b.error!=c){b.error=c;new mtvn.btg.util.Alert(c)}if(b.Reporter.hasNielsen)b.Nielsen.sendCall("ON_ERROR",a);if(b.Reporter.hasComScore)b.ComScore.sendCall("ON_ERROR",a);if(b.Reporter.hasQuantCast)b.QuantCast.sendCall("ON_ERROR",a);if(b.Reporter.hasOmniture)b.Omniture.sendCall("ON_ERROR",a);b.Labels.sendCall("ON_ERROR",a)},setData:function(){if(typeof this.btgHtml5Rep.Reporter.html5Player!="undefined"&&this.btgHtml5Rep.Reporter.html5Player!=null){var a=this.btgHtml5Rep.Reporter.html5Player.episode.segments[this.btgHtml5Rep.Reporter.html5Player.currentIndex];
a.index=this.btgHtml5Rep.Reporter.html5Player.currentIndex;if(mtvn.btg.html5.ads.AdLoader.isAdPlaying)a.isAd=true;else a.isAd=false;return a}else return{}}};mtvn.btg.html5.reporting.ReportingManager=new function(){this.init=function(a){var b=mtvn.btg.html5.reporting;b.MetaDataVO.init(a);b.Reporter.init(a);b.EventMediator.playerLoad(a)}};
mtvn.btg.html5.reporting.ComScore={sendCall:function(a,b){if(a!="ON_PLAY")return;var c=mtvn.btg.html5.reporting.MetaDataVO.vo,c={c1:1,c2:c.ComScore.primaryId,c3:c.ComScore.producerId,c4:c.ComScore.locationId,c5:c.ComScore.genreId,c6:"",c7:c.playerURL,c8:b.isAd?"VIDEO_AD":b.title,c9:c.ComScore.referrer?c.ComScore.referrer:"NO_REF"},d=new mtvn.btg.util.Beacon((document.location.protocol=="https:"?"https://sb":"http://b")+"b.scorecardresearch.com/beacon.js");d.setData(c);d.send()}};
mtvn.btg.html5.reporting.Labels=new function(){var a=mtvn.btg.util,b=a.Object.isDefined,c=0,d=0,e=null,f,g="none",h,j=[],k=0,l=[],o=false;this.init=function(c){var d=a.String.isDefined;g=b(c)&&c.isAd===true?"ad":"notAd";h=mtvn.btg.html5.reporting.MetaDataVO.configJson.mediagen;try{if(typeof h!="undefined")j=h.video.item[0].beacons.beacon}catch(e){}for(var c=0,f=j.length;c<f;c++){var k=j[c].url;if(d(k)&&k.indexOf("viamtvnvideo.112.2o7.net")>-1){var o=parseInt(j[c].elapsed);if(!isNaN(o)){var p=j[c].elapsedAfterAd,
w=false;if(!d(p))w=true;else if(g=="ad"&&p=="true"||g!="ad"&&p=="false")w=true;if(w===true){p=a.Math.random(1E6,9999999);k=k.replace("{ord}",p);l[l.length]={url:k,timeToFire:o,enabled:true}}}}}};this.sendCall=function(a,c){if(a=="ON_PLAY"){if(!o){this.init(c);o=true}if(b(c)&&c.isAd!=true)this.startTimer()}else if(a=="ON_PAUSE"||a=="ON_SEEK"||a=="ON_ERROR"||a=="ON_END")this.stopTimer()};this.checkTime=function(){var b=(new Date).getTime();c=parseInt(b)-parseInt(f);for(var b=parseInt((parseInt(d)+parseInt(c))/
1E3),e=0,g=l.length;e<g;e++)if(b>=l[e].timeToFire&&l[e].enabled==true){l[e].enabled=false;k++;(new a.Beacon(l[e].url)).send()}if(k>=l.length)this.stopTimer()};this.startTimer=function(){this.stopTimer();f=(new Date).getTime();var a=this;e=setInterval(function(){a.checkTime()},1E3)};this.stopTimer=function(){clearInterval(e);e=null;d+=parseInt(c);c=0}};
mtvn.btg.html5.reporting.Nielsen={btgIsStr:mtvn.btg.util.String.isDefined,btgIsObj:mtvn.btg.util.Object.isDefined,url:"http://secure-us.imrworldwide.com/cgi-bin/m",callData:{},nielsenVo:mtvn.btg.html5.reporting.MetaDataVO.vo.Nielsen,videoRecord:mtvn.btg.html5.reporting.MetaDataVO.vo.VideoRecord,sendCall:function(a,b){this.callData=b;if(this.btgIsStr(a)&&a.toUpperCase()=="ON_PLAY"){var c=this.getBeaconData();if(this.btgIsStr(c.ci)){var d=new mtvn.btg.util.Beacon(this.url);d.setData(c);d.send()}}},
getBeaconData:function(){var a={};a.ci=this.getClientId();a.c6=this.getVideoCensusId();a.cc=1;a.ou=this.getStreamUrl();a.sd=this.getDuration();a.tl=this.getVideoTitle();a.rnd=(new Date).getTime();return a},getDuration:function(){var a="";if(this.btgIsObj(this.videoRecord)&&this.btgIsStr(this.videoRecord.duration))a=this.videoRecord.duration;return a},getVideoTitle:function(){var a="";if(this.btgIsObj(this.callData)&&this.btgIsStr(this.callData.title))a=this.callData.title;else if(this.nielsenVo&&
this.btgIsStr(this.nielsenVo.title))a=this.nielsenVo.title;if(this.btgIsStr(a))a="dav0-"+a;return a},getStreamUrl:function(){var a="";if(this.btgIsObj(this.callData)&&this.btgIsStr(this.callData.streamUrl))a=this.callData.streamUrl;else if(this.nielsenVo&&this.btgIsStr(this.nielsenVo.streamUrl))a=this.nielsenVo.streamUrl;return a},getClientId:function(){var a="";if(this.btgIsObj(this.callData)&&this.btgIsStr(this.callData.clientId))a=this.callData.clientId;else if(this.nielsenVo&&this.btgIsStr(this.nielsenVo.clientId))a=
this.nielsenVo.clientId;return a},getVideoCensusId:function(){var a="";if(this.btgIsObj(this.callData)&&this.btgIsStr(this.callData.videoCensusId))a=this.callData.videoCensusId;else if(this.nielsenVo&&this.btgIsStr(this.nielsenVo.videoCensusId))a=this.nielsenVo.videoCensusId;return a}};
mtvn.btg.html5.reporting.Omniture={SegmentPlayed:-1,sendCall:function(a,b){var c=mtvn.btg.util.String.isDefined;if(a!="ON_PLAY")return;itemIndex=0;if(b.isAd)return;if(typeof b.index!="undefined"&&b.index!=null)itemIndex=b.index;if(itemIndex==this.SegmentPlayed)return;else this.SegmentPlayed=itemIndex;var d=mtvn.btg.html5.reporting,e=d.MetaDataVO.vo,f=e.Omniture.metadata.item[itemIndex].guid,g=e.Omniture.metadata.item[itemIndex].guid.split(":")[4],h=e.Omniture.account,j="video/net/"+e.Omniture.metadata.item[itemIndex].title+
"_"+g,k=e.Omniture.metadata.item[itemIndex].title+"_"+g,l=e.Omniture.metadata.item[itemIndex].group.content_type,o=e.Omniture.metadata.item[itemIndex].group.mtvnOwner,t=e.Omniture.metadata.item[itemIndex].group.franchise,v=e.Omniture.metadata.item[itemIndex].group.artist,u=c(e.Omniture.metadata.item[itemIndex].group.playlist_title)?e.Omniture.metadata.item[itemIndex].group.playlist_title:e.Omniture.metadata.item[itemIndex].title,g=g+" : "+t+" : "+l,A=c(d.MetaDataVO.configJson.referrer)?d.MetaDataVO.configJson.referrer:
"CONTEXT_UNSET",c=c(d.MetaDataVO.configJson.orig)?d.MetaDataVO.configJson.orig:"ORIGIN_UNSET",d=d.MetaDataVO.configJson.reportSettings.playerInfo.networkPlayerName,q=e.Omniture.metadata.item[itemIndex].agreement,D=e.Omniture.metadata.item[itemIndex].group.agreementId;if(!!(e.Omniture.metadata.item[itemIndex].group.reportable.toString().toLowerCase()=="false"))return;var e=mtvn.btg.config.ReportSettings.Omniture,p=e.pageViewEvent;e.pageViewEvent="";mtvn.btg.reporting.ReportingManager.getOmniture().sendPageCall({un:h,
pageName:j,prop1:q,prop3:D,eVar26:t,eVar27:o,eVar28:l,eVar29:v,eVar30:A,eVar31:d,eVar32:c,eVar33:k,eVar34:u,prop35:g,prop30:f,prop36:t,prop38:o,prop43:u,prop45:l,prop46:v,prop47:A,prop48:d,prop49:c,prop50:k,events:"event15"});e.pageViewEvent=p}};
mtvn.btg.html5.reporting.QuantCast={btgGv:mtvn.btg.globalvars,btgIsStr:mtvn.btg.util.String.isDefined,btgStr:mtvn.btg.util.String,btgIsObj:mtvn.btg.util.Object.isDefined,loadQcScripts:function(){try{var a=document.createElement("script");a.src=(document.location.protocol=="https:"?"https://secure":"http://edge")+".quantserve.com/quant.js";a.async=true;a.type="text/javascript";var b=document.getElementsByTagName("script")[0];b.parentNode.insertBefore(a,b);a=document.createElement("script");a.src=(document.location.protocol==
"https:"?"https://secure":"http://edge")+".quantserve.com/vquant.js";a.async=true;a.type="text/javascript";b=document.getElementsByTagName("script")[0];b.parentNode.insertBefore(a,b);_qevents=typeof _qevents!="undefined"||[];_qvideos=typeof _qvideos!="undefined"||[]}catch(c){}}(),callData:"",qc:mtvn.btg.html5.reporting.MetaDataVO.vo.QuantCast,metaData:mtvn.btg.html5.reporting.MetaDataVO.vo.MetaData,sendCall:function(a,b){if(a=="ON_LOAD"){this.callData=b;var c={pageURL:this.btgGv.IS_TOP_ACCESSIBLE?
top.location.href:self.location.href,qacct:this.getPublisherId(),videoId:this.getVideoId(),videoElementId:this.getVideoElementId(),videoTitle:this.getVideoTitle(),videoUrl:this.getVideoUrl(),embedUrl:this.getEmbedUrl(),media:this.getMediaValue(),group:this.getMediaValue(),uri:this.getUri(),labels:this.getLabelsHierarchy()};try{_qvideos.push(c)}catch(d){}}},getUri:function(){var a="",b=parseInt(this.callData.currentItem);if(!isNaN(b)){b=this.getItem(b);if(this.btgIsStr(b.guid))a=b.guid}return a},getPublisherId:function(){var a=
"p-94wNw88f65Rhk";if(this.qc.publisherId&&this.btgIsStr(this.qc.publisherId))a=this.qc.publisherId;if(this.callData&&this.btgIsStr(this.callData.publisherId))a=this.callData.publisherId;return a},getVideoElementId:function(){var a="videoView";if(this.qc.videoElementId&&this.btgIsStr(this.qc.videoElementId))a=this.qc.videoElementId;if(this.callData&&this.btgIsStr(this.callData.videoElementId))a=this.callData.videoElementId;return a},getVideoId:function(){var a="";if(this.qc.videoId&&this.btgIsStr(this.qc.videoId))a=
this.qc.videoId;if(this.callData&&this.btgIsStr(this.callData.videoId))a=this.callData.videoId;return a},getVideoUrl:function(){var a="";if(this.qc.videoUrl&&this.btgIsStr(this.qc.videoUrl))a=this.qc.videoUrl;if(this.callData&&this.btgIsStr(this.callData.videoUrl))a=this.callData.videoUrl;return a},getEmbedUrl:function(){var a=this.btgGv.IS_TOP_ACCESSIBLE?top.location.hostname:self.location.hostname;if(this.qc.embedUrl&&this.btgIsStr(this.qc.embedUrl))a=this.qc.embedUrl;if(this.callData&&this.btgIsStr(this.callData.embedUrl))a=
this.callData.embedUrl;return a},getMediaValue:function(){var a="";if(this.getMediaType()=="contentvideo")a="video";else if(this.getMediaType()=="musicvideo")a="music";return a},getDartSite:function(){var a=this.btgStr.getBetween(this.getAdUrl(),"/pfadx/","/");if(this.callData&&this.btgIsStr(this.callData.dartSite))a=this.callData.dartSite;if(this.btgIsStr(a))a=a.replace(/\./,"_");else a="NA";return a},getAdUrl:function(){var a="",b=this.getItem();if(this.btgIsObj(b)&&this.btgIsStr(b.adUrl))a=b.adUrl;
if(this.callData&&this.btgIsStr(this.callData.adUrl))a=this.callData.adUrl;return a},getItemGroup:function(){var a,b=this.getItem();if(this.btgIsObj(b)&&this.btgIsObj(b.group))a=b.group;return a},getItem:function(a){var b,a=parseInt(a);if(isNaN(a))a=0;if(this.metaData.item)if(this.metaData.item.length){if(this.metaData.item.length>=1)b=this.metaData.item[a]}else b=this.metaData.item;return b},getMode:function(){return this.btgStr.getBetween(this.getAdUrl(),"mode=",";")},getMediaType:function(){return this.btgStr.getBetween(this.getAdUrl(),
"mtype=",";")},getGenre:function(){return this.btgStr.getBetween(this.getAdUrl(),"genre=",";")},getArtistName:function(){var a="NA",b=this.getItemGroup();if(this.btgIsObj(b)&&this.btgIsStr(b.categoryArtist))a=b.categoryArtist;return a},getVideoTitle:function(a){a=this.btgIsStr(a)?a:"";if(this.qc.title&&this.btgIsStr(this.qc.title))a=this.qc.title;if(this.callData&&this.btgIsStr(this.callData.title))a=this.callData.title;return a},getFranchise:function(){var a="NA",b=this.getItemGroup();if(this.btgIsObj(b)&&
this.btgIsStr(b.categoryFranchise))a=b.categoryFranchise;return a},getPlaylistTitle:function(){var a="PLAYLIST_TITLE_UNSET",b=this.getItemGroup();if(this.btgIsObj(b)&&this.btgIsStr(b.categoryPlaylistTitle))a=b.categoryPlaylistTitle;else if(this.btgIsObj(this.metaData)&&this.btgIsStr(this.metaData.title))a=this.metaData.title;return a},getLabelsHierarchy:function(){var a="",a=["Viacom Global Digital Network","MTVN Digital Ad Sales","Content","Video",this.getDartSite()];if(this.getMediaType()=="contentvideo"&&
this.getMode()=="episode"){a.push("Full Episodes");a.push(this.getFranchise());a.push(this.getVideoTitle("NA"))}else if(this.getMediaType()=="musicvideo"){a.push("Music Videos");if(this.btgIsStr(this.getGenre())){a.push("Grouped by Genre");a.push(this.getGenre());a.push(this.getArtistName());a.push(this.getVideoTitle("NA"))}else{a.push("Grouped by Artist");a.push(this.getArtistName());a.push(this.getVideoTitle("NA"))}}else if(this.getMediaType()=="contentvideo"){a.push("Clips");a.push(this.getFranchise());
if(this.getPlaylistTitle()!="PLAYLIST_TITLE_UNSET"){a.push("Grouped by Playlist");a.push(this.getPlaylistTitle());a.push(this.getVideoTitle("NA"))}else{a.push("Grouped by Clip");a.push(this.getVideoTitle("NA"))}}return a=a.join(".")}};
mtvn.btg.config.ReportSettings={
	defaultPageName:mtvn.btg.globalvars.PAGE_URL,
	Omniture:{
		enabled: true,
		account: 'viaicarly',
		cName: '',
		charSet: '',
		dynamicAccountSelection: 'false',
		dynamicAccountList:  '',
		linkInternalFilters: 'javascript:',
		videoViewEventDisable: true,
		enableTimeParting: false,
		trackInlineStats: true,
		defaultHier: 'hier1',
		enableVisitorNamespace: 'false',
		enableMtvnVisitorGuid: false,
		enableMeteorPlugin: false,
		enableGuidPlugin: true,
		enableGuidAuxiliaryCall: true,
		enableFirstPartyCookie: false,
		timezone: '-5',
		trackExternalLinks: 'true',
		fluxCommunityId:''
	},
	Nielsen:{
		enabled:       false,
		cid:      '',
		videoCensusId: ''
	},
	GoogleAnalytics:{
		enabled:    false,
		account:    '',
		reportMode: '' // iframe/direct
	},
	QuantCast:{
		enabled:    true,
		labels:     'MTVN Global Digital Network,MTVN Global Digital Proper,Nickelodeon Kids and Family Global Network,Nickelodeon Kids and Family Proper,Nickelodeon Kids and Family Domestic,Nickelodeon Kids and Family Tribes,Nickelodeon Kids Digital,Nick Network,iCarly Site',
		reportMode: '' //direct/ads
	},
	ComScore:{
		enabled:    true,
		c2:	'6036034'
	},
	Meteor:{
		enabled:false,
		applicationId:"",
		multiDomain:false
	},
	ChoiceStream:{
		enabled:false,
		apiKey: "",
		profileId:""
	},
	Demdex:{
		enabled:true
	}
};
mtvn.btg.config.AdSettings={
	DoubleClick:{
		enabled:  true,
		dartSite: 'icarly.nol'
	},
	International:{
		enabled:  false,
		dartSite: ''
	},
	QuantCast:{ 
		enabled:  false
	}
}; 
			
	
