function fehlerdeaktivierung() {
prosser_cache();
return true;
}
window.onerror = fehlerdeaktivierung;
var itimer;
imageFormat = ".jpg"
pathTo = "Media/";
offSwapDelay = 1;
onSwapDelay = 2;
_img = false;_delay1 = null;_delay2 = null;
function cacheIt() {
        this.on = new Array(toChange+1);
        for (i=1;i<=toChange;i++) {
                this.on[i] = new Image;
                this.on[i].src = pathTo + onImgDat[i] + imageFormat;
                //alert (this.on[i].src);
		};
        this.off = new Array(toChange+1);
        for (i=1;i<=toChange;i++) {
                this.off[i] = new Image;
                this.off[i].src = pathTo + offImgDat[i] + imageFormat;
                // alert (this.off[i].src);
        };
        return this;
};
function Swapon(num) {
        level = num;
        imgName = onImgName[level];
		if (swapImg.on[level].complete == true)
			document.images[imgName].src = swapImg.on[level].src;
};
function Swapoff(num) {
        level = num;
		imgName = onImgName[level];
		if (swapImg.off[level].complete == true)
			document.images[imgName].src = swapImg.off[level].src;
};
function prosser_cache() {
	if (document.images)
		_img = true;
	if (_img == true)
		if (toChange != 0) 
			{
			swapImg = new cacheIt();
			}
};
