/* ~/Scripts/Fivemin.baseconfig.js */

if(typeof(FIVEMIN)=="undefined"){var FIVEMIN={}}if(typeof(FIVEMIN.BaseConfig)=="undefined"){FIVEMIN.BaseConfig={UseFlashProxy:false,FlashProxyUrl:"http://cfiles.5min.com/flashproxy/flashproxy.swf"}}if(typeof(FIVEMIN.BaseConfig.Lightbox)=="undefined"){FIVEMIN.BaseConfig.Lightbox={css:"http://pshared.5min.com/CSS/Lightbox.css"}}if(typeof(FIVEMIN.BaseConfig.VideoSection)=="undefined"){FIVEMIN.BaseConfig.VideoSection={defaults:{textColor:"#006699",pageBgColor:"#FFFFFF",playerColor:"#006699",pageWidth:975,categories:[]},schemeLists:{"default":["#191919","#7EC359","#E50030","#006699","#FB612B","#C1BCBD","#923DF4","#5DC0E9"],textColor:["#006699","#191919","#E50030","#7EC359","#FB612B","#C1BCBD","#923DF4","#5DC0E9"],pageBgColor:["#FFFFFF","#191919","#7EC359","#E50030","#006699","#FB612B","#C1BCBD","#923DF4","#5DC0E9"],playerColor:["#006699","#191919","#E50030","#7EC359","#FB612B","#C1BCBD","#923DF4","#5DC0E9","#FFFFFF"]},maxPageWidth:1200,minPageWidth:955}}if(typeof(FIVEMIN.BaseConfig.Logger)=="undefined"){FIVEMIN.BaseConfig.Logger={LogLevel:-1,LogServer:"http://l.5min.com",Enums:{broVer:{unknown:0,ie:1,firefox:2,chrome:3,safari:4},osVer:{unknown:0,win:1,mac:2,linux:3,webos:4,android:5,ios:6},pt:{flash:1,html5:2,chromeless:3},rType:{noResults:0,success:1,timeout:2},content:{featured:0,seed:1,playlist:2,videogroup:3},embCont:{single:0,playlist:1},pgLoc:{topLeft:0,topCenter:1,topRight:2,bottomLeft:3,bottomCenter:4,bottomRight:5},viewSrc:{productView:0,playlistView:1,relatedPlayer:2,relatedDeep:3},isDeep:{"false":0,"true":1},auStart:{empty:0,"false":0,"true":1},adUnit:{"false":0,"true":1},adSize:{"728x90":0,"300x250":1,"468x60":2,"160x600":3},adLoc:{bottom:0,side:1},thSize:{large:0,medium:1,small:2},txtLoc:{bottom:0,size:1},fType:{category:0,video:1,empty:2},sHF:{"false":0,"true":1},thAlign:{horizontal:0,vertical:1},header:{"false":0,"true":1},cbPos:{left:0,right:1,bottom:2,top:3,custom:4},uNxt:{"false":0,"true":1},ruNxt:{"false":0,"true":1},hc:{"false":0,"true":1},foos:{"false":0,"true":1},bType:{bar:0,tab:1},bLoc:{left:0,right:1},bPos:{top:0,middle:1,bottom:2},bState:{half:0,full:1},vFlg:{"false":0,"true":1},vExp:{SID:0,Fivemin:1,Syndication:2},vGeo:{All:0,US:1,NonUS:2},vf:{"false":0,"true":1},emType:{TSDeepSeed:0,BSDeepSeed:1,VideoSection:2,Regular:3}}}};


/* ~/Scripts/Fivemin.BaseConfig.PlayerSeed.js */

if(typeof(FIVEMIN)=="undefined"){var FIVEMIN={}}if(typeof(FIVEMIN.BaseConfig)=="undefined"){FIVEMIN.BaseConfig={}}if(FIVEMIN.BaseConfig.PlayerSeed==null){FIVEMIN.BaseConfig.PlayerSeed={defaults:{width:"400",height:"255",relatedBottomHeight:60,companionPos:"right",hasCompanion:true,playerActions:703,sizeType:"standard",featured:"semantic",fallback:1,fallbackType:"category"},relatedMode:{"auto-hide":1,right:101,below:2,"open-bottom":3,minHeight:60,maxHeight:330,"open-bottom-default":250,"below-default":60},playerActions:{twitter:1,sendToFriend:2,embedCode:4,search:8,related:16,toolsDefault:32,tools:64,smartsDefault:128,smarts:256,by5minDefault:512,by5min:1024,by5minLinked:2048,autoStartRelated:4096,overlayPauseBottom:8192},playerSizes:{wide:{"391":{width:391,height:250},"400":{width:400,height:255},"655":{width:655,height:398},min:391,max:900},normal:{"300":{width:300,height:250},"400":{width:400,height:330},"485":{width:485,height:394},min:300,max:900},extra:{controlHeight:30,headerHeight:20}},styles:{colors:{black:{name:"Black",vcdBgColor:"#191919",colorPallet:"#FFEB00",iconBg:"#191919",iconBorder:"#000000"},green:{name:"Green",iconBg:"#7EC359",iconBorder:"#7B975F",vcdBgColor:"#2E7720",colorPallet:"#93C47D"},red:{name:"Red",vcdBgColor:"#CC0000",colorPallet:"#EA9999",iconBg:"#E50030",iconBorder:"#7E151E"},blue:{name:"Blue",vcdBgColor:"#006699",colorPallet:"#9FC5E8",iconBg:"#006699",iconBorder:"#002780"},orange:{name:"Orange",vcdBgColor:"#FF6600",colorPallet:"#F9CB9C",iconBg:"#FB612B",iconBorder:"#B45E3F"},grey:{name:"Grey",vcdBgColor:"#656565",colorPallet:"#B4B4B4",iconBg:"#C1BCBD",iconBorder:"#ABABA6"},purple:{name:"Purple",vcdBgColor:"#592E7B",colorPallet:"#B4A7D6",iconBg:"#923DF4",iconBorder:"#5F3584"},lightblue:{name:"Light blue",vcdBgColor:"#79B0CB",colorPallet:"#CFE2F3",iconBg:"#5DC0E9",iconBorder:"#5D95A7"}}}}}if(FIVEMIN.BaseConfig.Logger==null){FIVEMIN.BaseConfig.Logger={}}if(FIVEMIN.BaseConfig.Logger.PlayerSeed==null){FIVEMIN.BaseConfig.Logger.PlayerSeed={params:{sid:"142",urlId:0,content:1,cqReq:2,catsReq:"",fType:1,sKey:""},events:{addReq:{name:"PSRq",bitValue:4096,priorty:2,params:{auStart:"",header:"",hc:"",foos:"",cbPos:"",relMod:"",uNxt:0,ruNxt:0}},AddResult:{name:"PSRs",bitValue:8192,params:{nVids:"",uNxt:0,ruNxt:0}},AddImpression:{name:"PSI",bitValue:16384,param:{auStart:"",sessImp:0,header:"",hc:"",foos:"",cbPos:"",relMod:"",uNxt:0,ruNxt:0,fType:"",pgLoc:"",vCat:"",vid:0,vLoc:"",isDeep:0,vCQ:"",vFlg:"",vExp:"",mId:"",vGeo:"",vf:""}},AddVideoResults:{name:"PSVR",bitValue:65536,params:{pgLoc:"",vCat:"",vid:0,vLocSrvr:"",auStart:"",vCQ:"",vFlg:"",vExp:"",mId:"",vGeo:"",vf:""}},AddVideoView:{name:"PSVV",bitValue:131072,param:{pgLoc:"",sessImp:0,vCat:"",vid:0,vLoc:0,vCQ:"",vFlg:"",vExp:"",mId:"",vGeo:"",vf:"",sessView:"",vvpr:"",tss:"",tsp:""}}}}};


/* ~/Scripts/Fivemin.swfobject.js */

