var VwVer="V2.18";

String.prototype.VwIx=function(s){return this.toLowerCase().indexOf(s.toLowerCase());}
String.prototype.VwHas=function(s){return this.VwIx(s)!=-1;}
String.prototype.VwAfter=function(s,l){return this.VwHas(s)?this.substring(this.VwIx(s)+s.length,this.VwIx(s)+s.length+l):"";}
String.prototype.Vw2g=function(){var s=this.toString();return s.length==1?"0"+s:s;}
String.prototype.Vw3g=function(){var s=this.toString();return s.length==2?"0"+s:s.length==1?"00"+s:s;}
Date.prototype.VwDate=function(){var d=(this.getDate()).toString().Vw2g();var m=(this.getMonth()+1).toString().Vw2g();var y=(this.getFullYear()).toString().substring(2);return m+d+y;}


function VwAsL(n){return n==""?"":n.substring(0,2)+"/"+n.substring(2,4)+"/20"+n.substring(4,6);}
function VwRsL(n){return n==""?"":n.substring(0,2)+n.substring(3,5)+n.substring(8,10);}
function VwCB2F(b){var f="";var bytes=new Array(4);for(var i=0;i<4;i++){bytes[i]=b%256;f=bytes[i]+f;if(i<3)f="."+f;b>>=8;}return f;}
function VwCF2B(f){var b=0;var bytes=f.split(".");for(var i=0;i<4;i++){b+=(bytes[i]*1);if(i<3)b<<=8;}return b;}
function VwPlCon(pl,pu,ca,wi,he,dm,sd,ed,ic,dg,da,fu,ir,fc,sc,pd,id,pc,pi,bn,pn,tl,fn,bc,dom,ifd){this.PlacementId=pl;this.PublisherId=pu;this.CampaignId=ca;this.Width=wi;this.Height=he;this.DeliveryMethod=dm;this.SD=sd;this.ED=ed;this.ImpressionCapped=ic;this.DG=dg;this.DA=da;this.SA=this.DA;this.FU=fu;this.Interactive=ir;this.FCD=fc;this.SCD=sc;this.PoliteDelivery=pd;this.IFRD=id;this.PUCU=escape(pc);this.PUIU=escape(pi);this.PublisherImpressionCB=true;this.BeaconName=bn;this.PushDownName=pn;this.TargetLayerName=tl;this.FunctionName=fn;this.BaC=bc;this.Do=dom;this.IFDReP=ifd;this.Ads=new Array();this.PoB=new Array();this.PingBaseURL="http://ping1.unicast.com/adstracking.gif";}
function VwAdCon(id,pc,at,sd,ed,ic,w,ft,fv,pr,pv,ip,ca,rp,tp){this.A=id;this.PCI=pc;this.AdType=at;this.SD=sd;this.ED=ed;this.ImpressionCapped=ic;this.Weighting=w;this.FcT=ft;this.FcV=fv;this.PluginRequired=new Array();if(pr!=""){var q=pr.split("&");for(var i=0;i<q.length;i++)this.PluginRequired[i]=q[i]};this.PlV=new Array();if(pv!=""){var q=pv.split("&");for(var i=0;i<q.length;i++)this.PlV[i]=q[i]};this.InterPanelScripting=ip;this.Cal=new Array();var q=ca.split("&");for(var i=0;i<q.length;i++)this.Cal[i]=q[i];this.ReP=rp;this.ThirdPartyIPing=arguments.length>14?escape(tp):"";this.ThirdPartyIPingCB=true;}
function VwSn(pid){this.Id=pid;var d=document;var n=navigator;var a=n.appName;var u=navigator.userAgent;var p=n.platform;this.OS=p.VwHas('win')?"win":u.VwHas('mac')?"mac":"???";this.Win=this.OS=='win';this.OSX=u.VwHas('mac os x')?true:false;if(this.OS=='mac'&&n.plugins)for(var i=0;i<n.plugins.length;i++)if(n.plugins[i].name.VwHas("default plugin carbon.cfm"))this.OSX=true;this.Op=u.VwHas("opera");this.IE=u.VwHas("msie")&&!this.Op;this.Safari=u.VwHas("safari")&&parseInt(u.VwAfter("safari/",3))>=100&&!this.Op;this.Gecko=u.VwHas("gecko")&&!this.Safari;this.CS7=u.VwHas("cs 2000 7");this.NS6=u.VwHas("netscape6")&&!this.Op;this.NS7=u.VwHas("netscape/7")&&!this.CS7&&!this.Op;this.NS8=u.VwHas("netscape/8")&&!this.Op&&!this.IE;this.Fo=u.VwHas("flock/");this.Firefox=u.VwHas("firefox")&&!this.NS8&&!this.Op&&!this.Fo;this.IEWin=u.VwHas("msie")&&!this.Op&&this.Win;this.Mz=this.Gecko&&!this.NS8&&!this.NS7&&!this.NS6&&!this.CS7&&!this.Firefox&&!this.Op&&!u.VwHas('flock');this.BrVerFloat=this.NS6?parseFloat(u.substring(u.VwIx("netscape6/")+10,u.length)):this.NS7?parseFloat(u.substring(u.VwIx("netscape/")+9,u.length)):this.CS7?7:this.NS8?parseFloat(u.substring(u.VwIx("netscape/")+9,u.length)):u.VwHas("aol")?parseInt(u.VwAfter("aol ",1)):this.IE?parseFloat(u.substring(u.VwIx("msie")+4,u.length)):this.Firefox?parseFloat(u.substring(u.VwIx("firefox/")+8,u.length)):this.Fo?parseFloat(u.substring(u.VwIx("flock/")+6,u.length)):this.Safari?parseFloat(u.substring(u.VwIx("safari/")+7,u.length)):parseFloat(n.appVersion);this.BrVerInt=parseInt(this.BrVerFloat);this.IE4=this.IE&&this.BrVerInt==4;this.IE5=this.IE&&this.BrVerInt==5;if(this.IE5&&this.BrVerFloat==5.01)this.BrVerFloat=5;this.IE6=this.IE&&this.BrVerInt==6;this.IE7=this.IE&&this.BrVerInt==7;this.IE5p=this.IE&&this.BrVerInt>=5;this.IE4p=this.IE4||this.IE5p;this.NS4=this.NS&&this.BrVerInt==4;this.BrowserName=this.Op?"opera":u.VwHas("aol")?("aol"):this.CS7?"compuserve":(this.NS4||this.NS6||this.NS7||this.NS8)?"netscape":this.Fo?"flock":this.Firefox?"firefox":u.VwHas("safari")?"safari":this.IE?"ie":u.VwHas("konqueror")?"konqueror":u.VwHas("omniweb")?"omniweb":u.VwHas("mozilla")?"mozilla":"unknown";if(this.OS=='win')this.OSName=u.VwHas('windows nt 6')?'winvista':u.VwHas('windows nt 5.2')?'win2003':u.VwHas('windows nt 5.1')?'winxp':u.VwHas('windows nt 5.0')?'win2000':u.VwHas('win 9x 4.9')?'winme':u.VwHas('windows 98')?'win98':u.VwHas('windows 95')?'win95':u.VwHas('windows nt 4')?'winnt4':u.VwHas('windows ce')?'wince':'windows';else if(this.OS=='mac')this.OSName=this.OSX?'macosx':'macos';else this.OSName=u.VwHas('sunos')?'sunos':u.VwHas('linux')?'linux':u.VwHas('freebsd')?'freebsd':'unknown';this.BlockOS=this.OSName;if(this.BlockOS=='win95'||this.BlockOS=='winnt4'||this.BlockOS=='wince'||this.BlockOS=='windows')this.BlockOS='win98';else if(this.BlockOS=='win2003'||this.BlockOS=='winvista')this.BlockOS='winxp';else if(this.BlockOS=='sunos'||this.BlockOS=='linux'||this.BlockOS=='freebsd')this.BlockOS='unknown';this.BlockBrowser=this.BrowserName;if(this.BlockBrowser=='konqueror'||this.BlockBrowser=='omniweb'||this.BlockBrowser=='flock')this.BlockBrowser='unknown';this.VETBrowser=(this.Win&&((this.IE5p&&!u.VwHas("netscape/8"))||this.NS7||this.CS7))||(this.OSX&&(this.IE||this.Safari));this.CIFRD=(this.Win&&(this.IE5p||this.NS7||this.NS8||this.Firefox||this.Mz))||(this.OSX&&(this.Firefox));this.OEX=(this.Win&&(this.IE5p||this.NS6||this.NS7||this.NS8||this.Firefox||this.Mz))||(this.OSX&&(this.Firefox||this.Mz||this.NS6||this.NS7||this.NS8));this.MUP=(this.Win&&(this.IE5p||this.NS7||this.NS8||this.CS7||this.Firefox||this.Mz))||(this.OSX&&(this.Safari||this.Firefox||this.Mz));this.SCR=this.Win&&(this.IE5p||this.NS8 );this.FVR=0;this.VVR="0.0.0.0";var vo="";this.HostVersion=0;this.ScV=0;this.SwV=0;this.M3V=0;this.JgV=0;this.SdV=0;this.WrV=0;this.VvV=0;this.V2V=0;if(this.IE5p&&this.Win){var m="ShockwaveFlash.ShockwaveFlash.";var v=5;while(v<10){try{var o=new ActiveXObject(m+v);this.FVR=v;}catch(e){}v++;};try{vo=new ActiveXObject("AxMetaStream.MetaStreamCtl");if(vo){this.VVR="3.0.8.0";this.ScV=gVr(vo,"SceneComponent.dll");this.HostVersion=gVr(vo,"Host");if(u.VwHas("aol")&&parseInt(u.VwAfter("aol",5))<7)this.VVR="0.0.0.0";else if(this.ScV!="No base control"){if(this.ScV>0){this.SwV=gVr(vo,"SWFView.dll");this.M3V=gVr(vo,"MTS3Reader.dll");this.JgV=gVr(vo,"JPEGReader.dll");var sd=gVr(vo,"SreeD.dll)");var sdx=gVr(vo,"SreeDMMX.dll");this.SdV=sdx>0?sdx:sd>0?sd:0;this.WrV=gVr(vo,"WaveletReader.dll");this.VvV=gVr(vo,"VMPVideo.dll");this.V2V=gVr(vo,"VMPVideo2.dll");this.VVR=VwCB2F(this.ScV);this.CuV=gVr(vo,"Cursors.dll");this.VmV=gVr(vo,"VMgr.dll");}}}}catch(e){}}else{var t=navigator.mimeTypes["application/x-shockwave-flash"];if(t){var x=t.enabledPlugin;if(x){var y=x.description;var z=y.indexOf(".")-1;if(z>0)this.FVR=parseInt(y.substring(z,z+1));}}var t=navigator.mimeTypes["application/x-mtx"];if(t){var x=t.enabledPlugin;if(x){this.VVR="3.0.8.0";if(this.OSX)this.VVR="3.2.1.18";else if(this.NS7||this.NS8)this.VVR="3.0.15.0";}}}this.VmD=this.cMC(pid,vo,false);this.VmU=this.cMC(pid,vo,true);this.Ack=new VwCTL("");this.Ack.rC();if(eval("window.VwP"+pid+"CustomSniff")){eval("if(window.VwP"+pid+"CustomSniff)VwP"+pid+"CustomSniff(this);");}else{}}
function gVr(o,w){var r=0;if(o)r=o.PluginCommand("GetVersion("+w+")",0,0);if(r=="No base control")r=0;return r;}
VwSn.prototype.cMC=function(pid,o,fup){if(this.OSX&&this.VVR=="3.2.1.18"){return true;}if((this.NS7||this.NS8)&&(this.VVR!="0.0.0.0")){return true;}if(!this.IEWin){return fup;}if(!fup||(this.CuV>=50593859))if((this.ScV>=50335232))if(!fup||(this.ScV>=12345678))if(!fup||(this.M3V>=50335232))if(!fup||(this.JgV>=50335232))if(!fup||(this.WrV>=50335232))if(!fup||(this.SwV>=50335232))if(!fup||(this.VvV>=50463232))if(!fup||(this.V2V>=50593806))if(!fup||(this.SdV>=50335232))if(!fup||(this.VmV>=16777259))if(!fup||(this.HostVersion>=50659341)){return true;}return false;}
VwSn.prototype.dTC=function(pid,pts,pvs,cif,xit,mul,scr){if(cif&&!this.CIFRD){return false;}if(xit&&!this.OEX){return false;}if(mul&&!this.MUP){return false;}if(scr&&!this.SCR){return false;}if(pts.length>0){for(var i=0;i<pts.length;i++){var c=pts[i];if(c=="F"){if(this.FVR<parseInt(pvs[i])){return false;}}else if(c=="V"){if(this.VETBrowser){if((VwCF2B(this.VVR)<VwCF2B(pvs[i]))||(!this.VmD)){return false;}}else{return false;}}}}return true;}
function VwCTL(ls){this.LvS=ls.length>0?ls:"123100";this.PLs=new Array();this.SC=new Array();}
function VwSec(a,c){this.A=a;this.C=c;}
function VwCuP(pid,cid,pub,lvd,plv,exp){this.PlacementId=pid;this.CampaignId=cid;this.PublisherId=pub;this.LvD=lvd;this.PVs=plv;this.ExD=exp;this.Ads=new Array();this.AcK=false;}
function VwCuA(aid,pc,lv,dv,pv,sv,abv){this.A=aid;this.PCI=pc;this.LvD=lv;this.DVs=dv;this.PVs=pv;this.SVs=sv;this.Conversions=new Array();this.AdBeingViewed=abv;}
function VwCuC(i,c){this.ConversionId=i;this.C=c;}
VwCTL.prototype.gVP=function(){var now=(new Date()).VwDate();if(this.LvS.substring(0,2)==now.substring(0,2)&&this.LvS.substring(4,6)==now.substring(4,6))return true;else return false;}
VwCTL.prototype.sVP=function(){var now=(new Date()).VwDate();this.LvS=now;}
VwCTL.prototype.rC=function(){var VwBB=document.cookie.split(";"+' ');var VwVc="";var VwVsc="";for(var i=0;i<VwBB.length;i++){var nb=VwBB[i].split("=");if(nb[0].VwHas("VWCUK200")){nb[1]=unescape(nb[1]);if(nb[1].indexOf(";"+' ')!=-1){var tp=nb[1].split(";"+' ');nb[1]=tp[0];}if(nb[0]=="SVWCUK200")VwVsc=nb[1];else VwVc=nb[1];}}var v=VwVc.length>0?VwVc.split("/"):"";var s=VwVsc.length>0?VwVsc.split("/"):"";for(var i=0;i<s.length;s++){var sp=s[i].split("_");if(sp.length==2)this.SC[this.SC.length]=new VwSec(sp[0],sp[1]);}for(var i=0;i<v.length;i++){if(v[i].charAt(0)=="L")this.LvS=v[i].substring(1);else if(v[i].charAt(0)=="Q"){var p=v[i].split("_");var l=this.PLs.length;var od=1000*60*60*24;var now=(new Date()).getTime();var exp=od+(new Date(VwAsL(p[5]))).getTime();if((exp+(31*od))>now){this.PLs[l]=new VwCuP(parseInt(p[0].substring(1)),parseInt(p[1]),parseInt(p[2]),p[3],parseInt(p[4]),p[5]);for(var j=6;j<p.length;j++){var c=this.PLs[l].Ads.length;var m=p[j].split("x");this.PLs[l].Ads[c]=new VwCuA(parseInt(m[0]),parseInt(m[1]),m[2],parseInt(m[3]),parseInt(m[4]),0,false);for(var sv=0;sv<this.SC.length;sv++){var tv=parseInt(this.SC[sv].A);if(tv==parseInt(m[0])){this.PLs[l].Ads[c].SVs=this.SC[sv].C;break;}}var r=m.length>=6?m[5].split("y"):"";for(var k=0;k<r.length;k+=2){var z=this.PLs[l].Ads[c].Conversions.length;this.PLs[l].Ads[c].Conversions[z]=new VwCuC(parseInt(r[k]),parseInt(r[k+1]));}}}}}}
VwCTL.prototype.gSV=function(pid,aid){var tot=0;for (var i=0;i<this.PLs.length;i++)if(this.PLs[i].PlacementId==pid)for (var j=0;j<this.PLs[i].Ads.length;j++)if(this.PLs[i].Ads[j].A==aid)return this.PLs[i].Ads[j].SVs;return tot;}
VwCTL.prototype.gAV=function(pid,aid){var tot=0;for (var i=0;i<this.PLs.length;i++)if(this.PLs[i].PlacementId==pid)for (var j=0;j<this.PLs[i].Ads.length;j++)if(this.PLs[i].Ads[j].A==aid)return this.PLs[i].Ads[j].PVs;return tot;}
VwCTL.prototype.gPV=function(pid){var tot=0;for (var i=0;i<this.PLs.length;i++)if(this.PLs[i].PlacementId==pid)tot+=this.PLs[i].PVs;return tot;}
VwCTL.prototype.gCV=function(cam){var tot=0;for (var i=0;i<this.PLs.length;i++)if(this.PLs[i].CampaignId==cam)tot+=this.PLs[i].PVs;return tot;}
VwCTL.prototype.gDV=function(pid,aid){var tot=0;for (var i=0;i<this.PLs.length;i++)if(this.PLs[i].PlacementId==pid)for (var j=0;j<this.PLs[i].Ads.length;j++)if(this.PLs[i].Ads[j].A==aid)if((new Date()).VwDate()==this.PLs[i].Ads[j].LvD)return this.PLs[i].Ads[j].DVs;return tot;}
VwCTL.prototype.gRV=function(cam,par){var tot=0;for (var i=0;i<this.PLs.length;i++)if(this.PLs[i].CampaignId==cam)for (var j=0;j<this.PLs[i].Ads.length;j++)if(this.PLs[i].Ads[j].PCI==par)tot+=this.PLs[i].Ads[j].PVs;return tot;}
VwCTL.prototype.gUV=function(cam,pub){var tot=0;for (var i=0;i<this.PLs.length;i++)if(this.PLs[i].CampaignId==cam&&this.PLs[i].PublisherId==pub)tot+=this.PLs[i].PVs;return tot;}
VwCTL.prototype.gUC=function(cam,pub,par){var tot=0;for (var i=0;i<this.PLs.length;i++)if(this.PLs[i].CampaignId==cam&&this.PLs[i].PublisherId==pub)for (var j=0;j<this.PLs[i].Ads.length;j++)if(this.PLs[i].Ads[j].PCI==par)tot+=this.PLs[i].Ads[j].PVs;return tot;}
VwCTL.prototype.cAV=function(pid,aid,cid,pub,pc,exp){var pfd=-1;var afd=-1;var yest=new Date();yest.setTime(yest.getTime()-(1000*60*60*24));yest=yest.VwDate();var today=(new Date()).VwDate();for(var i=0;i<this.PLs.length;i++){if(this.PLs[i].CampaignId==cid){if(this.PLs[i].LvD==today){this.PLs[i].LvD=yest;}}}for(var i=0;i<this.PLs.length;i++){if(this.PLs[i].PlacementId==pid){pfd=i;this.PLs[i].PVs++;this.PLs[i].LvD=today;for (var j=0;j<this.PLs[i].Ads.length;j++){if(this.PLs[i].Ads[j].A==aid){afd=j;this.PLs[i].Ads[j].AdBeingViewed=true;this.PLs[i].Ads[j].PVs++;var lvd=(new Date(VwAsL(this.PLs[i].Ads[j].LvD))).VwDate();if(today!=lvd)this.PLs[i].Ads[j].DVs=1;else this.PLs[i].Ads[j].DVs++;this.PLs[i].Ads[j].SVs++;this.PLs[i].Ads[j].LvD=today;break;}}break;}}if(pfd==-1){var idx=this.PLs.length;this.PLs[idx]=new VwCuP(pid,cid,pub,today,1,exp);pfd=idx;}if(afd==-1){var idx=this.PLs[pfd].Ads.length;this.PLs[pfd].Ads[idx]=new VwCuA(aid,pc,today,1,1,1,true)}var sf=false;for(var i=0;i<this.SC.length;i++){if(this.SC[i].A==aid){sf=true;this.SC[i].C++;}}if(!sf)this.SC[this.SC.length]=new VwSec(aid,1);}
VwCTL.prototype.uC=function(fid,sed){var fc="VWCUK200=L"+this.LvS;var sc="SVWCUK200=";for(var i=0;i<this.SC.length;i++){sc+=(i==0?"":"/");sc+=this.SC[i].A+"_";sc+=this.SC[i].C;}for (var i=0;i<this.PLs.length;i++){var lv=-1;var lv_date=(new Date("12/31/2000")).getTime();for (var j=0;j<this.PLs.length;j++){var thisd=(new Date(VwAsL(this.PLs[j].LvD))).getTime();if((thisd>lv_date)&&(!this.PLs[j].AcK)){lv=j;lv_date=thisd;}}if(lv!=-1){var plcmt="";this.PLs[lv].AcK=true;plcmt+="/Q";plcmt+=this.PLs[lv].PlacementId;plcmt+="_"+this.PLs[lv].CampaignId;plcmt+="_"+this.PLs[lv].PublisherId;plcmt+="_"+this.PLs[lv].LvD;plcmt+="_"+this.PLs[lv].PVs;plcmt+="_"+this.PLs[lv].ExD;var pct="";for(var k=0;k<this.PLs[lv].Ads.length;k++){var pcm="";pcm+="_"+this.PLs[lv].Ads[k].A;pcm+="x"+this.PLs[lv].Ads[k].PCI;pcm+="x"+this.PLs[lv].Ads[k].LvD;pcm+="x"+this.PLs[lv].Ads[k].DVs;pcm+="x"+this.PLs[lv].Ads[k].PVs;for(var l=0;l<this.PLs[lv].Ads[k].Conversions.length;l++){pcm+=(l==0?"x":"y");pcm+=this.PLs[lv].Ads[k].Conversions[l].ConversionId;pcm+="y"+this.PLs[lv].Ads[k].Conversions[l].C;}if(this.PLs[lv].Ads[k].AdBeingViewed)plcmt+=pcm;else pct+=pcm;}plcmt+=pct;if((fc.length+plcmt.length)<4000)fc+=plcmt;}}if(!fid&&!window.VwPubCDis){var exp;if(this.PLs.length>0){exp=(new Date(VwAsL(this.PLs[0].ExD.toString())));exp.setTime(exp.getTime()+(1000*60*60*24));}else{exp=new Date();exp.setTime(exp.getTime()+(1000*60*60*24*31));}var dm=(document.domain.indexOf("unicast.com")>-1)?" domain=unicast.com;":"";document.cookie=fc+";"+dm+" path=/;"+" expires="+exp.toGMTString();}if(!sed)document.cookie=sc+";"+" path=/;";}
function VwCvA(i,c){this.Conversion=new VwCuC(i,0);this.CampaignId=c;this.A=0;this.PlacementId=0;this.AVs=0;}
VwCTL.prototype.cLV=function(ca){var cam=ca.CampaignId;var coid=ca.Conversion.ConversionId;var p=0;var a=0;var c=0;for(var i=0;i<this.PLs.length;i++)if(this.PLs[i].CampaignId==cam)for (var j=0;j<this.PLs[i].Ads.length;j++)if(this.PLs[i].Ads[j].PVs>0){var lvd=(new Date(VwAsL(this.PLs[i].Ads[j].LvD))).getTime();if(lvd>c){p=i;a=j;c=lvd;}}if(c>0){var f=0;var i;for(i=0;i<this.PLs[p].Ads[a].Conversions.length;i++){if(coid==this.PLs[p].Ads[a].Conversions[i].ConversionId){f=this.PLs[p].Ads[a].Conversions[i].C++;break;}}if(f==0)this.PLs[p].Ads[a].Conversions[i]=new VwCuC(coid,1);ca.A=this.PLs[p].Ads[a].A;ca.PlacementId=this.PLs[p].PlacementId;ca.Conversion.C=f+1;ca.AVs=this.PLs[p].Ads[a].PVs;}}
function VwSel(pl,sn){var AlD=0;var pid=pl.PlacementId;var now=(new Date()).getTime();var od=1000*60*60*24;var sta=(new Date(pl.SD)).getTime();var ed=od+(new Date(pl.ED)).getTime();var iX=new Array();var fnam="VwP"+pid+"BandwidthPreTest";if(eval("window."+fnam)){eval(fnam+"();");}var fnam="VwP"+pid+"SufficientBandwidth";if(eval("window."+fnam)&&!pl.ImpressionCapped){eval("if(!"+fnam+"())pl.ImpressionCapped=true;");}var fnam="VwP"+pid+"BandwidthPostTest";if(eval("window."+fnam)){eval(fnam+"();");}var fnam="VwP"+pid+"BlockPlacement";if(eval("window."+fnam)&&!pl.ImpressionCapped){eval("pl.ImpressionCapped="+fnam+"(sn.BlockOS,sn.BlockBrowser,sn.BrVerFloat);");}var psl=false;eval("if(window.VwP"+pid+"PreSelAd)psl=VwP"+pid+"PreSelAd;");if(psl!=false){if(psl=="DG")AlD=0;else if(psl=="DA")AlD=pl.DA;else{AlD=psl;for(var i=0;i<pl.Ads.length;i++){var a=pl.Ads[i].A;if(a==psl){iX[a]=i;break;}}}pl.ImpressionCapped=true;}if(!pl.ImpressionCapped){if((now>=sta)&&(now<ed)){AlD = pl.DA;var sA=new Array();for(var i=0;i<pl.Ads.length;i++){var a=pl.Ads[i].A;iX[a]=i;if(eval("window.VwP"+pid+"BlockAd")&&!pl.Ads[i].ImpressionCapped){eval("pl.Ads[i].ImpressionCapped=VwP"+pid+"BlockAd(a,sn.BlockOS,sn.BlockBrowser,sn.BrVerFloat);");}if(!pl.Ads[i].ImpressionCapped){if(!((pl.IFRD)&&(pl.Do=="")&&(pl.Ads[i].AdType!="B"))){var sd=(new Date(pl.Ads[i].SD)).getTime();var ed=od+(new Date(pl.Ads[i].ED)).getTime();if((now>=sd)&&(now<ed)){var freq_cap=pl.Ads[i].FcV;var freq_type=pl.Ads[i].FcT;var freq_val=0;if(freq_type=='P')freq_val=sn.Ack.gAV(pid,a);else if(freq_type=='D')freq_val=sn.Ack.gDV(pid,a);else if(freq_type=='S')freq_val=sn.Ack.gSV(pid,a);if(freq_val<freq_cap||freq_cap==0){var weight=pl.Ads[i].Weighting;if(weight>0){for(var j=0;j<weight;j++){sA[sA.length]=a;}}}}}}}if(sA.length>0){var ran=Math.floor(Math.random()*sA.length);if(ran>=sA.length)ran=0;AlD=sA[ran];}else{AlD=pl.DA;}}}if(AlD!=0){var al=iX[AlD];for(var i=0;i<pl.Ads[al].Cal.length;i++){var idx=iX[AlD];var pt=pl.Ads[idx].PluginRequired;var pv=pl.Ads[idx].PlV;var cif=pl.Ads[idx].AdType!="B"&&pl.IFRD;var xit=pl.DeliveryMethod=="X";var mul=pl.Ads[idx].AdType!="B";var scr=pl.Ads[idx].InterPanelScripting;if(sn.dTC(pid,pt,pv,cif,xit,mul,scr)&&(!cif||(cif&&(pl.Do.length>0&&pl.IFDReP.length>0)))){break;}else{var nxtalt=pl.Ads[al].Cal[i];if((i+1)==pl.Ads[al].Cal.length){var idx=iX[nxtalt];var pt=pl.Ads[idx].PluginRequired;var pv=pl.Ads[idx].PlV;var cif=pl.Ads[idx].AdType!="B"&&pl.IFRD;var xit=pl.DeliveryMethod=="X";var mul=pl.Ads[idx].AdType!="B";var scr=pl.Ads[idx].InterPanelScripting;if(sn.dTC(pid,pt,pv,cif,xit,mul,scr)&&(!cif||(cif&&(pl.Do.length>0&&pl.IFDReP.length>0)))){}else{AlD=0;break;}}AlD=nxtalt;}}}if(AlD==0){AlD=pl.DG;}return AlD;}
function VwSelectMain(){if(VwPlacementsToSelect.length>0){var mAd=0;var pid=0;var mPl;var mSn;var now=(new Date()).getTime();for(var i=0;i<VwPlacementsToSelect.length;i++){pid=VwPlacementsToSelect[i];VwPlacementsToSelect[i]=0;if(pid!=0){mSn=new VwSn(pid);eval('VwP'+pid+'obj=new VwPlCon('+eval('VwP'+pid+'Con')+')');mPl=eval("VwP"+pid+"obj");if(!mSn.VETBrowser)mPl.FU=false;if(mPl.IFRD){var s=document.location.search.substring(1);var p=s.toLowerCase().indexOf("script")==-1?s.split('&'):"";for(var j=0;j<p.length;j++){var nv=p[j].split("=");if(nv.length==2&&nv[0].length==1&&nv[1].length>0){switch(nv[0].charAt(0)){case 'B': eval('VwP'+pid+'obj.BeaconName=nv[1];');break;case 'C': eval('VwP'+pid+'obj.BaC=(VwP'+pid+'obj.BaC.charAt(0)=="#"?"":"#")+nv[1];document.body.bgColor=VwP'+pid+'obj.BaC;');break;case 'D': eval('VwP'+pid+'obj.Do=nv[1];');break;case 'E': eval('VwP'+pid+'obj.PushDownName=nv[1];');break;case 'F': eval('VwP'+pid+'obj.IFDReP=nv[1];');break;case 'G': eval('VwP'+pid+'D=eval(nv[1]);');break;case 'I': eval('VwP'+pid+'obj.PUIU=escape(nv[1]);');break;case 'L': eval('VwP'+pid+'obj.TargetLayerName=nv[1];');break;case 'N': eval('VwP'+pid+'obj.FunctionName=nv[1];');break;case 'P': eval('VwP'+pid+'obj.PUCU=escape(nv[1]);');break;}}}}else{eval('if(window.VwP'+pid+'BeaconId)VwP'+pid+'obj.BeaconName=VwP'+pid+'BeaconId;');eval('if(window.VwP'+pid+'BaC)VwP'+pid+'obj.BaC=(VwP'+pid+'BaC.charAt(0)=="#"?"":"#")+VwP'+pid+'BaC;');eval('if(window.VwP'+pid+'PushId)VwP'+pid+'obj.PushDownName=VwP'+pid+'PushId;');eval('if(window.VwP'+pid+'PubImpressionURL)VwP'+pid+'obj.PUIU=escape(VwP'+pid+'PubImpressionURL);');eval('if(window.VwP'+pid+'DivId)VwP'+pid+'obj.TargetLayerName=VwP'+pid+'DivId;');eval('if(window.VwP'+pid+'FuncName)VwP'+pid+'obj.FunctionName=VwP'+pid+'FuncName;');eval('if(window.VwP'+pid+'PubClickthruURL)VwP'+pid+'obj.PUCU=escape(VwP'+pid+'PubClickthruURL);');}eval('VwP'+pid+'D=VwP'+pid+'PathToSelect.indexOf("selectd.js")!=-1?true:false');var nu=eval("VwP"+pid+"NumAds");for(var j=0;j<nu;j++){var ac=eval("VwP"+pid+"Ad"+j+"Con");eval("mPl.Ads[mPl.Ads.length]=new VwAdCon("+ac+")");}if(mPl){eval("if(window.VwP"+pid+"CustomSelect)VwP"+pid+"CustomSelect(mPl,mSn);");mAd=VwSel(mPl,mSn);}break;}}var md=false;var mGp="";if(mAd!=0){for(var i=0;i<mPl.Ads.length;i++){if(mPl.Ads[i].A==mAd){md=mPl.Ads[i];md.SA=mAd;}if(mPl.Ads[i].A==mPl.DG){mGp=mPl.Ads[i].ReP;}}}if(md){var p=mPl.PlacementId;var a=md.A;if(mPl.DeliveryMethod!="X")mSn.Ack.cAV(p,a,mPl.CampaignId,mPl.PublisherId,md.PCI,VwRsL(mPl.ED));var ipi=escape(""+"AV="+mSn.Ack.gAV(p,a)+"_PV="+mSn.Ack.gPV(p)+"_CV="+mSn.Ack.gCV(mPl.CampaignId)+"_RV="+mSn.Ack.gRV(mPl.CampaignId,md.PCI)+"_UV="+mSn.Ack.gUV(mPl.CampaignId,mPl.PublisherId)+"_UC="+mSn.Ack.gUC(mPl.CampaignId,mPl.PublisherId,md.PCI)+"_VP="+mSn.VVR+"_VU="+(mSn.Ack.gVP()?"1":"0"));var ipi2="AV=_AV_&PV=_PV_&CV=_CV_&RV=_RV_&UV=_UV_&UC=_UC_&VP="+mSn.VVR+"&VU=_VU_";var cki=escape(""+"_pc="+md.PCI+"_exp=%27"+VwRsL(mPl.ED)+"%27"+"_fc="+mPl.FCD+"_sc="+mPl.SCD);var pS=mPl.PingBaseURL+"?DV=2.18&PT=I&AD="+a;var pE="&RD="+Math.floor(Math.random()*10000000);var pU="&"+(mPl.IFRD?unescape(ipi.replace(/_/g,"&")):ipi2);if(mPl.DeliveryMethod=="X"){mPl.PoB[mPl.PoB.length]=new Image();var u=pS.replace("PT=I","PT=R")+pE;mPl.PoB[mPl.PoB.length-1].src=unescape(u);}else{mSn.Ack.sVP();if(!(!mPl.IFRD&&(document.domain.indexOf("unicast.com")>-1)))mSn.Ack.uC(mPl.FCD,mPl.SCD);var pip="",tpi="";if(mPl.PUIU.length>4)pip=mPl.PUIU+(mPl.PublisherImpressionCB?("?"+now):"");if(md.ThirdPartyIPing.length>4)tpi=md.ThirdPartyIPing+(md.ThirdPartyIPingCB?("?"+now):"");if(mPl.IFRD){if(pip!=""){mPl.PoB[mPl.PoB.length]=new Image();mPl.PoB[mPl.PoB.length-1].src=unescape(unescape(pip));}if(md.ThirdPartyIPing.length>4){mPl.PoB[mPl.PoB.length]=new Image();mPl.PoB[mPl.PoB.length-1].src=unescape(unescape(tpi));}mPl.PoB[mPl.PoB.length]=new Image();var iping=pS+pU+pE;mPl.PoB[mPl.PoB.length-1].src=unescape(iping);}else{var plc="http://creativeby1.unicast.com/script/V2.18/deliver2"+(eval("window.VwP"+p+"D")?"d":"")+".html?"+"pid="+p+"&cid="+mPl.CampaignId+"&pub="+mPl.PublisherId+"&a="+a+"&VwDebug="+eval("window.VwP"+p+"D")+unescape(cki.replace(/_/g,"&"))+"&png=\'"+escape(escape(pS+pU+pE))+"\'"+"&pip=\'"+escape(pip)+"\'"+"&tpi=\'"+escape(tpi)+"\'";var pn="VwD2_"+mPl.PlacementId;var pif="<iframe name=\""+pn+"\" ID=\""+pn+"\" src=\""+(mSn.IEWin?"":plc)+"\" width=0 height=0 frameborder=0 scrolling=no></iframe>";if(window.VwFriendlyIframe){var dif=document.createElement('DIV');if(dif){dif.style.position="absolute";dif.style.zIndex=0;dif.style.visibility="visible";dif.style.left="0px";dif.style.top="0px";dif.style.width="0px";dif.style.height="0px";dif.innerHTML=pif;document.body.appendChild(dif);}}else document.write(pif);if(mSn.IEWin){var ob=document.getElementById(pn);if(ob)ob.setAttribute("src",plc);}}}if(mPl.IFRD&&md.AdType!="B"){var qS="?"+escape("Ver=2.18&Aid="+md.A+"&Vmp="+mSn.VVR+"&Pla="+p+"&Pub="+mPl.PublisherId+"&Cam="+mPl.CampaignId+"&Int="+mPl.Interactive+"&Pcl="+mPl.PUCU+"&Pim="+mPl.PUIU+"&Fup="+((mPl.FU&&!mSn.VmU)?"true":"false")+"&Arp="+md.ReP+"&Drp="+mGp+"&Dbg="+(eval("window.VwP"+p+"D")?"true":"false")+"&Tar="+mPl.TargetLayerName+"&Bea="+mPl.BeaconName+"&Pdn="+mPl.PushDownName+"&Fnm="+mPl.FunctionName+"&Bgc="+mPl.BaC+"&Ipi="+ipi+"&Cuk="+cki);var reps=(unescape(mPl.Do)+unescape(mPl.IFDReP)+qS);setTimeout(('window.location.replace("'+reps+'")'),1000);}else{var p1="VwPlacementId"+a+"="+mPl.PlacementId;var p2="VwPublisherId"+a+"="+mPl.PublisherId;var p3="VwCampaignId" +a+"="+mPl.CampaignId;var p4="VwA"+a+"D="+eval("window.VwP"+p+"D");var p5="VwTargetLayerName"+a+"='"+mPl.TargetLayerName+"'";var p6="VwVVRsion"+a+"='"+mSn.VVR+"'";var p7="VwInteractive"+a+"="+mPl.Interactive;var p8="VwPubCthru"+a+"='"+mPl.PUCU+"'";var p9="VwPubImpression"+a+"='"+mPl.PUIU+"'";var p10="VwFUpdate"+a+"="+((mPl.FU&&!mSn.VmU)?"true":"false");var p11="VwAidRelPath"+a+"='"+md.ReP+"'";var p12="VwDefRelPath"+a+"='"+mGp+"'";var p13="VwBeaconName"+a+"='"+mPl.BeaconName+"'";var p14="VwPushDownName"+a+"='"+mPl.PushDownName+"'";var p15="VwFunctionName"+a+"='"+mPl.FunctionName+"'";var p16="VwImPingInfo"+a+"='"+ipi+"'";var p17="VwCukUpdInfo"+a+"='"+cki+"'";if(md.AdType=="B"&&md.PluginRequired[0]=="F"&&mPl.IFRD){var qS="?"+p1+"&"+p2+"&"+p3+"&"+p4+"&"+p5+"&"+p6+"&"+p7+"&"+p8+"&"+p9+"&"+p10+"&"+p11+"&"+p12+"&"+p13+"&"+p14+"&"+p15+"&"+p16+"&"+p17;var sloc="http://creativeby1.unicast.com"+md.ReP+".html"+qS;var xaif="<iframe name=\"VwXA"+mPl.PlacementId+"\" ID=\"VwXA"+mPl.PlacementId+"\" src=\""+(mSn.IEWin?"":sloc)+"\" width="+(mSn.IEWin?0:mPl.Width)+" height="+(mSn.IEWin?0:mPl.Height)+" frameborder=0 scrolling=no></iframe>";document.write(xaif);if(mSn.IEWin){var ob=document.getElementById("VwXA"+mPl.PlacementId);if(ob){ob.setAttribute("width", mPl.Width);ob.setAttribute("height", mPl.Height);ob.setAttribute("src", sloc);}}}else{if(md.AdType=="B"&&mPl.IFRD)eval("VwFInlineScript"+a+"=true;");else eval("VwInlineScript"+a+"=true;");for(var va=1;va<18;va++)eval("eval(p"+va+")");var str="<scr"+"ipt language='javascript' src='http://creativeby1.unicast.com"+md.ReP+".js'></scr"+"ipt>";if(window.VwFriendlyIframe){var b=document.getElementsByTagName('body').item(0);var s=document.createElement('SCRIPT');if(s)s.src="http://creativeby1.unicast.com"+md.ReP+".js";if(b)b.appendChild(s);}else document.write(str);}}}}}
VwSelectMain();VwSelectLoaded=true;
