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

