function browserDetection() {};
browserDetection.prototype = {
    d:false,
    dom:false,
    ie:false,
    ie4:false,
    ie5x:false,
    saf:false,
    moz:false,
    konq:false,
    mac:false,
    win:false,
    lin:false,
    old:false,
    ie5mac:false,
    ie5xwin:false,
    op:false,
    n:false,
    na:false,
    nua:false,
    win:false,
    mac:false,
    lin:false,
    browserDetection: function(){
        //var d, dom, ie, ie4, ie5x, moz, mac, win, lin, old, ie5mac, ie5xwin, op;

        this.d = document;
        this.n = navigator;
        this.na = this.n.appVersion;
        this.nua = this.n.userAgent;
        this.win = ( this.na.indexOf( 'Win' ) != -1 );
        this.mac = ( this.na.indexOf( 'Mac' ) != -1 );
        this.lin = ( this.nua.indexOf( 'Linux' ) != -1 );

        if ( !this.d.layers ){
	        this.dom = ( this.d.getElementById );
	        this.op = ( this.nua.indexOf( 'Opera' ) != -1 );
	        this.konq = ( this.nua.indexOf( 'Konqueror' ) != -1 );
	        this.saf = ( this.nua.indexOf( 'Safari' ) != -1 );
	        this.moz = ( this.nua.indexOf( 'Gecko' ) != -1 && !this.saf && !this.konq);
	        this.ie = ( this.d.all && !this.op );
	        this.ie4 = ( this.ie && !this.dom );

	        /*
	        ie5x tests only for functionality. ( dom||ie5x ) would be default settings. 
	        Opera will register true in this test if set to identify as IE 5
	        */

	        this.ie5x = ( this.d.all && this.dom );
	        this.ie5mac = ( this.mac && this.ie5x );
	        this.ie5xwin = ( this.win && this.ie5x );
        }

    }
};


