﻿function prepare_mjx() {
    if (OAS_version >= 11) {
        document.write('<scr' + 'ipt language="JavaScript1.1" src="' + OAS_url + 'adstream_mjx.ads/' + OAS_sitepage + '/1' + OAS_rn + '/@' +

        OAS_listpos + '?' + OAS_query + OAS_taxonomy + '"><\/script>');
    }    
}

function oas_nx(position, width, height) {            
    document.write('<a href="' + OAS_url + 'click_nx.ads/' + OAS_sitepage + '/1' + OAS_rn + '/@' + OAS_listpos + '!' + position + '?' + OAS_query + OAS_taxonomy + '">');
    document.write('<img width="' + width + ' height="' + height + '" src="' + OAS_url + 'adstream_nx.ads/' + OAS_sitepage + '/1' + OAS_rn + '/@' + OAS_listpos + '!' + position + '?' + OAS_query + OAS_taxonomy + '"/>');
    document.write('</a>');
}

function oas_jx(position, width, height) {    
    document.write('<scr' + 'ipt language="JavaScript1.1" src="' + OAS_url + 'adstream_jx.ads/' + OAS_sitepage + '/1' + OAS_rn + '/@' +

    OAS_listpos + '!' + position + '?' + OAS_query + OAS_taxonomy + '"><\/script>');
    
    if (navigator.appVersion.indexOf('MSIE 3') != -1) {
        document.write('<iframe width="' + width + ' height="' + height + '" marginwidth="0" marginheight="0" hspace="0" vspace="0" frameborder="0" scrolling="0" bordercolor="#000000" src="' + OAS_url + 'adstream_sx.ads/' + OAS_sitepage + '/' + OAS_rn + '/@' + OAS_listpos + '!' + position + '?' + OAS_query + OAS_taxonomy + '">');
    }
    else if (OAS_version < 11) {
        oas_nx(position, width, height);
    }
}

function oas_mjx(position, width, height) {
    if (OAS_version >= 11 && typeof (OAS_RICH) != 'undefined')
        OAS_RICH(position);
    else
        oas_nx(position);
}

function oas_rx(position, width, height) {
    if (OAS_version < 11) {
        oas_nx(position, width, height);
    }
    else {
        document.write('<scr' + 'ipt language="JavaScript1.1" src="' + OAS_url + 'adstream_jx.ads/' + OAS_sitepage + '/1' + OAS_rn + '/@' +

        OAS_listpos + '!' + position + '?' + OAS_query + OAS_taxonomy + '"><\/script>');
    }
}
