v3 = 0; op = 0; ie4  = 0; ie5 = 0; nn4 = 0; nn6 = 0; isMac = 0; aol = 0;

if(document.images){
    if(navigator.userAgent.indexOf("Opera") != -1){
        op = 1;
    } else {
        if(navigator.userAgent.indexOf("AOL") != -1){
            aol = 1;
        } else {
            ie4 = (document.all && !document.getElementById);
            nn4 = (document.layers);
            ie5 = (document.all && document.getElementById);
            nn6 = (document.addEventListener);
        }
    }
} else {
    v3 = 1;	
}

if(navigator.userAgent.indexOf("Mac") != -1){
    isMac = 1;
}

if(op){ // do this
document.write("<B>This site is best viewed with Internet Explorer 4 or higher.  You may see some things that do not look 'right.'</b>");
} 
//if(ie4){ // do this
//    alert("You are using Internet Explorer 4");
//} 
//if(ie5){ // do this
//    alert("You are using Internet Explorer 5 or higher");
//} 
if(nn4){ // do this
document.write("<B>This site is best viewed with Internet Explorer 4 or higher.  You may see some things that do not look 'right.'</b>");
} 
if(nn6){ // do this
document.write("<B>This site is best viewed with Internet Explorer 4 or higher.  You may see some things that do not look 'right.'</b>");
} 
if(aol){ // do this
document.write("<B>This site is best viewed with Internet Explorer 4 or higher.  You may see some things that do not look 'right.'</b>");
}
if(v3){ // do this
document.write("<B>This site is best viewed with Internet Explorer 4 or higher.  You may see some things that do not look 'right.'</b>");
}
if(isMac){ // do this
document.write("<B>This site is best viewed with Windows Internet Explorer 4 or higher.  You may see some things that do not look 'right.'</b>");
}