browser = (((navigator.appName == "Netscape") && (parseInt(navigator.appVersion) >= 3 )) || ((navigator.appName == "Microsoft Internet Explorer") && (parseInt(navigator.appVersion) >= 4 )))
ie4 = ((navigator.appName == "Microsoft Internet Explorer") && (parseInt(navigator.appVersion) >= 4 ))
ns4 = ((navigator.appName == "Netscape") && (parseInt(navigator.appVersion) >= 4 ))

     

var breite = 0;
var hoehe = 0;

function change_size(){

// the fork below ensures execution of the scaling code only on css capable browsers

if ( ((navigator.appName == 'Netscape') && (navigator.appVersion >= 4)) || (navigator.appName == 'Microsoft Internet Explorer')) {

// set fontsize related to the browser window's width
// the fontsizes will be set to one of three predefined values
// to optimize the layout for the most used screen resolutions.
// additionally, the fontweight is set to light mode in the biggest level.

// set smallest size
if (breite < 750) {
size = "9";
sizetitle= "16";
sizehead = "12";
sizehead2 = "10";
weight = "normal";
}
// set medium size
if ((breite > 749) && (breite < 1020)) {
size = "10";
sizetitle= "18";
sizehead = "14";
sizehead2 = "12";
weight = "normal";
}
// set biggest size
if (breite > 1020) {
size = "11";
sizetitle= "20";
sizehead = "16";
sizehead2 = "14";
weight = "lighter";
}

size = size + "pt";

// set the content area fontsizes


for (i=0;i<document.all.tags("span").length;i++) {
if(document.all.tags("span")[i].className == "paragraph") {
document.all.tags("span")[i].style.fontSize = size;		
}
}

// set the title fontsize	

for (i=0;i<document.all.tags("H1").length;i++) {		
document.all.tags("H1")[i].style.fontSize = sizetitle;		

}

// set the headline fontsize

for (i=0;i<document.all.tags("H2").length;i++) {		
document.all.tags("H2")[i].style.fontSize = sizehead;		

}


// set the headline2 fontsize

for (i=0;i<document.all.tags("H3").length;i++) {		
document.all.tags("H3")[i].style.fontSize = sizehead2;		

}

// set the Text

for (i=0;i<document.all.tags("P").length;i++) {		
document.all.tags("P")[i].style.fontSize = size;		

}

// set the Wichtig

for (i=0;i<document.all.tags("B").length;i++) {		
document.all.tags("B")[i].style.fontSize = size;		

}
// set the Aufzählung

for (i=0;i<document.all.tags("UL").length;i++) {		
document.all.tags("UL")[i].style.fontSize = size;		

}

// set the Blocksatz

for (i=0;i<document.all.tags("BLOCKQUOTE").length;i++) {		
document.all.tags("BLOCKQUOTE")[i].style.fontSize = size;		
}

// set the Table

for (i=0;i<document.all.tags("TABLE").length;i++) {		
document.all.tags("TABLE")[i].style.fontSize = size;
}


}
}


if (ie4) {
function scaleIt() {

// the line below additionally prevents execution of the code on old netscape browsers
if ((navigator.appName == 'Netscape') && (navigator.appVersion > 2.02)) {

// the line below determines if the document.layers object is available (netscape only)
if (document.layers)  {
//NN version
breite = window.innerWidth;
hoehe = window.innerHeight;
}
}
else {
//IE version
if (navigator.appName == 'Microsoft Internet Explorer') {
breite = document.body.clientWidth;
hoehe = document.body.clientHeight;
}
}
change_size();
}
}

function bildwechseln(name, filename, status)
{if (3 <= parseInt(navigator.appVersion.substring(0,1)))
{document.images [name].src = filename;self.status=status;
}return true
}
