function Is ()
{   // convert all characters to lowercase to simplify testing
    var agt=navigator.userAgent.toLowerCase();

    // --- BROWSER VERSION ---
    this.major = parseInt(navigator.appVersion);
    this.minor = parseFloat(navigator.appVersion);

    this.nav  = ((agt.indexOf('mozilla')!=-1) && ((agt.indexOf('spoofer')==-1)
                && (agt.indexOf('compatible') == -1)));
    this.nav2 = (this.nav && (this.major == 2));
    this.nav3 = (this.nav && (this.major == 3));
    this.nav4 = (this.nav && (this.major == 4));

    this.ie   = (agt.indexOf("msie") != -1);
    this.ie3  = (this.ie && (this.major == 2));
    this.ie4  = (this.ie && (this.major == 4));
	this.ie5  = (this.ie && (this.major == 5));

    this.opera = (agt.indexOf("opera") != -1);
     
    this.nav4up = this.nav && (this.major >= 4);
    this.ie4up  = this.ie  && (this.major >= 4);
}


function changeImage(Prev, Next){
	Prev.src = Next.src;
}

function changeImageEx(Name, BildObjekt){
	window.document.images[Name].src=BildObjekt.src;
}


function moveEltBy (elt, x, y) 
{ if (is.nav4up) elt.moveBy(x, y);
  else if (is.ie4up)  {
    elt.style.pixelLeft += x;
    elt.style.pixelTop  += y;
  }
}

function changeBGColor(id, color){
	is = new Is();
	if (is.ie4up){
		document.all(id).style.backgroundColor=color;
	}		
}

function openWindow(url){
  NewWindow = window.open(url,null,"resizable=yes,menubar=yes,scrollbars=yes")
  if (NewWindow) {
	  NewWindow.focus();
  }  
}


