function ImageMouseOver(imageName,imageSrcLow,imageSrcHigh) {
    this.ok = false;
    this.aktive = false;
    this.imgObj = null;
    this.imageName = imageName;
    this.imageObjLow = imageName+'low';
    this.imageObjHigh = imageName+'high';
    this.imageSrcLow = imageSrcLow;
    this.imageSrcHigh = imageSrcHigh;
    this.preloadImg = onpreloadImg;
    this.preloadImg();
    // Methoden
    this.change = changeImg;
    this.setAktive = setAktiveImg;
    this.clearAktive = clearAktiveImg;
    this.height = getHeight;
    this.width = getWidth;
    return this;
}

function onpreloadImg() {
    preload(this.imageObjLow,this.imageSrcLow);
    preload(this.imageObjHigh,this.imageSrcHigh);
    this.ok = true;
}

function changeImg(check) {
	if (!this.ok) return false;
    if (!this.aktive) {
        (check==1) ? this.imgObj=this.imageObjHigh : this.imgObj=this.imageObjLow;
        changeImage(this.imageName,this.imgObj);
    }
}

function setAktiveImg() {
    if (!this.ok) return false;
    this.change(1);
    this.aktive = true;
}

function clearAktiveImg() {
    if (!this.ok) return false;
    this.aktive = false;
    this.change(0);
}

function getHeight() {
    if (!this.ok) return false;
	return document.images[this.imageName].height;
}

function getWidth() {
    if (!this.ok) return false;
	return document.images[this.imageName].width; 
}

function preload (imageObj,imageSrc) {
	if (document.images) {
		eval(imageObj+' = new Image();');
		eval(imageObj+'.src = "'+imageSrc+'";');
	}
}

function changeImage(imageName,imageObj) {
	if (document.images) {
		document.images[imageName].src = eval(imageObj+".src");
	}
}

 // POP-UP
var popUpWin=0;
function popUpWindow (URLStr, left, top, width, height, resizable) {
	var resizable = (true==resizable) ? 'yes' : 'no';
	if (popUpWin) 
        if(!popUpWin.closed) popUpWin.close();
    popUpWin = open(URLStr, 'popUpWin', 'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable='+resizable+',copyhistory=yes,width='+width+',height='+height+',left='+left+', top='+top+',screenX='+left+',screenY='+top+'');
}





