if(typeof KIDS=="undefined"||!KIDS){var KIDS={}
}KIDS.namespace("ads");
KIDS.ads.adArray;
KIDS.ads.Ad=function(a){try{this.ad=a;
this.getSize=function(){return this.ad.size
};
this.getActualSize=function(){if(this.ad.actualSize){return this.ad.actualSize
}else{return""
}};
this.getElementID=function(){return this.ad.elementID
};
this.getKeyValues=function(){return this.ad.keyValues
};
this.isRefreshable=function(){return(this.ad.refreshable=="true")?true:false
};
this.getRefreshRate=function(){if(isNaN(this.ad.refreshRate)){return 500
}return new Number(this.ad.refreshRate)
}
}catch(b){}};
KIDS.ads.getAds=function(b){if(KIDS.ads.adArray!=null){return KIDS.ads.adArray
}KIDS.ads.adArray=new Array();
for(var a in KIDS.ads.config.ads){KIDS.ads.adArray.push(new KIDS.ads.Ad(KIDS.ads.config.ads[a]));
KIDS.utils.doLog("Ad: "+KIDS.ads.config.ads[a].size)
}return KIDS.ads.adArray
};
KIDS.ads.getVideoAdFrequency=function(){try{if(KIDS.ads.config.videoAdFrequency){return new Number(KIDS.ads.config.videoAdFrequency)
}else{return 0
}}catch(a){return 0
}};
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.ads=typeof mtvn.btg.ads==="object"?mtvn.btg.ads:{};
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.globalvars={IS_TOP_ACCESSIBLE:function(){try{return(typeof top.location.search!="unknown")
}catch(a){return false
}}(),PAGE_URL:function(){try{var b="";
b=self.location.pathname;
if(b==""){b="/"
}return b
}catch(a){}}(),IS_UNIT_TEST:function(){try{return(location.href.toLowerCase().indexOf("/api/jsunittest/tests/")!=-1)
}catch(a){return false
}}()};
mtvn.btg.Controller=new function(){var d=false;
var g=false;
var f;
var b;
var a="";
this.init=function(){a=(typeof mtvn.btg.globalvars.PAGE_URL=="string"&&mtvn.btg.globalvars.PAGE_URL!="")?mtvn.btg.globalvars.PAGE_URL:location.pathname;
if(a.charAt(a.length-1)=="/"){a+=typeof mtvn.btg.config.ReportSettings.indexFileName=="string"?mtvn.btg.config.ReportSettings.indexFileName:"index"
}if(mtvn.btg.config.ReportSettings){mtvn.btg.config.ReportSettings._defaultPageName=a;
mtvn.btg.reporting.ReportingManager.init();
d=true
}if(mtvn.btg.config.AdSettings){mtvn.btg.config.AdSettings.defaultPageName=a;
mtvn.btg.ads.AdManager.init();
g=true
}return true
};
this.sendPageCall=function(h){if(d){if(typeof h=="undefined"||!h){h={}
}mtvn.btg.reporting.ReportingManager.sendPageCall(h);
f=mtvn.btg.reporting.ReportingManager.getData()
}};
this.sendLinkEvent=function(h){if(d){mtvn.btg.reporting.ReportingManager.sendLinkEvent(h)
}};
this.placeAd=function(h){if(g){mtvn.btg.ads.AdManager.placeAd(h);
b=mtvn.btg.ads.AdManager.getData()
}};
this.placeIFrameAd=function(h,j){mtvn.btg.ads.AdManager.placeIFrameAd(h,j)
};
this.getAdUrl=function(h){if(g){return mtvn.btg.ads.AdManager.getAdUrl(h)
}}
};
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(){return
};
a.onabort=function(){return
};
a.onerror=function(){return
}
}};
mtvn.btg.util.Cookie={read:function(b){var b=b+"=";
var a=document.cookie.split(";");
for(var d=0;
d<a.length;
d++){var f=a[d];
while(f.charAt(0)==" "){f=f.substring(1,f.length)
}if(f.indexOf(b)==0){return f.substring(b.length,f.length)
}}return null
},set:function(b,f,a){var d=b+"="+f+"; path=/";
if(a){d+=";expires="+a
}document.cookie=d
},remove:function(a){document.cookie=a+"=;expires=Thu, 01-Jan-1970 00:00:01 GMT;path=/"
}};
mtvn.btg.util.Events={addListener:function(d,b,a){if(d.attachEvent){d.attachEvent("on"+b,a)
}else{if(d.addEventListener){d.addEventListener(b,a,false)
}else{d["on"+b]=a
}}},removeListener:function(d,b,a){if(d.detachEvent){d.detachEvent("on"+b,a)
}else{if(d.removeEventListener){d.removeEventListener(b,a,false)
}else{d["on"+b]=null
}}}};
if(!this.mtvn.btg.util.JSON){mtvn.btg.util.JSON=function(){function f(n){return n<10?"0"+n:n
}Date.prototype.toJSON=function(){return this.getUTCFullYear()+"-"+f(this.getUTCMonth()+1)+"-"+f(this.getUTCDate())+"T"+f(this.getUTCHours())+":"+f(this.getUTCMinutes())+":"+f(this.getUTCSeconds())+"Z"
};
var m={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"};
function stringify(value,whitelist){var a,i,k,l,r=/["\\\x00-\x1f\x7f-\x9f]/g,v;
switch(typeof value){case"string":return r.test(value)?'"'+value.replace(r,function(a){var c=m[a];
if(c){return c
}c=a.charCodeAt();
return"\\u00"+Math.floor(c/16).toString(16)+(c%16).toString(16)
})+'"':'"'+value+'"';
case"number":return isFinite(value)?String(value):"null";
case"boolean":case"null":return String(value);
case"object":if(!value){return"null"
}if(typeof value.toJSON==="function"){return stringify(value.toJSON())
}a=[];
if(typeof value.length==="number"&&!(value.propertyIsEnumerable("length"))){l=value.length;
for(i=0;
i<l;
i+=1){a.push(stringify(value[i],whitelist)||"null")
}return"["+a.join(",")+"]"
}if(whitelist){l=whitelist.length;
for(i=0;
i<l;
i+=1){k=whitelist[i];
if(typeof k==="string"){v=stringify(value[k],whitelist);
if(v){a.push(stringify(k)+":"+v)
}}}}else{for(k in value){if(typeof k==="string"){v=stringify(value[k],whitelist);
if(v){a.push(stringify(k)+":"+v)
}}}}return"{"+a.join(",")+"}"
}}return{stringify:stringify,parse:function(text,filter){var j;
function walk(k,v){var i,n;
if(v&&typeof v==="object"){for(i in v){if(Object.prototype.hasOwnProperty.apply(v,[i])){n=walk(i,v[i]);
if(n!==undefined){v[i]=n
}}}}return filter(k,v)
}if(/^[\],:{}\s]*$/.test(text.replace(/\\./g,"@").replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(:?[eE][+\-]?\d+)?/g,"]").replace(/(?:^|:|,)(?:\s*\[)+/g,""))){j=eval("("+text+")");
return typeof filter==="function"?walk("",j):j
}throw new SyntaxError("parseJSON")
}}
}()
}mtvn.btg.util.Math={random:function(){var b;
var a;
if(arguments.length>1){b=arguments[0];
a=arguments[1]
}else{b=0;
a=arguments[0]
}return Math.floor(Math.random()*(a-b+1)+b)
}};
mtvn.btg.util.Object={isDefined:function(a){return typeof a=="object"?true:false
},toString:function(b,a){var a=a?a:",";
var f=[];
for(var d in b){if(mtvn.btg.util.String.isDefined(b[d])){f.push(d+"="+b[d])
}}return f.join(a)
},copyProperties:function(a,d,f){if(this.isDefined(a)&&this.isDefined(d)){for(var b in a){if(this.isDefined(d[b])||mtvn.btg.util.String.isDefined(d[b])){if(f=="forceOverwrite"){d[b]=a[b]
}}else{d[b]=a[b]
}}}}};
mtvn.btg.util.Sections={getAdSections:function(){var a=self.location.pathname;
if(a==""){a="/"
}if(a.lastIndexOf("/")==(a.length-1)){a+=(mtvn.btg.util.Object.isDefined(mtvn.btg.config.AdSettings)&&mtvn.btg.util.String.isDefined(mtvn.btg.config.AdSettings.defaultIndexFileName))?mtvn.btg.config.AdSettings.defaultIndexFileName:"index"
}if(a!="/"&&a.indexOf("/")==0){a=a.substring(1)
}return a
},getReportingSections:function(){return self.location.pathname
}};
mtvn.btg.util.Session={Variables:{config:[],add:function(a){if(typeof a=="undefined"){return false
}for(var d=0;
d<this.config.length;
d++){if(typeof this.config[d].varName!="string"){continue
}for(var b=0;
b<a.length;
b++){if(typeof a[b].varName!="string"){continue
}if(a[b].varName==this.config[d].varName){this.config.splice(d,1)
}}}this.config=this.config.concat(a);
return true
},setData:function(d){if(!mtvn.btg.util.String.isDefined(d)){return null
}for(c=0;
c<this.config.length;
c++){var b=this.config[c];
if(typeof d[b.varName]!="undefined"){d[b.varName]=this.saveToCookie(b,d[b.varName])
}else{var f=mtvn.btg.util.String.isDefined(b.cookieName)?b.cookieName:"mtvn_btg_"+b.varName;
var a=mtvn.btg.util.Cookie.read(f);
if(mtvn.btg.util.String.isDefined(a)){a=a.replace(/\+/gim,";");
d[b.varName]=a
}}}return d
},saveToCookie:function(b,n){if(typeof n=="string"&&typeof b.varName=="string"){n=n.replace(/\;/gim,"+");
var f=b.varName;
var l=typeof b.cookieName=="string"?b.cookieName:"mtvn_btg_"+f;
var h=typeof b.neverDie=="boolean"?b.neverDie:0;
var j=typeof b.appendOnly=="boolean"||typeof b.appendOnly=="number"?b.appendOnly:0;
if(j){var a=mtvn.btg.util.Cookie.read(l);
if(mtvn.btg.util.String.isDefined(a)){values=n.split(",");
for(v=0;
v<values.length;
v++){var d=values[v];
if(!mtvn.btg.util.String.isDefined(d)){continue
}if(a.indexOf(d)>-1){continue
}if(a.length>0){a+=","
}a+=d
}n=a
}}var k=new Date().getYear();
var g=h?"Thu, 01-Jan-"+(k+10)+" 23:59:59 GMT":null;
mtvn.btg.util.Cookie.set(l,n,g)
}return mtvn.btg.util.String.isDefined(n)?n.replace(/\+/gim,";"):null
}}};
mtvn.btg.util.String={isDefined:function(a){if(typeof a==="undefined"||a===null||a==""||a==="undefined"){return false
}else{return true
}},random:function(g){var f="ABCDEFGHIJKLMNOPQRSTUVWXTZabcdefghiklmnopqrstuvwxyz";
var d="";
g=g?g:8;
for(var a=0;
a<g;
a++){var b=Math.floor(Math.random()*f.length);
d+=f.substring(b,b+1)
}return d
},toObject:function(f,b){var b=b?b:",";
var h=f.split(b);
var d={};
for(var a=0;
a<h.length;
a++){var g=h[a].split("=");
d[g[0]]=g[1]
}return d
},queryStringToObject:function(a){var 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){var d=a.indexOf(b);
if(d==0){a=a.substring(1)
}return a
},charRtrim:function(b,d){var f=b.lastIndexOf(d);
var a=b.length;
if(f==a-1){b=b.substring(0,a-1)
}return b
},charTrim:function(a,b){a=this.charLtrim(a,b);
a=this.charRtrim(a,b);
return a
},mockItUp:function(a){a=a.replace(/[<]/g,"&lt;");
a=a.replace(/[>]/g,"&gt;");
return a
},getFileName:function(a){var b=(mtvn.btg.util.String.isDefined(a))?a:"";
b=b.substring(b.lastIndexOf("/")+1);
return b
}};
mtvn.btg.util.Window={getNodeLinkName:function(b){var f=null;
for(var a=0;
a<b.childNodes.length;
a++){var d=b.childNodes[a];
switch(d.nodeType){case 3:f=d.nodeValue;
break;
case 1:if(b.attributes.title&&b.attributes.title.nodeValue!=""){f=b.attributes.title.nodeValue
}else{if(b.attributes.alt&&b.attributes.alt.nodeValue!=""){f=b.attributes.alt.nodeValue
}}break
}}return f
},debug:function(b){var a=document.getElementById("debug");
if(!a){a=document.createElement("div");
a.setAttribute("id","debug");
document.getElementsByTagName("body")[0].appendChild(a)
}a.innerHTML=a.innerHTML+b+"<br>"
}};
mtvn.btg.reporting.ComScore=function(b){var a=mtvn.btg.util.String.isDefined;
this.config=b;
this.c1=(a(this.config.c1))?this.config.c1:"2";
this.c2=(a(this.config.c2))?this.config.c2:"6036034";
this.c3=(a(this.config.c3))?this.config.c3:"";
this.c4=(a(this.config.c4))?this.config.c4:(mtvn.btg.util.Object.isDefined(mtvn.btg.util.Sections))?escape(mtvn.btg.util.Sections.getReportingSections()):(mtvn.btg.globalvars.IS_TOP_ACCESSIBLE)?escape(top.document.location.hostname+top.document.location.pathname):escape(document.location.hostname+document.location.pathname);
this.c5=(a(this.config.c5))?this.config.c5:"20000";
this.c6=(a(this.config.c6))?this.config.c6:"";
this.c15=(a(this.config.c15))?this.config.c15:""
};
mtvn.btg.reporting.ComScore.prototype={sendPageCall:function(d){var b=mtvn.btg.util.String.isDefined;
if(typeof(d)==="object"){if(b(d.comScore1)){this.c1=d.comScore1
}if(b(d.comScore2)){this.c2=d.comScore2
}if(b(d.comScore3)){this.c3=d.comScore3
}if(b(d.comScore4)){this.c4=d.comScore4
}if(b(d.comScore5)){this.c5=d.comScore5
}if(b(d.comScore6)){this.c6=d.comScore6
}if(b(d.comScore15)){this.c15=d.comScore15
}}var 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(!mtvn.btg.globalvars.IS_UNIT_TEST&&!mtvn.btg.reporting.ReportingManager.isScriptIncluded.comscore){document.write(unescape('%3Cscript src="'+(document.location.protocol=="https:"?"https://sb":"http://b")+".scorecardresearch.com/beacon.js?"+a+'" %3E%3C/script%3E'));
mtvn.btg.reporting.ReportingManager.isScriptIncluded.comscore=true
}}catch(f){}}};
mtvn.btg.reporting.FluxHosted={sendCall:function(){var b=function(){if(typeof Flux!="object"||typeof Flux.Context!="object"){return false
}return true
};
var j=function(){if(typeof FluxReporting!="object"||typeof FluxReporting.Standard!="object"){return false
}return true
};
var f=function(){if(!b()){return null
}return Flux.Context.isCommunityMember()?"member":"non-member"
};
var d=function(){if(!b()){return null
}return Flux.Context.isUserAuthenticated()?"logged-in":"not logged-in"
};
var h=function(){var l={};
if(!b()&&!j()){return false
}var k=location.pathname.substring(1);
k=k=="/"||k==""?"main.aspx":k;
k=k.substring(0,2)=="-/"?k.substring(2):k;
var n=["/profile","/Topic"];
for(i=0;
i<n.length;
i++){if(k.indexOf(n[i])>-1){k=k.substring(0,k.indexOf(n[i])+n[i].length)
}}l.pageName=l.hier1=k;
if(b()){l.prop10=l.eVar10=f();
l.prop11=l.eVar11=d()
}if(j()){l.prop3=l.eVar3=(mtvn.btg.util.String.isDefined(FluxReporting.Standard.Community_Name)?FluxReporting.Standard.Community_Name:null);
l.prop4=l.eVar4=(mtvn.btg.util.String.isDefined(FluxReporting.Standard.Content_UCID)?FluxReporting.Standard.Content_UCID:null);
l.prop5=l.eVar5=(mtvn.btg.util.String.isDefined(FluxReporting.Standard.Content_Title)?FluxReporting.Standard.Content_Title:null);
l.prop6=l.eVar6=(mtvn.btg.util.String.isDefined(FluxReporting.Standard.Content_Section)?FluxReporting.Standard.Content_Section:null);
l.prop7=l.eVar7=(mtvn.btg.util.String.isDefined(FluxReporting.Standard.Content_Page)?FluxReporting.Standard.Content_Page:null);
l.prop8=l.eVar8=(mtvn.btg.util.String.isDefined(FluxReporting.Standard.Content_Details)?FluxReporting.Standard.Content_Details:null);
l.prop9=l.eVar9=(mtvn.btg.util.String.isDefined(FluxReporting.Standard.Content_Subtype)?FluxReporting.Standard.Content_Subtype:null)
}l.prop12=l.eVar12=location.host;
if(typeof FluxReporting.Overrides!="undefined"){for(i in FluxReporting.Overrides){l[i]=FluxReporting.Overrides[i]
}}return l
};
var g=h();
var a=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}};
mtvn.btg.Controller.init();
mtvn.btg.Controller.sendPageCall(g);
mtvn.btg.config.ReportSettings=a;
return true
}};
if(typeof FluxReporting!="undefined"){mtvn.btg.util.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
};
var d=function(){var g=a();
var f=null;
switch(g){case 3:f=Flux.context.user.communityMember;
break;
case 2:f=Flux.Context.isCommunityMember();
break
}return f?"member":"non-member"
};
var b=function(g){var h=a();
var f=null;
switch(h){case 3:if(Flux.context.user.facebookOnly){f="FB Only";
mtvn.btg.reporting.UserSegment.add(g,"FB Connect Only User")
}else{if(Flux.context.user.facebookConnected){f="Flux + FB";
mtvn.btg.reporting.UserSegment.add(g,"Flux & FB Connect User")
}else{if(typeof Flux.context.user.ucid=="string"&&Flux.context.user.ucid.length>0){f="Flux Only";
mtvn.btg.reporting.UserSegment.add(g,"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"){mtvn.btg.reporting.UserSegment.add(g,"LoggedIn")
}return f
};
this.setData=function(f,g){g[f.config.fluxVarMap.memberState]=d();
g[f.config.fluxVarMap.loginState]=b(f);
return g
}
};
mtvn.btg.reporting.GoogleAnalytics=function(a){this.config=a;
if(a.reportMode=="iframe"){document.write(unescape("%3Cdiv id='btg_ga_div'%3E%3C/div%3E"))
}else{var b=(("https:"==document.location.protocol)?"https://ssl.":"http://www.");
if(!mtvn.btg.globalvars.IS_UNIT_TEST&&!mtvn.btg.reporting.ReportingManager.isScriptIncluded.googleAnalytics){document.write(unescape("%3Cscript src='"+b+"google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
mtvn.btg.reporting.ReportingManager.isScriptIncluded.googleAnalytics=true
}}this.account=a.account
};
mtvn.btg.reporting.GoogleAnalytics.prototype={sendPageCall:function(d){if(this.config.reportMode=="iframe"){var b=document.getElementById("btg_ga_div");
var h=window.location;
var a=d.pageName;
var f=a.substring(0,1)!="/"?"/"+a:a;
var l=document.referrer;
var k="//media.mtvnservices.com/metrics/ga.html?uri=";
l="&ref="+escape(l);
if(b){var g=document.createElement("iframe");
g.src=h.protocol+k+h.hostname+f+l;
g.style.width=1+"px";
g.style.height=1+"px";
g.style.visibility="hidden";
g.style.left=-50+"px";
g.style.top=-50+"px";
g.style.position="absolute";
b.appendChild(g)
}}else{try{if(!mtvn.btg.globalvars.IS_UNIT_TEST){document.write(unescape("%3Cscript type='text/javascript'%3E")+'var pageTracker = _gat._getTracker("'+this.account+'");pageTracker._trackPageview("'+d.pageName+'");'+unescape("%3C/script%3E"))
}}catch(j){}}}};
mtvn.btg.reporting.MediaPlayer={context:null,init:function(a){this.context=a
},players:[],addPlayer:function(a){this.players[a]=new this.Player(a);
return this.players[a]
},setEndSlateClick:function(a){mtvn.btg.util.Cookie.set("mtvn_btg_esclicked",a)
},getEndSlateClick:function(a){return mtvn.btg.util.Cookie.read("mtvn_btg_esclicked")
},Player:function(b){var a=mtvn.btg.config.ReportSettings;
this.id=b;
this.lastGuid=null;
this.swf=null;
this.onLoaded=function(){this.swf=document.getElementById(this.id);
this.swf.addEventListener("METADATA",'mtvn.btg.reporting.MediaPlayer.players["'+this.id+'"].onMetaData');
this.swf.addEventListener("ENDSLATE_CLICK",'mtvn.btg.reporting.MediaPlayer.players["'+this.id+'"].onEndslateLoad')
};
this.onMetaData=function(j){if(location.search.match(/showMetaData\=true/)){str="";
for(m in j){str+=m+": "+j[m]+"\n"
}alert(this.lastGuid+"\n\n\n"+str)
}var g="";
var f=document.location.search;
var d=(f.toLowerCase().indexOf("xrs=mpes_")!=-1?true:false);
if(d){var l=f.replace(/^\?/g,"").split("&");
for(var h=0;
h<l.length;
h++){if(l[h].split("=")[0]=="xrs"){g=(mtvn.btg.util.String.isDefined(l[h].split("=")[1])?l[h].split("=")[1]:"")
}}}if(j.guid&&this.lastGuid!==j.guid){var k={linkName:"Video View",linkType:"o",eVar28:j.contentType,events:"event15"+(mtvn.btg.reporting.MediaPlayer.getEndSlateClick()=="true"?",event45":""),campaign:g};
mtvn.btg.reporting.MediaPlayer.setEndSlateClick("false");
if(typeof mtvn.btg.reporting.UserSegment!="undefined"){mtvn.btg.reporting.UserSegment.add(mtvn.btg.reporting.MediaPlayer.context,"VideoViewer")
}if(typeof mtvn.btg.config.ReportSettings.Omniture.videoViewEventDisable!="undefined"&&mtvn.btg.config.ReportSettings.Omniture.videoViewEventDisable){k.events=k.events.replace(/event15(,)?/gi,"");
k.eVar28=""
}mtvn.btg.Controller.sendLinkEvent(k)
}this.lastGuid=j.guid
};
this.onEndslateLoad=function(){var d={linkName:"Endslate View",linkType:"o",events:"event44"};
if(typeof mtvn.btg.reporting.UserSegment!="undefined"){mtvn.btg.reporting.UserSegment.add(mtvn.btg.reporting.MediaPlayer.context,"EndslateViewer")
}mtvn.btg.Controller.sendLinkEvent(d)
}
},onWindowLoaded:function(b){var a=window.mtvnPlayerLoaded;
var d=function(f){if(typeof a!="undefined"){a(f)
}if(typeof document.getElementById(f)=="undefined"){return
}mtvn.btg.reporting.MediaPlayer.addPlayer(f);
mtvn.btg.reporting.MediaPlayer.players[f].onLoaded()
};
window.mtvnPlayerLoaded=d
}};
try{mtvn.btg.util.Events.addListener(window,"load",mtvn.btg.reporting.MediaPlayer.onWindowLoaded)
}catch(e){}mtvn.btg.reporting.Nielsen=function(b){var a=mtvn.btg.util.String.isDefined;
this.config=b;
this.url="http://secure-us.imrworldwide.com/cgi-bin/m"
};
mtvn.btg.reporting.Nielsen.prototype={formatData:function(b){var d={};
var a=mtvn.btg.util.String.isDefined;
var b=(a(b)?b:{});
this.ci=(a(b.nielsen_cid))?b.nielsen_cid:(a(this.config.cid))?this.config.cid:"";
if(a(this.ci)){d.ci=this.ci;
d.cg=(a(b.nielsen_content))?b.nielsen_content:(a(this.config.content))?this.config.content:"0";
d.ca=(a(b.nielsen_campaign))?b.nielsen_campaign:(a(this.config.campaign))?this.config.campaign:"";
d.cr=(a(b.nielsen_creative))?b.nielsen_creative:(a(this.config.creative))?this.config.creative:"";
d.ce=(a(b.nielsen_execution))?b.nielsen_execution:(a(this.config.execution))?this.config.execution:"";
d.pc=(a(b.nielsen_placement))?b.nielsen_placement:(a(this.config.placement))?this.config.placement:"";
d.rt=(a(b.nielsen_result))?b.nielsen_result:(a(this.config.result))?this.config.result:"";
d.rf=(a(b.nielsen_resultFlag))?b.nielsen_resultFlag:(a(this.config.resultFlag))?this.config.resultFlag:"";
d.rv=(a(b.nielsen_revenue))?b.nielsen_revenue:(a(this.config.revenue))?this.config.revenue:"";
d.ou=(a(b.nielsen_ownership))?b.nielsen_ownership:(a(this.config.ownership))?this.config.ownership:"";
d.sd=(a(b.nielsen_streamDuration))?b.nielsen_streamDuration:(a(this.config.streamDuration))?this.config.streamDuration:"";
d.pg=(a(b.nielsen_primaryGroup))?b.nielsen_primaryGroup:(a(this.config.primaryGroup))?this.config.primaryGroup:"";
d.si=(a(b.nielsen_pageName))?b.nielsen_pageName:(a(this.config.pageName))?this.config.pageName:document.location.href;
d.rp=(a(b.nielsen_referrer))?b.nielsen_referrer:(a(this.config.referrer))?this.config.referrer:document.referrer;
d.ss=(a(b.nielsen_sampleSize))?b.nielsen_sampleSize:(a(this.config.sampleSize))?this.config.sampleSize:"";
d.sv=(a(b.nielsen_survey))?b.nielsen_survey:(a(this.config.survey))?this.config.survey:"";
d.rnd=new Date().getTime()
}return d
},sendPageCall:function(d){var b=mtvn.btg.util.String.isDefined;
var a=new mtvn.btg.util.Beacon(this.url);
a.setData(this.formatData(d));
if(b(this.ci)){a.send()
}}};
mtvn.btg.reporting.Omniture=function(a){this.pageViewEventSet=false;
this.name="Omniture";
this.values=[];
this.newRepeatProp=mtvn.btg.util.String.isDefined(a.newRepeatProp)?a.newRepeatProp:"prop41";
this.config=a;
this.hcode=mtvn.btg.reporting.omniture.Hcode;
this.hcode.setAccount(this.config.account);
for(var b in this.config){this.hcode[b]=this.config[b]
}this.url="http"+(this.hcode.ssl?"s":"")+"://"+this.hcode.un+".112.2o7.net/b/ss/"+this.hcode.un+"/1/";
if(typeof this.config.userSegmentVarMap=="undefined"){this.config.userSegmentVarMap={traffic:"prop31",commerce:"products"};
mtvn.btg.config.ReportSettings.Omniture.userSegmentVarMap=this.config.userSegmentVarMap
}if(typeof mtvn.btg.reporting.UserSegment=="object"){mtvn.btg.reporting.UserSegment.init(this)
}if(typeof this.config.fluxVarMap=="undefined"){this.config.fluxVarMap={memberState:"prop5",loginState:"prop6"};
mtvn.btg.config.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 mtvn_btg_Photos=="object"&&mtvn_btg_Photos!=null)||(typeof mtvn.btg.config.ReportSettings.Omniture.isFlipbook=="boolean"&&mtvn.btg.config.ReportSettings.Omniture.isFlipbook)){mtvn.btg.reporting.Photos.init(this)
}if(typeof this.config.photosVarMap=="undefined"){this.config.photosVarMap={application:"eVar47",gallery:"eVar48",photoId:"eVar46",flipbookView:"event40",photoView:"event41",adView:"event42",timeSpent:"event43"}
}if(typeof this.config.ESIVarMap=="undefined"){this.config.ESIVarMap={asnum:"eVar47",network:"eVar48"}
}if(typeof this.config.pageViewEvent!="string"){this.config.pageViewEvent="event16"
}if(typeof mtvn.btg.reporting.Search=="object"){mtvn.btg.reporting.Search.init(this)
}if(typeof mtvn.btg.reporting.MediaPlayer=="object"){mtvn.btg.reporting.MediaPlayer.init(this)
}if(typeof this.config.sessionVars!="undefined"){mtvn.btg.util.Session.Variables.add(this.config.sessionVars)
}};
mtvn.btg.reporting.Omniture.prototype={setAttribute:function(b,a){if(mtvn.btg.util.String.isDefined(b)){this.hcode[b]=(mtvn.btg.util.String.isDefined(a)?a:"");
return true
}else{return false
}},getAttribute:function(a){return this.hcode[a]
},setValues:function(b){for(var a in b){this.setAttribute(a,b[a]);
this.values.push(a)
}return true
},clearValues:function(){for(x=0;
x<this.values.length;
x++){if(this.values[x]!="pageName"){this.setAttribute(this.values[x],"")
}}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,d,b){return this.hcode.getValOnce(a,d,b)
},getNewRepeat:function(){return this.hcode.getNewRepeat()
},getPageName:function(){return this.getAttribute("pageName")
},preprocessData:function(a){if(typeof mtvn.btg.reporting.UserSegment!="undefined"){a=mtvn.btg.reporting.UserSegment.setData(this,a)
}a=mtvn.btg.util.Session.Variables.setData(a);
return a
},sendPageCall:function(f){f=typeof f!="object"?{}:f;
if(typeof f.pageName!="string"||f.pageName==""){f.pageName=typeof this.hcode.pageName==="string"&&this.hcode.pageName!=""?this.hcode.pageName:mtvn.btg.config.ReportSettings._defaultPageName
}if(typeof this.config.noPagenameSlash!="undefined"&&this.config.noPagenameSlash&&f.pageName.charAt(0)=="/"){f.pageName=f.pageName.substring(1)
}if(typeof this.config.defaultHier=="string"&&this.config.defaultHier!=""){if(typeof f[this.config.defaultHier]!=="string"||f[this.config.defaultHier]==""){if(typeof this.hcode[this.config.defaultHier]==="string"&&this.hcode[this.config.defaultHier]!=""){var a=this.hcode[this.config.defaultHier]
}else{if(typeof f.docHierarchy==="string"&&f.docHierarchy!=""){var a=f.docHierarchy
}else{var a=f.pageName
}}if(a.charAt(a.length-1)=="/"){if(typeof mtvn.btg.config.ReportSettings.indexFileName==="string"){f[this.config.defaultHier]=a+mtvn.btg.config.ReportSettings.indexFileName
}else{f[this.config.defaultHier]=a+"index"
}}else{f[this.config.defaultHier]=a
}f[this.config.defaultHier]=mtvn.btg.util.String.charLtrim(f[this.config.defaultHier],"/")
}}if(typeof f.channel!="string"||f.channel==""){if(typeof this.hcode.channel=="string"){f.channel=this.hcode.channel
}else{if(f.pageName=="/"){f.channel=f.pageName
}else{var j=f.pageName.split("/");
for(var h=0;
h<j.length;
h++){if(j[h]!=""){f.channel=j[h];
break
}}}}}if(typeof f.channel=="string"){f.eVar49=f.channel
}if(typeof mtvn.btg.reporting.SEO!="undefined"){f=mtvn.btg.reporting.SEO.setData(this,f)
}if(typeof mtvn.btg.reporting.BrowserToolbar!="undefined"){f=mtvn.btg.reporting.BrowserToolbar.setData(this,f)
}if((typeof this.config.isFluxHosted=="undefined"||(typeof this.config.isFluxHosted!="undefined"&&this.config.isFluxHosted!=true))&&typeof mtvn.btg.reporting.FluxState!="undefined"){f=mtvn.btg.reporting.FluxState.setData(this,f)
}if(typeof mtvn.btg.reporting.Search!="undefined"){f=mtvn.btg.reporting.Search.setData(f)
}if(typeof mtvn.btg.reporting.Search!="undefined"){f=mtvn.btg.reporting.Search.chkConversions(f)
}if(typeof mtvn.btg.reporting.Photos!="undefined"){f=mtvn.btg.reporting.Photos.setData(f)
}if(typeof mtvn.btg.reporting.RecsABTesting!="undefined"){f=mtvn.btg.reporting.RecsABTesting.setData(this,f)
}if(typeof mtvn.btg.reporting.ESIVars!="undefined"){f=mtvn.btg.reporting.ESIVars.setData(this,f)
}if(typeof this.config.enableTimeParting!="undefined"&&this.config.enableTimeParting==true&&typeof this.config.timePartingVarMap!="undefined"){var b=new Date();
var d=b.getYear();
d=d<2000?d+=1900:d;
var k=(b.getTimezoneOffset()/-60);
f[this.config.timePartingVarMap.commerceHour]=f[this.config.timePartingVarMap.trafficHour]=this.hcode.getTimeParting("h",k,d);
f[this.config.timePartingVarMap.commerceDay]=f[this.config.timePartingVarMap.trafficDay]=this.hcode.getTimeParting("d",k,d)
}if(typeof this.config.percentPageViewedVarMap!="undefined"){if(typeof this.config.percentPageViewedVarMap.previousPage!="undefined"){f[this.config.percentPageViewedVarMap.previousPage]=this.hcode.getPreviousValue(f.pageName,"s_pn")
}if(typeof this.config.percentPageViewedVarMap.percentage!="undefined"){f[this.config.percentPageViewedVarMap.percentage]=this.hcode.getPercentPageViewed()
}}if(!this.pageViewEventSet){var g=typeof f.events==="string"?f.events:"";
if(typeof this.config.pageViewEvent==="string"&&g.indexOf(this.config.pageViewEvent)<0){if(g!=""){g+=","
}g+=this.config.pageViewEvent;
f.events=g;
this.pageViewEventSet=true
}}this.preprocessData(f);
this.setValues(f);
this.setNewRepeat();
this.attachLoggedEvent();
this.hcode.t();
this.clearValues();
return true
},sendLinkEvent:function(b){b=typeof b!="object"?{}:b;
var a=this.getPageName();
b.lnk=b.lnk?this.hcode.co(b.lnk):true;
b.linkType=b.linkType?b.linkType:"o";
b.referrer=location.href;
this.preprocessData(b);
this.setValues(b);
this.setAttribute("pageName","");
this.attachLoggedEvent();
this.hcode.t();
this.clearValues();
this.setAttribute("pageName",a);
return true
},setAccountVars:function(b){this.setAttribute("un",b.name);
this.setAttribute("dynamicAccountSelection",b.dynamic);
this.setAttribute("dynamicAccountList",b.list);
this.setAttribute("linkInternalFilters",b.filters);
this.setAttribute("charSet",b.chartset);
for(var a in b){if(mtvn.btg.util.String.isDefined(a)){this.setAttribute(a,(mtvn.btg.util.String.isDefined(b[a])?b[a]:""))
}}},logEvent:function(a){if(mtvn.btg.util.String.isDefined(a)){if(mtvn.btg.util.String.isDefined(a.UIEvent)){mtvn.btg.util.Cookie.set("UIEvent",a.UIEvent)
}if(mtvn.btg.util.String.isDefined(a.UIEventName)){mtvn.btg.util.Cookie.set("UIEventName",a.UIEventName)
}if(mtvn.btg.util.String.isDefined(a.UITrackingCode)){mtvn.btg.util.Cookie.set("UITrackingCode",a.UITrackingCode)
}}},attachLoggedEvent:function(){if(mtvn.btg.util.String.isDefined(mtvn.btg.util.Cookie.read("UIEvent"))){this.setAttribute("events",mtvn.btg.util.Cookie.read("UIEvent"));
mtvn.btg.util.Cookie.remove("UIEvent")
}if(mtvn.btg.util.String.isDefined(mtvn.btg.util.Cookie.read("UIEventName"))){this.setAttribute("eVar40",mtvn.btg.util.Cookie.read("UIEventName"));
mtvn.btg.util.Cookie.remove("UIEventName")
}if(mtvn.btg.util.String.isDefined(mtvn.btg.util.Cookie.read("UITrackingCode"))){this.setAttribute("campaign",mtvn.btg.util.Cookie.read("UITrackingCode"));
mtvn.btg.util.Cookie.remove("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.QuantCast=function(d){this.labels="";
this.config=d;
var a="p-94wNw88f65Rhk";
var b=(("https:"==document.location.protocol)?"https://secure":"http://edge");
if(!mtvn.btg.globalvars.IS_UNIT_TEST&&!mtvn.btg.reporting.ReportingManager.isScriptIncluded.quantcast){document.write(unescape("%3Cscript src='"+b+".quantserve.com/quant.js' type='text/javascript'%3E%3C/script%3E"));
if(!mtvn.btg.util.String.isDefined(mtvn.btg.util.Cookie.read("qcDemo"))){document.write(unescape("%3Cscript src='http://pixel.quantserve.com/api/segments.json?a="+a+"&callback=mtvn.btg.reporting.QuantCast.Ads.setCookieDemoTargetVal' type='text/javascript'%3E%3C/script%3E"))
}mtvn.btg.reporting.ReportingManager.isScriptIncluded.quantcast=true
}this.labels=this.config.labels
};
mtvn.btg.reporting.QuantCast.prototype={sendPageCall:function(a){if(this.config.reportMode=="direct"){try{_qoptions={labels:this.labels};
_qacct="p-94wNw88f65Rhk";
quantserve()
}catch(b){}}}};
mtvn.btg.reporting.QuantCast.Ads=new function(){this.setLabels=function(d,h){try{var a="";
var b="";
var g="";
b=d.dartSite.replace(/\./g,"_");
g=h.replace(/^\//m,"");
g=g.replace(/\//g,".");
a=mtvn.btg.config.ReportSettings.QuantCast.labels+",Viacom Global Digital Network.MTVN Digital Ad Sales.Content.Pages."+b+"."+g;
_qoptions={labels:a};
_qacct="p-94wNw88f65Rhk";
quantserve()
}catch(f){}};
this.setCookieDemoTargetVal=function(a){var d=[];
for(var b=0;
b<a.segments.length;
b++){d[b]="demo="+a.segments[b].id
}mtvn.btg.util.Cookie.set("qcDemo",escape(d.join(";")))
}
};
mtvn.btg.reporting.ReportingManager=new function(){var q=false;
var j=false;
var k=false;
var f=false;
var b=false;
var l;
var g;
var p;
var n;
var h;
var d;
var a;
this.isScriptIncluded={comscore:false,quantcast:false,googleAnalytics:false};
this.init=function(){g=mtvn.btg.config.ReportSettings;
if(g.Omniture){if(g.Omniture.enabled){p=new mtvn.btg.reporting.Omniture(g.Omniture);
q=true
}}if(g.Nielsen){if(g.Nielsen.enabled){n=new mtvn.btg.reporting.Nielsen(g.Nielsen);
j=true
}}if(g.GoogleAnalytics){if(g.GoogleAnalytics.enabled){a=new mtvn.btg.reporting.GoogleAnalytics(g.GoogleAnalytics);
b=true
}}if(g.QuantCast){if(g.QuantCast.enabled){h=new mtvn.btg.reporting.QuantCast(g.QuantCast);
k=true
}}if(g.ComScore){if(g.ComScore.enabled){d=new mtvn.btg.reporting.ComScore(g.ComScore);
f=true
}}};
this.sendPageCall=function(y){if(q){var r=typeof y.omniture=="object"&&y.omniture!=null?y.omniture:y;
p.sendPageCall(r);
l=p.getPageName()
}if(j){var z=typeof y.nielsen=="object"&&y.nielsen!=null?y.nielsen:y;
n.sendPageCall(z)
}if(k){var w=typeof y.quantCast=="object"&&y.quantCast!=null?y.quantCast:y;
h.sendPageCall(w)
}if(b){var u=typeof y.googleAnalytics=="object"&&y.googleAnalytics!=null?y.googleAnalytics:y;
a.sendPageCall(u)
}if(f){var t=typeof y.comScore=="object"&&y.comScore!=null?y.comScore:y;
d.sendPageCall(t)
}};
this.sendLinkEvent=function(r){if(q){p.sendLinkEvent(r)
}};
this.getData=function(){return{pageName:l}
}
};
mtvn.btg.reporting.Search={events:"",init:function(a){this.context=a
},setData:function(b){if(typeof com_mtvi_SSDC!="object"){return b
}var a="events,prop31";
this._setEvent("event36");
b.eVar3=typeof com_mtvi_SSDC.srchtype=="string"?com_mtvi_SSDC.srchtype:"GENERAL";
if(typeof com_mtvi_SSDC.srchsyn!="undefined"){this._setEvent("event33");
if(typeof com_mtvi_SSDC.srchsyn=="object"){for(s=0;
s<com_mtvi_SSDC.srchsyn.length;
s++){com_mtvi_SSDC.srchsyn[s]=com_mtvi_SSDC.srchsyn[s].replace(/\,/,"")
}com_mtvi_SSDC.srchsyn=com_mtvi_SSDC.srchsyn.join(",")
}b.eVar2=com_mtvi_SSDC.srchterm;
b.eVar36=com_mtvi_SSDC.srchsyn;
a+=",eVar36"
}else{if(typeof com_mtvi_SSDC.srchterm=="string"){this._setEvent("event38");
b.eVar2=com_mtvi_SSDC.srchterm;
a+=",eVar2"
}else{if(typeof com_mtvi_SSDC.srchfail=="string"){this._setEvent("event37");
b.eVar4=typeof com_mtvi_SSDC.appfailure=="boolean"&&com_mtvi_SSDC.appfailure?"APP_FAILURE":com_mtvi_SSDC.srchfail;
a+=",eVar4"
}}}mtvn.btg.reporting.UserSegment.add(this.context,"SiteSearcher");
b.linkTrackVars=a;
b.linkTrackEvents=this.events;
return b
},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
},_setEvent:function(a){if(this.events.indexOf(a)<0){if(this.events!=""){this.events+=","
}this.events+=a
}return this.events
},chkConversions:function(a){if(typeof a.events=="string"){this.events=a.events
}if(mtvn.btg.util.Cookie.read("mtvn_btg_SSDC_conv")){this._setEvent("event35");
mtvn.btg.util.Cookie.remove("mtvn_btg_SSDC_conv")
}if(mtvn.btg.util.Cookie.read("mtvn_btg_SSDC_syn_conv")){this._setEvent("event34");
mtvn.btg.util.Cookie.remove("mtvn_btg_SSDC_syn_conv")
}if(mtvn.btg.util.Cookie.read("mtvn_btg_SSDC_typeahead_conv")){this._setEvent("event39");
mtvn.btg.util.Cookie.remove("mtvn_btg_SSDC_typeahead_conv")
}a.events=this.events;
return a
},setConversion:function(){mtvn.btg.util.Cookie.set("mtvn_btg_SSDC_conv",1)
},setSynConversion:function(){mtvn.btg.util.Cookie.set("mtvn_btg_SSDC_syn_conv",1)
},setTypeAheadConversion:function(){mtvn.btg.util.Cookie.set("mtvn_btg_SSDC_typeahead_conv",1)
}};
mtvn.btg.reporting.SEO={setData:function(a,b){this.setUserSegments(a);
return b
},setUserSegments:function(b){var d=[["google.com","GoogleUser"],["msn.com","MSNUser"],["yahoo.com","YahooUser"]];
for(e=0;
e<d.length;
e++){var a=document.referrer;
if(a.indexOf(d[e][0])>-1){if(typeof mtvn.btg.reporting.UserSegment!="undefined"){mtvn.btg.reporting.UserSegment.add(b,d[e][1])
}}}}};
mtvn.btg.reporting.UserSegment={COOKIE_NAME:"mtvn_btg_userSegments",init:function(a){var b=mtvn.btg.util.Cookie.read(this.COOKIE_NAME);
a.userSegments=b?b.split(","):[];
return true
},add:function(a,b){for(s=0;
s<a.userSegments.length;
s++){if(a.userSegments[s]==b){return false
}}a.userSegments[a.userSegments.length]=b;
mtvn.btg.util.Cookie.set(this.COOKIE_NAME,a.userSegments.join(","));
return true
},getSegments:function(a){return a.userSegments
},getStr:function(b,d,a){if(!d){d=""
}if(!a){a=""
}var f=typeof b.userSegments=="object"&&b.userSegments.length>0?d+b.userSegments.join(a+","+d)+a:null;
return f
},setData:function(a,b){b[a.config.userSegmentVarMap.traffic]=b[a.config.userSegmentVarMap.traffic]?b[a.config.userSegmentVarMap.traffic]+","+this.getStr(a):this.getStr(a);
b[a.config.userSegmentVarMap.commerce]=b[a.config.userSegmentVarMap.commerce]?b[a.config.userSegmentVarMap.commerce]+","+this.getStr(a,";"):this.getStr(a,";");
return b
}};
mtvn.btg.reporting.RecsABTesting={setData:function(b,f){var a=mtvn.btg.util.Cookie.read("RecsVendor");
if(mtvn.btg.util.String.isDefined(a)){var d=null;
switch(a){case"0":d="RecsAB_ChoiceStream";
break;
case"1":d="RecsAB_Control";
break
}if(d){mtvn.btg.reporting.UserSegment.add(b,d)
}}if(mtvn.btg.util.String.isDefined(mtvn.btg.util.Cookie.read("RecsConversion"))){mtvn.btg.reporting.UserSegment.add(b,"RecsAB_ChoiceStream_Clickthrough");
if(typeof f.events==="string"&&f.events.length>0){f.events+=",event40"
}else{f.events="event40"
}mtvn.btg.util.Cookie.remove("RecsConversion")
}return f
},setConversion:function(){mtvn.btg.util.Cookie.set("RecsConversion",1)
}};
mtvn.btg.reporting.ESIVars=new function(){var a=function(){if(typeof mtvn_btg_ESIVars!="object"){return false
}return true
};
this.setData=function(b,d){if(!a()){return d
}if(typeof b.config.ESIVarMap.network=="string"){mtvn.btg.reporting.UserSegment.add(b,mtvn_btg_ESIVars.network)
}if(typeof b.config.ESIVarMap.asnum=="string"){d[b.config.ESIVarMap.asnum]=mtvn_btg_ESIVars.asnum
}if(typeof b.config.ESIVarMap.proxy=="string"){d[b.config.ESIVarMap.proxy]=mtvn_btg_ESIVars.proxy
}if(typeof b.config.ESIVarMap.countryCode=="string"){d[b.config.ESIVarMap.countryCode]=mtvn_btg_ESIVars.countryCode
}return d
}
};
mtvn.btg.reporting.Photos={COOKIE_NAME:"mtvn_photos_timespent",TIMER_INTERVAL:5000,events:"",context:null,init:function(a){if(typeof this.context.config.photosVarMap!="object"||this.context.config.photosVarMap==null){return false
}setInterval("mtvn.btg.reporting.Photos.setTimer()",this.TIMER_INTERVAL);
this.context=a;
return true
},setTimer:function(){var a=mtvn.btg.util.Cookie.read(this.COOKIE_NAME);
if(isNaN(parseInt(a))){a=0
}a=parseInt(a)+(this.TIMER_INTERVAL/1000);
mtvn.btg.util.Cookie.set(this.COOKIE_NAME,a)
},getTimer:function(){var b=mtvn.btg.util.Cookie.read(this.COOKIE_NAME);
var a="Thu, 01-Jan-"+(new Date().getYear()+10)+" 23:59:59 GMT";
mtvn.btg.util.Cookie.set(this.COOKIE_NAME,0,a);
return b
},setData:function(k){this.events=typeof k.events=="string"?k.events:"";
if(typeof mtvn_btg_Photos=="object"&&mtvn_btg_Photos!=null&&typeof this.context.config.photosVarMap=="object"&&this.context.config.photosVarMap!=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.add(this.context,"Photo Viewer")
}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))){var d=typeof this.context.config.photosVarMap.application=="string"?new Array(this.context.config.photosVarMap.application):this.context.config.photosVarMap.application.split(",");
for(var b=0;
b<d.length;
b++){k[d[b]]=mtvn_btg_Photos.application
}var j=typeof this.context.config.photosVarMap.gallery=="string"?new Array(this.context.config.photosVarMap.gallery):this.context.config.photosVarMap.gallery.split(",");
for(var h=0;
h<j.length;
h++){k[j[h]]=mtvn_btg_Photos.gallery
}var f=typeof this.context.config.photosVarMap.photoId=="string"?new Array(this.context.config.photosVarMap.photoId):this.context.config.photosVarMap.photoId.split(",");
for(var l=0;
l<f.length;
l++){k[f[l]]=mtvn_btg_Photos.photoId
}this._setEvent(this.context.config.photosVarMap.photoView);
this._setEvent(this.context.config.photosVarMap.adView);
this._setEvent(this.context.config.photosVarMap.flipbookView);
k.products=";;;;"+this.context.config.photosVarMap.timeSpent+"="+this.getTimer();
this._setEvent(this.context.config.photosVarMap.timeSpent)
}}k.events=this.events;
return k
},sendLinkEvent:function(b){if(typeof b=="object"&&b!=null){if(typeof window.mtvn_btg_Photos=="undefined"){window.mtvn_btg_Photos={}
}for(o in b){mtvn_btg_Photos[o]=b[o]
}}var a={};
a=this.setData(a);
if(typeof a=="undefined"||a.length<4){return false
}if(typeof mtvn_btg_Photos.application!="undefined"){a.linkName=mtvn_btg_Photos.application
}a.linkType="o";
mtvn.btg.Controller.sendLinkEvent(a)
},trackShareButton:function(){mtvn.btg.Controller.sendLinkEvent({linkName:"Photo Share Button",linkType:"o"})
},trackRSSButton:function(){mtvn.btg.Controller.sendLinkEvent({linkName:"Photo RSS Button",linkType:"o"})
},_setEvent:function(a){if(this.events.indexOf(a)<0){if(this.events!=""){this.events+=","
}this.events+=a
}return this.events
}};
mtvn.btg.reporting.BrowserToolbar={setData:function(d,g){var f=mtvn.btg.util.Cookie.read("mtvn_btg_Toolbar");
if(mtvn.btg.util.String.isDefined(f)){mtvn.btg.reporting.UserSegment.add(d,"Toolbar - Main - User");
mtvn.btg.util.Cookie.remove("mtvn_btg_Toolbar")
}var b=mtvn.btg.util.Cookie.read("mtvn_btg_ToolbarSubscriber");
if(mtvn.btg.util.String.isDefined(b)){mtvn.btg.reporting.UserSegment.add(d,"Toolbar - Main - Subscriber");
mtvn.btg.util.Cookie.remove("ToolBarSubscriber")
}var a=mtvn.btg.util.Cookie.read("mtvn_btg_ToolbarHpUser");
if(mtvn.btg.util.String.isDefined(a)){mtvn.btg.reporting.UserSegment.add(d,"Toolbar - Main - HP User")
}return g
}};
var s_code="",s_objectID;
function s_gi(h,j,A){try{var p="=fun`o(~.substring(~){`Ps=^O~.indexOf(~#2 ~;$2~`b$2~=new Fun`o(~.length~.toLowerCase()~`Ps#8c_#k^an+'],~=new Object~};s.~`YMigrationServer~.toUpperCase~){$2~','~s.wd~);s.~')q='~=new Array~ookieDomainPeriods~.location~^LingServer~dynamicAccount~var ~link~s.m_~=='~s.apv~BufferedRequests~Element~)$2x^b!Object#WObject.prototype#WObject.prototype[x])~etTime~visitor~$w@c(~referrer~else ~s.pt(~s.maxDelay~}c#E(e){~#i+~=''~.lastIndexOf(~^wc_i~}$2~.protocol~=new Date~^wobjectID=s.ppu=$I=$Iv1=$Iv2=$Iv3~for(i=~ction~javaEnabled~onclick~Name~ternalFilters~javascript~s.dl~@6s.b.addBehavior(\"# default# ~=parseFloat(~typeof(v)==\"~window~cookie~while(~s.vl_g~Type~;i#U{~tfs~s.un~&&s.~o^woid~browser~.parent~document~colorDepth~String~.host~s.fl(~s.rep(~s.eo~'+tm@S~s.sq~parseInt(~t=s.ot(o)~track~nload~j='1.~this~#PURL~}else{~s.vl_l~lugins~'){q='~dynamicVariablePrefix~');~;for(~Sampling~s.rc[un]~Event~._i~&&(~loadModule~resolution~s.c_r(~s.c_w(~s.eh~s.isie~\"m_\"+n~Secure~Height~tcf~isopera~ismac~escape(~'s_~.href~screen.~s#8gi(~Version~harCode~variableProvider~.s_~)s_sv(v,n[k],i)}~')>=~){s.~)?'Y':'N'~u=m[t+1](~i)clearTimeout(~e&&l$bSESSION'~name~home#P~;try{~,$m)~s.ssl~s.oun~s.rl[u~Width~o.type~s.vl_t~=s.sp(~Lifetime~s.gg('objectID~sEnabled~'+n+'~.mrq(@wun+'\"~ExternalLinks~charSet~lnk~onerror~http~currencyCode~.src~disable~.get~MigrationKey~(''+~&&!~f',~){t=~r=s[f](~u=m[t](~Opera~Math.~s.ape~s.fsg~s.ns6~conne~InlineStats~&&l$bNONE'~Track~'0123456789~true~+\"_c\"]~s.epa(~t.m_nl~s.va_t~m._d~n=s.oid(o)~,'sqs',q);~LeaveQuery~?'&~'=')~n){~\"'+~){n=~'_'+~'+n;~\",''),~,255)}~if(~vo)~s.sampled~=s.oh(o);~+(y<1900?~n]=~1);~&&o~:'';h=h?h~;'+(n?'o.~sess~campaign~lif~ in ~s.co(~ffset~s.pe~m._l~s.c_d~s.brl~s.nrs~s[mn]~,'vo~s.pl~=(apn~space~\"s_gs(\")~vo._t~b.attach~2o7.net'~Listener~Year(~d.create~=s.n.app~)}}}~!='~'||t~)+'/~s()+'~){p=~():''~a['!'+t]~&&c){~://')i+=~){v=s.n.~channel~100~rs,~.target~o.value~s_si(t)~')dc='1~\".tl(\")~etscape~s_')t=t~omePage~='+~&&t~[b](e);~\"){n[k]~';s.va_~a+1,b):~return~mobile~height~events~random~code~=s_~=un~,pev~'MSIE ~'fun~floor(~atch~transa~s.num(~m._e~s.c_gd~,'lt~tm.g~.inner~;s.gl(~,f1,f2~',s.bc~page~Group,~.fromC~sByTag~')<~++)~)){~||!~+';'~i);~y+=~l&&~''+x~[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;`bdc='d1'`5tb`S$V`Fdc`Sd1$r12';`6dc`Sd2$r22';p`g}t1#9+'.'+dc+'.'+p+tb}rs='@O'+(@8?'s'`f'://'+t1+'/b/ss/'+^5+'/'+(s.#3?'5.1':'1'$dH.20.3/'+$C+'?AQB=1&ndh=1'+(q?q`f'&AQE=1'`5^h@Vs.^n`F`T>5.5)rs=^E$n4095);`brs=^E$n2047)`jid^zbr(id,rs);#2}`js.d.images&&`T>=3^b!s.^m||`T>=7)^b@e<0||`T>=6.1)`F!s.rc)s.rc`B`5!^Y){^Y=1`5!s.rl)s.rl`B;@An]`K;s`Xout('$2`y`il)`y`il['+s^an+']@J)',750)^Ql=@An]`5l){r.t=ta;r.u#9;r.r=rs;l[l`8]=r;`4''}imn+=@y^Y;^Y++}im=`H[imn]`5!im)im=`H[im$7new Image;im^wl=0;im.o^M`7'e`G^O^wl=1;`Pwd=`y,s`5wd`il){s=wd`il['+s^an+'];s@J`Inrs--`5!$M)`Rm(\"rr\")}')`5!$M^znrs=1;`Rm('rs')}`b$M++;im@Q=rs`5rs`3'&pe=^y0^b!ta||ta`S_self$ca`S_top'||(`H.@4$xa==`H.@4)#Vb=e`l;^0!im^w#ae.g`X()-b.g`X()<500)e`l}`4''}`4'<im'+'g sr'+'c=@wrs+'\" width=1 #4=1 border=0 alt=\"\">'`Cgg`0v`2`5!`H[^p#g)`H[^p#g`g;`4`H[^p#g`Cglf`0t,a`Ft`10,2)`S$u`12);`Ps=^O,v=s.gg(t)`5v)s#cv`Cgl`0v`2`5s.pg)`cv,`G,'gl@W0)`Crf`0x`2,y,i,j,h,l,a,b`g,c`g,t`5x){y`g+x;i=y`3'?')`5i>0){a=y`1i+$8y=y`10,#Yh=y`9;i=0`5h`10,7)`S@O$j7;`6h`10,8)`S@Os$j8;h=h`1#Yi=h`3\"/\")`5i>0){h=h`10,i)`5h`3'google^y0){a@Ea,'&')`5a`8>1){l=',q,ie,start,search_key,word,kw,cd,'^Wj=0;j<a`8;j++@Xa[j];i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l,sed=Math&&@b#6?@b#D@b#6()*$m00000000000):#K`X(),$C='s'+@b#D#K`X()/10800000)%10+sed,y=tm@S$X),vt=tm@SDate($d^HMonth($d'$6y+1900:y)+' ^HHour$e:^HMinute$e:^HSecond$e ^HDay()+#f#K`XzoneO$H(),^l,^4=s.g^4(),ta`g,q`g,qs`g,#7`g,vb`B#M^1`Iuns(`Im_ll()`5!s.td){`Ptl=^4`M,a,o,i,x`g,c`g,v`g,p`g,bw`g,bh`g,^N0',k=^f^pcc`G@k',0@0,hp`g,ct`g,pn=0,ps`5^C&&^C.prototype){^N1'`5j.m#E){^N2'`5tm.setUTCDate){^N3'`5^h^6^n&&`T#h^N4'`5pn.toPrecisio@v^N5';a`K`5a.forEach){^N6';i=0;o`B;^l`7'o`G`Pe,i=0@6i=new Iterator(o)`e}`4i^Vi=^l(o)`5i&&i.next)^N7'}}}}`j`T>=4)x=^rwidth+'x'+^r#4`5s.isns||s.^m`F`T>=3$k`p(@0`5`T>=4){c=^rpixelDepth;bw=`H#L@B;bh=`H#L^k}}$P=s.n.p^S}`6^h`F`T>=4$k`p(@0;c=^r^B`5`T#h{bw=s.d.^A`V.o$H@B;bh=s.d.^A`V.o$H^k`5!s.^n^6b){^l`7's`Gtl`G`Pe,hp=0`vh$v\");hp=s.b.isH$v(tl)?\"Y\":\"N\"`e}`4hp^Vhp=^l(s,tl);^l`7's`G`Pe,ct=0`vclientCaps\");ct=s.b.@f`o^2`e}`4ct^Vct=^l(s$a`br`g`j$P)^0pn<$P`8&&pn<30){ps=^E$P[pn].@4@7#X`5p`3ps)<0)p+=ps;pn++}s.^d=x;s.^B=c;s.`t^t=j;s.`p=v;s.`z@H=k;s.^8@B=bw;s.^8^k=bh;s.@f`o^2=ct;s.@5=hp;s.p^S=p;s.td=1`j$3{`c^1,`G$O2',vb`Ipt(^1,`G$O1',$3`js.useP^S)s.doP^S(s);`Pl=`H`M,r=^4.^A.`a`5!s.^P)s.^P=l^q?l^q:l`5!s.`a@Vs._1_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h[0]}s.n=navigator;s.u=s.n.userAgent;@e=s.u`3'N$t6/^V`Papn$Z`r,v$Z^t,ie=v`3#B'),o=s.u`3'@a '),i`5v`3'@a^y0||o>0)apn='@a';^h$Q`SMicrosoft Internet Explorer'`Iisns$Q`SN$t'`I^m$Q`S@a'`I^n=(s.u`3'Mac^y0)`5o>0)`T`ws.u`1o+6));`6ie>0){`T=^Ji=v`1ie+5))`5`T>3)`T`wi)}`6@e>0)`T`ws.u`1@e+10));`b`T`wv`Iem=0`5^C#R^u){i=^o^C#R^u(256))`E(`Iem=(i`S%C4%80'?2:(i`S%U0$m'?1:0))}s.sa(un`Ivl_l='^U,`YID,vmk,`Y@T,`D,`D^j,ppu,@L,`Y`r$R,c`L,`z@F,#P`r,^P,`a,@P#0l@E^R,`G`Ivl_t=^R+',^v,$l,server,#P^2,#F`oID,purchaseID,$D,state,zip,#5,products,`Q`r,`Q^2'^W`Pn=1;n<51;n#U@D+=',prop@I,eVar@I,hier@I,list@z^R2=',tnt,pe#A1#A2#A3,^d,^B,`t^t,`p,`z@H,^8@B,^8^k,@f`o^2,@5,p^S';@D+=^R2;@o@E@D,`G`Ivl_g=@D+',`N,`N^j,`NBase,fpC`L,@R`U,#3,`Y^X,`Y^X#Q`OSele`o,`OList,`OM#E,^LDow^MLinks,^L@K,^L@g,`Q@s^C,`QDow^MFile^2s,`QEx`s,`QIn`s,`Q@iVa$n`Q@i^Zs,`Q`rs,@M,eo,_1_`a#0g@E^1,`G`Ipg=pg#M^1)`5!ss)`Hs()",r=window,f=r.s_c_il,b=navigator,y=b.userAgent,t=b.appVersion,k=t.indexOf("MSIE "),d=y.indexOf("Netscape6/"),q,g,z;
if(h){h=h.toLowerCase();
if(f){for(g=0;
g<f.length;
g++){z=f[g];
if(!z._c||z._c=="s_c"){if(z.oun==h){return z
}else{if(z.fs&&z.sa&&z.fs(z.oun,h)){z.sa(h);
return z
}}}}}}r.s_an="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";
r.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.substring(i,j<0?x.length:j);i=j;if(i>=0)i+=d.length}}return a");
r.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");
r.s_rep=new Function("x","o","n","return s_jn(s_sp(x,o),n)");
r.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");
r.s_fe=new Function("c","return s_rep(s_rep(s_rep(c,'\\\\','\\\\\\\\'),'\"','\\\\\"'),\"\\n\",\"\\\\n\")");
r.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");
r.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){if(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;");
p=s_d(p);
if(k>0){q=parseInt(g=t.substring(k+5));
if(q>3){q=parseFloat(g)
}}else{if(d>0){q=parseFloat(y.substring(d+10))
}else{q=parseFloat(t)
}}if(q>=5&&t.indexOf("Opera")<0&&y.indexOf("Opera")<0){r.s_c=new Function("un","pg","ss","var s=this;"+p);
return new s_c(h,j,A)
}else{z=new Function("un","pg","ss","var s=new Object;"+s_ft(p)+";return s")
}return z(h,j,A)
}catch(k){}}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(cval+30*24*60*60*1000);s.c_w('s_nr',ct,e);return 'Repeat';}else return 'Repeat';")
}if(typeof mtvn.btg.reporting.omniture.Hcode==="object"){mtvn.btg.reporting.omniture.Hcode.getTimeParting=new Function("t","z","y","dc=new Date('1/1/2000');f=15;ne=8;if(dc.getDay()!=6||dc.getMonth()!=0){return'Data Not Available'}else{;z=parseInt(z);if(y=='2009'){f=8;ne=1};gmar=new Date('3/1/'+y);dsts=f-gmar.getDay();gnov= new Date('11/1/'+y);dste=ne-gnov.getDay();spr=new Date('3/'+dsts+'/'+y);fl=new Date('11/'+dste+'/'+y);cd=new Date();if(cd>spr&&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!=y){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;var daystring=dow;var endstring=dt;if(t=='h'){return timestring}if(t=='d'){return daystring};if(t=='w'){return endstring}}};")
}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.documentElement.clientHeight||s.d.body.clientHeight),st=s.wd.pageYOffset||(s.wd.document.documentElement.scrollTop||s.wd.document.body.scrollTop),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,false);s.wd.addEventListener('resize',s.getPPVCalc,false);}else if(s.wd.attachEvent){s.wd.attachEvent('onload',s.getPPVCalc);s.wd.attachEvent('onscroll',s.getPPVCalc);s.wd.attachEvent('onresize',s.getPPVCalc);}");
mtvn.btg.reporting.omniture.Hcode.getPPVSetup()
}mtvn.btg.ads.AdManager=new function(){var h=false;
var d=false;
var j=false;
var b;
var f=[];
var g={};
var a=0;
this.reloadableAds={};
this.init=function(){b=mtvn.btg.config.AdSettings;
var k={};
if(b.DoubleClick){if(b.DoubleClick.enabled){h=true;
if(mtvn.btg.util.String.isDefined(b.DoubleClick.sections)){b.DoubleClick.sections=mtvn.btg.util.String.stripFileExtension(b.DoubleClick.sections);
k.sections=b.DoubleClick.sections
}else{this.setDefaultSections();
if(mtvn.btg.util.String.isDefined(g.sections)){k.sections=g.sections
}}k.dartSite=b.DoubleClick.dartSite;
g.tile=0;
g.ord=mtvn.btg.util.Math.random(100000000000000000,1000000000000000000)
}}if(b.International){if(b.International.enabled){d=true;
if(mtvn.btg.util.String.isDefined(b.International.sections)){b.International.sections=mtvn.btg.util.String.stripFileExtension(b.International.sections);
k.sections=b.International.sections
}else{this.setDefaultSections();
if(mtvn.btg.util.String.isDefined(g.sections)){k.sections=g.sections
}}k.dartSite=b.International.dartSite;
g.tile=0;
g.ord=mtvn.btg.util.Math.random(100000000000000000,1000000000000000000)
}}if(b.QuantCast){if(b.QuantCast.enabled){j=true
}}if(j){PlatoAd=new mtvn.btg.ads.DoubleClickAd(b.DoubleClick);
dmobj={size:"728x90",contentType:"adj"};
dmobj.sections=k.sections;
if(mtvn.btg.util.String.isDefined(b.QuantCast.vertical)){PlatoAd.setKeyValues("vertical="+b.QuantCast.vertical)
}PlatoAd.init(dmobj);
PlatoAd.getUrl();
mtvn.btg.reporting.QuantCast.Ads.setLabels(k,PlatoAd.getSections())
}};
this.placeAd=function(l){if(typeof(mtvn.btg.config.AdSettings.isCodaAdsUsed)!="undefined"){mtvn.btg.config.AdSettings.isCodaAdsUsed=true
}var k=this.getAd(l);
return k.placeAd(l)
};
this.placeIFrameAd=function(k,n){if(typeof(mtvn.btg.config.AdSettings.isCodaAdsUsed)!="undefined"){mtvn.btg.config.AdSettings.isCodaAdsUsed=true
}var l="container"+n.reloadableAdId;
this.reloadableAds[n.reloadableAdId]={data:n};
document.write('<iframe allowtransparency="true" name="'+l+'" id="'+l+'" src="'+k+"?"+n.reloadableAdId+'" width='+n.size.split("x")[0]+" height="+n.size.split("x")[1]+' marginwidth=0 marginheight=0 frameborder=0 scrolling="no"></iframe>')
};
this.getData=function(){return g
};
this.setDefaultSections=function(k){sections=(mtvn.btg.util.String.isDefined(k)?k:mtvn.btg.util.Sections.getAdSections());
if(mtvn.btg.util.String.isDefined(sections)){g.sections=mtvn.btg.util.String.stripFileExtension(sections)
}};
this.getAd=function(l){var k;
if(d&&l.adType==="InternationalAd"){k=new mtvn.btg.ads.InternationalAd(b.International);
g.tile++;
l=this.setReloadableAdData(l);
if(mtvn.btg.util.String.isDefined(l.sections)){l.sections=mtvn.btg.util.String.stripFileExtension(l.sections)
}mtvn.btg.util.Object.copyProperties(g,l);
k.init(l);
f.push(k)
}else{if(h){k=new mtvn.btg.ads.DoubleClickAd(b.DoubleClick);
g.tile++;
l=this.setReloadableAdData(l);
if(mtvn.btg.util.String.isDefined(l.sections)){l.sections=mtvn.btg.util.String.stripFileExtension(l.sections)
}mtvn.btg.util.Object.copyProperties(g,l);
k.init(l);
f.push(k)
}else{document.write("<!-- [ERROR: Ads not enabled. Please check your config or placeAd() method call!] -->");
return null
}}return k
};
this.getAdUrl=function(k){return this.getAd(k).getUrl()
};
this.setReloadableAdData=function(k){if(mtvn.btg.util.String.isDefined(k.reloadableAdId)&&mtvn.btg.util.String.isDefined(this.reloadableAds[k.reloadableAdId])){++a;
k.ord=g.ord=(mtvn.btg.util.String.isDefined(this.reloadableAds[k.reloadableAdId].tile)&&this.hasReloadComplete()?mtvn.btg.util.Math.random(100000000000000000,1000000000000000000):g.ord);
k.tile=g.tile=this.reloadableAds[k.reloadableAdId].tile=(mtvn.btg.util.String.isDefined(this.reloadableAds[k.reloadableAdId].tile)?this.reloadableAds[k.reloadableAdId].tile:g.tile)
}if(mtvn.btg.util.String.isDefined(k.loadOrder)){k.tile=k.loadOrder
}return k
};
this.hasReloadComplete=function(){var l=0;
for(var k in this.reloadableAds){l++
}if(a>l){a=1;
return true
}return false
}
};
mtvn.btg.ads.AtomAd=function(a){this.config=a;
this.type="AtomAd"
};
mtvn.btg.ads.AtomAd.prototype={placeAd:function(a){document.write("[mtvn.btg.ads.AtomAd.placeAd() Stub Method]")
}};
mtvn.btg.ads.DoubleClickAd=function(a){this.config=a;
this.type="DoubleClickAd";
this.id;
this.server="ad.doubleclick.net";
this.ssl=false;
this.dartSite;
this.contentType="adj";
this.mediaType="standard";
this.sections;
this.keyValues="";
this.size;
this.zoneOverride=null;
this.tile;
this.positionThreshold;
this.ord;
this.additionalKeyValues=[];
this.position;
this.partner;
this.exclusions=[];
this.reservedKeyValues={};
this.autoDcopt=(a.autoDcopt)?true:false;
if(mtvn.btg.util.Object.isDefined(mtvn.btg.ads.AdManager)&&!mtvn.btg.ads.AdManager.dcoptOn){mtvn.btg.ads.AdManager.dcoptOn=false
}this.isDevEnv=false;
if(mtvn.btg.globalvars.IS_TOP_ACCESSIBLE&&top.location.hostname.indexOf("mtvi.com")>-1){this.isDevEnv=true
}for(var b in a){if(mtvn.btg.util.String.isDefined(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{if(b=="positionThreshold"){this.setPositionThreshold(a[b])
}else{this[b]=a[b]
}}}}}};
mtvn.btg.ads.DoubleClickAd.prototype={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){a=a.replace(/[^\/\w=!;|-]/g,"_");
while(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]
}},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.setPositionThreshold(this.getKeyValue("threshold="))
}}},setSize:function(a){this.size=a
},setTile:function(a){this.tile=a
},setPositionThreshold:function(a){if(isNaN(parseInt(a))){this.positionThreshold=null
}else{this.positionThreshold=parseInt(a)
}},setOrd:function(a){this.ord=a
},setPartner:function(a){this.partner=a
},addExclusionCategory:function(a){a=a.replace(/^;+|;+$/g,"");
this.exclusions.push("!category="+a)
},addKeyValues:function(a){if(mtvn.btg.util.String.isDefined(a)&&a.indexOf("=")>-1){this.additionalKeyValues.push(a)
}},appendKeyValue:function(b,a){if(!mtvn.btg.util.String.isDefined(b)){b=""
}if(!mtvn.btg.util.String.isDefined(a)){a=""
}b=b.replace(/^;+|;+$/g,"");
a=a.replace(/^;+|;+$/g,"");
if(b.indexOf("=")>-1){a+=";"+b
}a=a.replace(/^;+|;+$/g,"");
return a
},getProtocol:function(){return this.ssl?"https://":"http://"
},getPosition:function(){var a="unk";
if(mtvn.btg.util.String.isDefined(this.position)){if(this.position.indexOf("atf")>-1){a="atf"
}else{if(this.position.indexOf("btf")>-1){a="btf"
}}}else{if(mtvn.btg.util.String.isDefined(this.positionThreshold)){a=(this.tile<=this.positionThreshold)?"atf":"btf"
}}return a
},getKeyValue:function(b){var d;
if(this.keyValues.indexOf(b)>-1){var a=this.keyValues.split(b);
if(a.length>0){if(a[1].indexOf(";")>-1){d=a[1].substring(0,a[1].indexOf(";"))
}else{d=a[1]
}}}return d
},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(";")
},formatZone:function(){var g=this.getPosition()+"_"+this.getContentTypeAbbreviation()+"_"+this.mediaType.substr(0,1);
var b=g+"/";
var h=this.getSections();
if(mtvn.btg.util.String.isDefined(this.keyValues)){if(this.keyValues.indexOf("partner=")>-1){var f=this.getKeyValue("partner=");
if(mtvn.btg.util.String.isDefined(f)){b+=f+"/";
this.addExclusionCategory(f);
this.addExclusionCategory("partner")
}else{this.addKeyValues("partner=null")
}}if(this.keyValues.indexOf("vertical=")>-1){var a=this.getKeyValue("vertical=");
if(mtvn.btg.util.String.isDefined(a)){h=a+"/"+h;
this.setSections(h)
}}if(this.keyValues.indexOf("synd=")>-1){var d=this.getKeyValue("synd=");
if(mtvn.btg.util.String.isDefined(d)){this.addExclusionCategory(d)
}}}b=b.replace(/^\d/,"_"+b.match(/^\d/,"_"));
return b+h
},formatSectionValues:function(){try{var d=this.sections.split("/")
}catch(b){d=["[ERROR: Sections Not Defined!]"]
}var a=0;
var f=[];
for(x=0;
x<d.length;
x++){if(mtvn.btg.util.String.isDefined(d[x])){f.push("sec"+a+"="+d[x]);
a++
}}return f.join(";")
},formatKeyValues:function(){var a=this.getAdditionalKeyValues();
if(mtvn.btg.util.String.isDefined(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
}this.keyValues=this.formatReserved();
if(mtvn.btg.util.String.isDefined(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
}var b=mtvn.btg.util.Cookie.read("qcDemo");
if(mtvn.btg.util.String.isDefined(b)&&this.keyValues.indexOf("demo=D")==-1){this.keyValues+=";"+unescape(b)
}if(mtvn.btg.util.String.isDefined(this.reservedKeyValues.dcmt)){this.keyValues+=";dcmt="+this.reservedKeyValues.dcmt
}if(this.autoDcopt&&this.tile=="1"){this.keyValues+=";dcopt=ist";
mtvn.btg.ads.AdManager.dcoptOn=true
}if(mtvn.btg.util.String.isDefined(this.reservedKeyValues.dcopt)){if(mtvn.btg.ads.AdManager.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;
mtvn.btg.ads.AdManager.dcoptOn=true
}}if(this.exclusions.length>0){this.keyValues+=";"+this.getExclusions()
}if(mtvn.btg.util.String.isDefined(this.reservedKeyValues.dcove)){this.keyValues+=";dcove="+this.reservedKeyValues.dcove
}this.keyValues=this.keyValues.replace(/^;+|;+$/g,"");
return this.keyValues
},formatReserved:function(){var d=this.keyValues;
var b=["dcmt","dcopt","dcove"];
for(var g=0;
g<b.length;
g++){if(d.indexOf(b[g]+"=")>-1){var f=this.getKeyValue(b[g]+"=");
var h=d.split(b[g]+"="+f);
for(var a=0;
a<h.length;
a++){h[a]=h[a].replace(/^;+|;+$/g,"")
}this.reservedKeyValues[b[g]]=f;
d=h.join(";")
}}return d
},formatUValues:function(b){var a=b;
a=a.replace(/\;/g,"|");
a=a.replace(/\=/g,"-");
return a
},getAdditionalKeyValues:function(){return this.additionalKeyValues.join(";")
},getValues:function(){var a=mtvn.btg.util.String.isDefined(this.zoneOverride)?this.zoneOverride:this.formatZone();
var f=this.formatKeyValues();
var d=this.formatSectionValues();
var b=this.formatUValues(f);
if(b!=""){b="u="+b
}return{id:this.id,protocol:this.getProtocol(),server:this.server,dartSite:this.dartSite,contentType:this.contentType,mediaType:this.mediaType,zone:a,sections:d,keyValues:f,uValues:b,ord:this.ord}
},formatUrl:function(a){var f=[a.protocol+a.server,a.contentType,a.dartSite,a.zone];
var b=f.join("/");
var d=[b,a.sections];
if(mtvn.btg.util.String.isDefined(a.keyValues)){d.push(a.keyValues)
}if(mtvn.btg.util.String.isDefined(a.uValues)){d.push(a.uValues)
}if(a.ord>0){d.push("ord="+a.ord+"?")
}return d.join(";")
},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 b=[];
var a=this.getValues();
a.url=this.formatUrl(a);
for(var d in a){if(typeof(a[d]=="string")){b.push("<"+d+"></"+a[d]+">")
}}return"<doubleClickAd>"+b.join("")+"</doubleClickAd>"
},placeAd:function(f){if(this.contentType=="adi"){var d="ad"+this.tile;
var b=this.size.split("x");
var a='<iframe allowtransparency="true" id="'+d+'" name="'+d+'" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" width="'+b[0]+'" height="'+b[1]+'" src="'+this.getUrl()+'"></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)
}if(mtvn.btg.util.String.isDefined(f)&&mtvn.btg.util.String.isDefined(f.reloadableAdId)){return a
}else{if(typeof exposeTestFunctionNames=="undefined"){document.write(a)
}}}else{var a='<script type="text/javascript" src="'+this.getUrl()+'"><\/script>';
if(mtvn.btg.globalvars.IS_TOP_ACCESSIBLE&&mtvn.btg.util.String.queryStringToObject(top.location.search).mockupMode=="true"){a=mtvn.btg.util.String.mockItUp(a)
}if(mtvn.btg.util.String.isDefined(f)&&mtvn.btg.util.String.isDefined(f.reloadableAdId)){return a
}else{if(typeof exposeTestFunctionNames=="undefined"){document.write(a)
}}}},init:function(a){if(typeof(a)==="object"){if(mtvn.btg.util.String.isDefined(a.zoneOverride)){this.setZoneOverride(a.zoneOverride)
}if(mtvn.btg.util.String.isDefined(a.id)){this.setId(a.id)
}if(mtvn.btg.util.String.isDefined(a.server)){this.setServer(a.server)
}if(mtvn.btg.util.String.isDefined(a.ssl)){this.setSsl(a.ssl)
}if(mtvn.btg.util.String.isDefined(a.dartSite)){this.setDartSite(a.dartSite)
}if(mtvn.btg.util.String.isDefined(a.contentType)){this.setContentType(a.contentType)
}if(mtvn.btg.util.String.isDefined(a.mediaType)){this.setMediaType(a.mediaType)
}if(mtvn.btg.util.String.isDefined(a.position)){this.setPosition(a.position)
}if(mtvn.btg.util.String.isDefined(a.sections)){this.setSections(a.sections)
}if(mtvn.btg.util.String.isDefined(a.keyValues)){this.setKeyValues(a.keyValues)
}if(mtvn.btg.util.String.isDefined(a.size)){this.setSize(a.size)
}else{this.setSize("[ERROR: Size Not Defined!]")
}if(mtvn.btg.util.String.isDefined(a.tile)){this.setTile(a.tile)
}if(mtvn.btg.util.String.isDefined(a.positionThreshold)){this.setPositionThreshold(a.positionThreshold)
}if(mtvn.btg.util.String.isDefined(a.ord)){this.setOrd(a.ord)
}if(mtvn.btg.util.String.isDefined(a.partner)){this.setPartner(a.partner)
}}}};
mtvn.btg.ads.InternationalAd=function(a){this.config=a;
this.type="InternationalAd";
this.ad=new mtvn.btg.ads.DoubleClickAd(a);
this.logvalue="0";
this.demovalue="none";
this.eventvalue="none";
this.regionvalue="none";
this.keywordvalue="none";
this.vidvalue="none";
this.vid_typevalue="none";
this.ad.formatSectionValues=function(){var h=this.sections.split("/");
var f="none";
var d="none";
var j="none";
var g=[];
if(mtvn.btg.util.String.isDefined(h[0])){f=h[0]
}else{f="_hp"
}if(mtvn.btg.util.String.isDefined(h[1])){d=h[1]
}if(mtvn.btg.util.String.isDefined(h[2])){for(x=2;
x<h.length;
x++){if(mtvn.btg.util.String.isDefined(h[x])){g.push(h[x])
}}j=g.join("/")
}var b="sec0="+f+";sec1="+d+";secN="+j;
return b
};
this.ad.formatUValues=function(){return""
};
this.init=function(b){}
};
mtvn.btg.ads.InternationalAd.prototype={placeAd:function(b){this.ad.sections=b.sections;
this.ad.setSize(b.size);
this.ad.setTile(b.tile);
this.ad.setPositionThreshold(b.tile);
this.addInternationalValues(b);
this.ad.setOrd(b.ord);
if(b.getUrl){if(mtvn.btg.util.String.isDefined(b)&&mtvn.btg.util.String.isDefined(b.reloadableAdId)){return this.ad.getUrl()
}else{if(typeof exposeTestFunctionNames=="undefined"){document.write(this.ad.getUrl())
}}}else{var a='<br><script type="text/javascript" src="'+this.ad.getUrl()+'"><\/script>';
if(mtvn.btg.globalvars.IS_TOP_ACCESSIBLE&&mtvn.btg.util.String.queryStringToObject(top.location.search).mockupMode=="true"){a=mtvn.btg.util.String.mockItUp(a)
}if(mtvn.btg.util.String.isDefined(b)&&mtvn.btg.util.String.isDefined(b.reloadableAdId)){return a
}else{if(typeof exposeTestFunctionNames=="undefined"){document.write(a)
}}}},addInternationalValues:function(a){if(a.log==0||mtvn.btg.util.String.isDefined(a.log)){this.ad.addKeyValues("log="+a.log)
}if(mtvn.btg.util.String.isDefined(a.demo)){this.ad.addKeyValues("demo="+a.demo)
}if(mtvn.btg.util.String.isDefined(a.event)){this.ad.addKeyValues("event="+a.event)
}if(mtvn.btg.util.String.isDefined(a.keyword)){this.ad.addKeyValues("search_kw="+a.keyword)
}if(mtvn.btg.util.String.isDefined(a.vid)){this.ad.addKeyValues("vid="+a.vid)
}if(mtvn.btg.util.String.isDefined(a.vid_type)){this.ad.addKeyValues("vid_type="+a.vid_type)
}if(mtvn.btg.util.String.isDefined(a.region)){this.ad.addKeyValues("region="+a.region)
}this.ad.addKeyValues("url="+escape(a.sections))
}};
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(b){for(var a in b){mtvn.btg.config.ReportSettings.Omniture[a]=b[a]
}return true
};
this.addRegisterLinks=function(){return true
};
this.setDefaultData=function(b,a){if(mtvn.btg.util.String.isDefined(b)){mtvn.btg.config.ReportSettings.Omniture[b]=mtvn.btg.util.String.isDefined(a)?a:"";
return true
}else{return false
}}
};
com.mtvi.reporting.Dispatcher=function(){this.getValOnce=function(a,d,b){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(d){var a=(com.mtvi.reporting.Controller.initalized?mtvn.btg.reporting.omniture.Hcode:mtvn.btg.config.ReportSettings.Omniture);
for(var b=1;
b<=50;
b++){a["eVars"+b]="";
a["prop"+b]="";
if(b<6){a["hier"+b]=""
}}a.pageName="";
a.channel="";
if(!com.mtvi.reporting.Controller.initalized){mtvn.btg.Controller.init();
com.mtvi.reporting.Controller.initalized=true
}mtvn.btg.Controller.sendLinkEvent(d)
};
this.registerLinks=function(){return true
};
this.setAttribute=function(b,a){if(mtvn.btg.util.String.isDefined(b)){var d=(com.mtvi.reporting.Controller.initalized?mtvn.btg.reporting.omniture.Hcode:mtvn.btg.config.ReportSettings.Omniture);
d[b]=mtvn.btg.util.String.isDefined(a)?a:"";
return true
}else{return false
}};
this.getAttribute=function(a){var b=(com.mtvi.reporting.Controller.initalized?mtvn.btg.reporting.omniture.Hcode:mtvn.btg.config.ReportSettings.Omniture);
return b[a]
};
this.setValues=function(b){for(var a in b){this.setAttribute(a,b[a])
}return true
};
this.setDefaultData=function(){};
this.clearProps=function(){try{for(var b=1;
b<=50;
b++){this.widget.setAttribute("prop"+b,"")
}}catch(a){}};
this.clearAllVars=function(){var a=(com.mtvi.reporting.Controller.initalized?mtvn.btg.reporting.omniture.Hcode:mtvn.btg.config.ReportSettings.Omniture);
try{for(var f=1;
f<=50;
f++){a["prop"+f]=""
}for(var d=1;
d<=50;
d++){a["eVars"+d]=""
}for(var b=1;
b<=5;
b++){a["hier"+b]=""
}a.pageName="";
a.channel=""
}catch(d){}}
};
com.mtvi.reporting.MediaPlayer={addPlayer:function(b){var a=mtvn.btg.reporting.MediaPlayer.addPlayer(b);
return a.id
}};
com.mtvi.ads.AdManager=new function(){var a="";
var b=300000;
this.setDartSite=function(f){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=f
}else{if(mtvn.btg.config.AdSettings.International.enabled){mtvn.btg.config.AdSettings.International.dartSite=f
}}}catch(d){}};
this.setPositionThreshold=function(d){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=d
}else{if(mtvn.btg.config.AdSettings.International.enabled){mtvn.btg.config.AdSettings.International.positionThreshold=d
}}}catch(f){}};
this.setSiteName=function(d){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=d
}else{if(mtvn.btg.config.AdSettings.International.enabled){mtvn.btg.config.AdSettings.International.siteName=d
}}}catch(f){}};
this.setDefaultSections=function(d){if(mtvn.btg.util.String.isDefined(d)){mtvn.btg.config.AdSettings.DoubleClick.sections=d
}};
this.setKeyValues=function(d){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=d
}else{if(mtvn.btg.config.AdSettings.International.enabled){mtvn.btg.config.AdSettings.International.keyValues=d
}}}catch(f){}};
this.getFormattedSections=function(g){var l=g;
try{l=(g=="/")?g:mtvn.btg.util.String.charTrim(g,"/");
var f=g.length;
var d="index";
if(mtvn.btg.util.Object.isDefined(com.mtvi.reporting.Account)&&mtvn.btg.util.String.isDefined(com.mtvi.reporting.Account.defaultIndexFileName)){d=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)){d=mtvn.btg.config.AdSettings.defaultIndexFileName
}d=mtvn.btg.util.String.stripFileExtension(d);
var n=["/",d,"home/"+d];
for(var j=0;
j<n.length;
j++){if(g.indexOf(n[j])==0&&f==n[j].length){l=g.replace(n[j],"_hp");
break
}}if(l==""){l="_hp"
}var h=mtvn.btg.util.String.stripFileExtension(l).split("/");
if(h.length==2){if(h[1]==d){l=mtvn.btg.util.String.stripFileExtension(l).replace(d,"_mn")
}}}catch(k){}return l
};
this.placeAd=function(d){try{if(typeof(mtvn.btg.config.AdSettings.isCodaAdsUsed)!="undefined"){mtvn.btg.config.AdSettings.isCodaAdsUsed=true
}if(!com.mtvi.reporting.Controller.initalized){mtvn.btg.Controller.init();
com.mtvi.reporting.Controller.initalized=true
}if(!mtvn.btg.util.String.isDefined(d.sections)){if(mtvn.btg.util.Object.isDefined(mtvn.btg.config.AdSettings.DoubleClick)&&mtvn.btg.util.String.isDefined(mtvn.btg.config.AdSettings.DoubleClick.sections)){d.sections=mtvn.btg.config.AdSettings.DoubleClick.sections
}else{d.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(d)&&!mtvn.btg.util.String.isDefined(d.adType)){d.adType="InternationalAd"
}d.sections=this.getFormattedSections(d.sections);
mtvn.btg.ads.AdManager.placeAd(d)
}catch(f){}};
this.setServer=function(f){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=f
}else{if(mtvn.btg.config.AdSettings.International.enabled){mtvn.btg.config.AdSettings.International.server=f
}}}catch(d){}};
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(d){}};
this.setDefaultContentType=function(d){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=d
}else{if(mtvn.btg.config.AdSettings.International.enabled){mtvn.btg.config.AdSettings.International.contentType=d
}}}catch(f){}};
this.setZoneOverride=function(d){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=d
}else{if(mtvn.btg.config.AdSettings.International.enabled){mtvn.btg.config.AdSettings.International.zoneOverride=d
}}}catch(f){}};
this.IFrameAds=[];
this.placeIFrameAd=function(g){try{if(typeof(mtvn.btg.config.AdSettings.isCodaAdsUsed)!="undefined"){mtvn.btg.config.AdSettings.isCodaAdsUsed=true
}var f=this.getAd(g);
var d=new com.mtvi.util.IFrameReloader(g.containerId);
d.src=f.getUrl();
d.width=f.getWidth();
d.height=f.getHeight();
d.write();
if(g.reloadAd){this.IFrameAds.push(d)
}}catch(h){}};
this.setReloadInterval=function(d){try{b=parseInt(d);
mtvn.btg.util.Events.addListener(window,"load",function(){try{window.setInterval("com.mtvi.ads.AdManager.reloadIFrameAds()",b)
}catch(g){}})
}catch(f){}};
this.setAdClass=function(d){if(d=="InternationalAd"){a="InternationalAd"
}};
this.getAdById=function(d){return null
};
this.getDartSite=function(){var f=null;
try{if(mtvn.btg.util.String.isDefined(mtvn.btg.ads.AdManager.data.dartSite)){f=mtvn.btg.ads.AdManager.data.dartSite
}}catch(d){try{f=mtvn.btg.config.AdSettings.DoubleClick.dartSite
}catch(d){}}return f
};
this.getAd=function(d){var g=null;
try{g=mtvn.btg.ads.AdManager.getAd(d)
}catch(f){}return g
};
this.getReloadInterval=function(){try{return b
}catch(d){}};
this.reloadIFrameAds=function(){for(var d=0;
d<this.IFrameAds.length;
d++){this.reloadIFrameAd(d)
}};
this.reloadIFrameAd=function(d){var f=this.IFrameAds[d].src;
if(d==0){ord=Math.random(100000000000000000,1000000000000000000)
}if(f.indexOf("ord=")>-1){f=f.split("ord=")[0]+"ord="+ord+"?"
}this.IFrameAds[d].src=f;
this.IFrameAds[d].reload()
};
this.setZone=function(d){};
this.getNewAd=function(d){};
this.populateNamesValuesObj=function(d){}
};
com.mtvi.ads.DoubleClickAd=function(a){};
com.mtvi.ads.DoubleClickAd.prototype={setZoneOverride:function(a){},setDartSite:function(a){},setOrd:function(a){},placeAd:function(){},getXml:function(){return null
},getJson:function(){return null
},getUrl:function(){return null
},getSections:function(){return null
},setSize:function(a){},setSections:function(a){},setContentType:function(a){},setKeyValues:function(a){},setTile:function(a){},setPositionThreshold:function(a){},setServer:function(a){},setSsl:function(){},setMediaType:function(a){},setPosition:function(a){},setPartner:function(a){},setId:function(a){}};
com.mtvi.reporting.FluxWidgeted={setVars:function(){return true
}};
com.mtvi.reporting.GoogleAnalytics={makeCall:function(b,a){return true
}};
com.mtvi.reporting.QuantCast=new function(){this.sendQuantCastCall=function(a){return true
}
};
com.mtvi.reporting.Search={setVars:function(a){return true
},sendLinkEvent:function(a){return true
},setConversion:function(){return true
},setSynConversion:function(){return true
}};
com.mtvi.util={toObject:function(f,b){var b=b?b:",";
var h=f.split(b);
var d={};
for(var a=0;
a<h.length;
a++){var g=h[a].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.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,1000000);
this.width;
this.height;
this.src;
this.lastLoaded=0
}catch(b){}};
com.mtvi.util.IFrameReloader.prototype={reload:function(){try{var d=new Date();
var b=(d.getMinutes()*60000)+(d.getSeconds()*1000);
var a=b-this.lastLoaded;
if(a>5000){var h=document.getElementById(this.containerId);
var f=document.createElement("iframe");
f.id=this.id;
f.width=this.width;
f.height=this.height;
f.style.width=this.width;
f.style.height=this.height;
f.src=this.src;
f.frameBorder="0";
f.scrolling="no";
f.marginheight="0";
f.marginwidth="0";
f.style.margin="0";
f.style.zIndex="99";
f.style.border="0";
f.style.borderWidth="0px";
h.removeChild(document.getElementById(this.id));
h.appendChild(f)
}this.lastLoaded=b
}catch(g){}},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.config.ReportSettings={version:"2.23",defaultPageName:mtvn.btg.globalvars.PAGE_URL,Omniture:{enabled:true,account:"nickvia",charSet:"",dynamicAccountSelection:"true",dynamicAccountList:"nickviadev=nick-d.mtvi.com,nick-q.mtvi.com",linkInternalFilters:"javascript:,nick.com",videoViewEventDisable:false,enableTimeParting:false,trackInlineStats:false,defaultHier:"hier1"},Nielsen:{enabled:false,cid:"us-300231",videoCensusId:"c02"},GoogleAnalytics:{enabled:false,account:"",reportMode:""},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,Kids and Family Viral,Nickelodeon Kids Digital,Kids and Family Gaming,Kids and Family Paid Products,Nick Network,Nick Site",reportMode:""},ComScore:{enabled:true,c2:"6036034"}};
mtvn.btg.config.AdSettings={isCodaAdsUsed:false,DoubleClick:{enabled:false,dartSite:""},International:{enabled:false,dartSite:""},QuantCast:{enabled:false}};
com.mtvi.reporting.VideoCensus=new function(){var a=com.mtvi.util.isDefined;
var e="http://secure-us.imrworldwide.com/cgi-bin/m?";
var b="1";
var d=function(k){var f=[];
try{if(a(k.title)&&k.title.indexOf("dav0-")==-1){k.title="dav0-"+k.title
}if(a(k.videoCensusId)&&k.videoCensusId.indexOf("vc")==-1){k.videoCensusId="vc,"+k.videoCensusId
}if(a(k.streamType)&&k.streamType.indexOf("st")==-1){k.streamType="st,"+k.streamType
}if(a(k.programType)&&k.programType.indexOf("pt")==-1){k.programType="pt,"+k.programType
}}catch(j){}try{var h={ci:a(k.clientId)?k.clientId:"",si:a(k.streamUrl)?escape(k.streamUrl):"",tl:a(k.title)?escape(k.title):"",cg:a(k.section)?escape(k.section):"",c3:a(k.streamType)?k.streamType:"",c4:a(k.programType)?k.programType:"",c6:a(k.videoCensusId)?k.videoCensusId:"",cc:b,rnd:Math.ceil(Math.random()*1000000000)};
for(var g in h){if(a(h[g])){f.push(g+"="+h[g])
}}return e+f.join("&")
}catch(j){}};
var c=function(g){try{if(a(g)){var f=new Image(1,1);
f.src=g;
f.onload=function(){return
}
}}catch(h){}};
this.sendCall=function(g){try{if(a(g.clientId)){c(d(g))
}}catch(f){}}
};
function Configuration(orig){this.orig=orig;
this.setting={};
this.setting.name="";
this.setting.dynamicAccountSelection=false;
this.setting.dynamicAccountList="";
this.setting.linkInternalFilters="";
this.setting.trackExternalLinks=false;
this.setting.trackDownloadLinks=false;
this.setting.trackInlineStats=false;
this.setting.pageName="";
this.setting.hier2="";
this.setting.channel="";
this.setting.prop1="";
this.setting.prop2="";
this.setting.prop3="";
this.setting.prop4="";
this.setting.prop5="";
this.setting.prop6="";
this.setting.prop7="";
this.setting.prop8="";
this.setting.prop9="";
this.setting.prop10="";
this.setting.prop11="";
this.setting.prop12="";
this.setting.prop13="";
this.setting.prop14="";
this.setting.prop15="";
this.setting.prop16="";
this.setting.prop17="";
this.setting.prop18="";
this.setting.prop19="";
this.setting.prop20="";
this.setting.prop23="";
this.setting.prop24="";
this.setting.prop25="";
this.setting.prop26="";
this.setting.prop27="";
this.setting.prop28="";
this.setting.prop29="";
this.setting.prop30="";
this.setting.prop31="";
this.setting.prop32="";
this.setting.prop33="";
this.setting.prop34="";
this.setting.prop35="";
this.setting.prop36="";
this.setting.prop37="";
this.setting.prop38="";
this.setting.prop39="";
this.setting.prop40="";
this.setting.prop41="";
this.setting.prop42="";
this.setting.prop43="";
this.setting.prop44="";
this.setting.prop45="";
this.setting.prop46="";
this.setting.prop47="";
this.setting.prop48="";
this.setting.prop49="";
this.setting.prop50="";
this.setting.eVar1="";
this.setting.eVar2="";
this.setting.eVar3="";
this.setting.eVar4="";
this.setting.eVar5="";
this.setting.eVar6="";
this.setting.eVar7="";
this.setting.eVar8="";
this.setting.eVar9="";
this.setting.eVar10="";
this.setting.campaign="";
this.setting.events="";
this.setting.products="";
this.setting.lnk=false;
this.setting.linkType="";
this.setting.linkName="";
this.showPage=false;
this.videoSuite="";
this.init=function(){if(typeof this.orig!="undefined"){this.setting.name=this.orig.getName();
this.setting.dynamicAccountSelection=this.orig.isDynamicAccountSelection();
this.setting.dynamicAccountList=this.orig.getDynamicAccountList();
this.setting.linkInternalFilters=this.orig.getLinkInternalFilters();
this.setting.trackExternalLinks=this.orig.isTrackExternalLinks();
this.setting.trackDownloadLinks=this.orig.isTrackDownloadLinks();
this.setting.trackInlineStats=this.orig.isTrackInlineStats();
this.setting.pageName=this.orig.getPageName();
this.setting.hier1=this.orig.getHier1();
this.setting.hier2=this.orig.getHier2();
this.setting.channel=this.orig.getChannel();
this.setting.prop1=this.orig.getProp(1);
this.setting.prop2=this.orig.getProp(2);
this.setting.prop3=this.orig.getProp(3);
this.setting.prop4=this.orig.getProp(4);
this.setting.prop5=this.orig.getProp(5);
this.setting.prop6=this.orig.getProp(6);
this.setting.prop7=this.orig.getProp(7);
this.setting.prop8=this.orig.getProp(8);
this.setting.prop9=this.orig.getProp(9);
this.setting.prop10=this.orig.getProp(10);
this.setting.prop11=this.orig.getProp(11);
this.setting.prop12=this.orig.getProp(12);
this.setting.prop13=this.orig.getProp(13);
this.setting.prop14=this.orig.getProp(14);
this.setting.prop15=this.orig.getProp(15);
this.setting.prop16=this.orig.getProp(16);
this.setting.prop17=this.orig.getProp(17);
this.setting.prop18=this.orig.getProp(18);
this.setting.prop19=this.orig.getProp(19);
this.setting.prop20=this.orig.getProp(20);
this.setting.prop23=this.orig.getProp(23);
this.setting.prop24=this.orig.getProp(24);
this.setting.prop25=this.orig.getProp(25);
this.setting.prop26=this.orig.getProp(26);
this.setting.prop27=this.orig.getProp(27);
this.setting.prop28=this.orig.getProp(28);
this.setting.prop29=this.orig.getProp(29);
this.setting.prop30=this.orig.getProp(30);
this.setting.prop31=this.orig.getProp(31);
this.setting.prop32=this.orig.getProp(32);
this.setting.prop33=this.orig.getProp(33);
this.setting.prop34=this.orig.getProp(34);
this.setting.prop35=this.orig.getProp(35);
this.setting.prop36=this.orig.getProp(36);
this.setting.prop37=this.orig.getProp(37);
this.setting.prop38=this.orig.getProp(38);
this.setting.prop39=this.orig.getProp(39);
this.setting.prop40=this.orig.getProp(40);
this.setting.prop41=this.orig.getProp(41);
this.setting.prop42=this.orig.getProp(42);
this.setting.prop43=this.orig.getProp(43);
this.setting.prop44=this.orig.getProp(44);
this.setting.prop45=this.orig.getProp(45);
this.setting.prop46=this.orig.getProp(46);
this.setting.prop47=this.orig.getProp(47);
this.setting.prop48=this.orig.getProp(48);
this.setting.prop49=this.orig.getProp(49);
this.setting.prop50=this.orig.getProp(50);
this.setting.eVar1=this.orig.getEVar(1);
this.setting.eVar2=this.orig.getEVar(2);
this.setting.eVar3=this.orig.getEVar(3);
this.setting.eVar4=this.orig.getEVar(4);
this.setting.eVar5=this.orig.getEVar(5);
this.setting.eVar6=this.orig.getEVar(6);
this.setting.eVar7=this.orig.getEVar(7);
this.setting.eVar8=this.orig.getEVar(8);
this.setting.eVar9=this.orig.getEVar(9);
this.setting.eVar10=this.orig.getEVar(10);
this.setting.campaign=this.orig.getCampaign();
this.setting.events=this.orig.getEvents();
this.setting.products=this.orig.getProducts();
this.showPage=this.orig.isShowPage();
this.videoSuite=this.orig.getVideoSuite()
}};
this.getName=function(){return this.setting.name
};
this.setName=function(name){this.setting.name=name
};
this.isDynamicAccountSelection=function(){return this.setting.dynamicAccountSelection
};
this.setDynamicAccountSelection=function(das){this.setting.dynamicAccountSelection=das
};
this.getDynamicAccountList=function(){return this.setting.dynamicAccountList
};
this.setDynamicAccountList=function(dal){this.setting.dynamicAccountList=dal
};
this.getLinkInternalFilters=function(){return this.setting.linkInternalFilters
};
this.setLinkInternalFilters=function(lif){this.setting.linkInternalFilters=lif
};
this.isTrackExternalLinks=function(){return this.setting.trackExternalLinks
};
this.setTrackExternalLinks=function(tel){this.setting.trackExternalLinks=tel
};
this.isTrackDownloadLinks=function(){return this.setting.trackDownloadLinks
};
this.setTrackDownloadLinks=function(tdl){this.setting.trackDownloadLinks=tdl
};
this.isTrackInlineStats=function(){return this.setting.trackInlineStats
};
this.setTrackInlineStats=function(tns){this.setting.trackInlineStats=tns
};
this.getPageName=function(){return this.setting.pageName
};
this.setPageName=function(pagename){this.setting.pageName=pagename
};
this.getHier1=function(){return this.setting.hier1
};
this.setHier1=function(hier1){this.setting.hier1=hier1
};
this.getHier2=function(){return this.setting.hier2
};
this.setHier2=function(hier2){this.setting.hier2=hier2
};
this.getChannel=function(){return this.setting.channel
};
this.setChannel=function(chan){this.setting.channel=chan
};
this.isShowPage=function(){return this.showPage
};
this.setShowPage=function(isSP){this.showPage=isSP
};
this.getVideoSuite=function(){return this.videoSuite
};
this.setVideoSuite=function(vs){this.videoSuite=vs
};
this.getProp=function(n){return(eval("this.setting.prop"+n))
};
this.setProp=function(n,value){eval("this.setting.prop"+n+'="'+value+'"')
};
this.getEVar=function(n){return(eval("this.setting.eVar"+n))
};
this.setEVar=function(n,value){eval("this.setting.eVar"+n+'="'+value+'"')
};
this.getCampaign=function(){return this.setting.campaign
};
this.setCampaign=function(c){this.setting.campaign=c
};
this.getEvents=function(){return this.setting.events
};
this.setEvents=function(e){this.setting.events=e
};
this.getProducts=function(){return this.setting.products
};
this.setProducts=function(p){this.setting.products=p
};
this.isLink=function(){return this.setting.lnk
};
this.setLink=function(lnk){this.setting.lnk=lnk
};
this.getLinkType=function(){return this.setting.linkType
};
this.setLinkType=function(linkType){this.setting.linkType=linkType
};
this.getLinkName=function(){return this.setting.linkName
};
this.setLinkName=function(linkName){this.setting.linkName=linkName
}
};
if(typeof KIDS=="undefined"||!KIDS){var KIDS={}
}KIDS.namespace("reporting");
KIDS.reporting.config;
KIDS.reporting.qs;
Configuration.prototype.initialize=function(){try{this.init();
this.setting.name="vianickatnite,nickvia";
this.setting.dynamicAccountSelection=false;
this.setting.dynamicAccountList="";
this.setting.linkInternalFilters="javascript:,nickatnite.com";
this.setting.trackExternalLinks=true;
this.setting.trackDownloadLinks=true;
this.setting.trackInlineStats=true;
if(!this.isLink()){this.setting.pageName="/nan"+location.pathname;
this.setting.pageName=(this.setting.pageName.charAt(this.setting.pageName.length-1)=="/")?this.setting.pageName+"index.html":this.setting.pageName;
if(this.setting.pageName.indexOf(".")<0){if(this.setting.pageName.lastIndexOf("/")!=this.setting.pageName.length-1){this.setting.pageName+="/"
}}this.setting.hier2=this.setting.pageName.substr(1);
if(this.setting.pageName.indexOf(".")<0){this.setting.hier2+="index.html"
}this.setting.channel="nan";
this.setting.prop3=location.search;
if(KIDS.get("fccRelatedShow")!=null){this.setting.prop15=KIDS.get("urlAlias")
}}}catch(a){}};
KIDS.reporting.init=function(){KIDS.reporting.qs=mtvn.btg.util.String.queryStringToObject(location.href);
KIDS.reporting.config=new Configuration();
KIDS.reporting.config.initialize();
mtvn.btg.config.ReportSettings.Omniture.account="vianickatnite,nickvia";
mtvn.btg.config.ReportSettings.Omniture.dynamicAccountSelection="false";
mtvn.btg.config.ReportSettings.Omniture.linkInternalFilters="javascript:,nickatnite.com";
mtvn.btg.config.ReportSettings.Omniture.trackInlineStats=true;
mtvn.btg.config.ReportSettings.Omniture.trackExternalLinks=true;
mtvn.btg.config.ReportSettings.Omniture.trackDownloadLinks=true
};
KIDS.reporting.firePageLoad=function(){KIDS.reporting.omnifunctions.sendReportingCall()
};
mtvn.btg.config.AdSettings.DoubleClick.enabled=true;
mtvn.btg.config.AdSettings.DoubleClick.dartSite="nan.nol";
mtvn.btg.config.AdSettings.DoubleClick.positionThreshold="3";
if(typeof KIDS=="undefined"||!KIDS){var KIDS={}
}KIDS.namespace("reporting.omnifunctions");
KIDS.reporting.omnifunctions.sendReportingCall=function(b){try{if(b==null){b=KIDS.reporting.config
}if(b.getPageName().indexOf("comscore")<0){var a=mtvn.btg.config.ReportSettings.Omniture.account;
if(mtvn.btg.util.String.isDefined(b.setting.name)){mtvn.btg.config.ReportSettings.Omniture.account=b.setting.name
}mtvn.btg.Controller.init();
mtvn.btg.Controller.sendPageCall(b.setting);
if(mtvn.btg.util.String.isDefined(b.setting.name)){mtvn.btg.config.ReportSettings.Omniture.account=a;
mtvn.btg.Controller.init()
}}}catch(c){KIDS.utils.doLog(c.toString())
}};
KIDS.reporting.omnifunctions.sendLinkEvent=function(d,b){try{var a=mtvn.btg.config.ReportSettings.Omniture.account;
if(mtvn.btg.util.String.isDefined(d)){mtvn.btg.config.ReportSettings.Omniture.account+=","+d;
mtvn.btg.Controller.init()
}mtvn.btg.Controller.sendLinkEvent({linkName:b,linkType:"o"});
if(mtvn.btg.util.String.isDefined(d)){mtvn.btg.config.ReportSettings.Omniture.account=a;
mtvn.btg.Controller.init()
}}catch(c){KIDS.utils.doLog(c.toString())
}};
KIDS.reporting.omnifunctions.sendAnalyticsEvent=function(c,a){try{if(com.mtvi.util.isDefined(a)){KIDS.reporting.omnifunctions.sendLinkEvent(c,a)
}}catch(b){KIDS.utils.doLog(b.toString())
}};
KIDS.reporting.omnifunctions.pageNameAppend=function(c){try{var b=new Configuration();
b.init();
var a=KIDS.reporting.config.getPageName();
b.setPageName(a+"-"+c);
KIDS.reporting.omnifunctions.sendReportingCall(b);
KIDS.reporting.omnifunctions.comscoreReport("comscore")
}catch(d){KIDS.utils.doLog(d.toString())
}};
KIDS.reporting.omnifunctions.pageNameReset=function(b){try{var a=new Configuration();
a.init();
a.setPageName(b);
KIDS.reporting.omnifunctions.sendReportingCall(a)
}catch(c){KIDS.utils.doLog(c.toString())
}};
KIDS.reporting.omnifunctions.kcaVoteEvent=function(a){try{mtvn.btg.Controller.sendLinkEvent({linkName:"KCA Voting:"+a,linkType:"o",events:"event5"})
}catch(b){KIDS.utils.doLog(b.toString())
}};
KIDS.reporting.omnifunctions.searchSetConversion=function(){try{if(com){com.mtvi.reporting.Search.setConversion()
}}catch(a){KIDS.utils.doLog(a.toString())
}};
KIDS.reporting.omnifunctions.reportCoverFlowImpression=function(c,b){try{mtvn.btg.Controller.sendLinkEvent({linkName:"Video Cover Flow Promo",linkType:"o",prop23:c,prop24:b})
}catch(a){KIDS.utils.doLog(a.toString())
}};
KIDS.reporting.omnifunctions.reportCoverFlowClickThru=function(c,b){try{mtvn.btg.Controller.sendLinkEvent({linkName:"Video Cover Flow Promo",linkType:"o",prop25:c,prop26:b})
}catch(a){}};
KIDS.reporting.omnifunctions.sendInitCall=function(c,b,a){elementString=c+"-"+b+"-"+a;
linkName="/init_click_tracking/"+elementString;
KIDS.reporting.omnifunctions.sendLinkEvent(null,linkName)
};
KIDS.reporting.omnifunctions.reportPlayer=function(c,a,b){};
KIDS.reporting.omnifunctions.sendKaraoke=function(a){try{var b=new Configuration(KIDS.reporting.config);
b.init();
b.setPageName("/turbonick/karaoke/"+a);
b.setHier2(b.getPageName());
KIDS.reporting.omnifunctions.sendReportingCall(b)
}catch(c){KIDS.utils.doLog(c.toString())
}};
KIDS.reporting.omnifunctions.trackEvent=function(b){try{var a=new Configuration(KIDS.reporting.config);
a.init();
a.setPageName(a.getPageName()+"/event-"+b);
KIDS.reporting.omnifunctions.sendReportingCall(a)
}catch(c){KIDS.utils.doLog(c.toString())
}};
KIDS.reporting.omnifunctions.trackKCA=function(b){try{var a=new Configuration(KIDS.reporting.config);
a.init();
a.setPageName(a.getPageName()+"/kca07-"+b);
KIDS.reporting.omnifunctions.sendReportingCall(a)
}catch(c){KIDS.utils.doLog(c.toString())
}};
KIDS.reporting.omnifunctions.trackGamePlay=function(c,a){try{var b=new Configuration(KIDS.reporting.config);
b.init();
b.setPageName(b.getPageName()+"/event-"+c);
b.setProp(4,a);
KIDS.reporting.omnifunctions.sendReportingCall(b)
}catch(d){KIDS.utils.doLog(d.toString())
}};
KIDS.reporting.omnifunctions.bghReport=function(b){try{KIDS.reporting.account.name=suiteID;
var a=new Configuration(KIDS.reporting.config);
a.init();
a.setPageName(a.getPageName()+"-"+b);
a.setHier2(a.getPageName());
KIDS.reporting.omnifunctions.sendReportingCall(a)
}catch(c){KIDS.utils.doLog(c.toString())
}};
KIDS.reporting.omnifunctions.fetchGamePlaySite=function(c){var d=new RegExp("(nick)(?:-(?:jd|d|jq|q).mtvi)?.com","gi");
var a=d.exec(c);
if(a){d=new RegExp("/(turbonick|nicktropolis)/","gi");
var b=d.exec(c);
if(b){return(b[1])
}return(a[1])
}else{d=new RegExp("(nickjr)(?:-[dq].mtvi)?.com","gi");
a=d.exec(c);
if(a){if(c.indexOf("/playtime/")>0){return("playtime")
}return(a[1])
}else{d=new RegExp("(noggin)(?:-[dq].mtvi)?.com","gi");
a=d.exec(c);
if(a){return(a[1])
}else{d=new RegExp("(shockwave|addictinggames|the-n).*.com","gi");
a=d.exec(c);
if(a){return(a[1])
}else{d=new RegExp("localhost:9090","gi");
a=d.exec(c);
if(a){return("nick-localhost")
}else{return(null)
}}}}}};
KIDS.reporting.omnifunctions.trackKidsGamePlay=function(f){try{var b=new Configuration();
b.init();
var a=fetchGamePlaySite(document.URL);
var c="viakidsgameplay";
if(a=="nicktropolis"){c+=",vianicktropoliscom"
}b.setName(c);
b.setDynamicAccountSelection(false);
b.setChannel(a);
b.setHier1(a+"/"+f);
b.setHier2("");
b.setProp(1,b.getHier1());
b.setProp(2,f);
b.setProp(3,a);
KIDS.reporting.omnifunctions.sendReportingCall(b)
}catch(d){}};
KIDS.reporting.omnifunctions.getTime=function(){try{var h=new Date();
var a=(h.getHours());
var b=h.getMinutes();
b=b+"";
if(b.length==1){b="0"+b
}var c=b;
var g=a+":"+c;
return g
}catch(f){}};
KIDS.reporting.omnifunctions.trackKCATabs=function(a){try{KIDS.reporting.omnifunctions.sendLinkCall("KCA_DOS_"+a,"")
}catch(b){}};
KIDS.reporting.omnifunctions.trackKCACamera=function(f,b){try{var c;
if(f=="476039229"){var c="burgerking"
}if(f=="476039233"){var c="genmills"
}if(f=="476039234"){var c="hasbro"
}if(f=="476039230"){var c="nintendo"
}if(f=="476039231"){var c="kmart"
}if(f=="476039232"){var c="koolaid"
}var a=new Configuration(KIDS.reporting.config);
a.init();
a.setName("viaturbonick");
a.setDynamicAccountSelection(true);
a.setDynamicAccountList("nickviadev=nick-d.mtvi.com,nick-q.mtvi.com");
a.setLinkInternalFilters("javascript:,nick.com");
a.setTrackExternalLinks(true);
a.setTrackDownloadLinks(true);
a.setTrackInlineStats(false);
a.setProp(21,NICK.utils.getTimezone());
a.setPageName("/KCA_Webcam_"+b);
a.setHier1("KCA_Webcam/"+b+"/");
a.setHier2(a.getHier1());
KIDS.reporting.omnifunctions.sendReportingCall(a);
com.mtvi.reporting.VideoCensus.sendCall({videoCensusId:"vc,c02",clientId:"us-300231",streamUrl:"",title:"KCA_Webcam_"+b});
if(location.pathname!="/kids-choice-awards/liveair"){KIDS.reporting.omnifunctions.updateRefreshAds("camera",c,"ad-728x90Div;ad-300x250Div")
}}catch(d){KIDS.utils.doLog("KIDS.reporting.omnifunctions.trackKCACamera failed:"+d)
}};
KIDS.reporting.omnifunctions.incrementReactorator=function(a){if(a=="omg"){KIDS.reporting.omgCount++
}if(a=="lol"){KIDS.reporting.lolCount++
}if(a=="slime"){KIDS.reporting.wootCount++
}KIDS.reporting.reactoratorInteraction=true
};
KIDS.reporting.kcaSubCounter=0;
KIDS.reporting.omnifunctions.kcaCounter=function(){KIDS.reporting.kcaSubCounter++;
if(KIDS.reporting.kcaSubCounter==12){KIDS.reporting.omnifunctions.sendReactorator();
KIDS.reporting.kcaSubCounter=0
}};
KIDS.reporting.omnifunctions.sendReactorator=function(){try{var a=new Configuration();
a.setName("nickvia");
a.setDynamicAccountSelection(true);
a.setDynamicAccountList("nickviadev=nick-d.mtvi.com,nick-q.mtvi.com");
a.setLinkInternalFilters("javascript:,nick.com");
a.setTrackExternalLinks(false);
a.setTrackDownloadLinks(false);
a.setTrackInlineStats(false);
a.setLink("true");
a.init();
a.setLinkType("o");
a.setLinkName("Reactorator Counter");
a.setEVar("14",KIDS.reporting.omnifunctions.getTime());
KIDS.reporting.coast=NICK.utils.getTimezone();
var b="";
var d=";;;;";
if(KIDS.reporting.coast=="east"){if(KIDS.reporting.omgCount>0){b+="event11,";
d+="event11="+KIDS.reporting.omgCount+";"
}if(KIDS.reporting.lolCount>0){b+="event12,";
d+="event12="+KIDS.reporting.lolCount+";"
}if(KIDS.reporting.wootCount>0){b+="event13";
d+="event13="+KIDS.reporting.wootCount
}}else{if(KIDS.reporting.coast=="west"){if(KIDS.reporting.omgCount>0){b+="event6,";
d+="event6="+KIDS.reporting.omgCount+";"
}if(KIDS.reporting.lolCount>0){b+="event7,";
d+="event7="+KIDS.reporting.lolCount+";"
}if(KIDS.reporting.wootCount>0){b+="event8";
d+="event8="+KIDS.reporting.wootCount
}}}a.setEvents(b);
a.setProducts(d);
if(KIDS.reporting.reactoratorInteraction==true){KIDS.reporting.omnifunctions.sendReportingCall(a);
KIDS.reporting.omnifunctions.clearDispatcherEVars(20);
KIDS.reporting.omgCount=0;
KIDS.reporting.lolCount=0;
KIDS.reporting.wootCount=0;
KIDS.reporting.reactoratorInteraction=false
}}catch(c){KIDS.utils.doLog("KIDS.reporting.omnifunctions.sendReactorator failed:"+c)
}};
KIDS.reporting.omnifunctions.clearDispatcherEVars=function(b){try{var a=(com.mtvi.reporting.Controller.initalized?mtvn.btg.reporting.omniture.Hcode:mtvn.btg.config.ReportSettings.Omniture);
for(var c=b;
c>0;
c--){a["eVar"+c]=""
}}catch(d){KIDS.utils.doLog("KIDS.reporting.omnifunctions.clearDispatcherEVars failed:"+d)
}};
KIDS.reporting.omnifunctions.doShowTemplateAction=function(a){try{KIDS.reporting.omnifunctions.pageNameAppend(a);
changeAd(a)
}catch(b){}};
KIDS.reporting.omnifunctions.sendMyNickItem=function(a){linkName="/myNick/itemAdd/"+a;
KIDS.reporting.omnifunctions.sendLinkEvent("",linkName)
};
KIDS.reporting.omnifunctions.BGHPledgeReporting=function(d,g){try{var a=new Configuration(KIDS.reporting.config);
a.init();
var b;
var c;
if(d!=null&&g!=null){b="/"+d+"/"+g+"/viaWeb";
c="/"+g+"/"+d+"/viaWeb"
}a.setPageName(a.getPageName()+b);
a.setHier2(a.getHier2()+c);
KIDS.reporting.omnifunctions.sendReportingCall(a);
KIDS.reporting.omnifunctions.comscoreReport("comscore")
}catch(f){}};
KIDS.reporting.omnifunctions.comscoreReport=function(a){try{var c='<iframe id="'+a+'" src="/ad/comscore" style="overflow:hidden;margin:0px;padding:0px;display:none;" scrolling="no" width="1" height="1" frameborder="0"></iframe>';
if($("#"+a).length){$("#"+a).replaceWith(c)
}else{$(c).appendTo("body")
}}catch(b){}};
KIDS.reporting.omnifunctions.pageNameAppendNicktoons=function(b){try{var a=new Configuration(KIDS.reporting.config);
a.init();
if(b!=null&&b.length>0){b="-"+b
}a.setName("vianicktoons");
a.setPageName(a.getPageName()+b);
KIDS.reporting.omnifunctions.sendReportingCall(a);
KIDS.reporting.omnifunctions.comscoreReport("comscore")
}catch(c){}};
KIDS.reporting.omnifunctions.reportKCA=function(){try{var a=new Configuration(KIDS.reporting.config);
a.init();
a.setPageName("/kids-choice-awards/overlay_voting/"+a.getChannel());
a.setHier2(a.getPageName().substr(1));
KIDS.reporting.omnifunctions.sendReportingCall(a)
}catch(b){}};
KIDS.reporting.omnifunctions.mashupReporting=function(b){try{var a=new Configuration(KIDS.reporting.config);
a.init();
a.setPageName(a.getPageName()+"/mashups/"+b);
a.setHier1("turbonick/mashups/"+b);
a.setName("nickvia");
KIDS.reporting.omnifunctions.sendReportingCall(a)
}catch(c){}};
KIDS.reporting.omnifunctions.nanPrint=function(b,f,d,a){try{KIDS.reporting.omnifunctions.reportPrint("viakfprint","nickatnite",b,f,d,a)
}catch(c){}};
KIDS.reporting.omnifunctions.printTracker=function(b,f,d,a){try{KIDS.reporting.omnifunctions.reportPrint("viakfprint","nicktoons",b,f,d,a)
}catch(c){}};
KIDS.reporting.omnifunctions.printReporting=function(b,c,g,f,a){try{KIDS.reporting.omnifunctions.reportPrint("viakfprint",b,c,g,f,a)
}catch(d){}};
KIDS.reporting.omnifunctions.reportPrint=function(d,c,f,j,h,a){try{var b=new Configuration(KIDS.reporting.config);
b.init();
b.setName(d);
b.setPageName(c+"-"+j+"-"+h+"-"+f);
b.setChannel(c);
b.setHier1(c+"/"+j+"/"+h+"/"+f);
b.setHier2(b.getHier1());
b.setProp(1,a);
b.setProp(2,c);
b.setProp(3,j);
b.setProp(4,h);
b.setProp(5,f);
KIDS.reporting.omnifunctions.sendReportingCall(b)
}catch(g){}};
KIDS.reporting.omnifunctions.oldReportingCall=function(b){try{var a=new Configuration(KIDS.reporting.config);
a.init();
var d=b.setOverrides;
KIDS.reporting.omnifunctions.omniSetOverrides(d,"overwrite",a);
KIDS.reporting.omnifunctions.sendReportingCall(a)
}catch(c){}};
KIDS.reporting.omnifunctions.omniSetOverrides=function(f,g,a){try{for(i in f){var b=i.replace(/s_/,"");
b=(b=="account")?"name":b;
a.setting[b]=f[i];
if(b=="name"){if(g){if(g=="append"){var c=new RegExp("^"+ro[b]+"$|^"+ro[b]+",|,"+ro[b]+"$|,"+ro[b]+",");
if(!c.test(KIDS.reporting.config.getName())){a.setName(KIDS.reporting.config.getName()+","+a.getName())
}}}}}}catch(d){}};
KIDS.reporting.omnifunctions.sendLinkCall=function(d,a){try{var b=unescape(d);
if(a){if(a.setOverrides.name){KIDS.reporting.omnifunctions.sendLinkEvent(a.setOverrides.name,b)
}else{if(a.setOverrides.s_account){KIDS.reporting.omnifunctions.sendLinkEvent(a.setOverrides.s_account,b)
}}}else{KIDS.reporting.omnifunctions.sendLinkEvent(null,b)
}}catch(c){}};
KIDS.reporting.omnifunctions.sendReportingCallTN2=function(b){try{var a=new Configuration(KIDS.reporting.config);
a.init();
var d=b.setOverrides;
d.name="vianickvision";
KIDS.reporting.omnifunctions.omniSetOverrides(d,"overwrite",a);
KIDS.reporting.omnifunctions.sendReportingCall(a)
}catch(c){}};
KIDS.reporting.omnifunctions.reloadEvent=function(a){try{KIDS.reporting.omnifunctions.pageNameAppend(a);
KIDS.reporting.omnifunctions.updateRefreshAds("eventname",a,"ad-728x90Div;ad-300x250Div")
}catch(b){KIDS.utils.doLog("KIDS.reporting.omnifunctions.reloadEvent failed:"+b)
}};
KIDS.reporting.omnifunctions.updateRefreshAds=function(l,b,n){try{KIDS.ads.refresh.stopRefreshing();
KIDS.ads.refresh.ord=Math.random()*1000000000000000000;
KIDS.ads.refresh.cat=Math.floor(Math.random()*(KIDS.ads.refresh.maxSponsor-KIDS.ads.refresh.minSponsor+1)+KIDS.ads.refresh.minSponsor);
var c=n.split(";");
for(var h=0;
h<c.length;
h++){for(var f=0;
f<KIDS.ads.refresh.IFrameAds.length;
f++){if(KIDS.ads.refresh.IFrameAds[f].containerId==c[h]){var a=KIDS.ads.refresh.IFrameAds[f].src;
if(a.indexOf("ord=")>-1){a=a.split("ord=")[0]+"ord="+KIDS.ads.refresh.ord+"?"
}var k=new RegExp("(^.*cat=)\\d+(;.*$)");
var o=k.exec(a);
a=(o.length==3)?o[1]+KIDS.ads.refresh.cat+o[2]:a;
l=l.toLowerCase();
if(b.indexOf(".")>-1){b=b.substring(0,b.indexOf(".")).replace(/[- ]/gi,"_")
}if(a.indexOf(l+"=")>-1){var g=a.split(l+"=");
a=g[0]+l+"="+b+g[1].substr(g[1].indexOf(";"))
}else{var g=a.split("sz=");
a=g[0]+l+"="+b+";sz="+g[1]
}KIDS.ads.refresh.IFrameAds[f].src=a;
$("#"+KIDS.ads.refresh.IFrameAds[f].id).attr("src","");
$("#"+KIDS.ads.refresh.IFrameAds[f].id).attr("src",KIDS.ads.refresh.IFrameAds[f].src);
var d=document.getElementById("gameSwf");
if(d){d.focus()
}}}}}catch(m){KIDS.utils.doLog("KIDS.reporting.omnifunctions.updateRefreshAds failed:"+m)
}};
_nrtrackingcode=KIDS.reporting.omnifunctions.nrtrackingcode;
NRcall=KIDS.reporting.omnifunctions.NRcall;
sendAnalyticsEvent=KIDS.reporting.omnifunctions.sendAnalyticsEvent;
sendLinkEvent=KIDS.reporting.omnifunctions.sendLinkEvent;
pageNameAppend=KIDS.reporting.omnifunctions.pageNameAppend;
pageNameReset=KIDS.reporting.omnifunctions.pageNameReset;
sendInitCall=KIDS.reporting.omnifunctions.sendInitCall;
reportPlayer=KIDS.reporting.omnifunctions.reportPlayer;
sendKaraoke=KIDS.reporting.omnifunctions.sendKaraoke;
trackEvent=KIDS.reporting.omnifunctions.trackEvent;
trackKCA=KIDS.reporting.omnifunctions.trackKCA;
trackGamePlay=KIDS.reporting.omnifunctions.trackGamePlay;
bghReport=KIDS.reporting.omnifunctions.bghReport;
fetchGamePlaySite=KIDS.reporting.omnifunctions.fetchGamePlaySite;
trackKidsGamePlay=KIDS.reporting.omnifunctions.trackKidsGamePlay;
trackKCACamera=KIDS.reporting.omnifunctions.trackKCACamera;
doShowTemplateAction=KIDS.reporting.omnifunctions.doShowTemplateAction;
sendMyNickItem=KIDS.reporting.omnifunctions.sendMyNickItem;
BGHPledgeReporting=KIDS.reporting.omnifunctions.BGHPledgeReporting;
pageNameAppendNicktoons=KIDS.reporting.omnifunctions.pageNameAppendNicktoons;
reportKCA=KIDS.reporting.omnifunctions.reportKCA;
mashupReporting=KIDS.reporting.omnifunctions.mashupReporting;
printTracker=KIDS.reporting.omnifunctions.printTracker;
sendReportingCall=KIDS.reporting.omnifunctions.oldReportingCall;
sendLinkCall=KIDS.reporting.omnifunctions.sendLinkCall;
sendReportingCallTN2=KIDS.reporting.omnifunctions.sendReportingCallTN2;
reportCoverFlowImpression=KIDS.reporting.omnifunctions.reportCoverFlowImpression;
reportCoverFlowClickThru=KIDS.reporting.omnifunctions.reportCoverFlowClickThru;
incrementReactorator=KIDS.reporting.omnifunctions.incrementReactorator;
nanPrint=KIDS.reporting.omnifunctions.nanPrint;
if(typeof NICK!="undefined"||NICK){NICK.namespace("reporting.omnifunctions");
NICK.reporting.omnifunctions._nrtrackingcode=KIDS.reporting.omnifunctions.nrtrackingcode;
NICK.reporting.omnifunctions.NRcall=KIDS.reporting.omnifunctions.NRcall;
NICK.reporting.omnifunctions.sendAnalyticsEvent=KIDS.reporting.omnifunctions.sendAnalyticsEvent;
NICK.reporting.omnifunctions.sendLinkEvent=KIDS.reporting.omnifunctions.sendLinkEvent;
NICK.reporting.omnifunctions.pageNameAppend=KIDS.reporting.omnifunctions.pageNameAppend;
NICK.reporting.omnifunctions.pageNameReset=KIDS.reporting.omnifunctions.pageNameReset;
NICK.reporting.omnifunctions.sendInitCall=KIDS.reporting.omnifunctions.sendInitCall;
NICK.reporting.omnifunctions.reportPlayer=KIDS.reporting.omnifunctions.reportPlayer;
NICK.reporting.omnifunctions.sendKaraoke=KIDS.reporting.omnifunctions.sendKaraoke;
NICK.reporting.omnifunctions.trackEvent=KIDS.reporting.omnifunctions.trackEvent;
NICK.reporting.omnifunctions.trackKCA=KIDS.reporting.omnifunctions.trackKCA;
NICK.reporting.omnifunctions.trackGamePlay=KIDS.reporting.omnifunctions.trackGamePlay;
NICK.reporting.omnifunctions.bghReport=KIDS.reporting.omnifunctions.bghReport;
NICK.reporting.omnifunctions.fetchGamePlaySite=KIDS.reporting.omnifunctions.fetchGamePlaySite;
NICK.reporting.omnifunctions.trackKidsGamePlay=KIDS.reporting.omnifunctions.trackKidsGamePlay;
NICK.reporting.omnifunctions.trackKCACamera=KIDS.reporting.omnifunctions.trackKCACamera;
NICK.reporting.omnifunctions.doShowTemplateAction=KIDS.reporting.omnifunctions.doShowTemplateAction;
NICK.reporting.omnifunctions.sendMyNickItem=KIDS.reporting.omnifunctions.sendMyNickItem;
NICK.reporting.omnifunctions.BGHPledgeReporting=KIDS.reporting.omnifunctions.BGHPledgeReporting;
NICK.reporting.omnifunctions.pageNameAppendNicktoons=KIDS.reporting.omnifunctions.pageNameAppendNicktoons;
NICK.reporting.omnifunctions.reportKCA=KIDS.reporting.omnifunctions.reportKCA;
NICK.reporting.omnifunctions.mashupReporting=KIDS.reporting.omnifunctions.mashupReporting;
NICK.reporting.omnifunctions.printTracker=KIDS.reporting.omnifunctions.printTracker;
NICK.reporting.omnifunctions.sendReportingCall=KIDS.reporting.omnifunctions.oldReportingCall;
NICK.reporting.omnifunctions.sendLinkCall=KIDS.reporting.omnifunctions.sendLinkCall;
NICK.reporting.omnifunctions.sendReportingCallTN2=KIDS.reporting.omnifunctions.sendReportingCallTN2;
NICK.reporting.omnifunctions.reportCoverFlowImpression=KIDS.reporting.omnifunctions.reportCoverFlowImpression;
NICK.reporting.omnifunctions.reportCoverFlowClickThru=KIDS.reporting.omnifunctions.reportCoverFlowClickThru;
NICK.reporting.omnifunctions.incrementReactorator=KIDS.reporting.omnifunctions.incrementReactorator
};
var isUS=true;
var usReportSuite="vianicktropoliscom,nickvia";
var ukReportSuite="vianicktropolisuk,vianickuk";
function setNicktropolisRegion(b){try{if(region=b.toLowerCase()){if(region=="uk"){isUS=false
}delete region
}}catch(a){}}function sendReportingCallNicktropolis(b){try{var a=new Configuration(KIDS.reporting.config);
a.init();
var d=b.setOverrides;
d.name=(isUS)?usReportSuite:ukReportSuite;
if(a.getPageName().indexOf("/nicktropolis/")>-1){if(!prop18){d.prop18="Registered"
}else{d.prop18="Guest"
}}KIDS.reporting.omnifunctions.omniSetOverrides(d,"overwrite",a);
KIDS.reporting.omnifunctions.sendReportingCall(a);
KIDS.reporting.omnifunctions.comscoreReport("comscore")
}catch(c){KIDS.utils.doLog(c.toString())
}}function sendChatbotCall(a){linkName="/nicktropolis_chatbot/"+a;
sendLinkEvent((isUS)?usReportSuite:ukReportSuite,linkName)
}function sendNicktropolisStartup(a){sendReportingCallNicktropolis({setOverrides:{pageName:"/nicktropolis/game/startup",hier2:"nicktropolis/game/startup",prop12:a,channel:""}})
}function sendNicktropolisRoom(e,d,a,c,b){if(d!="user"){sendReportingCallNicktropolis({setOverrides:{pageName:"/nicktropolis/game/"+c+"__"+e+"__"+b,hier2:"nicktropolis/game/"+c+"__"+e+"__"+b,prop9:c+"__"+e+"__"+b}})
}}function sendNicktropolis(a){sendReportingCallNicktropolis({setOverrides:{pageName:"/nicktropolis/game/"+a,hier2:"nicktropolis/game/"+a,prop9:a}})
}function sendNicktropolisGame(a){sendReportingCallNicktropolis({setOverrides:{pageName:"/nicktropolis/game/"+a,hier2:"nicktropolis/game/"+a,prop4:a+"_nicktrop",prop9:a}})
}function sendNicktropolisHFDGame(a,b){sendReportingCallNicktropolis({setOverrides:{pageName:"/nicktropolis/game/"+a+"/"+b,hier2:"nicktropolis/game/"+a+"/"+b,prop4:a+"_nicktrop",prop9:a}})
}function sendNicktropolisObject(e,c,b,d,a){linkName="/nicktropolis_object/"+c+"/"+b+"/"+d+"/"+a;
sendLinkEvent((isUS)?"vianicktropoliscom":"vianicktropolisuk",linkName)
}function sendNicktropolisChat(b,a){linkName="/nicktropolis_chat/"+b+"/"+a;
sendLinkEvent((isUS)?"vianicktropoliscom":"vianicktropolisuk",linkName)
}function sendNicktropolisError(a){linkName="/nicktropolis_error/"+a;
sendLinkEvent((isUS)?"vianicktropoliscom":"vianicktropolisuk",linkName)
}function sendNicktropolisMashup(a){linkName="/nicktropolis_mashup/"+a;
sendLinkEvent((isUS)?"vianicktropoliscom":"vianicktropolisuk",linkName)
}function sendNicktropolisAdRoom(e,d,a,c,b){sendReportingCallNicktropolis({setOverrides:{pageName:"/nicktropolis/game/adZone/"+c+"__"+e+"__"+b,hier2:"nicktropolis/game/adZone/"+c+"__"+e+"__"+b,prop9:c+"__"+e+"__"+b}})
}function sendNicktropolisAdVideo(e,d,a,c,b){sendReportingCallNicktropolis({setOverrides:{pageName:"/nicktropolis/game/adZone/"+c+"__"+e+"__"+b+"/videoPlayer",hier2:"nicktropolis/game/adZone/"+c+"__"+e+"__"+b+"/videoPlayer"}})
}function sendNicktropolisAdGame(f,d,a,c,b,e){sendReportingCallNicktropolis({setOverrides:{pageName:"/nicktropolis/game/adZone/"+c+"__"+f+"__"+b+"-"+e,hier2:"nicktropolis/game/adZone/"+c+"__"+f+"__"+b+"-"+e,prop4:"ad-"+b+"-"+e+"_nicktrop"}})
}function sendNicktropolisBlocksGame(){sendReportingCallNicktropolis({setOverrides:{pageName:"/nicktropolis/game/BlocksGame",hier2:"nicktropolis/game/BlocksGame",prop4:"Blocks_nicktrop"}})
}function sendNicktropolisBlocksStart(a){linkName="/nicktropolis_blocksgame/"+a;
sendLinkEvent((isUS)?"vianicktropoliscom":"vianicktropolisuk",linkName)
}function sendNicktropolisBlocksEnd(c,b){if(c=="win"){if(b==60){a="60"
}else{var a=((Math.round(b/10))+"0-"+(Math.round(b/10))+"9")
}linkName="/nicktropolis_blocksgame/"+c+"/in_"+a+"_seconds"
}else{linkName="/nicktropolis_blocksgame/"+c
}sendLinkEvent((isUS)?"vianicktropoliscom":"vianicktropolisuk",linkName)
}function sendNicktropolisHomesite(a){if(typeof isUK=="undefined"){sendReportingCall({setOverrides:{pageName:KIDS.reporting.config.getPageName()+"-"+a,account:"nickvia"}})
}else{if(isUK==true){sendReportingCall({setOverrides:{pageName:KIDS.reporting.config.getPageName()+"-"+a,account:"vianickuk"}})
}}}function sendNicktropolisGMGames(c){var a=KIDS.reporting.config.getPageName();
var b=a.indexOf("-stamp");
if(b>0){a=a.substring(0,b)
}sendReportingCallNicktropolis({setOverrides:{pageName:a+"-"+c}})
}function sendNicktropolisAdGameEnd(f,d,a,c,b,e){sendReportingCallNicktropolis({setOverrides:{pageName:"/nicktropolis/game/adZone/"+c+"__"+f+"__"+b+"-"+e,hier2:"nicktropolis/game/adZone/"+c+"__"+f+"__"+b+"-"+e,prop4:"ad-"+b+"-"+e+"_nicktrop-GameEnd"}})
}function sendNicktropolisClothingStore(a,b){linkName="/nicktropolis_clothing_store/"+a+"/"+b;
sendLinkEvent((isUS)?"vianicktropoliscom":"vianicktropolisuk",linkName)
}function sendNicktropolisKCAStream(){sendReportingCall({setOverrides:{name:"viakcastreams",pageName:"KCA Live Cam Stream - Nicktropolis"}})
};
KIDS.reporting.omnifunctions.sendClubError=function(b){try{var a="Club Error - "+b;
KIDS.reporting.omnifunctions.sendLinkEvent("vianicktropoliscom",a)
}catch(c){KIDS.utils.doLog(c.toString())
}};
KIDS.reporting.omnifunctions.sendClubTransaction=function(h,b,a,g,d){try{var f="Club Transaction - "+h+" - "+b+" - "+a+" - "+g+" - "+d;
KIDS.reporting.omnifunctions.sendLinkEvent("vianicktropoliscom",f)
}catch(c){KIDS.utils.doLog(c.toString())
}};
KIDS.reporting.omnifunctions.sendClubBuddy=function(a){try{var c="Club - Buddy "+a;
KIDS.reporting.omnifunctions.sendLinkEvent("vianicktropoliscom",c)
}catch(b){KIDS.utils.doLog(b.toString())
}};
KIDS.reporting.omnifunctions.sendClubBlock=function(c){try{var a="User Blocked - "+c;
KIDS.reporting.omnifunctions.sendLinkEvent("vianicktropoliscom",a)
}catch(b){KIDS.utils.doLog(b.toString())
}};
KIDS.reporting.omnifunctions.sendClubAction=function(b){try{var a=new Configuration();
a.init();
a.setName("nickvia,vianicktropoliscom");
a.setDynamicAccountSelection(true);
a.setDynamicAccountList("nickviadev=nick-d.mtvi.com,nick-q.mtvi.com");
a.setLinkInternalFilters("javascript:,nick.com");
a.setTrackExternalLinks(true);
a.setTrackDownloadLinks(true);
a.setTrackInlineStats(true);
a.setPageName(b);
a.setPageName("/club/"+b);
a.setHier2("club/"+b);
a.setChannel("club");
KIDS.reporting.omnifunctions.sendReportingCall(a)
}catch(c){KIDS.utils.doLog(c.toString())
}};
KIDS.reporting.omnifunctions.sendClubGamePlay=function(b){try{var a=new Configuration();
a.init();
a.setName("nickvia,vianicktropoliscom");
a.setDynamicAccountSelection(true);
a.setDynamicAccountList("nickviadev=nick-d.mtvi.com,nick-q.mtvi.com");
a.setLinkInternalFilters("javascript:,nick.com");
a.setTrackExternalLinks(true);
a.setTrackDownloadLinks(true);
a.setTrackInlineStats(true);
a.setPageName("/club/games/"+b);
a.setHier2("club/games/"+b);
a.setChannel("club");
a.setProp("4",b+"_club");
KIDS.reporting.omnifunctions.sendReportingCall(a)
}catch(c){KIDS.utils.doLog(c.toString())
}};
KIDS.reporting.omnifunctions.sendClubProfileView=function(d){try{var a=new Configuration();
if(NICK.club.loginName==NICK.club.pageOwner){var f="self";
var b="self"
}else{var f="other";
var b=NICK.club.pageOwner
}a.init();
a.setName("nickvia,vianicktropoliscom");
a.setDynamicAccountSelection(true);
a.setDynamicAccountList("nickviadev=nick-d.mtvi.com,nick-q.mtvi.com");
a.setLinkInternalFilters("javascript:,nick.com");
a.setTrackExternalLinks(true);
a.setTrackDownloadLinks(true);
a.setTrackInlineStats(true);
a.setPageName("/club/profile/"+d);
a.setHier2("club/profile/view/"+d);
a.setChannel("club");
a.setProp("27",b);
a.setProp("29","Profile View - "+f)
}catch(c){KIDS.utils.doLog(c.toString())
}};
KIDS.reporting.omnifunctions.sendClubRoomView=function(f){try{var a=new Configuration();
if(NICK.club.loginName==NICK.club.pageOwner){var g="self";
var b="self"
}else{var d="other";
var b=NICK.club.pageOwner
}a.init();
a.setName("nickvia,vianicktropoliscom");
a.setDynamicAccountSelection(true);
a.setDynamicAccountList("nickviadev=nick-d.mtvi.com,nick-q.mtvi.com");
a.setLinkInternalFilters("javascript:,nick.com");
a.setTrackExternalLinks(true);
a.setTrackDownloadLinks(true);
a.setTrackInlineStats(true);
a.setPageName("/club/profile/"+f);
a.setHier2("club/profile/view/"+f);
a.setChannel("club");
a.setProp("27",b);
a.setProp("29","Room View - "+g);
KIDS.reporting.omnifunctions.sendReportingCall(a)
}catch(c){KIDS.utils.doLog(c.toString())
}};
KIDS.reporting.omnifunctions.sendClubProfileEdit=function(d,b,a){try{var c=new Configuration();
c.init();
c.setName("nickvia,vianicktropoliscom");
c.setDynamicAccountSelection(true);
c.setDynamicAccountList("nickviadev=nick-d.mtvi.com,nick-q.mtvi.com");
c.setLinkInternalFilters("javascript:,nick.com");
c.setTrackExternalLinks(true);
c.setTrackDownloadLinks(true);
c.setTrackInlineStats(true);
c.setPageName("/club/profile/editProfile");
c.setHier2("club/profile/edit/"+b+"/"+d+"/"+a);
c.setChannel("club");
c.setProp("28",d+"-"+b+"-"+a);
KIDS.reporting.omnifunctions.sendReportingCall(c)
}catch(f){KIDS.utils.doLog(f.toString())
}};
KIDS.reporting.omnifunctions.sendLogin=function(b){try{var a=new Configuration();
a.init();
a.setName("nickvia");
a.setDynamicAccountSelection(true);
a.setDynamicAccountList("nickviadev=nick-d.mtvi.com,nick-q.mtvi.com");
a.setLinkInternalFilters("javascript:,nick.com");
a.setTrackExternalLinks(true);
a.setTrackDownloadLinks(true);
a.setTrackInlineStats(true);
a.setPageName("Login - "+b);
a.setHier2("Login/"+b);
a.setChannel("Login");
KIDS.reporting.omnifunctions.sendReportingCall(a)
}catch(c){KIDS.utils.doLog(c.toString())
}};
KIDS.reporting.omnifunctions.sendReg=function(b){try{var a=new Configuration();
a.init();
a.setName("nickvia");
a.setDynamicAccountSelection(true);
a.setDynamicAccountList("nickviadev=nick-d.mtvi.com,nick-q.mtvi.com");
a.setLinkInternalFilters("javascript:,nick.com");
a.setTrackExternalLinks(true);
a.setTrackDownloadLinks(true);
a.setTrackInlineStats(true);
a.setPageName("Registration -"+b);
a.setHier2("Registration/"+b);
a.setChannel("Registration");
KIDS.reporting.omnifunctions.sendReportingCall(a)
}catch(c){KIDS.utils.doLog(c.toString())
}};