if(typeof(FIVEMIN)=="undefined"){var FIVEMIN={}}if(typeof(FIVEMIN.swfobject)=="undefined"){
/*	SWFObject v2.2 <http://code.google.com/p/swfobject/> 
	is released under the MIT License <http://www.opensource.org/licenses/mit-license.php> 
	*/
var swfobject=function(){var e="undefined",o="object",S="Shockwave Flash",R="ShockwaveFlash.ShockwaveFlash",z="application/x-shockwave-flash",g="SWFObjectExprInst",P="onreadystatechange",C=window,l=document,y=navigator,j=false,T=[D],c=[],K=[],k=[],J,E,H,h,a=false,A=false,U,x,f=true,i=function(){var af=typeof l.getElementById!=e&&typeof l.getElementsByTagName!=e&&typeof l.createElement!=e,ac=y.userAgent.toLowerCase(),X=y.platform.toLowerCase(),Y=X?/win/.test(X):/win/.test(ac),ae=X?/mac/.test(X):/mac/.test(ac),ag=/webkit/.test(ac)?parseFloat(ac.replace(/^.*webkit\/(\d+(\.\d+)?).*$/,"$1")):false,ah=!+"\v1",aa=[0,0,0],ad=null;if(typeof y.plugins!=e&&typeof y.plugins[S]==o){ad=y.plugins[S].description;if(ad&&!(typeof y.mimeTypes!=e&&y.mimeTypes[z]&&!y.mimeTypes[z].enabledPlugin)){j=true;ah=false;ad=ad.replace(/^.*\s+(\S+\s+\S+$)/,"$1");aa[0]=parseInt(ad.replace(/^(.*)\..*$/,"$1"),10);aa[1]=parseInt(ad.replace(/^.*\.(.*)\s.*$/,"$1"),10);aa[2]=/[a-zA-Z]/.test(ad)?parseInt(ad.replace(/^.*[a-zA-Z]+(.*)$/,"$1"),10):0}}else{if(typeof C.ActiveXObject!=e){try{var Z=new ActiveXObject(R);if(Z){ad=Z.GetVariable("$version");if(ad){ah=true;ad=ad.split(" ")[1].split(",");aa=[parseInt(ad[0],10),parseInt(ad[1],10),parseInt(ad[2],10)]}}}catch(ab){}}}return{w3:af,pv:aa,wk:ag,ie:ah,win:Y,mac:ae}}(),W=function(){if(!i.w3){return}if((typeof l.readyState!=e&&l.readyState=="complete")||(typeof l.readyState==e&&(l.getElementsByTagName("body")[0]||l.body))){s()}if(!a){if(typeof l.addEventListener!=e){l.addEventListener("DOMContentLoaded",s,false)}if(i.ie&&i.win){l.attachEvent(P,function(){if(l.readyState=="complete"){l.detachEvent(P,arguments.callee);s()}});if(C==top){(function(){if(a){return}try{l.documentElement.doScroll("left")}catch(X){setTimeout(arguments.callee,0);return}s()})()}}if(i.wk){(function(){if(a){return}if(!/loaded|complete/.test(l.readyState)){setTimeout(arguments.callee,0);return}s()})()}b(s)}}();function s(){if(a){return}try{var Z=l.getElementsByTagName("body")[0].appendChild(p("span"));Z.parentNode.removeChild(Z)}catch(X){return}a=true;var Y=T.length;for(var aa=0;aa<Y;aa++){T[aa]()}}function w(X){if(a){X()}else{T[T.length]=X}}function b(X){if(typeof C.addEventListener!=e){C.addEventListener("load",X,false)}else{if(typeof l.addEventListener!=e){l.addEventListener("load",X,false)}else{if(typeof C.attachEvent!=e){d(C,"onload",X)}else{if(typeof C.onload=="function"){var Y=C.onload;C.onload=function(){Y();X()}}else{C.onload=X}}}}}function D(){if(j){M()}else{n()}}function M(){var X=l.getElementsByTagName("body")[0];var aa=p(o);aa.setAttribute("type",z);var Y=X.appendChild(aa);if(Y){var Z=0;(function(){if(typeof Y.GetVariable!=e){var ab=Y.GetVariable("$version");if(ab){ab=ab.split(" ")[1].split(",");i.pv=[parseInt(ab[0],10),parseInt(ab[1],10),parseInt(ab[2],10)]}}else{if(Z<10){Z++;setTimeout(arguments.callee,10);return}}X.removeChild(aa);Y=null;n()})()}else{n()}}function n(){var ah=c.length;if(ah>0){for(var af=0;af<ah;af++){var X=c[af].id;var ae=c[af].callbackFn;var aa={success:false,id:X};if(i.pv[0]>0){var ag=m(X);if(ag){if(u(c[af].swfVersion)&&!(i.wk&&i.wk<312)){F(X,true);if(ae){aa.success=true;aa.ref=t(X);ae(aa)}}else{if(c[af].expressInstall&&G()){var ac={};ac.data=c[af].expressInstall;ac.width=ag.getAttribute("width")||"0";ac.height=ag.getAttribute("height")||"0";if(ag.getAttribute("class")){ac.styleclass=ag.getAttribute("class")}if(ag.getAttribute("align")){ac.align=ag.getAttribute("align")}var Y={};var Z=ag.getElementsByTagName("param");var ab=Z.length;for(var ad=0;ad<ab;ad++){if(Z[ad].getAttribute("name").toLowerCase()!="movie"){Y[Z[ad].getAttribute("name")]=Z[ad].getAttribute("value")}}O(ac,Y,X,ae)}else{V(ag);if(ae){ae(aa)}}}}}else{F(X,true);if(ae){var ai=t(X);if(ai&&typeof ai.SetVariable!=e){aa.success=true;aa.ref=ai}ae(aa)}}}}}function t(X){var aa=null;var Z=m(X);if(Z&&Z.nodeName=="OBJECT"){if(typeof Z.SetVariable!=e){aa=Z}else{var Y=Z.getElementsByTagName(o)[0];if(Y){aa=Y}}}return aa}function G(){return !A&&u("6.0.65")&&(i.win||i.mac)&&!(i.wk&&i.wk<312)}function O(ad,aa,Z,Y){A=true;H=Y||null;h={success:false,id:Z};var ae=m(Z);if(ae){if(ae.nodeName=="OBJECT"){J=N(ae);E=null}else{J=ae;E=Z}ad.id=g;if(typeof ad.width==e||(!/%$/.test(ad.width)&&parseInt(ad.width,10)<310)){ad.width="310"}if(typeof ad.height==e||(!/%$/.test(ad.height)&&parseInt(ad.height,10)<137)){ad.height="137"}l.title=l.title.slice(0,47)+" - Flash Player Installation";var ab=i.ie&&i.win?"ActiveX":"PlugIn",ac="MMredirectURL="+C.location.toString().replace(/&/g,"%26")+"&MMplayerType="+ab+"&MMdoctitle="+l.title;if(typeof aa.flashvars!=e){aa.flashvars+="&"+ac}else{aa.flashvars=ac}if(i.ie&&i.win&&ae.readyState!=4){var X=p("div");Z+="SWFObjectNew";X.setAttribute("id",Z);ae.parentNode.insertBefore(X,ae);ae.style.display="none";(function(){if(ae.readyState==4){ae.parentNode.removeChild(ae)}else{setTimeout(arguments.callee,10)}})()}q(ad,aa,Z)}}function V(Y){if(i.ie&&i.win&&Y.readyState!=4){var X=p("div");Y.parentNode.insertBefore(X,Y);X.parentNode.replaceChild(N(Y),X);Y.style.display="none";(function(){if(Y.readyState==4){Y.parentNode.removeChild(Y)}else{setTimeout(arguments.callee,10)}})()}else{Y.parentNode.replaceChild(N(Y),Y)}}function N(ac){var Z=p("div");if(i.win&&i.ie){Z.innerHTML=ac.innerHTML}else{var Y=ac.getElementsByTagName(o)[0];if(Y){var X=Y.childNodes;if(X){var aa=X.length;for(var ab=0;ab<aa;ab++){if(!(X[ab].nodeType==1&&X[ab].nodeName=="PARAM")&&!(X[ab].nodeType==8)){Z.appendChild(X[ab].cloneNode(true))}}}}}return Z}function q(ad,Z,X){var Y,aa=m(X);if(i.wk&&i.wk<312){return Y}if(aa){if(typeof ad.id==e){ad.id=X}if(i.ie&&i.win){var ag="";for(var ae in ad){if(ad[ae]!=Object.prototype[ae]){if(ae.toLowerCase()=="data"){Z.movie=ad[ae]}else{if(ae.toLowerCase()=="styleclass"){ag+=' class="'+ad[ae]+'"'}else{if(ae.toLowerCase()!="classid"){ag+=" "+ae+'="'+ad[ae]+'"'}}}}}var ab="";for(var ac in Z){if(Z[ac]!=Object.prototype[ac]){ab+='<param name="'+ac+'" value="'+Z[ac]+'" />'}}aa.outerHTML='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"'+ag+">"+ab+"</object>";K[K.length]=ad.id;Y=m(ad.id)}else{var ah=p(o);ah.setAttribute("type",z);for(var ai in ad){if(ad[ai]!=Object.prototype[ai]){if(ai.toLowerCase()=="styleclass"){ah.setAttribute("class",ad[ai])}else{if(ai.toLowerCase()!="classid"){ah.setAttribute(ai,ad[ai])}}}}for(var af in Z){if(Z[af]!=Object.prototype[af]&&af.toLowerCase()!="movie"){I(ah,af,Z[af])}}aa.parentNode.replaceChild(ah,aa);Y=ah}}return Y}function I(Z,X,Y){var aa=p("param");aa.setAttribute("name",X);aa.setAttribute("value",Y);Z.appendChild(aa)}function Q(Y){var X=m(Y);if(X&&X.nodeName=="OBJECT"){if(i.ie&&i.win){X.style.display="none";(function(){if(X.readyState==4){r(Y)}else{setTimeout(arguments.callee,10)}})()}else{X.parentNode.removeChild(X)}}}function r(Z){var X=m(Z);if(X){for(var Y in X){if(typeof X[Y]=="function"){X[Y]=null}}X.parentNode.removeChild(X)}}function m(Z){var Y=null;try{Y=l.getElementById(Z)}catch(X){}return Y}function p(X){return l.createElement(X)}function d(Y,Z,X){Y.attachEvent(Z,X);k[k.length]=[Y,Z,X]}function u(Z){var X=i.pv,Y=Z.split(".");Y[0]=parseInt(Y[0],10);Y[1]=parseInt(Y[1],10)||0;Y[2]=parseInt(Y[2],10)||0;return(X[0]>Y[0]||(X[0]==Y[0]&&X[1]>Y[1])||(X[0]==Y[0]&&X[1]==Y[1]&&X[2]>=Y[2]))?true:false}function B(Z,ac,Y,ab){if(i.ie&&i.mac){return}var aa=l.getElementsByTagName("head")[0];if(!aa){return}var ad=(Y&&typeof Y=="string")?Y:"screen";if(ab){U=null;x=null}if(!U||x!=ad){var X=p("style");X.setAttribute("type","text/css");X.setAttribute("media",ad);U=aa.appendChild(X);if(i.ie&&i.win&&typeof l.styleSheets!=e&&l.styleSheets.length>0){U=l.styleSheets[l.styleSheets.length-1]}x=ad}if(i.ie&&i.win){if(U&&typeof U.addRule==o){U.addRule(Z,ac)}}else{if(U&&typeof l.createTextNode!=e){U.appendChild(l.createTextNode(Z+" {"+ac+"}"))}}}function F(Z,X){if(!f){return}var Y=X?"visible":"hidden";if(a&&m(Z)){m(Z).style.visibility=Y}else{B("#"+Z,"visibility:"+Y)}}function v(X){var Y=/[\\\"<>\.;]/;var Z=Y.exec(X)!=null;return Z&&typeof encodeURIComponent!=e?encodeURIComponent(X):X}var L=function(){if(i.ie&&i.win){window.attachEvent("onunload",function(){var X=k.length;for(var ab=0;ab<X;ab++){k[ab][0].detachEvent(k[ab][1],k[ab][2])}var Y=K.length;for(var aa=0;aa<Y;aa++){Q(K[aa])}for(var Z in i){i[Z]=null}i=null;for(var ac in swfobject){swfobject[ac]=null}swfobject=null})}}();return{registerObject:function(Y,X,aa,Z){if(i.w3&&Y&&X){var ab={};ab.id=Y;ab.swfVersion=X;ab.expressInstall=aa;ab.callbackFn=Z;c[c.length]=ab;F(Y,false)}else{if(Z){Z({success:false,id:Y})}}},getObjectById:function(X){if(i.w3){return t(X)}},embedSWF:function(ae,Y,ab,ad,ah,aa,ag,ac,Z,X){var af={success:false,id:Y};if(i.w3&&!(i.wk&&i.wk<312)&&ae&&Y&&ab&&ad&&ah){F(Y,false);w(function(){ab+="";ad+="";var am={};if(Z&&typeof Z===o){for(var al in Z){am[al]=Z[al]}}am.data=ae;am.width=ab;am.height=ad;var ai={};if(ac&&typeof ac===o){for(var aj in ac){ai[aj]=ac[aj]}}if(ag&&typeof ag===o){for(var ak in ag){if(typeof ai.flashvars!=e){ai.flashvars+="&"+ak+"="+ag[ak]}else{ai.flashvars=ak+"="+ag[ak]}}}if(u(ah)){var an=q(am,ai,Y);if(am.id==Y){F(Y,true)}af.success=true;af.ref=an}else{if(aa&&G()){am.data=aa;O(am,ai,Y,X);return}else{F(Y,true)}}if(X){X(af)}})}else{if(X){X(af)}}},switchOffAutoHideShow:function(){f=false},ua:i,getFlashPlayerVersion:function(){return{major:i.pv[0],minor:i.pv[1],release:i.pv[2]}},hasFlashPlayerVersion:u,createSWF:function(Y,X,Z){if(i.w3){return q(Y,X,Z)}else{return undefined}},showExpressInstall:function(Y,X,Z,aa){if(i.w3&&G()){O(Y,X,Z,aa)}},removeSWF:function(X){if(i.w3){Q(X)}},createCSS:function(Z,Y,X,aa){if(i.w3){B(Z,Y,X,aa)}},addDomLoadEvent:w,addLoadEvent:b,getQueryParamValue:function(X){var Z=l.location.search||l.location.hash;if(Z){if(/\?/.test(Z)){Z=Z.split("?")[1]}if(X==null){return v(Z)}var aa=Z.split("&");for(var Y=0;Y<aa.length;Y++){if(aa[Y].substring(0,aa[Y].indexOf("="))==X){return v(aa[Y].substring((aa[Y].indexOf("=")+1)))}}}return""},expressInstallCallback:function(){if(A){var X=m(g);if(X&&J){X.parentNode.replaceChild(J,X);if(E){F(E,true);if(i.ie&&i.win){J.style.display="block"}}if(H){H(h)}}A=false}}}}();FIVEMIN.swfobject=swfobject};


/* ~/Scripts/Fivemin.lib.js */

if(typeof(FIVEMIN)=="undefined"){var FIVEMIN={}}if(typeof(FIVEMIN.LIB)=="undefined"){FIVEMIN.LIB=(function(){FIVEMIN.LIB=function(){var d=function(){};var a=function(){return a.getById.apply(this,arguments)};a.extend=function(h,f){for(var g in (f||{})){h[g]=f[g]}return h};var c;a.extend(a,{document:document,getById:function(g,f){return g?g.nodeName?g:(f||document).getElementById(g):null},create:function(f,i,h){var g=(h||a.document||document).createElement(f);if(i){a.alter(g,i)}return g},setDocument:function(f){c=a.document||document;a.document=f},restoreDocument:function(){a.document=c;c=null},alter:function(g,h){if(!h){return null}if(h.styles){a.css(g,h.styles);delete h.styles}if(h.events){a.each(h.events,function(i,j){a.addEvent(g,j,i)});delete h.events}if(h.children){a.each(h.children,function(i){g.appendChild(i)});delete h.children}var f=h.parent;delete h.parent;a.extend(g,h);if(f){f.appendChild(g)}return g},ie:(function(){var f=null;if(navigator.appName=="Microsoft Internet Explorer"){f=new RegExp("MSIE ([0-9]{1,}[.0-9]{0,})").exec(navigator.userAgent);if(f[1]!=null){f=parseFloat(f[1])}else{f=null}}return f}()),removeNode:function(f){if(f.parentNode){f.parentNode.removeChild(f)}},getElement:function(f,g){return a.getElements(f,g)[0]},getElements:function(m,n){if(!n){n=a.document||document}var q=[];if(m.indexOf(".")>-1){for(var g=m.split("."),l=new RegExp("\\b"+g[1]+"\\b"),k=n.getElementsByTagName(g[0]||"*"),h=k.length,o=0,p=0,f;o<h;++o){f=k[o];if(l.test(f.className)){q[p++]=f}}}else{q=a.toArray(n.getElementsByTagName(m))}return q},hasChild:function(f,g){if(a.browser.features.xpath==false){return a.indexOf(a.toArray(f.getElementsByTagName(g.tagName)),g)>-1}return f.contains?f!=g&&f.contains(g):!!(f.compareDocumentPosition(g)&16)},addEvent:function(h,g,f){var i;if(g=="mouseenter"){g="mouseover";i=function(k){var l=k.relatedTarget;var j;if(l==undefined){j=true}else{if(l===false){j=false}else{j=(typeof(this)!="document"&&l!=this&&l.prefix!="xul"&&!a.hasChild(this,l))}}if(j){f(k)}return j}}else{if(g=="mouseleave"){g="mouseout";i=function(k){var l=k.relatedTarget;var j;if(l==undefined){j=true}else{if(l===false){j=false}else{j=(typeof(this)!="document"&&l!=this&&l.prefix!="xul"&&!a.hasChild(this,l))}}if(j){f(k)}return j}}else{i=f}}document.attachEvent?h.attachEvent("on"+g,i):h.addEventListener(g,i,false)},removeEvent:function(h,g,f){var i;if(g=="mouseenter"){g="mouseover";i=function(k){var l=k.relatedTarget;var j;if(l==undefined){j=true}else{if(l===false){j=false}else{j=(typeof(this)!="document"&&l!=this&&l.prefix!="xul"&&!a.hasChild(this,l))}}if(j){f()}return j}}else{if(g=="mouseleave"){g="mouseout";i=function(k){var l=k.relatedTarget;var j;if(l==undefined){j=true}else{if(l===false){j=false}else{j=(typeof(this)!="document"&&l!=this&&l.prefix!="xul"&&!a.hasChild(this,l))}}if(j){f()}return j}}else{i=f}}document.detachEvent?h.detachEvent("on"+g,i):h.removeEventListener(g,i,false)},stopEvent:function(f,h,g){if(h!==false){if(f.preventDefault){f.preventDefault()}else{f.returnValue=false}}if(g!==false){if(f.stopPropagation){f.stopPropagation()}else{f.cancelBubble=true}}},eventElement:function(f){return f.target?f.target:f.srcElement},toArray:function(j){if(j instanceof Array){return j}if(j.item){var f=[];for(var g=0,h=j.length;g<h;g++){f[g]=j[g]}return f}return Array.prototype.slice.call(j)},indexOf:function(k,f,j){var g=k.length;for(var h=(j<0)?Math.max(0,g+j):j||0;h<g;h++){if(k[h]===f){return h}}return -1},removeItem:function(g,f){for(var h=g.length;h--;){if(g[h]===f){g.splice(h,1)}}},each:function(k,f,h){if(k instanceof Array){for(var g=0;g<k.length;g++){f.call(h||null,k[g],g)}}else{for(var j in k){f.call(h||null,k[j],j)}}return k},trim:function(f){return f.replace(/^\s+|\s+$/g,"")},etrim:function(g,f){if(typeof g!=="string"){return g}return a.ltrim(a.rtrim(g,f),f)},ltrim:function(g,f){f=f||"\\s";return g.replace(new RegExp("^["+f+"]+","g"),"")},rtrim:function(g,f){f=f||"\\s";return g.replace(new RegExp("["+f+"]+$","g"),"")},time:function(){return new Date().getTime()},map:function(i,f,h){var g=i instanceof Array?[]:{};a.each(i,function(k,j){g[j]=f.call(h||null,k,j)});return g},css:function(i,g){if(i instanceof Array){for(var h=0;h<i.length;++h){var f=i[h];a.css(f,g)}return null}else{if(typeof(g)=="string"){i.style.cssText=g}else{if(g.opacity!==undefined){a.opacity(i,g.opacity);delete g.opacity}g=a.map(g,function(k,j){if(a.indexOf(b,j)!=-1){return parseFloat(k)}if(a.indexOf(e,j)!=-1&&typeof(k)=="number"){return k+"px"}return k});a.extend(i.style,g)}}return i},hide:function(g){if(g instanceof Array){for(var f=0;f<g.length;++f){a.hide(g[f])}return}g.style.display="none"},show:function(f){f.style.display="block"},docSize:function(h){var f=0,g=0;if(self.innerHeight){f=window.innerHeight;g=window.innerWidth}else{if(h.documentElement&&h.documentElement.clientHeight){f=h.documentElement.clientHeight;g=h.documentElement.clientWidth}else{if(document.body){f=h.body.clientHeight;g=h.body.clientWidth}}}if(f<h.body.clientHeight){f=h.body.clientHeight}return{height:parseInt(f,10),width:parseInt(g,10)}},addCls:function(f,g){if(!a.hasCls(f,g)){f.className+=" "+g}},removeCls:function(f,g){f.className=f.className.replace(new RegExp("(^|\\s+)"+g+"(\\s+|$)","g")," ")},hasCls:function(f,g){return new RegExp("(^|\\s)"+g+"(\\s|$)").test(f.className)},currCss:function(g,i,j){if(i=="float"){i="cssFloat"}if(i=="opacity"&&a.browser.name=="ie"){return a.opacity(g)}var k;if(g.currentStyle){k=g.currentStyle[i.replace(/-\D/g,function(l){return l.charAt(1).toUpperCase()})]}else{var f=g.ownerDocument.defaultView.getComputedStyle(g,null);k=f?f.getPropertyValue(i):null}if(k=="auto"&&(i=="width"||i=="height")){k=g["offset"+i.charAt(0).toUpperCase()+i.substr(1)];var h=i=="width"?["left","right"]:["top","bottom"];k-=a.currCss(g,h[0])+a.currCss(g,h[1]);if(k<0){k=0}}if(k!==null&&(a.indexOf(e,i)!=-1||a.indexOf(b,i)!=-1||j||k.indexOf("px")==k.length-2)){k=parseFloat(k)}return a.etrim(k,"'\"")},opacity:function(f,h){if(h===undefined){if(a.browser.name!="ie"){return a.currCss(f,"opacity")}var g=f.style.filter;return g&&g.indexOf("opacity=")>=0?(parseFloat(g.match(/opacity=([^)]*)/)[1])/100):1}else{if(h==0){if(f.style.visibility!="hidden"){f.style.visibility="hidden"}}else{if(f.style.visibility!="visible"){f.style.visibility="visible"}}if(!f.currentStyle||!f.currentStyle.hasLayout){f.style.zoom=1}if(a.browser.name=="ie"){f.style.filter=h==1?"":"alpha(opacity="+h*100+")"}f.style.opacity=h}return null},offset:function(h){var g,f=g=0;if(h.offsetParent){do{f+=h.offsetLeft;g+=h.offsetTop}while(h=h.offsetParent)}return{left:f,top:g}},dimensions:function(g){var h={};h.inner={width:g.clientWidth,height:g.clientHeight};h.outer={width:g.offsetWidth,height:g.offsetHeight};h.scroll={width:g.scrollWidth,height:g.scrollHeight<g.clientHeight?g.clientHeight:g.scrollHeight,left:g.scrollLeft,top:g.scrollTop};var f=g;h.left=h.top=0;while(f.offsetParent){h.left+=f.offsetLeft;h.top+=f.offsetTop;f=f.offsetParent}return h},bind:function(f,g){return function(){f.apply(g,arguments)}},waitUntil:function(g,m,h,i,j,k){if(!j){j=this}if(!k){k=[]}if(g()){m.apply(j,k);return}if(!h){h=100}var f;var l=setInterval(function(){if(!g()){return}clearInterval(l);if(f){clearTimeout(f)}m.apply(j,k)},h);if(i){f=setTimeout(function(){clearInterval(l)},i)}},htmlenc:function(f){return f?f.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/'/g,"&apos;").replace(/"/g,"&quot;"):""},addStylesheet:function(f,g,m){if(m==null){m=document}var k=m.getElementsByTagName("head")[0];var j=m.getElementsByTagName("link");for(var l=0;l<j.length;++l){var n=j[l];if(n.getAttribute("href")==f){return true}}var h=m.createElement("link");h.rel="stylesheet";h.href=f;h.type="text/css";h.media=g||"all";k.appendChild(h);return true},log:function(){if(typeof(console)=="undefined"){return}try{console.log.apply(console,arguments)}catch(f){console.log(a.toArray(arguments))}},l:function(){if(typeof(console)=="undefined"){return d}return console.info}(),d:function(){if(typeof(console)=="undefined"){return d}return console.dir}(),prepend:function(g,f){var h=g.firstChild;if(typeof h!="undefined"){g.insertBefore(f,h)}else{g.appendChild(f)}},getViewport:function(){var g;var f;if(typeof window.innerWidth!="undefined"){g=window.innerWidth;f=window.innerHeight}else{if(typeof document.documentElement!="undefined"&&typeof document.documentElement.clientWidth!="undefined"&&document.documentElement.clientWidth!=0){g=document.documentElement.clientWidth;f=document.documentElement.clientHeight}else{g=document.getElementsByTagName("body")[0].clientWidth;f=document.getElementsByTagName("body")[0].clientHeight}}return{width:g,height:f}},randomizeArray:function(g){var k=g.length;if(k==0){return[]}while(--k){var f=Math.floor(Math.random()*(k+1));var h=g[k];var l=g[f];g[k]=l;g[f]=h}return g},hex2num:function(f){if(f.charAt(0)=="#"){f=f.slice(1)}f=f.toUpperCase();var g="0123456789ABCDEF";var j=new Array(3);var l=0;var h,n;for(var m=0;m<6;m+=2){h=g.indexOf(f.charAt(m));n=g.indexOf(f.charAt(m+1));j[l]=(h*16)+n;l++}return(j)},num2hex:function(g){var j="0123456789ABCDEF";var f="#";var h,l;for(var k=0;k<3;k++){h=g[k]/16;l=g[k]%16;f+=j.charAt(h)+j.charAt(l)}return(f)},md5:function(o){var f=0;function v(y){return t(u(n(y)))}function h(z,y){return t(m(n(z),n(y)))}function w(){return v("abc").toLowerCase()=="900150983cd24fb0d6963f7d28e17f72"}function u(y){return l(g(i(y),y.length*8))}function m(z,B){var E=i(z);if(E.length>16){E=g(E,z.length*8)}var A=Array(16),D=Array(16);for(var y=0;y<16;y++){A[y]=E[y]^909522486;D[y]=E[y]^1549556828}var C=g(A.concat(i(B)),512+B.length*8);return l(g(D.concat(C),512+128))}function t(z){try{f}catch(C){f=0}var B=f?"0123456789ABCDEF":"0123456789abcdef";var y="";var A;for(var D=0;D<z.length;D++){A=z.charCodeAt(D);y+=B.charAt((A>>>4)&15)+B.charAt(A&15)}return y}function n(A){var z="";var y=-1;var B,C;while(++y<A.length){B=A.charCodeAt(y);C=y+1<A.length?A.charCodeAt(y+1):0;if(55296<=B&&B<=56319&&56320<=C&&C<=57343){B=65536+((B&1023)<<10)+(C&1023);y++}if(B<=127){z+=String.fromCharCode(B)}else{if(B<=2047){z+=String.fromCharCode(192|((B>>>6)&31),128|(B&63))}else{if(B<=65535){z+=String.fromCharCode(224|((B>>>12)&15),128|((B>>>6)&63),128|(B&63))}else{if(B<=2097151){z+=String.fromCharCode(240|((B>>>18)&7),128|((B>>>12)&63),128|((B>>>6)&63),128|(B&63))}}}}}return z}function i(y){var A=Array(y.length>>2);for(var z=0;z<A.length;z++){A[z]=0}for(var z=0;z<y.length*8;z+=8){A[z>>5]|=(y.charCodeAt(z/8)&255)<<(z%32)}return A}function l(y){var A="";for(var z=0;z<y.length*32;z+=8){A+=String.fromCharCode((y[z>>5]>>>(z%32))&255)}return A}function g(y,D){y[D>>5]|=128<<((D)%32);y[(((D+64)>>>9)<<4)+14]=D;var G=1732584193;var F=-271733879;var I=-1732584194;var H=271733878;for(var A=0;A<y.length;A+=16){var C=G;var E=F;var z=I;var B=H;G=x(G,F,I,H,y[A+0],7,-680876936);H=x(H,G,F,I,y[A+1],12,-389564586);I=x(I,H,G,F,y[A+2],17,606105819);F=x(F,I,H,G,y[A+3],22,-1044525330);G=x(G,F,I,H,y[A+4],7,-176418897);H=x(H,G,F,I,y[A+5],12,1200080426);I=x(I,H,G,F,y[A+6],17,-1473231341);F=x(F,I,H,G,y[A+7],22,-45705983);G=x(G,F,I,H,y[A+8],7,1770035416);H=x(H,G,F,I,y[A+9],12,-1958414417);I=x(I,H,G,F,y[A+10],17,-42063);F=x(F,I,H,G,y[A+11],22,-1990404162);G=x(G,F,I,H,y[A+12],7,1804603682);H=x(H,G,F,I,y[A+13],12,-40341101);I=x(I,H,G,F,y[A+14],17,-1502002290);F=x(F,I,H,G,y[A+15],22,1236535329);G=q(G,F,I,H,y[A+1],5,-165796510);H=q(H,G,F,I,y[A+6],9,-1069501632);I=q(I,H,G,F,y[A+11],14,643717713);F=q(F,I,H,G,y[A+0],20,-373897302);G=q(G,F,I,H,y[A+5],5,-701558691);H=q(H,G,F,I,y[A+10],9,38016083);I=q(I,H,G,F,y[A+15],14,-660478335);F=q(F,I,H,G,y[A+4],20,-405537848);G=q(G,F,I,H,y[A+9],5,568446438);H=q(H,G,F,I,y[A+14],9,-1019803690);I=q(I,H,G,F,y[A+3],14,-187363961);F=q(F,I,H,G,y[A+8],20,1163531501);G=q(G,F,I,H,y[A+13],5,-1444681467);H=q(H,G,F,I,y[A+2],9,-51403784);I=q(I,H,G,F,y[A+7],14,1735328473);F=q(F,I,H,G,y[A+12],20,-1926607734);G=p(G,F,I,H,y[A+5],4,-378558);H=p(H,G,F,I,y[A+8],11,-2022574463);I=p(I,H,G,F,y[A+11],16,1839030562);F=p(F,I,H,G,y[A+14],23,-35309556);G=p(G,F,I,H,y[A+1],4,-1530992060);H=p(H,G,F,I,y[A+4],11,1272893353);I=p(I,H,G,F,y[A+7],16,-155497632);F=p(F,I,H,G,y[A+10],23,-1094730640);G=p(G,F,I,H,y[A+13],4,681279174);H=p(H,G,F,I,y[A+0],11,-358537222);I=p(I,H,G,F,y[A+3],16,-722521979);F=p(F,I,H,G,y[A+6],23,76029189);G=p(G,F,I,H,y[A+9],4,-640364487);H=p(H,G,F,I,y[A+12],11,-421815835);I=p(I,H,G,F,y[A+15],16,530742520);F=p(F,I,H,G,y[A+2],23,-995338651);G=s(G,F,I,H,y[A+0],6,-198630844);H=s(H,G,F,I,y[A+7],10,1126891415);I=s(I,H,G,F,y[A+14],15,-1416354905);F=s(F,I,H,G,y[A+5],21,-57434055);G=s(G,F,I,H,y[A+12],6,1700485571);H=s(H,G,F,I,y[A+3],10,-1894986606);I=s(I,H,G,F,y[A+10],15,-1051523);F=s(F,I,H,G,y[A+1],21,-2054922799);G=s(G,F,I,H,y[A+8],6,1873313359);H=s(H,G,F,I,y[A+15],10,-30611744);I=s(I,H,G,F,y[A+6],15,-1560198380);F=s(F,I,H,G,y[A+13],21,1309151649);G=s(G,F,I,H,y[A+4],6,-145523070);H=s(H,G,F,I,y[A+11],10,-1120210379);I=s(I,H,G,F,y[A+2],15,718787259);F=s(F,I,H,G,y[A+9],21,-343485551);G=k(G,C);F=k(F,E);I=k(I,z);H=k(H,B)}return Array(G,F,I,H)}function r(D,C,B,y,A,z){return k(j(k(k(C,D),k(y,z)),A),B)}function x(z,y,C,B,A,E,D){return r((y&C)|((~y)&B),z,y,A,E,D)}function q(z,y,C,B,A,E,D){return r((y&B)|(C&(~B)),z,y,A,E,D)}function p(z,y,C,B,A,E,D){return r(y^C^B,z,y,A,E,D)}function s(z,y,C,B,A,E,D){return r(C^(y|(~B)),z,y,A,E,D)}function k(B,y){var A=(B&65535)+(y&65535);var z=(B>>16)+(y>>16)+(A>>16);return(z<<16)|(A&65535)}function j(z,y){return(z<<y)|(z>>>(32-y))}return v(o)},timer:function(){var f;return{start:function(){f=new Date().getTime()},getStatus:function(){var g=new Date().getTime();var h=(g-f)/1000;return h}}}(),isDecendant:function(g,f){var h=false;do{if(g==f){h=true;break}g=g.parentNode}while(g.tagName.toLowerCase()!="html");return h},getTopMostWindow:function(){var i=window;while(i){try{var g=i.parent;var h=g.document;if(!h){break}i=g;if(g==g.parent){break}}catch(f){break}}a.getTopMostWindow=function(){return i};return i},_parseQueryString:function(f){var g={};f.replace(/(.*?)=(.*?)(?:&|$)/g,function(h,i,j){g[i]=decodeURIComponent(j)});return g},isElement:function(f){return(typeof HTMLElement==="object"?f instanceof HTMLElement:typeof f==="object"&&f.nodeType===1&&typeof f.nodeName==="string")},_getQueryString:function(){if(!a._getQueryString._overwritten){a._getQueryString._overwritten=true;var f=a._parseQueryString(location.search.substr(1));a._getQueryString=function(g,h){g=g.toLowerCase();return(f[g]===undefined?h:f[g])||""};return a._getQueryString.apply(null,arguments)}return null}});a.browser={};(function(){var i=navigator.userAgent.toLowerCase(),g=navigator.platform.toLowerCase(),h=i.match(/(opera|ie|firefox|chrome|version)[\s\/:]([\w\d\.]+)?.*?(safari|version[\s\/:]([\w\d\.]+)|$)/)||[null,"unknown",0],f=h[1]=="ie"&&document.documentMode;a.browser.name=(h[1]=="version")?h[3]:h[1];a.browser.version=f||parseFloat((h[1]=="opera"&&h[4])?h[4]:h[2]);a.browser.platform={name:i.match(/ip(?:ad|od|hone)/)?"ios":(i.match(/(?:webos|android)/)||g.match(/mac|win|linux/)||["other"])[0]};a.browser.features={xpath:!!(document.evaluate),air:!!(window.runtime),query:!!(document.querySelector),json:!!(window.JSON)};a.browser[a.browser.name]=true;a.browser[a.browser.name+parseInt(a.browser.version,10)]=true;a.browser.platform[a.browser.platform.name]=true})();(function(){var i,f=[];a.extend(a,{addDomReady:function(j){if(i){return j()}f[f.length]=j;if(!h){h=true;g()}return true}});var h;function g(){if(a.browser.name=="ie"){var j=a.create("div");(function(){var l=false;try{j.doScroll("left");a.document.body.appendChild(j);j.innerHTML="temp";a.removeNode(j);l=true}catch(m){setTimeout(arguments.callee,500)}if(l){k()}})()}else{if(a.browser.features.query==false){(function(){if(a.document.readyState=="loaded"||a.document.readyState=="complete"){k()}else{setTimeout(arguments.callee,500)}})()}else{if(a.document.readyState=="loaded"||a.document.readyState=="complete"){k()}else{a.addEvent(window,"load",k);a.addEvent(document,"DOMContentLoaded",k)}}}function k(){if(i){return}i=true;a.each(f,function(l){l()})}}})();a.jsonpCallbacks={};a.jsonp=function(i,j,h){if(h==null){h={}}if(j!=null){if(typeof j!="string"){var k=h.callbackName||"j"+Math.random().toString().substring(5);var f;if(h.bind){f=function(l){FIVEMIN.LIB.bind(j,h.bind)(1,l,h.pass)}}else{f=function(l){j(1,l,h.pass)}}a.jsonpCallbacks[k]=f;i+=(i.indexOf("?")>-1?"&":"?")+"callback=FIVEMIN.LIB.jsonpCallbacks['"+k+"']"}else{i+=(i.indexOf("?")>-1?"&":"?")+"callback="+j}}if(h.preventCache){i+="&rnd="+new Date().getTime()}var g=a.getElement("head")||a.document.body||a.document.documentElement;a.create("script",{src:i,type:"text/javascript",parent:g})};a.toQueryString=function(f){var g=[];a.each(f,function(i,h){if(typeof i=="function"||i==null){return}g.push(h+"="+encodeURIComponent(i.toString()))});return g.join("&")};var e="left,top,bottom,right,width,height,maxWidth,maxHeight,minWidth,minHeight,fontSize,letterSpacing,lineHeight,margin,marginLeft,marginRight,marginTop,marginBottom,padding,paddingLeft,paddingRight,paddingTop,paddingBottom,borderWidthLeft,borderWidthRight,borderWidthTop,borderWidthBottom".split(",");var b="z-index,font-weight,opacity,zoom,line-height".split(",");return a}();return FIVEMIN.LIB})()}if(typeof(FIVEMIN.LIB.Helpers)=="undefined"){FIVEMIN.LIB.Helpers={getRnd:function(c){var b=c.split(",");return b[Math.floor(Math.random()*b.length)]},getHead:function(){var a=FIVEMIN.LIB;return a.getElement("head")||a.document.body||a.document.documentElement}}};


/* ~/Scripts/Fivemin.storage.js */

if(typeof(FIVEMIN)=="undefined"){var FIVEMIN={}}if(typeof(FIVEMIN.STORAGE)=="undefined"){var swfobject=FIVEMIN.swfobject||window.swfobject;var ajaxFunc=function(a){if(FIVEMIN.LIB!=null){var c={preventCache:false,callbackName:a.callbackName};var b=function(d,e){a.success(e)};FIVEMIN.LIB.jsonp(a.url,b,c)}else{if(FIVEMIN.JQuery!=null){a.cache=true;if(a.callbackName!=null){a.jsonpCallback=a.callbackName}FIVEMIN.JQuery.ajax(a)}}};var urlbase="http://syn.5min.com/Handlers/";var _ec_tests=2;var _ec_debug=0;var Fivemincookie=(function(){this._class=function(){var a=this;var b=false;this._ec={};this.flashAvailable=function(){b=true};this.get=function(c,d){a._fivemincookie(c,d,null)};this.set=function(d,c){a._fivemincookie(d,function(){},c)};this._fivemincookie=function(d,c,f){if(f!=null){this.fivemincookie_lso(d,f);var e=urlbase+"FiveminCookieCache.ashx?name="+d;if(f==""){e+="&empty=1"}else{e+="&value="+f}ajaxFunc({url:e,callbackName:"cache_"+d+"_"+f,success:function(){var g=new Image();g.style.visibility="hidden";g.style.position="absolute";g.src=urlbase+"FiveminCookieCache.ashx?name="+d+"&callback=FIVEMIN.LIB.jsonpCallbacks['cache_"+d+"']"}})}else{a._ec.cacheData=null;ajaxFunc({url:urlbase+"FiveminCookieCache.ashx?name="+d,callbackName:"cache_"+d,success:function(g){if(c!=null){c(g.toString())}},error:function(){if(c!=null){c("")}}})}};this.fivemincookie_lso=function(d,g){this.flashObj=this.flashObj||FIVEMIN.swfobject.getObjectById("fivemincookieswf");if(!b&&this.flashObj==null){var f=document.createElement("div");f.innerHTML='<div id="fivemincookieswfcontainer"></div>';f.setAttribute("style","position:absolute;top:0;left:0;");document.body.appendChild(f);var c={swliveconnect:"true",allowscriptaccess:"always",flashvars:"jscbOnLoad=FIVEMIN.storage.flashAvailable"};var e={id:"fivemincookieswf",name:"fivemincookieswf",data:"http://cfiles.5min.com/flashcookie/StorageCookie.swf",width:"1",height:"1"};this.flashObj=FIVEMIN.swfobject.createSWF(e,c,"fivemincookieswfcontainer")}else{if(g==null&&this.flashObj!=null&&this.flashObj.getValueByKey!=null){return this.flashObj.getValueByKey(d)}}if(g!=null){FIVEMIN.LIB.waitUntil(function(){return b&&a.flashObj!=null},function(){a.flashObj.setValueByKey(d,g)});return g}return null}};return _class})();FIVEMIN.storage=(function(){var c={};var e=new Fivemincookie();var d={};var b=function(){for(var f in d){if(c[f]!=null){var g;while(g=d[f].pop()){g(c[f])}}}};var a={get:function(f,g){if(c[f]!=null){g(c[f])}else{if(d[f]!=null){d[f].push(g)}else{d[f]=[g];e.get(f,function(h){if(f=="uuid"&&(h==null||h=="")){h=Math.random().toString().substring(2);e.set("uuid",h)}if(h==null){h=""}c[f]=h;b()})}}},set:function(g,f){c[g]=f;e.set(g,f);return f},reset:function(f){c[f]=null;d[f]=null},flashAvailable:function(){e.flashAvailable()}};return a})()};


/* ~/Scripts/Fivemin.RequestManager.js */

if(typeof(FIVEMIN)=="undefined"){var FIVEMIN={}}if(typeof(FIVEMIN.RequestManager)=="undefined"){FIVEMIN.FlashProxy=function(){var a={};var b={};var f="error";var e="FiveminFlashProxy"+Math.floor(Math.random()*10000);var d=null;function g(h,i,j){if(d==null&&f=="complete"){f="error"}switch(f){case"error":if(h.priority==1){a.init(h)}else{h.priority=1;FIVEMIN.RequestManager.addRequest(h)}FIVEMIN.RequestManager.hasFlash=false;if(j!=null){clearInterval(j)}break;case"complete":d.addRequest(h.requestURL,i,"json");if(j!=null){clearInterval(j)}break}return false}a.init=function(o){try{if(o==null){o={}}if(typeof o.conf!="undefined"){b=o.conf}if(b.debug&&b.dummyData){o.jscbRequest(1,b.dummyData);return}var i=document.createElement("div");i.setAttribute("style","position:absolute;top:0;left:0;");i.innerHTML='<div id="'+e+'"></div>';var l=document.body;l.insertBefore(i,l.firstChild);var n=FIVEMIN.BaseConfig.FlashProxyUrl;var h="";if(o.jscbOnLoad){h+="&jscbOnLoad="+o.jscbOnLoad}if(o.requestURL){h+="&requestURL="+encodeURIComponent(o.requestURL)}if(o.identifier){h+="&jscbRequest=FIVEMIN.RequestManager.callbacks["+o.identifier+"]"}if(h.length>0){h.length=h.substr(1)}var k={allowfullscreen:true,allowscriptaccess:"always",flashvars:h};var j={id:"FiveminFlashProxy",name:"FiveminFlashProxy",data:n,width:"1",height:"1"};d=FIVEMIN.swfobject.createSWF(j,k,e);a.init=function(){};if(f=="flashProxyEnabled"){f="complete"}else{if(f=="start"){f="initCallback"}}}catch(m){f="error"}};a.addRequest=function(h,i){if(f=="complete"){g(h,i)}else{var j=setInterval(function(){g(h,i,j)},100)}};a.flashProxyEnabled=function(){if(f=="initCallback"){f="complete"}else{if(f=="start"){f="flashProxyEnabled"}}};if(FIVEMIN.swfobject.hasFlashPlayerVersion("9.0.115")&&FIVEMIN.BaseConfig.UseFlashProxy){f="start";var c=setInterval(function(){if(document!=null&&document.body!=null&&document.body.firstChild!=null){a.init({jscbOnLoad:"FIVEMIN.FlashProxy.flashProxyEnabled"});clearInterval(c)}},100)}return a}();FIVEMIN.RequestManager=function(){var b={};var a=FIVEMIN.LIB;var e=new Array();var d=null;b.hasFlash=FIVEMIN.swfobject.hasFlashPlayerVersion("9.0.115")&&FIVEMIN.BaseConfig.UseFlashProxy;b.callbacks=[];b.addRequest=function(g){if(g.priority==1){f(g)}else{if(g.priority==null){g.priority=0}e.push(g);if(d==null){d=setTimeout(c,1000,this)}}};function c(){var h=[];while(e.length>0){var g=e.shift();if(g.priority==2){h.push(g)}else{f(g)}}if(h.length!=0){var i=function(){for(var j=0;j<h.length;j++){f(h[j])}};a.addDomReady(i)}clearTimeout(d);d=null}function f(g){if(!g.requestURL){return}if(!g.identifier){g.identifier=Math.ceil(Math.random()*100000)}var i=0;var k=500;if(g.jscbRequest==null){function j(){i++;k*=2;setTimeout(function(){var l=new Image();if(i<20){l.onerror=j;l.onabort=j}l.src=g.requestURL+(g.retryParam!=null?"&"+g.retryParam+"="+i:"")},k)}var h=new Image();if(g.performRetry){h.onerror=j;h.onabort=j}h.src=g.requestURL+(g.retryParam!=null?"&"+g.retryParam+"="+i:"")}else{if(b.hasFlash){if(g.bind){b.callbacks[g.identifier]=function(l,m){FIVEMIN.LIB.bind(g.jscbRequest,g.bind)(l,m,g.pass)}}else{b.callbacks[g.identifier]=function(l,m){g.jscbRequest(l,m,g.pass)}}FIVEMIN.FlashProxy.addRequest(g,"FIVEMIN.RequestManager.callbacks["+g.identifier+"]")}else{if(g.bind){b.callbacks[g.identifier]=function(l){FIVEMIN.LIB.bind(g.jscbRequest,g.bind)(1,l,g.pass)}}else{b.callbacks[g.identifier]=function(l){g.jscbRequest(1,l,g.pass)}}a.jsonp(g.requestURL,"FIVEMIN.RequestManager.callbacks["+g.identifier+"]",g.options)}}}return b}()};


/* ~/Scripts/Fivemin.Logger.js */

if(typeof(FIVEMIN)=="undefined"){var FIVEMIN={}}if(typeof(FIVEMIN.Logger)=="undefined"){FIVEMIN.Logger=function(){var b={};var a=FIVEMIN.LIB;b.Log=function(c,f,g){var i=FIVEMIN.BaseConfig.Logger[c];var h=FIVEMIN.BaseConfig.Logger[c].events[g];if(f.loglevel!=null){FIVEMIN.BaseConfig.Logger.LogLevel=f.loglevel;delete f.loglevel}if(FIVEMIN.BaseConfig.Logger.LogLevel==null||(FIVEMIN.BaseConfig.Logger.LogLevel&h.bitValue)){var e=a.extend({},i.params);var d=FIVEMIN.BaseConfig.Logger.LogServer+"/"+h.name+"?";if(h.params){a.extend(e,h.params)}a.extend(e,f);e=b.Parse(e);if(FIVEMIN.storage!=null){FIVEMIN.storage.get("uuid",function(j){e.uid=(j==null)?"":j;FIVEMIN.RequestManager.addRequest({requestURL:d+a.toQueryString(e),priority:1,performRetry:false,retryParam:"Lrn"})})}else{FIVEMIN.RequestManager.addRequest({requestURL:d+a.toQueryString(e),performRetry:false,retryParam:"Lrn"})}}};b.Parse=function(d){for(key in d){if(d[key]==null||d[key]==""){if(FIVEMIN.BaseConfig.Logger.Enums[key]!=null&&FIVEMIN.BaseConfig.Logger.Enums[key].empty!=null){d[key]=FIVEMIN.BaseConfig.Logger.Enums[key].empty}}if(d[key]!=null){var e=d[key].toString();if(e!=""&&FIVEMIN.BaseConfig.Logger.Enums[key]!=null){if(isNaN(e)){if(FIVEMIN.BaseConfig.Logger.Enums[key][d[key]]!=null){d[key]=FIVEMIN.BaseConfig.Logger.Enums[key][e]}else{d[key]=""}}}if(e=="true"){d[key]=1}if(e=="false"){d[key]=0}if(e=="null"){d[key]=""}if(e.indexOf(",")>-1){var c=e.split(",");c.sort(function(g,f){return g-f});d[key]=c.toString()}}}return d};return b}()};


/* ~/Scripts/Fivemin.ResultsManager.js */

if(typeof(FIVEMIN)=="undefined"){var FIVEMIN={}}if(typeof(FIVEMIN.ResultsManager)=="undefined"){FIVEMIN.ResultsManager=function(){var a={};a.ServerRequests={};a.sendRequest=function(b){if(b.conf&&b.conf.debug&&b.conf.dummyData){b.jscbRequest(1,conf.dummyData);return}if(typeof(a.ServerRequests[b.requestURL])=="undefined"){a.ServerRequests[b.requestURL]={};a.ServerRequests[b.requestURL].instances=new Array();a.ServerRequests[b.requestURL].instances.push(b);FIVEMIN.RequestManager.addRequest({requestURL:b.requestURL,jscbRequest:this.onHandlerResponse,priority:1,pass:b.requestURL,bind:FIVEMIN.ResultsManager,parentEls:b.parentEls})}else{if(typeof(a.ServerRequests[b.requestURL].Data)=="undefined"){a.ServerRequests[b.requestURL].instances.push(b)}else{a.returnResults(b)}}};a.onHandlerResponse=function(e,f,d){this.ServerRequests[d].Success=e;if(e==2){return}this.ServerRequests[d].Data=f;for(var b=0;b<this.ServerRequests[d].instances.length;b++){this.returnResults(this.ServerRequests[d].instances[b])}};a.returnResults=function(b){if(b.bind){FIVEMIN.LIB.bind(b.jscbRequest,b.bind)(this.ServerRequests[b.requestURL].Success,this.ServerRequests[b.requestURL].Data)}else{b.jscbRequest(this.ServerRequests[b.requestURL].Success,this.ServerRequests[b.requestURL].Data)}};return a}()};


/* ~/Scripts/PlayerSeed.js */

if(typeof COMSCORE=="undefined"){var COMSCORE={}}COMSCORE.beacon=function(m){if(!m){return null}var j=1.6,n=document,l=n.location,i=function(a){if(a==null){return""}return(encodeURIComponent||escape)(a)},k=[(l.protocol=="https:"?"https://sb":"http://b"),".scorecardresearch.com/b?","c1=",i(m.c1),"&c2=",i(m.c2),"&rn=",Math.random(),"&c7=",i(l.href),"&c3=",i(m.c3),"&c4=",i(m.c4),"&c5=",i(m.c5),"&c6=",i(m.c6),"&c15=",i(m.c15),"&c16=",i(m.c16),"&c8=",i(n.title),"&c9=",i(n.referrer),"&cv=",j].join("");k=k.length>1500?k.substr(0,1495)+"&ct=1":k;var h=new Image();h.onload=function(){};h.src=k;return k};if(typeof(FIVEMIN.PlayerSeed)=="undefined"){FIVEMIN.PlayerSeed=function(){var $=FIVEMIN.LIB;function setFiveMinCookie(cName,value,expireMinutes){var exdate=new Date();exdate.setMinutes(exdate.getMinutes()+parseInt(expireMinutes));document.cookie=cName+"="+escape(value)+((expireMinutes==null)?"":";expires="+exdate.toGMTString())}function getFiveMinCookie(cName){if(document.cookie.length>0){var cStart=document.cookie.indexOf(cName+"=");if(cStart!=-1){cStart=cStart+cName.length+1;var cEnd=document.cookie.indexOf(";",cStart);if(cEnd==-1){cEnd=document.cookie.length}return unescape(document.cookie.substring(cStart,cEnd))}}return""}function getFlashMovieObject(movieName){if(window[movieName]){return window.document[movieName]}if(navigator.appName.indexOf("Microsoft Internet")==-1){if(document.embeds&&document.embeds[movieName]){return document.embeds[movieName]}}return document.getElementById(movieName)}var queryString=(function(){var topLocationSearch;try{topLocationSearch=getTopMostWindow().location.search.substr(1)}catch(ex){}function getQueryString(){getQueryString._overwritten=true;var qs=parseQueryString(location.search.substr(1));var topQueryString=topLocationSearch?parseQueryString(topLocationSearch):{};getQueryString=function(key,def){key=key.toLowerCase();return(qs[key]===undefined?topQueryString[key]===undefined?def:topQueryString[key]:qs[key])||""};return getQueryString.apply(null,arguments)}function parseQueryString(query){var params={};query.replace(/(.*?)=(.*?)(?:&|$)/g,function(match,key,value){params[key]=decodeURIComponent(value)});return params}return getQueryString})();if(typeof(fiveMinInit)!="string"){var psFiveMinPlayer=new Array();var psFiveMinCounter=0;var fivMinSynPlayerUrl="http://syn.5min.com";if(queryString("test","")=="localhost"){fivMinSynPlayerUrl="http://localhost/syn"}else{if(queryString("test","")=="5minlocal"){fivMinSynPlayerUrl="http://syn.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 fiveMinCheckJSParams(){var aScripts=document.getElementsByTagName("script");var aCurrScript=new Array();for(var i=0;i<aScripts.length;i++){if(aScripts[i].getAttribute("data-readByPlayerSeed")!="true"){aScripts[i].setAttribute("data-readByPlayerSeed","true");var src=aScripts[i].src.toLowerCase();var questionMark=src.indexOf("?");var autoload=src.indexOf("autoload=0");if(src.indexOf("playerseed.js")>=0&&questionMark>0&&isNaN(src.substring(questionMark+1))&&autoload<0){aCurrScript.push(aScripts[i])}}}if(aCurrScript.length==0){return}for(var curr in aCurrScript){if(typeof(aCurrScript[curr].src)=="undefined"){continue}if(!(aCurrScript[curr].src.toLowerCase().indexOf("playerseed.js")>=0&&aCurrScript[curr].src.indexOf("&")>=0)){continue}var newSelectedScript=new fiveMinSelectedScript(aCurrScript[curr],aSelectedScripts.length+1);aSelectedScripts.push(newSelectedScript)}}function reportComscore(key){COMSCORE.beacon({c1:7,c2:"6473742",c3:key,c4:"",c5:"",c6:"",c15:""})}if(typeof(fiveMinSelectedScript)!="function"){function fiveMinSelectedScript(oScript,counter){this.Script=oScript;this.IsPlayerCreated=false;this.Counter=counter;this.SmartPlayerDiv=null;this.PlayerSeed=null;this.createDiv=function(){var oNewDiv=document.createElement("div");oNewDiv.setAttribute("id","SmartPlayer_"+this.Counter);if(this.Script.parentNode){fiveMinAppendAfter(this.Script,oNewDiv)}this.SmartPlayerDiv=oNewDiv;return oNewDiv};this.createPlayerSeed=function(isToLoad){var aParams=this.getParams();if(this.SmartPlayerDiv==null){this.createDiv()}window.tempPlayerSeed=null;window.tempPlayerSeed=new PlayerSeed(this.SmartPlayerDiv.id);for(var propertyName in aParams){if(typeof(propertyName)=="string"&&propertyName.length>0){window.tempPlayerSeed[propertyName]=fiveMinGetParamValue(aParams[propertyName])}}this.PlayerSeed=window.tempPlayerSeed;window.tempPlayerSeed=null;this.PlayerSeed.counter=this.Counter;if(!this.PlayerSeed.cbCustomID){this.PlayerSeed.cbCustomID=fiveMinAdaptvCompanionDiv+"_"+this.PlayerSeed.counter}if(isToLoad){this.PlayerSeed.Load()}this.IsPlayerCreated=true};this.getParams=function(){var url=this.Script.src===undefined?"":this.Script.src;var qs=url.substring(url.indexOf("?")+1).replace(/\+/g," ").replace(/&amp;/g,"&");var args=qs.split("&");var aParams={};for(var i in args){if(typeof(args[i])!="string"){continue}var pair=args[i].split("=");var name=decodeURIComponent(pair[0]);var value=(pair.length==2)?decodeURIComponent(pair[1]):name;aParams[name]=value}return aParams};this.isEqualTo=function(oFiveMinSelectedScript){return this.valueOf()===oFiveMinSelectedScript.valueOf()};this.toString=this.valueOf=function(){return this.Script.src};this.createPlayerSeed(true)}}if(typeof(fiveMinCompanionBanner)!="function"){function fiveMinCompanionBanner(htmlID,width,height,isFairBalance,className){this.HtmlID=htmlID;this.Width=width;this.Height=height;this.IsFairBalance=isFairBalance;this.ClassName=className;this.toString=function(counter,withAmpersand){var prefix=withAmpersand?"&":"";var suffix=counter==0?"":""+counter;return""+prefix+"cbHtmlID"+suffix+"="+this.HtmlID+prefix+"cbWidth"+suffix+"="+this.Width+prefix+"cbHeight"+suffix+"="+this.Height+(this.IsFairBalance?prefix+"cbIsFairBalance"+suffix+"="+this.IsFairBalance:"")}}}var PlayerSeed=function(divLayer){var that=this;var debug=false;this._rndUniqID=Math.random().toString().substr(2,8);this.playerType=FIVEMIN.BaseConfig.Logger.Enums.pt.flash;this._uniqueId="FiveMinPlayer"+this._rndUniqID;this.bgcolor="#000000";PlayerSeed._instances[this._uniqueId]=this;this.divLayer=divLayer;this.events={};this.addEvent=function(eventName,callback){if(this.events[eventName]==null){this.events[eventName]=[]}this.events[eventName].push(callback)};this.fireEvent=function(eventName,eventArg){if(this.events[eventName]!=null){for(var c=0;c<this.events[eventName].length;c++){this.events[eventName][c].apply(this,[eventArg])}}};this.url=(function(){var currP=window;while(currP){try{var newP=currP.parent;var doc=newP.document;if(!doc){break}currP=newP;if(newP==newP.parent){break}}catch(ex){break}}return currP})().location.href;if(this.autoStart!=1&&this.autoStart!=0){this.autoStart=0}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(isQuickEmbed){if(isQuickEmbed==null){isQuickEmbed=false}var str=(isQuickEmbed)?"":(!this.editMode?"&isPlayerSeed=true":"&isProSeed=true");if(!isQuickEmbed){if(this.categories&&(this.categories.length>0||this.categories>0)){str+="&categories="+this.categories}if(this.contentQuality&&this.contentQuality>0){str+="&ContentQuality="+this.contentQuality}if(this.featured!=null){str+="&featured="+this.featured}if(this.fallbackType!=null){str+="&fallbackType="+this.fallbackType}var playList="";if(this.playList&&(this.playList.length>0||this.playList>0)){playList=(this.shuffle==false)?this.playList:this.getRandomList(this.playList);str+="&playlist="+playList}if(this.editMode){str+="&videoCount=15"}else{if(playList.length>0){playList=playList.split(",");str+="&videoCount="+(playList.length)}else{str+="&videoCount=1"}}}if(this.fallback!=null&&(this.fallback.length>0||this.fallback>0||this.fallbackType=="category"&&this.fallback==0)){str+="&fallback="+this.getRandomList(this.fallback)}if(this.overlay!=null){str+="&overlay="+this.overlay}if(this.autoStart!=null){str+="&autoStart="+this.autoStart}if(this.cbCustomID!=null){str+="&cbCustomID="+this.cbCustomID}if(this.cbFailOverURL!=null){str+="&cbFailOverUrl="+this.cbFailOverURL}if(this.cbFailOverOnStart!=null){str+="&cbFailOverOnStart="+this.cbFailOverOnStart}if(this.isFreeWheel!=null){str+="&isFreeWheel="+this.isFreeWheel}if(this.relatedBottomHeight!=null){str+="&relatedBottomHeight="+this.relatedBottomHeight}if(this.videoGroupID!=null){str+="&videoGroupID="+this.videoGroupID}if(this.skinType!=undefined){str+="&skinType="+this.skinType}if(this.testData!=null){str+="&testData="+this.testData}if(this.volume&&this.volume>=0&&this.volume<=100){str+="&volume="+this.volume}if(this.mute!=null){str+="&mute="+this.mute}if(this.topHeader!=null){str+="&topHeader="+this.topHeader}if(this.relatedMode!=null){str+="&relatedMode="+this.relatedMode}if(this.explicitTags!=null){str+="&explicitTags="+this.explicitTags}if(this.videoControlDisplayColor!=undefined&&this.videoControlDisplayColor!="default"){str+="&videoControlDisplayColor="+encodeURIComponent(this.videoControlDisplayColor)}if(this.colorPallet!=null){str+="&colorPallet="+encodeURIComponent(this.colorPallet)}if(this.editMode!=null){str+="&ExposureType=ProSeed"}else{str+="&ExposureType=PlayerSeed"}if(this.impType!=null){str+="&impType="+this.impType}if(this.playerActions!=null){str+="&playerActions="+this.playerActions}if(this.logoUrl!=null){str+="&logoUrl="+this.logoUrl}if(this.aId!=null){str+="&aId="+this.aId}if(this.hasCompanion!=null){this.obj.hasCompanion=this.hasCompanion;str+="&hasCompanion="+this.hasCompanion}if(this.isPreviewMode!=undefined){str+="&isPreviewMode="+this.isPreviewMode}if(queryString("playernewversion3","")=="true"){str+="&playernewversion3=true"}if(queryString("playerdebug5min","")!=""){str+="&playerdebug5min="+queryString("playerdebug5min","")}if(queryString("isTestDensity","")=="true"){str+="&isTestDensity=true"}if(!isQuickEmbed){if(queryString("nocache","")=="true"){str+="&nocache=true"}if(document.getElementsByTagName("title")[0]){str+="&shortAnalysisText="+escape(document.getElementsByTagName("title")[0].innerHTML)}if((this.sid.toString()=="954"||this.sid.toString()=="670")&&this.url.indexOf("?")>0){str+="&url="+encodeURIComponent(this.url.substring(0,this.url.indexOf("?")))}else{str+="&url="+encodeURIComponent(this.url)}str+="&filterString="+encodeURIComponent(this.filterString);if(this.libraryID>0){str+="&libraryID="+this.libraryID}}str+=this.CreateCBQS();return str};this.getRandomList=function(videoList){if(!isNaN(videoList)){return""+videoList}var videoListArr=[];if(videoList.length>0){videoListArr=videoList.split(",");videoListArr.sort(function(){return(Math.round(Math.random())-0.5)})}return videoListArr.join(",")};this.checkPlayerSeedCookie=function(){var useFrequency=getFiveMinCookie("asPlayerSeed");if(useFrequency!=null&&useFrequency!=""){return true}else{setFiveMinCookie("asPlayerSeed","1",this.frequency)}return false};this.Load=function(){if(this.doNotDisplay()){return}if(this.onRelatedVideoChanged){try{var videoChanged=eval(this.onRelatedVideoChanged);if(typeof(videoChanged)=="function"){this.addEvent("relatedVideoChanged",videoChanged)}}catch(e){}}if(this.onVideoDataLoaded){try{var videoDataLoaded=eval(this.onVideoDataLoaded);if(typeof(videoDataLoaded)=="function"){this.addEvent("videoDataLoaded",videoDataLoaded)}}catch(e){}}if(this.debug!=null){debug=this.debug}if(this.counter==-1){this.counter=psFiveMinCounter}psFiveMinPlayer[this.counter]=this;if(this.cbCustomID==fiveMinAdaptvCompanionDiv){this.cbCustomID=fiveMinAdaptvCompanionDiv+"_"+this.counter}if(this.cbCount==3||this.CompanionBanners==null||typeof(this.CompanionBanners)=="object"&&this.CompanionBanners.length==0){this.CompanionBanners=new Array();var cbHtmlID=this.cbHtmlID||this.cbCustomID+"_cb";var cbWidth=this.cbWidth||300;var cbHeight=this.cbHeight||250;var cbIsFairBalance=this.cbIsFairBalance||false;this.CompanionBanners.push(new fiveMinCompanionBanner(cbHtmlID,cbWidth,cbHeight,cbIsFairBalance,fiveMinClassCompanionBanner));cbHtmlID=this.cbHtmlID1||this.cbCustomID+"_fb";cbWidth=this.cbWidth1||300;cbHeight=this.cbHeight1||Math.max(60,this.height-250);cbIsFairBalance=this.cbIsFairBalance1||true;this.CompanionBanners.push(new fiveMinCompanionBanner(cbHtmlID,cbWidth,cbHeight,cbIsFairBalance,fiveMinClassFairBalance));cbHtmlID=this.cbHtmlID2||this.cbCustomID+"_bt";cbWidth=this.cbWidth2||728;cbHeight=this.cbHeight2||98;cbIsFairBalance=this.cbIsFairBalance2||false;this.CompanionBanners.push(new fiveMinCompanionBanner(cbHtmlID,cbWidth,cbHeight,cbIsFairBalance,fiveMinClassBottomBanner))}if(this.editButton){this.editMode=true;function initEditButton(){var eElement=typeof(that.editButton)=="string"?(function(){var btn=null,win=window;while(!btn){btn=win.document.getElementById(that.editButton);if(btn){return btn}if(win==top){break}try{win=win.parent}catch(exception){break}}return null})():null;if(eElement){eElement.onclick=function(){that.callFlashEdit()};that.editButton=eElement}else{that.editButton=null}}var editButtonElement=typeof(this.editButton)=="string"?document.getElementById(this.editButton):null;if(editButtonElement){initEditButton()}else{if(window.attachEvent){window.attachEvent("onload",initEditButton)}else{if(window.addEventListener){window.addEventListener("load",initEditButton,false)}}}}this.fwKeyValues="";if(this.aol_level!=null){this.fwKeyValues+="%26aol_level_parameter%3D"+this.aol_level}if(this.sponsorship!=null){this.fwKeyValues+="%26sponsorship%3D"+this.sponsorship}if(this.fwKeyValues.length>0&&this.fwKeyValues.substr(0,3)=="%26"){this.fwKeyValues=this.fwKeyValues.substr(3)}this.divWrapper=document.createElement("div");this.divWrapper.setAttribute("id","playerWrapper"+this.counter);this.divWrapper.setAttribute("style","float:left;");if(this.divLayer&&document.getElementById(this.divLayer)){document.getElementById(this.divLayer).innerHTML="";document.getElementById(this.divLayer).appendChild(this.divWrapper)}this.strPlayer=document.createElement("div");this.strPlayer.setAttribute("id","adaptvDiv"+this.counter);this.divWrapper.appendChild(this.strPlayer);var hasVideoGroup=typeof(this.videoGroupID)!="undefined"&&!isNaN(this.videoGroupID);if(!hasVideoGroup&&(this.playList!=null&&(typeof(this.playList=="number")&&this.playList>0||typeof(this.playList=="string")&&this.playList.length>0&&!isNaN(this.playList))&&FIVEMIN.swfobject.hasFlashPlayerVersion("9.0.115"))){this.quickEmbed(parseInt(this.playList));return}var playerRequestUrl=fivMinSynPlayerUrl+"/handlers/SenseHandler.ashx?func=GetResults&sid="+this.sid+this.GetParams()+"&counter="+this.counter;var cfg={requestURL:playerRequestUrl,jscbRequest:this.onSuccessURLPlayer,instanceNumber:this.counter,bind:this};try{FIVEMIN.ResultsManager.sendRequest(cfg);this.logAddRequest()}catch(ex){if(debug){alert(ex)}}if(debug){$.log("requesting data")}};this.callFlashEdit=function(){if(!this.videos){return}var flashEmbed=getFlashMovieObject(this._uniqueId);flashEmbed.openEditMode()};this.logAddRequest=function(){var params=this.baseLogData();if(this.html5debug==true){var p=document.createElement("p");p.innerHTML="http://l.5min.com/PSRq?"+$.toQueryString(params);document.getElementById(this.divLayer).appendChild(p)}FIVEMIN.Logger.Log("PlayerSeed",params,"addReq");return params};this.logAddImpression=function(){var params=this.logFlashData();if(this.html5debug==true){var p=document.createElement("p");p.innerHTML="http://l.5min.com/PSI?"+$.toQueryString(params);document.getElementById(this.divLayer).appendChild(p)}FIVEMIN.Logger.Log("PlayerSeed",params,"AddImpression")};this.logAddResult=function(success){var params=this.baseLogData();params.rType=(success==true)?(this.data.success==1?1:0):2;if(this.videos!=null){params.nVids=(this.videos.length!=null)?this.videos.length:1}else{params.nVids=params.rType}if(this.html5debug==true){var p=document.createElement("p");p.innerHTML="http://l.5min.com/PSRs?"+$.toQueryString(params);document.getElementById(this.divLayer).appendChild(p)}FIVEMIN.Logger.Log("PlayerSeed",params,"AddResult")};this.logAddVideoResults=function(data){var params=this.baseLogData();var p;if(data.binding!=null&&data.binding instanceof Array){params.nVids=data.binding?data.binding.length:"";for(var c=0;c<data.binding.length;c++){params.vid=data.binding[c].ID;params.vCat=data.binding[c].Categories;params.vLocSrvr=c;params.vCQ=data.binding[c].vCQ;params.vFlg=data.binding[c].vFlg;params.vExp=data.binding[c].vExp;params.mId=data.binding[c].mId;params.vGeo=data.binding[c].vGeo;params.vf=data.binding[c].vf;if(this.html5debug==true){p=document.createElement("p");p.innerHTML="http://l.5min.com/PSVR?"+$.toQueryString(params);document.getElementById(this.divLayer).appendChild(p)}FIVEMIN.Logger.Log("PlayerSeed",params,"AddVideoResults")}}else{params.nVids=1;params.vid=data.ID;params.vCat=data.vCat;params.vLocSrvr=1;params.vCQ=data.vCQ;params.vFlg=data.vFlg;params.vExp=data.vExp;params.mId=data.mId;params.vGeo=data.vGeo;params.vf=data.vf;if(this.html5debug==true){p=document.createElement("p");p.innerHTML="http://l.5min.com/PSVR?"+$.toQueryString(params);document.getElementById(this.divLayer).appendChild(p)}FIVEMIN.Logger.Log("PlayerSeed",params,"AddVideoResults")}};this.logAddVideoView=function(percent){var params=this.logFlashData();params.sessView=0;params.vvpr=this.videoViewPointReport;params.tss=Math.floor(this.watchTime);params.tsp=percent;if(this.html5debug==true){var p=document.createElement("p");p.innerHTML="http://l.5min.com/PSVV?"+$.toQueryString(params);document.getElementById(this.divLayer).appendChild(p)}FIVEMIN.Logger.Log("PlayerSeed",params,"AddVideoView");this.videoViewPointReport++};this.getPSLocation=function(ifcenter){var _c=ifcenter||false;var _el=window.document.getElementById(this.divLayer);var _w=window;var _elPos={left:0,top:0};var getDocSize=function(){return{width:document.body.clientWidth,height:document.body.clientHeight}};var getScrollPos=function(){return{hscroll:window.pageXOffset||document.scrollLeft||0,vscroll:window.pageYOffset||document.scrollTop||0}};var getViewport=function(){var e=window,a="inner";if(!("innerWidth" in window)){a="client";e=document.documentElement||document.body}return{width:e[a+"Width"],height:e[a+"Height"]}};var elPos=function(obj){var curleft=0,curtop=0;if(obj.offsetParent){curleft=obj.offsetLeft;curtop=obj.offsetTop;while(obj=obj.offsetParent){curleft+=obj.offsetLeft;curtop+=obj.offsetTop}}return{left:curleft,top:curtop}};if(typeof(_el)!="undefined"&&_el!=null){if(_c){_elPos.left=elPos(_el).left+(this.width/2);_elPos.top=elPos(_el).top+(this.height/2)}else{_elPos.left=elPos(_el).left;_elPos.top=elPos(_el).top}var xloc=((_elPos.left-getScrollPos().hscroll)/getViewport().width)*3;var yloc=(_elPos.top-getScrollPos().vscroll)/getViewport().height;var total=0;if(xloc<0){total=1}else{if(xloc<1){total=2}else{if(xloc<2){total=3}else{if(xloc<3){total=4}else{total=5}}}}if(yloc<0){}else{if(yloc<1){total=total+5}else{total=total+10}}return total}else{return null}};this.baseLogData=function(){var params={};params.osVer=$.browser.platform.name;params.broVer=$.browser.name;params.broVerN=parseInt($.browser.version,10);params.sid=this.sid;params.urlId=$.md5(this.url);params.content=this.checkContentStatus();params.sKey=(this.data!=null&&this.data.sKey!=null)?this.data.sKey:"";params.cqReq=(this.contentQuality!=null?this.contentQuality:(this.data!=null&&this.data.cqReq!=null?this.data.cqReq:""));params.catsReq=(this.categories!=null?this.categories:(this.data!=null&&this.data.catsReq!=null?this.data.catsReq:""));params.fType=(this.fallbackType!=null?this.fallbackType:(this.data!=null&&this.data.fType!=null?this.data.fType:""));params.auStart=this.autoStart!=null?this.autoStart:(this.data!=null&&this.data.autoStart!=null?this.data.autoStart:"");params.header=this.topHeader!=null?this.topHeader:(this.data!=null&&this.data.topHeader!=null?this.data.topHeader:"");params.header=(params.header.length>0)?true:false;params.hc=this.hasCompanion!=null?this.hasCompanion:(this.data!=null&&this.data.hasCompanion!=null?this.data.hasCompanion:"");params.foos=this.cbFailOverOnStart!=null?this.cbFailOverOnStart:(this.data!=null&&this.data.cbFailOverOnStart!=null?this.data.cbFailOverOnStart:"");params.cbPos=this.companionPos!=null?this.companionPos:(this.data!=null&&this.data.companionPos!=null?this.data.companionPos:"");params.uNxt=0;params.ruNxt=0;params.relMod=this.relatedMode!=null?this.relatedMode:(this.data!=null&&this.data.relatedMode!=null?this.data.relatedMode:"");params.aId=(this.aId!=null)?this.aId:0;params.pt=this.playerType;params.vg=this.videoGroupID!=null?this.videoGroupID:0;params.imid=this._rndUniqID;params.pgLoc=this.getPSLocation(true);params.cLoc=this.getPSLocation();if(this.data){params.loglevel=(this.data.loglevel!=null)?this.data.loglevel:FIVEMIN.BaseConfig.Logger.LogLevel}return params};this.checkContentStatus=function(){if(this.playList){return FIVEMIN.BaseConfig.Logger.Enums.content.playlist}if(this.featured){return FIVEMIN.BaseConfig.Logger.Enums.content.featured}if(this.videoGroupID){return FIVEMIN.BaseConfig.Logger.Enums.content.videogroup}return FIVEMIN.BaseConfig.Logger.Enums.content.seed};this.logFlashData=function(videoId){var video=this.data||{};if(this.data.binding!=null&&this.data.binding.length>0){if(videoId!=null){for(var c=0;c<this.data.binding.length;c++){if(this.data.binding[c].ID==videoId){video=this.data.binding[c];break}}}else{video=video.binding[0]}}var params=this.baseLogData();params.isDeep=this.directURL!="";params.nVids=1;params.sessImp=0;params.vCat=video.vCat;params.vid=video.ID;params.vLoc=1;params.vCQ=video.vCQ;params.vFlg=video.vFlg;params.vExp=video.vExp;params.mId=video.mId;params.vGeo=video.vGeo;params.vf=video.vf;FIVEMIN.Logger.Parse(params);return params};this.getPlayListURL=function(){var arr=[];var convertDuration=function(durationString){var minutes=parseInt(durationString.split(":")[0],10);var seconds=parseInt(durationString.split(":")[1],10);var newDuration=minutes*60+seconds;return newDuration};var duplicateObject=function(sourceObject){var newObject={};for(key in sourceObject){newObject[key]=sourceObject[key]}return newObject};for(var i=0;i<this.videos.length;i++){arr.push(duplicateObject(this.videos[i]));arr[i].Duration=convertDuration(arr[i].Duration);arr[i].Image=arr[i].ThumbURL}return arr};this.getEditElement=function(){var edit=document.createElement("div");edit.innerHTML="edit";return edit};this.CreateCBQS=function(){var cbString="&cbCount=3";if(this.cbCustomID&&this.cbCustomID.indexOf(fiveMinAdaptvCompanionDiv)<0){}else{if(typeof(this.CompanionBanners)=="object"&&this.CompanionBanners.length>0){for(var i=0;i<this.CompanionBanners.length;i++){cbString+=this.CompanionBanners[i].toString(i,true)}}}return cbString};this.doNotDisplay=function(){if(this.frequency){if(this.checkPlayerSeedCookie()){return true}}return false};this.onSuccessURLPlayer=function(success,json){var result=json;this.data=json;this.logAddResult(success);if(!result){return}var fiveminVideo;if(result.binding instanceof Array){fiveminVideo=result.binding[0];this.videos=result.binding}else{fiveminVideo=result}if(!fiveminVideo){reportComscore("9");return}if(this.height==null){this.height=(fiveminVideo.UsePlayer3?255:401)}if(this.width==null){this.width=(fiveminVideo.UsePlayer3?400:480)}if(fiveminVideo==undefined||fiveminVideo.ID==0||(!this.editMode&&!result.success)){reportComscore("9");return}if(this.wrapperToShow){this.wrapperToShowToDisplay=this.wrapperToShow.split(",");for(var i=0;i<this.wrapperToShowToDisplay.length;i++){document.getElementById(this.wrapperToShowToDisplay[i]).style.display=""}}if(this.obj.hasCompanion==undefined){this.obj.hasCompanion=json.HasCompanion}if(this.companionPos==undefined){this.companionPos=json.CompanionPos}if(this.logoUrl){this.logoUrl="&logoUrl="+this.logoUrl}else{this.logoUrl=""}if(FIVEMIN.swfobject.hasFlashPlayerVersion("9.0.115")){this.injectFlashPlayer(fiveminVideo)}else{this.playerType=FIVEMIN.BaseConfig.Logger.Enums.pt.html5;this.injectHTML5Player(fiveminVideo);this.fireVideoDataLoaded(fiveminVideo)}buildCompanionBanner(this,json.counter);this.fireRelated(fiveminVideo);this.logAddVideoResults(json)};this.quickEmbed=function(videoId){if(this.divWrapper==null){return}var cbString="";if(this.cbCheckTime>0){cbString+="&cbCheckTime="+this.cbCheckTime}if(this.fwKeyValues!=null&&this.fwKeyValues!=""){cbString+="&fwKeyValues="+this.fwKeyValues}if(this.siteSection!=null&&this.siteSection!=""){cbString+="&fwSiteSection="+this.siteSection}if(this.continuous!=null){cbString+="&isSeq="+this.continuous}cbString+="&referrerURL="+escape(location.toString());cbString+="&cbLocation=custom";var createFullPlayer="http://embed.5min.com/handlers/smart3handler.ashx?func=createFullPlayerUrl&isEmbed=true&videoID="+videoId+"&sid="+this.sid+this.GetParams(true)+cbString;var cfg={requestURL:createFullPlayer,jscbRequest:this.onSuccessQuickEmbed,instanceNumber:this.counter,bind:this};try{FIVEMIN.ResultsManager.sendRequest(cfg)}catch(ex){if(debug){alert(ex)}}};this.onSuccessQuickEmbed=function(success,json){if(success&&json&&json.success){var flashFullUrl=json.message;var flashFullUrlParts=flashFullUrl.split("?");var flashFileUrl=flashFullUrlParts[0];var flashVars=flashFullUrlParts[1];if(this.videoClickUrl!=null){if(flashVars.indexOf("videoClickUrl")>-1){if(this.disableVideoClick!=null){flashVars=flashVars.replace(/&videoClickUrl=[^&]*&/,"&videoClickUrl=&")}else{if(this.videoClickUrl!=null){flashVars=flashVars.replace(/&videoClickUrl=[^&]*&/,"&videoClickUrl="+this.videoClickUrl+"&")}}}else{if(this.disableVideoClick!=null){flashVars+="&videoClickUrl="}else{if(this.videoClickUrl!=null){flashVars+="&videoClickUrl="+this.videoClickUrl}}}}if(this.events.relatedVideoChanged!=null&&this.events.relatedVideoChanged.length>0){flashVars+="&relatedOnVideoChanged=PlayerSeed._instances."+this._uniqueId+".fireRelated"}if(this.events.videoDataLoaded!=null&&this.events.videoDataLoaded.length>0){flashVars+="&onVideoDataLoaded=PlayerSeed._instances."+this._uniqueId+".fireVideoDataLoaded"}this.strPlayer.innerHTML="<object id='"+this._uniqueId+"' 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='"+flashFileUrl+"' /><param name='flashvars' value='"+flashVars+"' /><param name='wmode' value='"+this.wmode+"' /><param name='bgcolor' value='"+this.bgcolor+"' /><embed name='"+this._uniqueId+"' src='"+flashFileUrl+"' flashvars='"+flashVars+"' type='application/x-shockwave-flash' width='"+this.width+"' height='"+this.height+"' allowfullscreen='true' bgcolor='"+this.bgcolor+"' allowScriptAccess='always' wmode='"+this.wmode+"'></embed></object>";this.obj.hasCompanion=this.hasCompanion||true;buildCompanionBanner(this,this.counter);var qs=FIVEMIN.LIB._parseQueryString(flashVars);this.fireRelated({pageUrl:qs.referrerURL,videoid:qs.videoID,description:"",category:[qs.category],title:qs.videoTitle})}else{if(debug){alert("Error receiving data from player creator.")}}};this.fireRelated=function(video){this.fireEvent("relatedVideoChanged",video)};this.fireVideoDataLoaded=function(video){this.fireEvent("videoDataLoaded",video)};this.injectFlashPlayer=function(fiveminVideo){if(this.divWrapper==null){return}if(!fiveminVideo.EmbededURL){return}var flashFullUrl=fiveminVideo.EmbededURL+this.logoUrl;var cbString=this.CreateCBQS();cbString+="&productType=PlayerSeed";if(this.cbCheckTime>0){cbString+="&cbCheckTime="+this.cbCheckTime}if(this.editMode){cbString+="&psRelatedProUrl=javascript(PlayerSeed._instances."+this._uniqueId+".getPlayListURL)&psPreMode=1";if(this.categories&&(this.categories.length>0||this.categories>0)){cbString+="&psCategory="+this.categories}}else{if(this.videos!=null&&this.videos.length>0){flashFullUrl=flashFullUrl.replace(/&relatedUrl=[^&]*&/,"");flashFullUrl=flashFullUrl.replace(/&playlistUrl=[^&]*&/,"");if(this.sequential==1){cbString+="&playlistUrl=javascript(PlayerSeed._instances."+this._uniqueId+".getPlayListURL)"}else{cbString+="&relatedUrl=javascript(PlayerSeed._instances."+this._uniqueId+".getPlayListURL)"}}}if(this.events.relatedVideoChanged!=null&&this.events.relatedVideoChanged.length>0){cbString+="&relatedOnVideoChanged=PlayerSeed._instances."+this._uniqueId+".fireRelated"}if(this.events.videoDataLoaded!=null&&this.events.videoDataLoaded.length>0){cbString+="&onVideoDataLoaded=PlayerSeed._instances."+this._uniqueId+".fireVideoDataLoaded"}cbString+="&jsLogData=PlayerSeed._instances."+this._uniqueId+".logFlashData";cbString+="&bwLogger="+((this.data.loglevel!=null)?this.data.loglevel:FIVEMIN.BaseConfig.Logger.LogLevel);if(this.fwKeyValues!=null&&this.fwKeyValues!=""){cbString+="&fwKeyValues="+this.fwKeyValues}if(this.siteSection!=null&&this.siteSection!=""){cbString+="&fwSiteSection="+this.siteSection}flashFullUrl+=cbString;if(this.continuous!=null){flashFullUrl+="&isSeq="+this.continuous}var flashFullUrlParts=flashFullUrl.split("?");var flashFileUrl=flashFullUrlParts[0];var flashVars=flashFullUrlParts[1];if(flashVars.indexOf("videoClickUrl")>-1){if(this.disableVideoClick!=null){flashVars=flashVars.replace(/&videoClickUrl=[^&]*&/,"&videoClickUrl=&")}else{if(this.videoClickUrl!=null){flashVars=flashVars.replace(/&videoClickUrl=[^&]*&/,"&videoClickUrl="+this.videoClickUrl+"&")}}}else{if(this.disableVideoClick!=null){flashVars+="&videoClickUrl="}else{if(this.videoClickUrl!=null){flashVars+="&videoClickUrl="+this.videoClickUrl}}}if(this.videoGroupID!=null){flashVars+="&videoGroupID="+this.videoGroupID}if(this.relatedNumOfResults!=null&&!isNaN(this.relatedNumOfResults)){flashVars+="&relatedNumOfResults="+this.relatedNumOfResults}this.strPlayer.innerHTML="<object id='"+this._uniqueId+"' 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='"+flashFileUrl+"' /><param name='flashvars' value='"+flashVars+"' /><param name='wmode' value='"+this.wmode+"' /><param name='bgcolor' value='"+this.bgcolor+"' /><embed name='"+this._uniqueId+"' src='"+flashFileUrl+"' flashvars='"+flashVars+"' type='application/x-shockwave-flash' width='"+this.width+"' height='"+this.height+"' allowfullscreen='true' bgcolor='"+this.bgcolor+"' allowScriptAccess='always' wmode='"+this.wmode+"'></embed></object>"};this.injectHTML5Player=function(fiveminVideo){if(this.divWrapper==null){return}var src=/&videoUrl=([^&]*)&/.exec(fiveminVideo.EmbededURL);if(src!=null&&src.length>1){src=decodeURIComponent(src[1]);var defaultRendition=/&defaultRendition=([^&]*)&/.exec(fiveminVideo.EmbededURL);var activeRenditions=/&activeRenditions=([^&]*)&/.exec(fiveminVideo.EmbededURL);if(defaultRendition!=null&&defaultRendition.length>1){defaultRendition=defaultRendition[1];if(iPhoneOS()&&iPhoneOS()<4){defaultRendition=1}}var video=document.createElement("video");video.setAttribute("width",this.width);video.setAttribute("height",this.height);video.controls=true;if(this.autoStart==1){video.preload=true}$.addEvent(video,"ended",$.bind(this.html5VideoEnded,this));$.addEvent(video,"timeupdate",$.bind(this.html5VideoUpdate,this));$.addEvent(video,"error",$.bind(this.html5VideoError,this));$.addEvent(video,"seeked",$.bind(this.html5VideoSeeking,this));$.addEvent(video,"play",$.bind(this.html5VideoPlay,this));if(navigator.userAgent.toLowerCase().search("android")>-1){$.addEvent(video,"click",function(){try{video.play()}catch(e){}})}this.firedVideoUpdate=0;this.currentFiredVideoUpdate=-1;this.watchTime=0;this.currentWatchTime=-1;this.videoViewPointReport=0;this.strPlayer.appendChild(video);var poster=/&previewPic=([^&]*)&/.exec(fiveminVideo.EmbededURL);if(poster!=null&&poster.length>1){video.setAttribute("poster",unescape(poster[1]))}var renditions=fiveminVideo.Renditions;var source={};for(var i=0;i<renditions.length;i++){source=document.createElement("source");var urlSrc=src.substring(0,10)+src.substring(10).replace("//","/"+renditions[i].ID+"/");urlSrc=urlSrc.substr(0,urlSrc.lastIndexOf("."))+"."+renditions[i].RenditionType;source.setAttribute("src",urlSrc);video.appendChild(source)}src=src.substring(0,10)+src.substring(10).replace("//","/"+defaultRendition+"/");var fallback=document.createElement("p");fallback.innerHTML='HTML5 Video not supported by this browser. Please update or <a href="http://www.adobe.com/go/getflash/" target="_new">install Flash</a>.';video.appendChild(fallback);this.html5Video=video;this.html5VideoStartedCalled=false;if(iPhoneOS()&&iPhoneOS()<4||iPadOS()&&iPadOS()<4){video.src=src;video.load()}else{if(this.autoStart==1){video.load()}}if(this.html5debug==true){var iOS=document.createElement("p");iOS.innerHTML=src+"<br />User agent: "+navigator.userAgent+"<br />Can play source: "+(video.canPlayType(source.type)==""?"No":video.canPlayType(source.type));if(iPhoneOS()){iOS.innerHTML+="<br />iOS version "+iPhoneOS()}if(iPadOS()){iOS.innerHTML+="<br />iOS version "+iPadOS()}document.getElementById(this.divLayer).appendChild(iOS)}}else{var error=/&messageError=([^&]*)&/.exec(fiveminVideo.EmbededURL);if(error!=null&&error.length>1){switch(error[1]){case"ErrorVideoNotExist":error="Sorry, but this video does not exist.";break;case"ErrorVideoNoLongerAvailable":error="Sorry, but this video is no longer available.";break;case"ErrorVideoRejected":error="Sorry, but this video is no longer available.";break;case"ErrorVideoUserNotGeo":error="Sorry, but this video cannot be viewed in your location.";break;case"ErrorVideoLibraryRestriction":error="Sorry, but this video is restricted from this library.";break;case"ErrorExposurePermission":error="Sorry, but this video is currently unavailable for viewing at this domain.";break;default:error="Sorry, but an error has occurred downloading the video. Please refresh and try again.";break}}else{error="Sorry, but an error has occurred downloading the video. Please refresh and try again."}var errorMessage=document.createElement("div");errorMessage.innerHTML=error;errorMessage.setAttribute("class","fiveminError");$.css(errorMessage,{width:(this.width-20)+"px",height:(this.height-20)+"px",background:this.bgcolor,color:"White",padding:"20px"});document.getElementById(this.divLayer).appendChild(errorMessage)}};this.html5VideoPlay=function(){if(this.html5VideoStartedCalled==false){this.html5VideoStartedCalled=true;this.html5VideoStarted()}};this.html5VideoError=function(error){if(this.html5debug==true){var p=document.createElement("p");p.innerHTML="Error occured: "+error;document.getElementById(this.divLayer).appendChild(p)}};this.html5VideoStarted=function(){var videoId=this.data.ID||this.videos[0].ID;var reportUrl="http://embed.5min.com/handlers/Smart3Handler.ashx?func=VideoStarted&exposureType=PlayerSeed&sid="+this.sid+"&isEmbed=true&videoID="+videoId+"&referrerUrl="+escape(location.toString());if(this.html5debug==true){var p=document.createElement("p");p.innerHTML=reportUrl;document.getElementById(this.divLayer).appendChild(p)}var cfg={requestURL:reportUrl,jscbRequest:this.html5VideoStartedCallback,instanceNumber:this.counter,bind:this,priority:1};try{FIVEMIN.RequestManager.addRequest(cfg)}catch(ex){if(debug){alert(ex)}}this.logAddImpression()};this.html5VideoStartedCallback=function(success,data){if(success==1&&data!=null&&data.isSuccess==true){this.viewID=data.viewID;if(this.html5debug==true){var iOS=document.createElement("p");iOS.innerHTML="View ID: "+this.viewID;document.getElementById(this.divLayer).appendChild(iOS)}}};this.html5VideoEnded=function(){if(this.viewID==null||this.firedVideoUpdate==100){return}var videoId=this.data.ID||this.videos[0].ID;var reportUrl="http://embed.5min.com/handlers/Smart3Handler.ashx?func=VideoReachedReport&userID=0&viewID="+this.viewID+"&percentage=100&videoID="+videoId;if(this.html5debug==true){var p=document.createElement("p");p.innerHTML=reportUrl;document.getElementById(this.divLayer).appendChild(p)}FIVEMIN.RequestManager.addRequest({requestURL:reportUrl});this.firedVideoUpdate=100;this.html5VideoSeeking()};this.html5VideoSeeking=function(){this.currentWatchTime=-1;this.currentFiredVideoUpdate=-1};this.html5VideoUpdate=function(){var currentTime=this.html5Video.currentTime;var percent=Math.floor(currentTime/this.html5Video.duration*100);if(currentTime<this.currentWatchTime){this.html5VideoSeeking()}if(this.currentWatchTime>-1){this.watchTime+=currentTime-this.currentWatchTime}this.currentWatchTime=currentTime;if(this.viewID==null){return}if(this.currentFiredVideoUpdate<percent&&percent%25==0){this.currentFiredVideoUpdate=percent;this.logAddVideoView(percent)}if(this.firedVideoUpdate>=75||this.html5Video.currentTime==0){return}if(this.firedVideoUpdate<75&&percent>=75){this.fireVideoReachedReport(75);this.firedVideoUpdate=75}else{if(this.firedVideoUpdate<50&&percent>=50){this.fireVideoReachedReport(50);this.firedVideoUpdate=50}else{if(this.firedVideoUpdate<25&&percent>=25){this.fireVideoReachedReport(25);this.firedVideoUpdate=25}}}};this.fireVideoReachedReport=function(percent){var reportUrl="http://embed.5min.com/handlers/Smart3Handler.ashx?func=VideoReachedReport&userID=0&viewID="+this.viewID+"&percentage="+percent+"&videoID="+this.data.ID;if(this.html5debug==true){var p=document.createElement("p");p.innerHTML=reportUrl;document.getElementById(this.divLayer).appendChild(p)}$.waitUntil(function(){return that.html5VideoStartedCalled},function(){FIVEMIN.RequestManager.addRequest({requestURL:reportUrl})})};function iPadOS(){var match;var version=navigator.userAgent.match("iPad")?1:false;if(match=/CPU OS (.*) like Mac OS X/.exec(navigator.userAgent)){version=parseInt(match[1].replace("_",""),10)/100;if(version<1){version*=10}}return version}function iPhoneOS(){var match;var version=navigator.userAgent.match("iPod")||navigator.userAgent.match("iPhone")?1:false;if(match=/iPhone OS (.*) like Mac OS X/.exec(navigator.userAgent)){version=parseInt(match[1].replace("_",""),10)/100;if(version<1){version*=10}}return version}};function getTopMostWindow(){var currP=window;while(currP){try{var newP=currP.parent;var doc=newP.document;if(!doc){break}currP=newP;if(newP==newP.parent){break}}catch(ex){break}}return currP}(function(){var win=getTopMostWindow();if(!win.PlayerSeed){win.PlayerSeed={}}PlayerSeed._instances=win.PlayerSeed._instances={}})();function buildCompanionBanner(currPlayerSeed,counter){if(!currPlayerSeed.obj.hasCompanion){return}var divCompanion;if(currPlayerSeed.cbCustomID&&currPlayerSeed.cbCustomID.indexOf(fiveMinAdaptvCompanionDiv)<0){return}divCompanion=document.getElementById(currPlayerSeed.cbCustomID);if(divCompanion==null){divCompanion=document.createElement("div");divCompanion.setAttribute("id",currPlayerSeed.cbCustomID);if(currPlayerSeed.innerMargin>10||currPlayerSeed.innerMargin<=0){currPlayerSeed.innerMargin=1}var comPos=currPlayerSeed.cbCount==3?"right":currPlayerSeed.companionPos;var sCenter=currPlayerSeed.companionCenter?" text-align:center; ":"";switch(comPos){case"top":case 1:currPlayerSeed.strPlayer.parentNode.insertBefore(divCompanion,currPlayerSeed.strPlayer);if(!fiveMinIsIE){divCompanion.setAttribute("style","margin-bottom:"+currPlayerSeed.innerMargin+"px;"+sCenter)}else{divCompanion.style.setAttribute("style","margin-bottom:"+currPlayerSeed.innerMargin+"px;"+sCenter)}break;case"left":case 3:currPlayerSeed.strPlayer.parentNode.insertBefore(divCompanion,currPlayerSeed.strPlayer);if(!fiveMinIsIE){divCompanion.setAttribute("style","margin-right:"+currPlayerSeed.innerMargin+"px;float:left;");document.getElementById("adaptvDiv"+counter).setAttribute("style","float:left;")}else{divCompanion.style.setAttribute("cssText","margin-right:"+currPlayerSeed.innerMargin+"px;float:left;");document.getElementById("adaptvDiv"+counter).style.setAttribute("cssText","float:left;")}break;case"right":case 4:if(!fiveMinIsIE){currPlayerSeed.strPlayer.setAttribute("style","float:left;");divCompanion.setAttribute("style","float:left;margin-left:"+currPlayerSeed.innerMargin+"px;")}else{currPlayerSeed.strPlayer.style.setAttribute("cssText","float:left;");divCompanion.style.setAttribute("cssText","float:left;margin-left:"+currPlayerSeed.innerMargin+"px;")}currPlayerSeed.strPlayer.parentNode.appendChild(divCompanion);break;case"bottom":case 2:default:currPlayerSeed.strPlayer.appendChild(divCompanion);if(!fiveMinIsIE){divCompanion.setAttribute("style","margin-top:"+currPlayerSeed.innerMargin+"px;"+sCenter)}else{divCompanion.style.setAttribute("cssText","margin-top:"+currPlayerSeed.innerMargin+"px;"+sCenter)}break}}var numOfBanners=currPlayerSeed.CompanionBanners.length;for(var i=0;i<numOfBanners;i++){if(currPlayerSeed.cbCount!=3&&i==numOfBanners-1){continue}fiveMinCreateBannerDiv(divCompanion,currPlayerSeed.CompanionBanners[i],i!=2)}}function fiveMinCreateBannerDiv(divCompanion,companionBanner,isChild){var divBanner=document.getElementById(companionBanner.HtmlID);if(divBanner==null){divBanner=document.createElement("div");divBanner.setAttribute("id",companionBanner.HtmlID);if(isChild){divCompanion.appendChild(divBanner)}else{if(!fiveMinIsIE){divBanner.setAttribute("style","clear: both; width: "+companionBanner.Width+"px;")}else{divBanner.style.setAttribute("cssText","clear: both; width: "+companionBanner.Width+"px;")}fiveMinAppendAfter(divCompanion,divBanner)}}divBanner.setAttribute("IsFairBalance",companionBanner.IsFairBalance);if(companionBanner.ClassName){var className=divBanner.getAttribute("class")+" "+companionBanner.ClassName;divBanner.setAttribute("class",className)}}function fiveMinAppendAfter(appendAfter,newNode){if(appendAfter.nextSibling){appendAfter.parentNode.insertBefore(newNode,appendAfter.nextSibling)}else{appendAfter.parentNode.appendChild(newNode)}}function fiveMinGetParamValue(valueString){if(valueString=="true"){return true}if(valueString=="false"){return false}if(isNaN(valueString)){return valueString}else{return parseInt(valueString)}}PlayerSeed.fiveMinCheckJSParams=fiveMinCheckJSParams;return PlayerSeed}()}var PlayerSeed=FIVEMIN.PlayerSeed;if(typeof playerseedScriptCallCount=="undefined"){playerseedScriptCallCount=-1}playerseedScriptCallCount++;PlayerSeed.fiveMinCheckJSParams();



