var is;
var isIE3Mac = false;
// this section is designed specifically for IE3 for the Mac
if ((navigator.appVersion.indexOf("Mac")!=-1) &&
(navigator.userAgent.indexOf("MSIE")!=-1) &&
(parseInt(navigator.appVersion)==3))
isIE3Mac = true;
else is = new Is();


function Is(){
var agt=navigator.userAgent.toLowerCase();
this.major = parseInt(navigator.appVersion);
this.minor = parseFloat(navigator.appVersion);

this.nav = ((agt.indexOf('mozilla')!=-1) 
&& (agt.indexOf('spoofer')==-1)
&& (agt.indexOf('compatible') == -1) 
&&(agt.indexOf('opera')==-1)
&& (agt.indexOf('webtv')==-1));
this.nav2 = (this.nav && (this.major == 2));
this.nav3 = (this.nav && (this.major == 3));
this.nav4 = (this.nav && (this.major == 4));
this.nav4up = (this.nav && (this.major >= 4));
this.navonly = (this.nav && ((agt.indexOf(";nav") != -1) ||
(agt.indexOf("; nav") != -1)) );
this.nav5 = (this.nav && (this.major == 5));
this.nav5up = (this.nav && (this.major >= 5));
this.ie = (agt.indexOf("msie") != -1);
this.ie3 = (this.ie && (this.major < 4));
this.ie4 = (this.ie && (this.major == 4) && (agt.indexOf("msie 5.0")==-1));
this.ie4up = (this.ie && (this.major >= 4));
this.ie5 = (this.ie && (this.major == 4) && (agt.indexOf("msie 5.0")!=-1));
this.ie5up = (this.ie && !this.ie3 && !this.ie4);
}

var NN4 = false;
var IE4 = false;
var dom = false;

if(document.getElementById && !is.ie4up) dom = true;
else if (!isIE3Mac && is.nav4up) NN4=true;
else if (!isIE3Mac && is.ie4up) IE4=true;
else {alert("this page wont show up correctly in your browser");}

//var IE4 = false; //--make this "4" so that no IE 3 has errors...
//var NN4 = false;
//if (document.all) IE4=true;
//else if (document.layers) NN4=true;
//if (!IE4 && !NN4) {alert("morgan needs to rewrite his code, bug him about it"); // {window.location="lowproj.html"}

				if(dom){
			IElayer = "getElementById('";
			IElayer2 = "')";
            IEstyle = ".style";
            Sstate = "visible";
            IEpos = "top";
				
               } else if (NN4) {
            IElayer = "";
			IElayer2 = "";
            IEstyle = "";
            Sstate = "show";
            IEpos = "top";
                } else {
            IElayer = "all.";
			IElayer2 = "";
            IEstyle = ".style";
            Sstate = "visible";
            IEpos = "pixelTop";
                }
                
        function forResize() {//NN resize problem that messes up the div alignment..
        location.reload()
                
                return true
        }

        if (NN4) {
                window.captureEvents(Event.RESIZE)
                window.onresize = forResize
        }

