function newImage(arg) {
if (document.images) {
rslt = new Image();
rslt.src = arg;
return rslt;
}
}
function changeImages() {
if (document.images && (preloadFlag == true)) {
for (var i=0; i<changeImages.arguments.length; i+=2) {
document[changeImages.arguments[i]].src = changeImages.arguments[i+1];
}
}
}
var preloadFlag = false;
function preloadImages() {
if (document.images) {
i01 = newImage("/images/ausstellung_a.jpg");
i02 = newImage("/images/kontakt_a.jpg");
i03 = newImage("/images/produkte_a.jpg");
i04 = newImage("/images/p_tel_a.jpg");
i05 = newImage("/images/p_druck_a.jpg");
i06 = newImage("/images/p_kontakt_a.jpg");
i07 = newImage("/images/p_sitemap_a.jpg");
preloadFlag = true;
}
}
function hoehe () {
hoehe = document.body.clientHeight - 307 + "px";
y = document.body.clientHeight - 307;
x = window.document.getElementById("inhalt").offsetHeight;
if ( x < y ) { 
	parent.document.getElementById('inhalt').style.height = hoehe; }
}
function Fensterweite () {
if (window.innerWidth) {
return window.innerWidth;
} else if (document.body && document.body.offsetWidth) {
return document.body.offsetWidth;
} else {
return 0;
}
}
function Fensterhoehe () {
if (window.innerHeight) {
return window.innerHeight;
} else if (document.body && document.body.offsetHeight) {
return document.body.offsetHeight;
} else {
return 0;
}
}
function neuAufbau () {
if (Weite != Fensterweite() || Hoehe != Fensterhoehe())
	location.href = location.href;
hoehe = document.body.clientHeight - 307 + "px";
	y = document.body.clientHeight - 307;
	x = window.document.getElementById("inhalt").offsetHeight;
	if ( x < y ) { 
	parent.document.getElementById('inhalt').style.height = hoehe; }
	}
function ie_init () {
if (!window.Weite && document.body && document.body.offsetWidth) {
window.onresize = neuAufbau;
Weite = Fensterweite();
Hoehe = Fensterhoehe();
}
}
if (!window.Weite && window.innerWidth) {
window.onresize = neuAufbau;
Weite = Fensterweite();
Hoehe = Fensterhoehe();
}
try {
	document.execCommand("BackgroundImageCache", false, true);
} catch(err) {};

if(top.frames.length > 0) top.location.href=self.location;