var m=document.location.hash.match(/eapv=(\d+)/);m=(m?m:document.location.search.match(/eapv=(\d+)/));var EAP_VERSION=(m?m[1]:(EAP_VERSION?EAP_VERSION:"15905"));var p=document.location.hash.match(/prodv=(\w+)/);p=(p?p:document.location.search.match(/prodv=(\w+)/));var PROD_VERSION=(p?p[1]:(PROD_VERSION?PROD_VERSION:""));var ve_publisher,ve_site,ve_area,ve_width,ve_height,VE_DEBUG,ve_topbeacon,ve_ifdomain,ve_placement,ve_pageload,ve_gc,ve_scanning,ve_badwords,ve_sendamdata,veprods=veprods||{};function ve_import(B){var A=document.createElement("img");A.src=B;ve_gc=ve_gc||[];ve_gc.push(A)}var ve_adtype=undefined;function setAdType(A){ve_adtype=A}var ve_ordinals,ve_adClicks,ve_thirdParty;if(ve_ordinals==undefined){ve_ordinals={}}if(ve_adClicks==undefined){ve_adClicks={}}if(ve_thirdParty==undefined){ve_thirdParty={}}function ve_beacon(B,G){var H=true;var E;if(undefined==G){E=B}else{E="http://beacon.videoegg.com/"+B+"?"+G}if(E.indexOf("beacon.videoegg.com")!=-1){var C=new Date();E+="&curtime="+C.getTime()+"&curtz="+C.getTimezoneOffset();var F=E.indexOf("rid")+3;var D=E.substring(F,F+33);if(typeof (ve_ordinals[D])!="number"){ve_ordinals[D]=1}E+="&ord="+ve_ordinals[D]++}if(E.indexOf("adtechus.com/adlink")!=-1){var A=E;if(E.indexOf("beacon.videoegg.com")!=-1){A=E.substring(0,E.indexOf("&"))}if(typeof (ve_adClicks[A])!="number"){ve_adClicks[A]=1}else{ve_adClicks[A]++}if(ve_adClicks[A]>1){H=false}}if(E.indexOf("beacon.videoegg.com")==-1&&E.indexOf("videoegg.adbureau.net")==-1&&E.indexOf("adserver.adtechus.com")==-1){if(E.substr(0,5)=="once:"){if(typeof (ve_thirdParty[E])=="boolean"){H=false}else{ve_thirdParty[E]=true;E=E.substring(5,E.length)}}}if(H){ve_import(E)}if(typeof (VE_beaconLog)=="function"&&H){VE_beaconLog(E)}}function ve_initjs(J,E,B,C,L,K,D){veprods.pageviewid=veprods.pageviewid||ve_generateHash();ve_rid=(K?K:ve_generateHash());var F=/^twig(_bottom)?$/ig.test(D)?D.toLowerCase():C+"x"+L;var I="admanager";try{if(veprods[ve_location].af2fork==true){I="af2fork"}}catch(H){}var G;try{G=ve_location}catch(H){G="0"}var A=["pb=",J,"&si=",E,"&area=",B,"&dim=",F,"&loc=",G,"&pl=",(ve_pageload?new Date().getTime()-ve_pageload:"x"),"&rid=",ve_rid,"&pvid=",veprods.pageviewid,"&tech=",I].join("");ve_beacon("initjs",A)}function ve_generateHash(){var A=new Date().getTime(),D=A.toString(16);var C=32-D.length;for(var B=0;B<C;B++){D+=Math.floor(Math.random()*16).toString(16)}return D}function top_beacon(G,F,B,C,I,H,D){this.pb=G;this.si=F;this.area=B;this.width=C;this.height=I;this.rid=H;this.dim=/^twig(_bottom)?$/ig.test(D)?D.toLowerCase():C+"x"+I;var E,A=[0,1,2,3,4,5,6,7,8,9,10,15,20,25,30,60,90,120,300];for(E=0;E<A.length;E++){this.beacon(A[E],true)}}top_beacon.prototype.beacon=function(C,B){if(!B||C==0){var D=["pb=",this.pb,"&si=",this.si,"&area=",this.area,"&dim=",this.dim,"&rid=",this.rid,"&t=",C].join("");ve_beacon("top",D)}else{var A=this;setTimeout(function(){A.beacon(C,false)},C*1000)}};if(ve_area){var rid;try{if(veprods[ve_location].rid!=undefined){rid=veprods[ve_location].rid}}catch(e){}try{}catch(e){}new ve_initjs(ve_publisher,ve_site,ve_area,ve_width,ve_height,rid,ve_placement);if(ve_topbeacon||Math.floor(Math.random()*100)<1){new top_beacon(ve_publisher,ve_site,ve_area,ve_width,ve_height,rid,ve_placement)}}var ve_w,ve_h;if(!window.innerWidth){if(document.documentElement&&(document.documentElement.clientWidth||document.documentElement.clientHeight)){ve_w=document.documentElement.clientWidth;ve_h=document.documentElement.clientHeight}else{if(document.body){ve_w=document.body.clientWidth;ve_h=document.body.clientHeight}}}else{ve_w=window.innerWidth;ve_h=window.innerHeight}ve_w=(ve_w?ve_w:ve_width);ve_h=(ve_h?ve_h:ve_height);var ve_inIframe=false,ve_topLevelAccess=true,ve_bigEnough=(ve_w>=430&&ve_h>=360);function ve_canAccessTopDoc(){try{var D=top.document,A=D.body;var B=D.createElement("span");B=A.insertBefore(B,A.firstChild);A.removeChild(B);return true}catch(C){}return false}function ve_getFrameDepth(){var B=0,A=window;while(A!=top){B++;A=A.parent}return B}ve_inIframe=(ve_getFrameDepth()>0);ve_topLevelAccess=(ve_inIframe?ve_canAccessTopDoc():false);var jsInclude=function(F,B,G,E){var D={};var C=function(K,J){var L=document;h=L.getElementsByTagName("head")[0]||L.documentElement;var I=L.createElement("script");var H=function(){K.state="loaded";I.onreadystatechange=null;I.onload=null;I.onerror=null;var M;var N=K.cbprms;while(M=K.callbacks.shift()){try{M.call(this,K.cbprms)}catch(O){}}};I.onreadystatechange=function(){if((I.readyState=="loaded")||(I.readyState=="complete")){H()}};I.onload=I.onerror=function(M){H()};I.src=K.src+(J?"?"+Math.random():"");h.insertBefore(I,h.firstChild)};var A=function(J,H,K,I){if(!D[J]){D[J]={state:"dl",src:J,callbacks:[],cbprms:K};C(D[J],I)}if(D[J].state=="dl"&&H){D[J].callbacks.push(H)}else{if(D[J].state=="loaded"){setTimeout(H,1)}}};return A(F,B,G,E)};var videoegg=videoegg||{},ve_SitePath,ve_sfname;if(ve_inIframe&&!ve_bigEnough){var re=new RegExp("^(?:f|ht)tp(?:s)?://([^/]+)","im");var hostName;if(ve_ifdomain!=undefined){hostName=ve_ifdomain}else{var ref;if(!document.referrer.length){ref=window.parent.location.toString()}else{ref=document.referrer.toString()}hostName=ref.match(re)[1].toString()}if(ve_SitePath!=undefined){try{if(veprods[ve_location].af2fork==true){var s=document.createElement("script");s.src="http://core.videoegg.com/eap/"+EAP_VERSION+"/html/js/init_iframe.js";document.body.insertBefore(s,document.body.firstChild)}else{document.write('<script src="http://core.videoegg.com/eap/'+EAP_VERSION+'/html/js/init_iframe.js"><\/script>')}}catch(e){document.write('<script src="http://core.videoegg.com/eap/'+EAP_VERSION+'/html/js/init_iframe.js"><\/script>')}}else{if(typeof (ve_sfname)=="undefined"){try{if(veprods[ve_location].af2fork==true){var s=document.createElement("script");s.src="http://core.videoegg.com/sites/"+hostName+".js";document.body.insertBefore(s,document.body.firstChild)}else{document.write('<script src="http://core.videoegg.com/sites/'+hostName+'.js"><\/script>')}}catch(e){document.write('<script src="http://core.videoegg.com/sites/'+hostName+'.js"><\/script>')}}else{try{if(veprods[ve_location].af2fork==true){var s=document.createElement("script");s.src="http://core.videoegg.com/sites/"+ve_sfname+".js";document.body.insertBefore(s,document.body.firstChild)}else{document.write('<script src="http://core.videoegg.com/sites/'+ve_sfname+'.js"><\/script>')}}catch(e){document.write('<script src="http://core.videoegg.com/sites/'+ve_sfname+'.js"><\/script>')}}try{if(veprods[ve_location].af2fork==true){var s=document.createElement("script");s.src="http://core.videoegg.com/eap/"+EAP_VERSION+"/html/js/init_iframe.js";document.body.insertBefore(s,document.body.firstChild)}else{document.write('<script src="http://core.videoegg.com/eap/'+EAP_VERSION+'/html/js/init_iframe.js"><\/script>')}}catch(e){document.write('<script src="http://core.videoegg.com/eap/'+EAP_VERSION+'/html/js/init_iframe.js"><\/script>')}}}else{var loadEap=function(B){var A=function(){if(typeof (ve_initialized)==="undefined"||ve_initialized===false){document.write('<script src="http://core.videoegg.com/eap/'+EAP_VERSION+'/html/js/eap.js"><\/script>')}document.write('<script src="http://core.videoegg.com/eap/'+EAP_VERSION+'/html/js/global_bootstrap.js"><\/script>')};var C=function(E){var I;function H(){var N=[];function J(Q,P){for(var O=0;O<Q.childNodes.length;O++){var R=Q.childNodes[O];if(R.nodeType===3){P.push(R.nodeValue)}else{J(R,P)}}}if(document.body){J(document.body,N)}N.push(document.title);N.push(document.location.toString());var M=document.getElementsByTagName("meta");for(var K=0;K<M.length;K++){try{N.push(M[K].content)}catch(L){}}return N.join(" ")}function F(){var K=H();K=K.toLowerCase();K=K.replace(/[^a-z]/g," ");K=K.replace(/\s+/g," ");var N=K.split(" ");var O={};for(var L=0;L<N.length;L++){if(N[L].length>3){O[N[L]]=1}}var M=[];for(var J in O){M.push(J)}return M.join(" ")}function D(){var K={fuck:1,shit:1,cunt:1,whore:1,slut:1,tits:1,clit:1,dildo:1,nigga:1,nigger:1,hentai:1,porn:1,megavideo:1,torrent:1,easyfilez:1,nsfw:1,porno:1,ejaculation:1};var M=F();var L=[];for(var J in K){if(M.indexOf(J)>-1){L.push(J)}}return L}function G(J){new videoegg.AdManager(J)}if(E.publisher){if(!I){I=D().join(",");E.bw=I;G(E)}else{G(E)}}};jsInclude("http://core.videoegg.com/eap/"+EAP_VERSION+"/html/js/eap.js",function(){C(B)})};if(ve_publisher){var ve_publisher,ve_site,ve_area,ve_a,ve_g,ve_width,ve_height,ve_alternate,ve_ad,ve_parentElement,ve_ccid,ve_channel,ve_adpstage,ve_location,ve_inIframe,ve_topLevelAccess,ve_loops,ve_imptrack,ve_clicktrack,ve_rid,ve_placement,ve_tearsheet,ve_disable3rdPartyBeacons,ve_clickout,ve_disableTimeout,ve_adsize,ve_embedded,ve_preloadAssets,ve_autocenter,ve_useSparkRolloverAudio,ve_adtechperc,ve_adtechplacementid,ve_adserver,ve_adproxy,ve_af2fork;var isTwig=/^twig(_bottom)?$/ig.test(ve_placement);var dimensioned=isTwig||(ve_width&&ve_height);var veconfig={};if(ve_publisher&&dimensioned){veconfig={publisher:ve_publisher,site:ve_site,area:ve_area,alternate:ve_alternate,va:ve_a,vg:ve_g,url:(typeof (ve_ad)=="string")?ve_ad:undefined,CCID:ve_ccid,channel:ve_channel,location:ve_location,parentElement:ve_parentElement,inIframe:ve_inIframe,topLevelAccess:ve_topLevelAccess,loops:ve_loops,clicktrack:ve_clicktrack,imptrack:ve_imptrack,RID:ve_rid,placement:ve_placement,tearsheet:ve_tearsheet,disable3rdPartyBeacons:ve_disable3rdPartyBeacons,clickout:ve_clickout,disableTimeout:ve_disableTimeout,adsize:ve_adsize,embedded:ve_embedded,preloadAssets:ve_preloadAssets,bw:ve_badwords,autocenter:ve_autocenter,useSparkRolloverAudio:ve_useSparkRolloverAudio,adtechperc:ve_adtechperc,adserver:ve_adserver,adtechplacementid:ve_adtechplacementid,adproxy:ve_adproxy,af2fork:(typeof (ve_af2fork)=="undefined"?false:ve_af2fork)};if(!isTwig){veconfig.width=ve_width;veconfig.height=ve_height}}var ve_scripts=document.getElementsByTagName("script");var ve_initscript=ve_scripts[ve_scripts.length-1];for(var i=0;i<ve_scripts.length;i++){if((ve_scripts[i].text.indexOf(ve_location)>-1)&&(typeof (ve_scripts[i].used)=="undefined")){ve_initscript=ve_scripts[i];ve_scripts[i].used=true;break}}ve_publisher=ve_site=ve_area=ve_width=ve_height=ve_a=ve_g=ve_alternate=ve_ad=ve_channel=ve_adpstage=ve_location=ve_loops=ve_imptrack=ve_clicktrack=ve_rid=ve_placement=ve_tearsheet=ve_disable3rdPartyBeacons=ve_clickout=ve_disableTimeout=ve_adsize=ve_embedded=ve_preloadAssets=ve_autocenter=ve_useSparkRolloverAudio=ve_adtechperc=ve_adserver=ve_adtechplacementid=ve_adproxy=ve_af2fork=undefined;videoegg=videoegg||{};try{videoegg[veconfig.location+"_"+veconfig.RID]=videoegg[veconfig.location+"_"+veconfig.RID]||{};videoegg[veconfig.location+"_"+veconfig.RID].initscript=ve_initscript;videoegg[veconfig.location+"_"+veconfig.RID].parentNode=ve_initscript.parentNode;loadEap(veconfig)}catch(e){}}else{loadEap({})}};
