function WMReloadPage(init) { 
	if (init==true) with (navigator) {
		if ((appName=="Netscape") && (parseInt(appVersion)==4)) {
    		document.WMpgW=innerWidth; 
    		document.WMpgH=innerHeight; 
    		onresize=WMReloadPage; 
    	}
    } else if (innerWidth!=document.WMpgW || innerHeight!=document.WMpgH) {
    	location.reload();
    }
}

WMReloadPage(true);

function adapt_styles() {

	var text10    = 10;	// plain text
	var text9     = 9;	// tooltips
	var upper     = 10;	// kompetenz popups
	var header    = 15;
	var link	  = ''
	var quote	  = 14;
	var form      = 'border:1px #000000 solid;'
	var texts     = 11;

	var NS4 = (document.layers) ? 1 : 0;
	var IE4 = (document.all) ? 1 : 0;

	var isMac = (navigator.userAgent.indexOf('Mac') != -1);
	var isPC  = !isMac;
		
	if(NS4 && isPC){
		text10    = 11;
		text9     = 10;
		upper     = 11;
		header    = 16;
		quote	  = 15;
		form      = 'border: 1;';
		texts     = 12;
		link	  = 'text-decoration: underline'
	}
	if(NS4 && isMac) {
	  form   = 'border: 1;';
	  link	  = 'text-decoration: underline'	
	}
	
	var s = '<style type="text/css">' + 
	'.text10b { font-size: '+text10+'px; }\n'+
	'.text10b A {'+link+'}\n'+
	'.text10w { font-size: '+text10+'px; }\n'+
	'body { font-size: '+text10+'px; }\n'+
	'.text9b { font-size: '+text9+'px; }\n'+
	'.text9b A {'+link+'}\n'+
	'.text9b A:link {'+link+'}\n'+
	'.text9b A:visited {'+link+'}\n'+
	'.upper9 { font-size: '+upper+'px; }\n'+
	'.header16w { font-size: '+header+'px; }\n'+
	'.header16b { font-size: '+header+'px; }\n'+
	'.quote14 { font-size: '+quote+'px; }\n'+
	'.text10bs { font-size: '+texts+'px; }\n'+
	'form { font-size: '+text9+'px}\n'+
	'input {'+form+' font-size: '+text9+'px}\n'+
	'textarea {'+form+' font-size: '+text9+'px}\n'+
	'select {'+form+' font-size: '+text9+'px}\n'+
	'</style>';

	return s;
}



