if(typeof COMSCORE=="undefined"){var COMSCORE={}}COMSCORE.beacon=function(i){if(!i){return}var m=1.6,j=document,h=j.location,l=function(a){if(a==null){return""}return(encodeURIComponent||escape)(a)},n=[(h.protocol=="https:"?"https://sb":"http://b"),".scorecardresearch.com/b?","c1=",l(i.c1),"&c2=",l(i.c2),"&rn=",Math.random(),"&c7=",l(h.href),"&c3=",l(i.c3),"&c4=",l(i.c4),"&c5=",l(i.c5),"&c6=",l(i.c6),"&c15=",l(i.c15),"&c16=",l(i.c16),"&c8=",l(j.title),"&c9=",l(j.referrer),"&cv=",m].join("");n=n.length>1500?n.substr(0,1495)+"&ct=1":n;var k=new Image();k.onload=function(){};k.src=n;return n};function setFiveMinCookie(a,d,b){var c=new Date();c.setMinutes(c.getMinutes()+parseInt(b));document.cookie=a+"="+escape(d)+((b==null)?"":";expires="+c.toGMTString())}function getFiveMinCookie(a){if(document.cookie.length>0){c_start=document.cookie.indexOf(a+"=");if(c_start!=-1){c_start=c_start+a.length+1;c_end=document.cookie.indexOf(";",c_start);if(c_end==-1){c_end=document.cookie.length}return unescape(document.cookie.substring(c_start,c_end))}}return""}function PlayerSeed_getFlashMovieObject(a){if(window[a]){return window.document[a]}if(navigator.appName.indexOf("Microsoft Internet")==-1){if(document.embeds&&document.embeds[a]){return document.embeds[a]}}else{return document.getElementById(a)}}var PlayerSeed_queryString=(function(){var a;try{a=PlayerSeed_getTopMostWindow().location.search.substr(1)}catch(c){}function b(){if(!b._overwritten){b._overwritten=true;var f=d(location.search.substr(1));var e=a?d(a):{};b=function(g,h){g=g.toLowerCase();return(f[g]===undefined?e[g]===undefined?h:e[g]:f[g])||""};return b.apply(null,arguments)}}function d(e){var f={};e.replace(/(.*?)=(.*?)(?:&|$)/g,function(h,g,i){f[g]=decodeURIComponent(i)});return f}return b})();if(typeof(fiveMinInit)!="string"){var psFiveMinPlayer=new Array();var psFiveMincbfunc=new Array();var psFiveMinCounter=0;var fivMin_synPlayerUrl="http://syn.5min.com";var fivemin_sharedPlayerUrl="http://pshared.5min.com";if(PlayerSeed_queryString("test","")=="localhost"){fivMin_synPlayerUrl="http://localhost/syn";fivemin_sharedPlayerUrl="http://localhost/shared"}else{if(PlayerSeed_queryString("test","")=="5minlocal"){fivMin_synPlayerUrl="http://syn.5minlocal.com";fivemin_sharedPlayerUrl="http://shared.5minlocal.com"}}var fiveMinAdaptvCompanionDiv="fiveMinCB";aSelectedScripts=new Array();var fiveMinIsIE=(navigator.appVersion.indexOf("MSIE")!=-1)?true:false;var fiveMinClassCompanionBanner="fiveMinCompanionBanner";var fiveMinClassFairBalance="fiveMinFairBalance";var fiveMinClassBottomBanner="fiveMinBottomBanner";fiveMinInit="completed"}function jsonp(a,b,c){if(a.indexOf("?")>-1){a+="&callback="}else{a+="?callback="}a+=b+"&";if(c){a+=encodeURIComponent(c)+"&"}a+=new Date().getTime().toString();var d=document.createElement("script");d.setAttribute("src",a);d.setAttribute("type","text/javascript");document.getElementsByTagName("head")[0].appendChild(d)}function fiveMinCheckJSParams(){var a=document.getElementsByTagName("script");var c=new Array();for(var b=0;b<a.length;b++){var f=a[b].src.toLowerCase();var e=f.indexOf("?");if(f.indexOf("playerseed.js")>=0&&e>0&&isNaN(f.substring(e+1))){c.push(a[b])}}if(c.length==0){return}for(var g in c){if(fiveMinFindScript(c[g])){continue}if(typeof(c[g].src)=="undefined"){continue}if(!(c[g].src.toLowerCase().indexOf("playerseed.js")>=0&&c[g].src.indexOf("&")>=0)){continue}var d=new fiveMinSelectedScript(c[g],aSelectedScripts.length+1);aSelectedScripts.push(d)}}function fiveMinFindScript(a){for(var b in aSelectedScripts){if(aSelectedScripts[b].valueOf()==a.src){return true}}return false}function ReportComscore(a){COMSCORE.beacon({c1:7,c2:"6473742",c3:a,c4:"",c5:"",c6:"",c15:""})}if(typeof(fiveMinSelectedScript)!="function"){function fiveMinSelectedScript(b,a){this.Script=b;this.IsPlayerCreated=false;this.Counter=a;this.SmartPlayerDiv=null;this.PlayerSeed=null;this.createDiv=function(){var c=document.createElement("div");c.setAttribute("id","SmartPlayer_"+this.Counter);if(this.Script.parentNode){fiveMinAppendAfter(this.Script,c)}this.SmartPlayerDiv=c;return c};this.createPlayerSeed=function(e){var d=this.getParams();if(this.SmartPlayerDiv==null){this.createDiv()}window.tempPlayerSeed=null;window.tempPlayerSeed=new PlayerSeed(this.SmartPlayerDiv.id);for(var c in d){if(typeof(c)=="string"&&c.length>0){window.tempPlayerSeed[c]=fiveMinGetParamValue(d[c])}}this.PlayerSeed=window.tempPlayerSeed;window.tempPlayerSeed=null;this.PlayerSeed.counter=this.Counter;if(!this.PlayerSeed.cbCustomID){this.PlayerSeed.cbCustomID=fiveMinAdaptvCompanionDiv+"_"+this.PlayerSeed.counter}if(e){this.PlayerSeed.Load()}this.IsPlayerCreated=true};this.getParams=function(){var j=this.Script.src===undefined?"":this.Script.src;var g=j.substring(j.indexOf("?")+1).replace(/\+/g," ");var d=g.split("&");var k={};for(var h in d){if(typeof(d[h])!="string"){continue}var c=d[h].split("=");var e=decodeURIComponent(c[0]);var f=(c.length==2)?decodeURIComponent(c[1]):e;k[e]=f}return k};this.isEqualTo=function(c){return this.valueOf()===c.valueOf()};this.toString=this.valueOf=function(){return this.Script.src};this.createPlayerSeed(true)}}if(typeof(fiveMinCompanionBanner)!="function"){function fiveMinCompanionBanner(c,e,a,d,b){this.HtmlID=c;this.Width=e;this.Height=a;this.IsFairBalance=d;this.ClassName=b;this.toString=function(f,i){var g=i?"&":"";var h=f==0?"":""+f;return""+g+"cbHtmlID"+h+"="+this.HtmlID+g+"cbWidth"+h+"="+this.Width+g+"cbHeight"+h+"="+this.Height+(this.IsFairBalance?g+"cbIsFairBalance"+h+"="+this.IsFairBalance:"")}}}var PlayerSeed=function(a){var b=this;var c="FiveMinPlayer"+Math.random().toString().substr(2);this._uniqueId=c;PlayerSeed._instances[this._uniqueId]=this;this.divLayer=a;this.url=escape((function(){var d=window;while(d){try{var g=d.parent;var f=g.document;if(!f){break}d=g;if(g==g.parent){break}}catch(e){break}}return d})().location.href).replace("http%3A","http:");this.cbCustomID=fiveMinAdaptvCompanionDiv;this.obj=new Object();this.counter=-1;this.filterString="";this.libraryID=0;this.wmode="opaque";this.innerMargin=1;this.companionCenter=true;this.cbCheckTime=200;this.cbCount=-1;this.CompanionBanners=new Array();psFiveMinCounter++;this.GetParams=function(){var d=!this.editMode?"&isPlayerSeed=true":"&isProSeed=true";if(this.categories&&(this.categories.length>0||this.categories>0)){d+="&categories="+this.categories}if(this.contentQuality&&this.contentQuality>0){d+="&ContentQuality="+this.contentQuality}if(this.featured!=undefined){d+="&featured="+this.featured}if(this.fallbackType!=undefined){d+="&fallbackType="+this.fallbackType}if(this.playList&&(this.playList.length>0||this.playList>0)){d+="&playlist="+this.getRandomList(this.playList)}if(this.fallback&&(this.fallback.length>0||this.fallback>0)){d+="&fallback="+this.getRandomList(this.fallback)}if(this.overlay!=undefined){d+="&overlay="+this.overlay}if(this.autoStart!=undefined){d+="&autoStart="+this.autoStart}if(this.cbCustomID){d+="&cbCustomID="+this.cbCustomID}if(this.cbFailOverURL){d+="&cbFailOverUrl="+this.cbFailOverURL}if(this.cbFailOverOnStart!=undefined){d+="&cbFailOverOnStart="+this.cbFailOverOnStart}if(this.videoGroupID){d+="&videoGroupID="+this.videoGroupID}if(this.skinType!=undefined){d+="&skinType="+this.skinType}if(this.testData){d+="&testData="+this.testData}if(this.volume&&this.volume>=0&&this.volume<=100){d+="&volume="+this.volume}if(this.mute!=undefined){d+="&mute="+this.mute}if(this.topHeader){d+="&topHeader="+this.topHeader}if(this.relatedMode){d+="&relatedMode="+this.relatedMode}if(this.explicitTags){d+="&explicitTags="+this.explicitTags}if(this.videoControlDisplayColor!=undefined&&this.videoControlDisplayColor!="default"){d+="&videoControlDisplayColor="+encodeURIComponent(this.videoControlDisplayColor)}if(this.editMode){d+="&ExposureType=ProSeed"}else{d+="&ExposureType=PlayerSeed"}if(this.hasCompanion!=undefined){this.obj.hasCompanion=this.hasCompanion;d+="&hasCompanion="+this.hasCompanion}if(this.isPreviewMode!=undefined){d+="&isPreviewMode="+this.isPreviewMode}if(PlayerSeed_queryString("playernewversion3","")=="true"){d+="&playernewversion3=true"}if(PlayerSeed_queryString("playerdebug5min","")!=""){d+="&playerdebug5min="+PlayerSeed_queryString("playerdebug5min","")}if(PlayerSeed_queryString("isTestDensity","")=="true"){d+="&isTestDensity=true"}if(PlayerSeed_queryString("nocache","")=="true"){d+="&nocache=true"}if(document.getElementsByTagName("title")[0]){d+="&shortAnalysisText="+escape(document.getElementsByTagName("title")[0].innerHTML)}d+="&url="+encodeURIComponent(this.url);d+="&filterString="+encodeURIComponent(this.filterString);if(this.libraryID>0){d+="&libraryID="+this.libraryID}d+=this.CreateCBQS();return d};this.getRandomList=function(d){var f;var l=new Array();if(!isNaN(d)){return""+d}if(d.length>0){f=d.split(",");var h=0;for(var g=0;g<f.length;g++){var e=Math.round(Math.random()*(f.length-1));var m=false;for(var k=0;k<l.length;k++){if(l[k].toString()==f[e].toString()){m=true;break}}if(!m){l.push(f[e])}}}return l.toString()};this.checkPlayerSeedCookie=function(){var d=getFiveMinCookie("asPlayerSeed");if(d!=null&&d!=""){return true}else{setFiveMinCookie("asPlayerSeed","1",this.frequency)}return false};this.Load=function(){if(this.doNotDisplay()){return}if(this.counter==-1){this.counter=psFiveMinCounter;if(this.cbCustomID==fiveMinAdaptvCompanionDiv){this.cbCustomID=fiveMinAdaptvCompanionDiv+"_"+this.counter}}psFiveMinPlayer[this.counter]=this;if(this.cbCount==3||this.CompanionBanners==null||typeof(this.CompanionBanners)=="object"&&this.CompanionBanners.length==0){this.CompanionBanners=new Array();this.CompanionBanners.push(new fiveMinCompanionBanner(this.cbCustomID+"_cb",300,250,false,fiveMinClassCompanionBanner));this.CompanionBanners.push(new fiveMinCompanionBanner(this.cbCustomID+"_fb",300,Math.max(60,this.height-250),true,fiveMinClassFairBalance));this.CompanionBanners.push(new fiveMinCompanionBanner(this.cbCustomID+"_bt",728,90,false,fiveMinClassBottomBanner))}if(this.editButton){this.editMode=true;function e(){var g=typeof(b.editButton)=="string"?(function(){var j=null,h=window;while(!j){j=h.document.getElementById(b.editButton);if(j){return j}if(h==top){break}try{h=h.parent}catch(i){break}}return null})():null;if(g){g.onclick=function(h){h=h||window.event;b.callFlashEdit()};b.editButton=g}else{b.editButton=null}}var f=typeof(this.editButton)=="string"?document.getElementById(this.editButton):null;if(f){e()}else{if(window.attachEvent){window.attachEvent("onload",e)}else{if(window.addEventListener){window.addEventListener("load",e,false)}}}}var d=fivMin_synPlayerUrl+"/handlers/SenseHandler.ashx?func=GetResults&sid="+this.sid+this.GetParams()+"&counter="+this.counter;if(this.editMode){d+="&videoCount=15"}else{d+="&videoCount=1"}jsonp(d,"onSuccessURLPlayer","")};this.callFlashEdit=function(){if(!this.videos){return}var d=PlayerSeed_getFlashMovieObject(c);d.openEditMode()};this.getPlayListURL=function(){var f=[];var e=function(k){var h=parseInt(k.split(":")[0],10);var j=parseInt(k.split(":")[1],10);var i=h*60+j;return i};var g=function(i){var h={};for(key in i){h[key]=i[key]}return h};for(var d=0;d<this.videos.length;d++){f.push(g(this.videos[d]));f[d].Duration=e(f[d].Duration);f[d].Image=f[d].ThumbURL}return f};this.getEditElement=function(){var d=document.createElement("div");d.innerHTML="edit";return d};this.CreateCBQS=function(){var d="";d="&cbCount=3";if(this.cbCustomID&&this.cbCustomID.indexOf(fiveMinAdaptvCompanionDiv)<0){}else{if(typeof(this.CompanionBanners)=="object"&&this.CompanionBanners.length>0){for(var e=0;e<this.CompanionBanners.length;e++){d+=this.CompanionBanners[e].toString(e,true)}}}return d};this.doNotDisplay=function(){if(this.frequency){if(this.checkPlayerSeedCookie()){return true}}return false};onSuccessURLPlayer=function(h){var e=h;if(!e){return}var n;if(e.binding instanceof Array){n=e.binding[0];b.videos=e.binding}else{n=e}if(!n){ReportComscore("9");return}this.height=(n.UsePlayer3?255:401);this.width=(n.UsePlayer3?400:480);if(n==undefined||n.ID==0||(!b.editMode&&!n.success)){ReportComscore("9");return}var m=psFiveMinPlayer[b.editMode?1:h.counter];if(m.wrapperToShow){m.wrapperToShowToDisplay=m.wrapperToShow.split(",");for(var k=0;k<m.wrapperToShowToDisplay.length;k++){document.getElementById(m.wrapperToShowToDisplay[k]).style.display=""}}this.divWrapper=document.createElement("div");this.divWrapper.setAttribute("id","playerWrapper"+h.counter);this.divWrapper.setAttribute("style","float:left;");if(m.divLayer&&document.getElementById(m.divLayer)){document.getElementById(m.divLayer).innerHTML="";document.getElementById(m.divLayer).appendChild(this.divWrapper)}if(m.obj.hasCompanion==undefined){m.obj.hasCompanion=h.HasCompanion}if(m.companionPos==undefined){m.companionPos=h.CompanionPos}m.strPlayer=document.createElement("div");m.strPlayer.setAttribute("id","adaptvDiv"+h.counter);if(m.width){this.width=m.width}if(m.height){this.height=m.height}if(m.isPreviewMode&&m.logoUrl){this.logoUrl="&logoUrl="+m.logoUrl}else{this.logoUrl=""}var l=m.CreateCBQS();if(m.cbCheckTime>0){l+="&cbCheckTime="+m.cbCheckTime}if(b.editMode){l+="&psRelatedProUrl=javascript(PlayerSeed._instances."+b._uniqueId+".getPlayListURL)&psPreMode=1";if(this.categories&&(this.categories.length>0||this.categories>0)){l+="&psCategory="+this.categories}}if(!n.EmbededURL){return}var f=n.EmbededURL+this.logoUrl+l;var j=f.split("?");var g=j[0];var d=j[1];m.strPlayer.innerHTML="<object id='"+c+"' width='"+this.width+"' height='"+this.height+"' classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000'><param name='allowfullscreen' value='true' /><param name='allowScriptAccess' value='always' /><param name='movie' value='"+g+"' /><param name='flashvars' value='"+d+"' /><param name='wmode' value='"+m.wmode+"' /><embed name='"+c+"' src='"+g+"' flashvars='"+d+"' type='application/x-shockwave-flash' width='"+this.width+"' height='"+this.height+"' allowfullscreen='true' allowScriptAccess='always' wmode='"+m.wmode+"'></embed></object>";if(this.divWrapper){this.divWrapper.appendChild(m.strPlayer)}BuildCompanionBanner(m,n,h)}};function PlayerSeed_getTopMostWindow(){var a=window;while(a){try{var d=a.parent;var c=d.document;if(!c){break}a=d;if(d==d.parent){break}}catch(b){break}}return a}(function(){var a=PlayerSeed_getTopMostWindow();if(!a.PlayerSeed){a.PlayerSeed={}}PlayerSeed._instances=a.PlayerSeed._instances={}})();function BuildCompanionBanner(d,e,a){if(!d.obj.hasCompanion){return}var f;if(d.cbCustomID&&d.cbCustomID.indexOf(fiveMinAdaptvCompanionDiv)<0){return}f=document.createElement("div");f.setAttribute("id",d.cbCustomID);if(d.innerMargin>10||d.innerMargin<=0){d.innerMargin=1}var b=d.cbCount==3?"right":d.companionPos;var h=d.companionCenter?" text-align:center; ":"";switch(b){case"top":document.getElementById("adaptvDiv"+a.counter).parentNode.insertBefore(f,document.getElementById("adaptvDiv"+a.counter));if(!fiveMinIsIE){f.setAttribute("style","margin-bottom:"+d.innerMargin+"px;"+h)}else{f.style.setAttribute("style","margin-bottom:"+d.innerMargin+"px;"+h)}break;case"left":document.getElementById("adaptvDiv"+a.counter).parentNode.insertBefore(f,document.getElementById("adaptvDiv"+a.counter));if(!fiveMinIsIE){f.setAttribute("style","margin-right:"+d.innerMargin+"px;float:left;");document.getElementById("adaptvDiv"+a.counter).setAttribute("style","float:left;")}else{f.style.setAttribute("cssText","margin-right:"+d.innerMargin+"px;float:left;");document.getElementById("adaptvDiv"+a.counter).style.setAttribute("cssText","float:left;")}break;case"right":if(!fiveMinIsIE){document.getElementById("adaptvDiv"+a.counter).setAttribute("style","float:left;");f.setAttribute("style","float:left;margin-left:"+d.innerMargin+"px;")}else{document.getElementById("adaptvDiv"+a.counter).style.setAttribute("cssText","float:left;");f.style.setAttribute("cssText","float:left;margin-left:"+d.innerMargin+"px;")}document.getElementById("adaptvDiv"+a.counter).parentNode.appendChild(f);break;case"bottom":default:document.getElementById("adaptvDiv"+a.counter).appendChild(f);if(!fiveMinIsIE){f.setAttribute("style","margin-top:"+d.innerMargin+"px;"+h)}else{f.style.setAttribute("cssText","margin-top:"+d.innerMargin+"px;"+h)}break}var g=d.CompanionBanners.length;for(var c=0;c<g;c++){if(d.cbCount!=3&&c==g-1){continue}fiveMinCreateBannerDiv(f,d.CompanionBanners[c],c!=2)}}function fiveMinCreateBannerDiv(b,a,d){var c=document.createElement("div");c.setAttribute("id",a.HtmlID);c.setAttribute("IsFairBalance",a.IsFairBalance);if(a.ClassName){c.setAttribute("class",a.ClassName)}if(d){b.appendChild(c)}else{if(!fiveMinIsIE){c.setAttribute("style","clear: both; width: "+a.Width+"px;")}else{c.style.setAttribute("cssText","clear: both; width: "+a.Width+"px;")}fiveMinAppendAfter(b,c)}}function fiveMinAppendAfter(a,b){if(a.nextSibling){a.parentNode.insertBefore(b,a.nextSibling)}else{a.parentNode.appendChild(b)}}function fiveMinGetParamValue(a){if(a=="true"){return true}if(a=="false"){return false}if(isNaN(a)){return a}else{return new Number(a)}}fiveMinCheckJSParams();