﻿var DapAdItem=function(d,c,b,a){this.pg=d;this.ap=c;this.width=b;this.height=a;this.toDapAdScript=function(){document.write('<span class="buttonad" id="'+this.pg+'">');dap("&amp;PG="+this.pg+"&amp;AP="+this.ap,this.width,this.height);document.write("</span>")}};function WriteQuadAd(a){for(i=0;i<4;i++){var b=Math.floor(Math.random()*4),c=a[i];a[i]=a[b];a[b]=c}for(i=0;i<4;i++)a[i].toDapAdScript()}