function Session() {
    this.starttime= new Date();
    this.cnt= 0;
    this.theme= 0;
    this.themes= new Array ( "default", "t1", "t2", "t3");
    // Determine browser.
    this.ns4 = (document.layers)? true:false;
    this.ns6 = (document.getElementById)? true:false;
    this.ie4 = (document.all)? true:false;
    this.ie5 = false;
    this.op= navigator.appName.indexOf('Opera')>=0;
    if (this.op) { this.ns6= this.ie4= false; }
    // Microsoft Stupidity Check(tm). JH: borrowed from overLib(www.bosrup.com)
    if (this.ie4) {
        if ((navigator.userAgent.indexOf('MSIE 5') > 0) || (navigator.userAgent.indexOf('MSIE 6') > 0) 
            || (navigator.userAgent.indexOf('MSIE 7') > 0)) {
	    this.ie5 = true;
	}
	this.ns6 = false;
	this.op= false;
    }
    // Set up language information
    var la;
    if(this.ns6 || this.ns4 || this.op) {
	la= (navigator.language=="no" ? 1 : 0 );
    } else if (this.ie4){
	la= (navigator.userLanguage=="no"? 1 : 0 );
    } else {
	la= 0;
    }
    this.language= la;
}

function pl() { //v3.0
    var d=document;
    if(d.images) {
	if(!d.MM_p) d.MM_p=new Array();
	var i, j=d.MM_p.length, a=pl.arguments;
	for(i=0; i<a.length; i++)
	    if (a[i].indexOf("#")!=0){
		d.MM_p[j]=new Image;
		d.MM_p[j++].src=a[i];
	    }
    }
}

var s= navigator.session;
if (!s) {
    navigator.session= s= new Session();
    if (navigator.onLine) pl("http://w1.extreme-dm.com/i.gif");
    pl("images/english.gif","images/norsk.gif","images/bul_5.gif");
}

