
rnd.today = new Date();
rnd.seed = rnd.today.getTime();

function rnd() {
    rnd.seed = (rnd.seed * 9301 + 49297) % 233280;
    return rnd.seed / (233280.0);
};

function rand(number) {
    var result = Math.ceil(rnd() * number);
    if (!result) result++;
    return result
};
var ad_cnt3 = 7;
var ad3 = rand(ad_cnt3);
var link3;
var adBanner3;
var width3
var height3



if (ad3 == 1) {
    adBanner3 = "../products/edusoft/images/Edusoft_tour_banner.jpg";
    width3 = "380";
    height3 = "200";
    alt3 = "";
}

if (ad3 == 2) {
    link3 = "../products/wjIIIComplete/resources.html";
    adBanner3 = "../products/wmls/images/WJIII_ASB_banner.jpg";
    width3 = "380";
    height3 = "200";
    alt3 = "";
}
if (ad3 == 3) {
    link3 = "../stimulus/index.html";
    adBanner3 = "../stimulus/images/stimulus_ad.jpg";
    width3 = "380";
    height3 = "200";
    alt3 = "";
}

if (ad3 == 4) {
    link3 = "/rti/index.html";
    adBanner3 = "/rti/images/RTI_banner_FA.gif";
    width3 = "380";
    height3 = "200";
    alt3 = "";
}
if (ad3 == 5) {
    link3 = "/wiiip/index.html";
    adBanner3 = "/wiiip/images/WIIIP_banner_FA.jpg";
    width3 = "380";
    height3 = "200";
    alt3 = "";
}
if (ad3 == 6) {
    adBanner3 = "../products/edusoft/images/Edusoft_tour_banner.jpg";
    width3 = "380";
    height3 = "200";
    alt3 = "";
}
if (ad3 == 7) {
    link3 = "../events/index.html";
    adBanner3 = "../images/site/webinar_ad.jpg";
    width3 = "380";
    height3 = "200";
    alt3 = "";
}


function display_banner() {
    document.write('<center>');

    if (ad3 == 1) {
        document.write('<table id="Table_01" width="380" height="200" border="0" cellpadding="0" cellspacing="0">');
        document.write('<tr>');
        document.write('<td colspan="3">');
        document.write('<img src="images/ads/WJIII-ad-v2_01.gif" width="380" height="110" alt="">');
        document.write('</td>');
        document.write('</tr>');
        document.write('<tr>');
        document.write('<td>');
        document.write('<a href="/products/WJIIIBriefBattery/index.html"> ');
        document.write('<img src="images/ads/WJIII-ad-v2_02.gif" name="Image4" width="187" height="90" border="0">');
        document.write('</a>');
        document.write('</td>');
        document.write('<td>');
        document.write('<a href="/products/wjIIINormativeUpdate/index.html">');
        document.write('<img src="images/ads/WJIII-ad-v2_04.gif" name="Image5" width="188" height="90" border="0">');
        document.write('</a>');
        document.write('</td>');
        document.write('</tr>');
        document.write('</table>');
    }


    if (ad3 == 2 || ad3 == 3 || ad3 == 4 || ad3 == 5 || ad3 == 6 || ad3 == 7 || ad3 == 9) {
        document.write('<a href="' + link3 + '" target="_top">');
        document.write('<img src="' + adBanner3 + '" width=' + width3 + ' height=' + height3 + ' border=0 alt="' + alt3 + '"></a>');
    }

    if (ad3 == 8) {
        document.write('<a href="#" onClick="window.open(\'/products/edusoft/tour/application.html\',\'tour1\',\'width=770,height=530,left=0,top=0,location=no,status=No,resizable=No,fullscreen=No\')">');
        document.write('<img src="' + adBanner3 + '" width=' + width3 + ' height=' + height3 + ' border=0 alt="' + alt3 + '"></a>');
    }

    //if (ad3 == 5) {
    //    document.write('<img src="../products/bdi2/images/BDI2banner.gif" alt="" width="380" height="200" border="0" usemap="#Map">');
    //    document.write('<map name="Map">');
    //    document.write('<area shape="rect" coords="5,99,146,121" href="/products/bdi2/scoring.html#datamanager"><area shape="poly" coords="287,148,313,149,336,146,348,142,360,136,372,128,377,119,376,108,354,94,323,88,305,89,283,90,260,94,240,103,224,116,226,128,239,138,267,146" href="/products/bdi2/scoring.html#databuddie">');
    //    document.write('</map>');
    //}

    document.write('</center>');
}


