// MediaGlow v1

// beacoN v7
var bN={v:7,h:[],b:"",w:100,t:document.title,r:document.referrer,ae:function(A,B,C){if(A.addEventListener){A.addEventListener(B,C,false)}else{if(A.attachEvent){A.attachEvent("on"+B,C)}}},d:new Date(),init:function(){var I=window,F=bN.h.toString(),G=I.location.hostname,E=new RegExp(G+"![0-9]+"),H=F.match(E),A="undefined",J=(typeof bN_cfg!=A)?bN_cfg:A;if(J!=A){if(typeof J.h!=A){F+=J.h.toString()}if(typeof J.b!=A){bN.b=J.b}if(typeof J.p!=A){var C=J.p,D,B;for(D=0,B=C.length;D<B;D++){bN.set(C[D][0],C[D][1],(typeof C[D][2]!=A)?C[D][2]:0)}}if(typeof J.ls!=A){bN.ls=J.ls}if(typeof J.w!=A){bN.w=J.w}}if(I.__bNi){return }if(F.indexOf(G)==-1){return }H=(H)?parseInt(H[0].replace((G+"!"),"")):0;if(Math.floor(Math.random()*H)!=0){return }bN.ae(I,"load",bN.load);bN.ae(document,"click",bN.click);bN.img("vanity/","");I.__bNi=1},f:1,wait:function(){var A,B=new Date();do{A=new Date();if(bN.f){return }}while(A-B<bN.w)},img:function(G,D){var C,A,H=new Image(),F=encodeURIComponent;C=new Date();A="?ts="+C.getTime()+"&h="+F(window.location.hostname)+"&v="+bN.v+"&t="+F(bN.t)+"&r="+F(bN.r)+"&l="+bN.l+"&ms="+(C-bN.d);H.onload=function(){bN.f=1};bN.f=0;if(!bN.b){var B=window.location.hostname.split("."),E=B.length-1;B="b."+B[E-1]+"."+B[E];bN.b=B}H.src="http://"+bN.b+"/"+G+A+D+bN.g+bN.i;bN.i="";if(D&&D.indexOf(F(window.location.href.replace(/#.*/,"")+"#"))==-1&&D.indexOf("javascript%3A")==-1&&D.indexOf("&tag=")==-1){if(!document.all){bN.wait()}}},l:0,ls:0,load:function(){var A=new Date();bN.l=A-bN.d;if(Math.floor(Math.random()*bN.ls)!=0){return }bN.ping("load")},p:[],ping:function(B,A){var C=encodeURIComponent;if(typeof bN.p[B]!="undefined"){clearInterval(bN.p[B])}if(typeof A=="number"){if(A>0){A=A*1000;bN.p[B]=setInterval("bN.img('ping', '&nm="+C(B)+"')",A)}else{return }}bN.img("ping","&nm="+C(B))},click:function(B){var K=window,I=document,M=B||K.event,E=M.srcElement||M.target,O,C,D,L,A,N="",F="",J=0,H=0,G=encodeURIComponent;do{O=E.nodeName;if(E.className.indexOf("bN")!=-1){N+="&tag="+O}if(O=="IMG"){N+="&img="+G(E.src);D=E.alt;if(D){N+="&alt="+G(D)}}if(O=="A"){A=E.href;if(A){N+="&ah="+G(A)}else{return }L=E.innerHTML.replace(/<[^>]*>/g,"");if(L){N+="&at="+G(L)}}if(O=="INPUT"){C=E.type;if(C=="button"||C=="submit"||C=="image"){N+="&btn="+G(E.value)}}F+=(E.id)?E.id+"+":"";E=E.parentNode}while(O!="HTML");if(N!=""){if(M.pageX||M.pageY){J=M.pageX;H=M.pageY}else{if(M.clientX||M.clientY){J=M.clientX+I.body.scrollLeft+I.documentElement.scrollLeft;H=M.clientY+I.body.scrollTop+I.documentElement.scrollTop}}N+="&cx="+J+"&cy="+H;if(F){N+="&id="+G(F.slice(0,-1))}bN.img("click",N)}},g:"",i:"",set:function(C,F,B){var D=encodeURIComponent,A=B?bN.i:bN.g,E=new RegExp("&"+D(C)+"=[^&]*"),G="&"+D(C)+"="+D(F);if(E.test(A)){if(F){A=A.replace(E,G)}else{A=A.replace(E,"")}}else{A+=G}if(B){bN.i=A}else{bN.g=A}}};bN.init();
