﻿
yoRoot = "ads.maximizare.ro";

function YoCls() {
    this.rnd = parseInt(Math.random() * Math.pow(10, 17));
    this.setTagRnd = function () { 
        this.p.tagRnd = parseInt(Math.random() * Math.pow(10, 15));
    }
    this.getTagRnd = function () {
        if (typeof (this.p.tagRnd == "undefined"))
            this.setTagRnd();
        return "&tagRnd=" + this.p.tagRnd;
    }
    this.tag = function () {
        return "adTag=" + this.p.adTag;
    };

    this.GetBnr = function () {
        document.write('<sc' + 'ript SRC="' + ("https" == document.location.href.slice(0, 5) ? "https://" : "http://") + yoRoot + "/Ads/GetAd?" + this.tag() + this.getTagRnd() + '"></scr' + 'ipt>');
    }
}

if (typeof (yOptObj) == 'undefined')
    yOptObj = new YoCls();
else yOptObj.p = null;
if (typeof (_yoParams_) == 'object')
    yOptObj.p = _yoParams_;
yOptObj.GetBnr(); _yoParams_ = null;


