
// Define OAS Variables

// Check for Secure Delivery Begins
document.location.toString().indexOf('https://') != -1 ? OAS_server = 'https://e3train61del1.east3.247realmedia.com' : OAS_server = 'http://e3train61del1.east3.247realmedia.com';
// Set Adserving URL Prefix
OAS_url = OAS_server + '/RealMedia/ads/';
OAS_url = 'http://www.icover.com.br/RealMedia/ads/';
// Set Ananytics URL
OAS_analyticsurl = OAS_server + '/Scripts/oas_analytics.js';
// Define Search Terms, format (case sensitive) : 'KeyName1=KeyValue1&KeyName2=KeyValue2' or 'Keyword1&Keyword2'
OAS_searchterms = '';
// Define Custom Taxonomy, format (case sensitive) : '&Attribute1=Value1&Attribute2=Value2'
OAS_taxonomy = '';
// Set Window Parameter for Clicks
OAS_target = '_blank';

// Don't Touch Me! I Don't Like Being Touched!

OAS_query = '';
// Generate Random Number for Cache Busting
OAS_rn = new String(Math.random());
OAS_rns = OAS_rn.substring(2, 11);
// Set OAS Version
OAS_version = 11;



// Function to deliver to Old Browsers
function OAS_NORMAL(pos) {
    document.write('<A HREF="' + OAS_url + 'click_nx.ads/' + OAS_sitepage + '/1' + OAS_rns + '@' + OAS_listpos + '!' + pos + '?' + OAS_query + '" TARGET=' + OAS_target + '>');
    document.write('<IMG SRC="' + OAS_url + 'adstream_nx.ads/' + OAS_sitepage + '/1' + OAS_rns + '@' + OAS_listpos + '!' + pos + '?' + OAS_query + '" BORDER=0></A>');
}

// Don't Touch Me! I Don't Like Being Touched!

// Function to find the object in the DOM model
function getObj(name) {
    if (document.getElementById) this.obj = document.getElementById(name);
    else if (document.all) this.obj = document.all[name];
    else if (document.layers) this.obj = document.layers[name];

    if (this.obj) this.style = this.obj.style;
}

// Add a body load function, not overridding existing ones
function addLoad(func) {
    if (window.addEventListener) window.addEventListener("load", func, false);
    else if (document.addEventListener) document.addEventListener("load", func, false);
    else if (window.attachEvent) window.attachEvent("onload", func);
    else if (typeof window.onload != "function") window.onload = func;
    else {
        var oldonload = window.onload;
        window.onload = function() {
            oldonload();
            func();
        };
    }
}

// onLoad function that move objects in the DOM and make them visible
function OAS_AMJX_init() {
    var apos = OAS_listpos.split(',');
    var olddocwrite = document.write;
    for (var i = 0; i < apos.length; i++) {
        var object_togo = new getObj('OAS_' + apos[i]);
        var object_tomove = new getObj('Hidden_OAS_' + apos[i]);
        html = "";
        if (typeof (object_togo.obj) != "undefined" && typeof (object_tomove.obj) != "undefined") {
            object_togo.obj.appendChild(object_tomove.obj);
            object_tomove.style.display = "inline";
        }
    }
}
// Don't Touch Me! I Don't Like Being Touched!

// Check for Stoneage Browsers
if (navigator.userAgent.indexOf('Mozilla/3') != -1 || navigator.userAgent.indexOf('Mozilla/4.0 WebTV') != -1) OAS_version = 10;
// Write MJX Script Call for OAS Versions 11+
if (OAS_version >= 11) document.write('<script language="javascript" type="text/javascript" SRC="' + OAS_url + 'adstream_mjx.ads/' + OAS_sitepage + '/1' + OAS_rns + '@' + OAS_listpos + '?' + OAS_query + '"><\/script>');
// Check for DOM Support
if (document.getElementById && document.createTextNode) addLoad(OAS_AMJX_init);

// Function to Select Ad Function
function OAS_AD(pos) {
    OAS_version >= 11 ? OAS_RICH(pos) : OAS_NORMAL(pos);
}