function loadpage() {
    browver= parseInt(navigator.appVersion);
    browtype = navigator.appName;
    browsertype = "old";

    if (browtype == "Netscape" && !(browver < 3)) {
        browsertype = "new"; 
    }

    if (browtype == "Microsoft Internet Explorer" && !(browver < 4)) {
        browsertype = "new";
    }

    if (browsertype == "new") {
        thetimer = setTimeout("changeimage()", 3000);
        banneradcode = 0;
        listofimages = new Array(4);

        listofimages[0]     = new Image(255.155)
        listofimages[0].src = "http://www.aptselector.com/images/java/austin-0.jpg"
        listofimages[1]     = new Image(255,155)
        listofimages[1].src = "http://www.aptselector.com/images/java/austin-1.jpg"
        listofimages[2]     = new Image(255,155)
        listofimages[2].src = "http://www.aptselector.com/images/java/austin-2.jpg"
        listofimages[3]     = new Image(255,155)
        listofimages[3].src = "http://www.aptselector.com/images/java/austin.jpg"
        listofimages[4]     = new Image(255,155)
        listofimages[4].src = "http://www.aptselector.com/images/java/austin-4.jpg"
    }
}

function changeimage(){
    if (browsertype == "new") {
        banneradcode = banneradcode + 1

        if (banneradcode == "5") {
            banneradcode = 0
        }

        imagesource = "http://www.aptselector.com/images/java/austin-" + banneradcode + ".jpg"
        window.document.bannerad.src = imagesource
        thetimer = setTimeout("changeimage()", 5000);
    }
    else if (browsertype == "old") {
    }
}




function changepage() {
    if (browsertype == "new") {
        if (banneradcode == 0) {
            newlocation = "http://www.aptselector.com/lookup/lookup.phtml?bldgnumber=12900&agentnum=11&showref=yes&logo=aptlogo.gif&images=tx"
        }
        else if (banneradcode == 1) {
            newlocation = "http://www.aptselector.com/lookup/lookup.phtml?bldgnumber=11358&agentnum=11&showref=yes&logo=aptlogo.gif&images=tx"
        }
        else if (banneradcode == 2) {
            newlocation = "http://www.aptselector.com/lookup/lookup.phtml?bldgnumber=11811&agentnum=11&showref=yes&logo=aptlogo.gif&images=tx"
        }
        else if (banneradcode == 3) {
            newlocation = "http://www.aptselector.com/lookup/lookup.phtml?bldgnumber=12766&agentnum=11&showref=yes&logo=aptlogo.gif&images=tx"
        }
        else if (banneradcode == 4) {
            newlocation = "http://www.aptselector.com/lookup/lookup.phtml?bldgnumber=11029&agentnum=11&showref=yes&logo=aptlogo.gif&images=tx"
        }

        location = newlocation
    }
    else if (browsertype == "old") {
        location = "http://www.aptselector.com/lookup/lookup.phtml?bldgnumber=12900&agentnum=11&showref=yes&logo=aptlogo.gif&images=tn"
    }
}


